Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Installation - Getting started with Red Hat Linux
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
Couldn 't open PID file /var/run/named/named pid Permission denied
sendmail configuration on redhat
kernel 2 6 and /dev/sound/mixer not found
Promise 378 controller
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
Lotus Notes under Wine
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
/etc/security/limits conf question
Intel E/1000 driver
rpm database corrupt
Command stream end of file while reading
qla2300 modules
 
corrupted real-time input stream

corrupted real-time input stream

2007-03-13       - By Bret Stern

 Back
Reply:     1     2     3     4     5  



> -- --Original Message-- --
> From: redhat-install-list-bounces@(protected)
> [mailto:redhat-install-list-bounces@(protected)] On Behalf Of
> Carl Reynolds
> Sent: Tuesday, March 13, 2007 10:27 AM
> To: redhat-install-list@(protected)
> Subject: corrupted real-time input stream
>
> I have a program (that acts like a server) that reads data
> from a port in real time. It then writes the data to a file
> used as a buffer.
> Another program connects to the program via an ethernet
> socket and requests that the data be transmitted. At that
> point the server program reads the data back out of the
> buffer file and shoves it out the socket.
> Note: the buffer file is stored in its own partition which is xfs.
>
> I was away for a couple of weeks and during that time we had
> a power outage, a log file on the machine filled up the root
> partition, and another programmer upgraded the kernel from
> 2.6.18-1.2849 to 2.6.19-1.2911. When I got back the server
> program was not working. I have traced the problem to the
> "bytes = read(fd, data, len)" statement in the server program.
>
> When the server reads the data from the buffer file, it is
> asking for 128K bytes. It gets 128K, but the end of the input
> from about 85K is filled with 0s. If I save the buffer file
> to another location and 'od'
> the file, I can see that the data being written to the buffer
> file is correct and does not contain the area of 0s returned
> by the read. I tried changing the length requested by the
> read so that it was only asking for 32K bytes at a time, but
> the data still contains 0s from about 80K on.
>
> I assume that when the other programmer upgraded the kernel,
> he inadvertently changed a parameter that controls how the OS
> handles read requests, but I can't figure out what it is.
>
> Does anyone have a clue what might be causing this problem?
> If I knew what was causing the problem, I might be able to
> fix it. As it is, I'm in the dark.
>
> Thanks for any help you may be able to give me on this.
>
>
>
> Carl.
>
>
> __ ____ ____ ____ ____ ____ ____ ____ ____ ____
> Redhat-install-list mailing list
> Redhat-install-list@(protected)
> https://www.redhat.com/mailman/listinfo/redhat-install-list
> To Unsubscribe Go To ABOVE URL or send a message to:
> redhat-install-list-request@(protected)
> Subject: unsubscribe

Some straws..

It sounds like the buffer may be initialized with '0', with
the exception of the note you make regarding the different file
location.

Perhaps the buffer already exists (hidden)?? When running your
program, do you check if the buffer already exists?

Debugging is about as much fun as one person can have!


__ ____ ____ ____ ____ ____ ____ ____ ____ ____
Redhat-install-list mailing list
Redhat-install-list@(protected)
https://www.redhat.com/mailman/listinfo/redhat-install-list
To Unsubscribe Go To ABOVE URL or send a message to:
redhat-install-list-request@(protected)
Subject: unsubscribe