linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: 2.5.70 lockup while write()ing to /dev/hda1
@ 2003-08-06 14:50 lode leroy
  0 siblings, 0 replies; 5+ messages in thread
From: lode leroy @ 2003-08-06 14:50 UTC (permalink / raw)
  To: felipe_alfaro; +Cc: linux-kernel

Actually, you're right... i don't see this on 2.6.0-test2 .
I should have tried upgrading first!


>From: Felipe Alfaro Solana <felipe_alfaro@linuxmail.org>
>To: lode leroy <lode_leroy@hotmail.com>
>CC: LKML <linux-kernel@vger.kernel.org>
>Subject: Re: 2.5.70 lockup while write()ing to /dev/hda1
>Date: Wed, 06 Aug 2003 15:05:06 +0200
>
>On Wed, 2003-08-06 at 14:32, lode leroy wrote:
> > I just want to report a problem I saw on linux 2.5.70:
> > (since I have a workaround, I do not intend to debug this further)
> >
> > the following program locks up the computer.
> > sometimes this has happened after about 16MB,
> > sometimes after about 64MB...
>
>Don't you think 2.5.70 is a little bit obsolete now? ;-)
>I recoomend you testing this on 2.6.0-test2-latest. Using the latest
>available kernel will probably help mantainers to nail down any problem.
>

_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 2.5.70 lockup while write()ing to /dev/hda1
  2003-08-06 12:47 ` Michael Buesch
@ 2003-08-06 13:38   ` Andreas Schwab
  0 siblings, 0 replies; 5+ messages in thread
From: Andreas Schwab @ 2003-08-06 13:38 UTC (permalink / raw)
  To: Michael Buesch; +Cc: lode leroy, linux kernel mailing list

Michael Buesch <fsdeveloper@yahoo.de> writes:

|> On Wednesday 06 August 2003 14:32, lode leroy wrote:
|> > main()
|> > {
|> >     int f = open("/dev/hda1", O_RDWR);
|> >     char buffer[8192];
|> >     for(i=0;1;i++) {
|> >        printf("%d\r", i);
|> >        write(f, buffer, sizeof(buffer);
|> 
|> Shouldn't this be:
|> 	write(f, buffer, sizeof(buffer) / sizeof(buffer[0]));

sizeof(char) == 1, always and everywhere.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 2.5.70 lockup while write()ing to /dev/hda1
  2003-08-06 12:32 lode leroy
  2003-08-06 12:47 ` Michael Buesch
@ 2003-08-06 13:05 ` Felipe Alfaro Solana
  1 sibling, 0 replies; 5+ messages in thread
From: Felipe Alfaro Solana @ 2003-08-06 13:05 UTC (permalink / raw)
  To: lode leroy; +Cc: LKML

On Wed, 2003-08-06 at 14:32, lode leroy wrote:
> I just want to report a problem I saw on linux 2.5.70:
> (since I have a workaround, I do not intend to debug this further)
> 
> the following program locks up the computer.
> sometimes this has happened after about 16MB,
> sometimes after about 64MB...

Don't you think 2.5.70 is a little bit obsolete now? ;-)
I recoomend you testing this on 2.6.0-test2-latest. Using the latest
available kernel will probably help mantainers to nail down any problem.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 2.5.70 lockup while write()ing to /dev/hda1
  2003-08-06 12:32 lode leroy
@ 2003-08-06 12:47 ` Michael Buesch
  2003-08-06 13:38   ` Andreas Schwab
  2003-08-06 13:05 ` Felipe Alfaro Solana
  1 sibling, 1 reply; 5+ messages in thread
From: Michael Buesch @ 2003-08-06 12:47 UTC (permalink / raw)
  To: lode leroy; +Cc: linux kernel mailing list

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 06 August 2003 14:32, lode leroy wrote:
> main()
> {
>     int f = open("/dev/hda1", O_RDWR);
>     char buffer[8192];
>     for(i=0;1;i++) {
>        printf("%d\r", i);
>        write(f, buffer, sizeof(buffer);

Shouldn't this be:
	write(f, buffer, sizeof(buffer) / sizeof(buffer[0]));

And what are you thying to do with the code?

>        /* fsync(f); */
>     }
>     close(f)
> }

- -- 
Regards Michael Buesch  [ http://www.8ung.at/tuxsoft ]
Penguin on this machine:  Linux 2.6.0-test2 - i386

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/MPjvoxoigfggmSgRAkhNAJ40TUOftJfk/wa+g6B6gFiRSEdsNwCeJ/Tc
YH8xVddWCQZzozFNlIxT14o=
=x0ge
-----END PGP SIGNATURE-----


^ permalink raw reply	[flat|nested] 5+ messages in thread

* 2.5.70 lockup while write()ing to /dev/hda1
@ 2003-08-06 12:32 lode leroy
  2003-08-06 12:47 ` Michael Buesch
  2003-08-06 13:05 ` Felipe Alfaro Solana
  0 siblings, 2 replies; 5+ messages in thread
From: lode leroy @ 2003-08-06 12:32 UTC (permalink / raw)
  To: linux-kernel

I just want to report a problem I saw on linux 2.5.70:
(since I have a workaround, I do not intend to debug this further)

the following program locks up the computer.
sometimes this has happened after about 16MB,
sometimes after about 64MB...

main()
{
    int f = open("/dev/hda1", O_RDWR);
    char buffer[8192];
    for(i=0;1;i++) {
       printf("%d\r", i);
       write(f, buffer, sizeof(buffer);
       /* fsync(f); */
    }
    close(f)
}

when using adding the fsync(), all goes fine!

_________________________________________________________________
Receive your Hotmail & Messenger messages on your mobile phone with MSN 
Mobile http://www.msn.be/gsm/smsservices


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-08-06 14:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-06 14:50 2.5.70 lockup while write()ing to /dev/hda1 lode leroy
  -- strict thread matches above, loose matches on Subject: below --
2003-08-06 12:32 lode leroy
2003-08-06 12:47 ` Michael Buesch
2003-08-06 13:38   ` Andreas Schwab
2003-08-06 13:05 ` Felipe Alfaro Solana

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).