[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netbsd-current-users
Subject:    Re: with AMD_SUPPORT=yes, eject(1) hangs unless -f is given
From:       Jukka Salmi <j+nbsd () 2009 ! salmi ! ch>
Date:       2009-05-22 12:32:44
Message-ID: 20090522123244.GC1486 () moray ! salmi ! ch
[Download RAW message or body]

Christos Zoulas --> current-users (2009-05-21 17:27:00 +0000):
> In article <20090521114917.GA4952@moray.salmi.ch>,
> Jukka Salmi  <j+nbsd@2009.salmi.ch> wrote:
> > Hello,
> > 
> > on a current i386 system, eject(1)ing a disk or cdrom hangs unless I
> > specify the -f option.  Rebuilding eject(1) with AMD_SUPPORT=no seems to
> > work around the problem, i.e. ejecting works again even without -f.
> > 
> > Is anybody able to reproduce this problem?
> 
> ktrace it?

As Jonathan already wrote it seems to time out while communicating on a
dgram socket:

$ kdump -R
[...]
 18348      1 eject    0.000016761 CALL  __socket30(0x18,2,0x11)
 18348      1 eject    0.000017319 RET   __socket30 4
 18348      1 eject    0.000005587 CALL  getsockname(4,0xbfbfe638,0xbfbfe634)
 18348      1 eject    0.000006705 MISC  sockname: 28, \
1c180000000000000000000000000000000000000000000000000000  18348      1 eject    \
0.000002793 RET   getsockname 0  18348      1 eject    0.000004469 CALL  \
getsockopt(4,0xffff,0x1008,0xbfbfe630,0xbfbfe634)  18348      1 eject    0.000003632 \
RET   getsockopt 0  18348      1 eject    0.000006146 CALL  \
getsockname(4,0xbfbfe618,0xbfbfe60c)  18348      1 eject    0.000002793 MISC  \
sockname: 28, 1c180000000000000000000000000000000000000000000000000000  18348      1 \
eject    0.000001676 RET   getsockname 0  18348      1 eject    0.000004749 CALL  \
getsockopt(4,0x29,0xe,0xbfbfe614,0xbfbfe608)  18348      1 eject    0.000003631 RET   \
getsockopt 0  18348      1 eject    0.000003911 CALL  \
setsockopt(4,0x29,0xe,0xbfbfe610,4)  18348      1 eject    0.000002794 RET   \
setsockopt 0  18348      1 eject    0.000003911 CALL  bind(4,0xbfbfe618,0x1c)
 18348      1 eject    0.000002234 MISC  sockargs: 28, \
1c180000000000000000000000000000000000000000000000000000  18348      1 eject    \
0.000005029 RET   bind -1 errno 13 Permission denied [...]
 18348      1 eject    0.000008380 CALL  sendto(4,0xbb940340,0x4c,0,0xbb93e008,0x1c)
 18348      1 eject    0.000003073 MISC  msghdr: 28, \
08e093bb1c000000d4dc60ce01000000000000000600000000000000  18348      1 eject    \
0.000003073 MISC  sockargs: 28, \
1c18006f000000000000000000000000000000000000000100000000  18348      1 eject    \
                0.000062573 GIO   fd 4 wrote 76 bytes
       "\M-2G\M^^\M-j\0\0\0\0\0\0\0\^B\0\^A\M^F\240\0\0\0\^D\0\0\0\v\0\0\0\0\0\
	\0\0\0\0\0\0\0\0\0\0\0\0\^D\M^S\M-s\0\0\0\^A\0\0\0\^Dtcp6\0\0\0	::1.0.\
	111\0\0\0\0\0\0\0"
 18348      1 eject    0.000002793 RET   sendto 76/0x4c
 18348      1 eject    0.000005867 CALL  \
__pollts50(0xbb93e0d8,1,0xbfbfe758,0xbfbfe730)  18348      1 eject    15.004936492 \
RET   __pollts50 0  18348      1 eject    0.000006425 CALL  \
__gettimeofday50(0xbfbfe740,0)  18348      1 eject    0.000002793 RET   \
__gettimeofday50 0  18348      1 eject    0.000003911 CALL  \
sendto(4,0xbb940340,0x4c,0,0xbb93e008,0x1c)  18348      1 eject    0.000003911 MISC  \
msghdr: 28, 08e093bb1c000000d4dc60ce01000000000000000600000000000000  18348      1 \
eject    0.000003632 MISC  sockargs: 28, \
1c18006f000000000000000000000000000000000000000100000000  18348      1 eject    \
                0.000060059 GIO   fd 4 wrote 76 bytes
       "\M-2G\M^^\M-j\0\0\0\0\0\0\0\^B\0\^A\M^F\240\0\0\0\^D\0\0\0\v\0\0\0\0\0\
	\0\0\0\0\0\0\0\0\0\0\0\0\^D\M^S\M-s\0\0\0\^A\0\0\0\^Dtcp6\0\0\0	::1.0.\
	111\0\0\0\0\0\0\0"
 18348      1 eject    0.000002793 RET   sendto 76/0x4c
 18348      1 eject    0.000003073 CALL  \
__pollts50(0xbb93e0d8,1,0xbfbfe758,0xbfbfe730)  18348      1 eject    30.019313682 \
RET   __pollts50 0  18348      1 eject    0.000006983 CALL  \
__gettimeofday50(0xbfbfe740,0)  18348      1 eject    0.000006146 RET   \
__gettimeofday50 0  18348      1 eject    0.000006984 CALL  \
sendto(4,0xbb940340,0x4c,0,0xbb93e008,0x1c)  18348      1 eject    0.000007542 MISC  \
msghdr: 28, 08e093bb1c000000d4dc60ce01000000000000000600000000000000  18348      1 \
eject    0.000011453 MISC  sockargs: 28, \
1c18006f000000000000000000000000000000000000000100000000  18348      1 eject    \
                0.000086597 GIO   fd 4 wrote 76 bytes
       "\M-2G\M^^\M-j\0\0\0\0\0\0\0\^B\0\^A\M^F\240\0\0\0\^D\0\0\0\v\0\0\0\0\0\
	\0\0\0\0\0\0\0\0\0\0\0\0\^D\M^S\M-s\0\0\0\^A\0\0\0\^Dtcp6\0\0\0	::1.0.\
	111\0\0\0\0\0\0\0"
 18348      1 eject    0.000003352 RET   sendto 76/0x4c
 18348      1 eject    0.000003911 CALL  \
__pollts50(0xbb93e0d8,1,0xbfbfe758,0xbfbfe730) [...]


Regards, Jukka

-- 
This email fills a much-needed gap in the archives.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic