linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Jan Nieuwenhuizen <janneke@gnu.org>
To: linuxppc-dev@lists.linuxppc.org
Subject: /dev/fd0 close () hangs -- how to debug?
Date: Tue, 16 Nov 1999 12:14:57 +0100	[thread overview]
Message-ID: <199911161114.MAA18127@appel.flower> (raw)


Hi,

I've never gotten my floppy drive to work under Linuxppc, it works fine
under MacOS.  When accessing the floppy, it sounds ok, but the close ()
system call doesn't return.  After this, the fd0 device can't be accessed
again because it's busy.  The process can't be killed.

I've got no experience with kernel-debugging, how to proceed?
Can you give me some pointers?

Greetings,

Jan.

My machine is a beige G3 powermac, linuxppc R5.

Linux appel.flower 2.2.6-15apmac #1 Fri Apr 30 12:52:03 EDT 1999 ppc unknown
glibc-2.1.1-6c
egcs-1.1.2-12f

But with 2.3.23 (can't get > 24 kernels to work: 'copying of device tree...
done.' --- nothing; 24 has video mode problems) and glibc-2.1.3-0b 
(ftp://dev.linuxppc.org/users/fsirl/R5/SRPMS/) yield the same result.

Here's an example gdb session using dd, linked statically to home-made
glibc-2.1.3, with debug info.

[root@appel src]# gdb dd
GNU gdb 4.17.0.11 with Linux support
(gdb) break cleanup
Breakpoint 1 at 0x1800704: file dd.c, line 375.
(gdb) r if=x of=/dev/fd0
Starting program: /usr/src/redhat/BUILD/fileutils-4.0/src/dd if=x of=/dev/fd0

Breakpoint 1, cleanup () at dd.c:375
375       print_stats ();
(gdb) l
370     }
371
372     static void
373     cleanup (void)
374     {
375       print_stats ();
376       if (close (input_fd) < 0)
377         error (1, errno, "%s", input_file);
378       if (close (output_fd) < 0)
379         error (1, errno, "%s", output_file);
(gdb) n
41+1 records in
41+1 records out
376       if (close (input_fd) < 0)
(gdb) n
378       if (close (output_fd) < 0)
(gdb) s

...

-- 
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien/      | http://www.lilypond.org/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

                 reply	other threads:[~1999-11-16 11:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199911161114.MAA18127@appel.flower \
    --to=janneke@gnu.org \
    --cc=linuxppc-dev@lists.linuxppc.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).