Re: Amd(8) Hangs at Boot

2013-01-01 Thread Rick Macklem
Cy Schubert wrote:
 Just udated to the latest current and amd hangs at boot. Ideas?
 
It appears that r244678 broke the ip4 configuration of loopback for
some network interfaces.

I don't know, but it might explain why this is happening?

Also, if you happen to have a bxe(4) interface, it looks like a
recent commit broke UDP checksums, which could also explain it.

rick

 NFS access cache time=0
 Starting amd.
 [halt - sent]
 KDB: enter: Break to debugger
 [ thread pid 762 tid 100072 ]
 Stopped at kdb_break+0x4e: movl $0,kdb_why
 db bt
 Tracing pid 762 tid 100072 td 0x8a1675e0
 kdb_break(87641200,c7c8617c,807a9208,81ac6b54,81ac6b50,...) at
 kdb_break+0x4e/frame 0xc7c86130
 uart_intr(87641200,0,8a1675e0,4,875f30d0,...) at uart_intr+0x8e/frame
 0xc7c8615c
 intr_event_handle(8757fa80,c7c861c0,1,8a1675e0,8a22d6e4,...) at
 intr_event_handle+0x85/frame 0xc7c8617c
 intr_execute_handlers(875f30d0,c7c861c0,0) at
 intr_execute_handlers+0x42/fra
 me 0xc7c8619c
 lapic_handle_intr(42,c7c861c0) at lapic_handle_intr+0x3d/frame
 0xc7c861b0
 Xapic_isr2() at Xapic_isr2+0x35/frame 0xc7c861b0
 --- interrupt, eip = 0x80929af4, esp = 0xc7c86200, ebp = 0xc7c86220
 ---
 udp_bind(8a4b71a0,8a125380,8a1675e0,8a1675e0,8758b400,...) at
 udp_bind+0x104/frame 0xc7c86220
 bindresvport(8a4b71a0,0,c7c86380,89fa8300,c7c86408,...) at
 bindresvport+0x14a/frame 0xc7c86284
 clnt_reconnect_call(876e82e0,c7c86358,1,89fa8300,c7c86408,...) at
 clnt_reconnect_call+0x2a0/frame 0xc7c862e8
 newnfs_request(c7c86408,8a229200,0,8a229310,0,...) at
 newnfs_request+0x82a/frame 0xc7c863b0
 nfsrpc_getattrnovp(8a229200,8a22928c,20,1,8758be80,...) at
 nfsrpc_getattrnovp+0xfa/frame 0xc7c864b0
 mountnfs(8a125b40,c7c86870,c7c8678c,0,c7c86728,...) at
 mountnfs+0x883/frame
 0xc7c865a0
 nfs_mount(8a11c2a0,80d1e8e8,8a0fc400,8758be80,0,...) at
 nfs_mount+0x169f/frame 0xc7c86960
 vfs_donmount(8a1675e0,80,0,c7c86b58,8a10b000,...) at
 vfs_donmount+0xc94/frame 0xc7c86b40
 kernel_mount(87557a80,80,0,58,3,...) at kernel_mount+0x52/frame
 0xc7c86b80
 nfs_cmount(87557a80,7fbfd170,80,0,80b46c55,...) at
 nfs_cmount+0x63/frame 0xc7c86c08
 sys_mount(8a1675e0,c7c86cc8,8a1675e0,88bb82f0,80d94a80,...) at
 sys_mount+0x20b/frame 0xc7c86c40
 syscall(c7c86d08) at syscall+0x479/frame 0xc7c86cfc
 Xint0x80_syscall() at Xint0x80_syscall+0x21/frame 0xc7c86cfc
 --- syscall (21, FreeBSD ELF32, sys_mount), eip = 0x280ebef7, esp =
 0x7fbfd09c, ebp = 0x7fbfd0c0 ---
 db
 
 
 --
 Cheers,
 Cy Schubert cy.schub...@komquats.com
 FreeBSD UNIX: c...@freebsd.org Web: http://www.FreeBSD.org
 
 The need of the many outweighs the greed of the few.
 
 
 ___
 freebsd-current@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 To unsubscribe, send any mail to
 freebsd-current-unsubscr...@freebsd.org
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Amd(8) Hangs at Boot

2013-01-01 Thread Rick Macklem
Cy Schubert wrote:
 Just udated to the latest current and amd hangs at boot. Ideas?
 
I think I spoke too soon w.r.t. the bxe(4) device and UDP checksums.
I thought I saw some email about UDP checksum offload for it being
broken but I can't locate the email, so I probably have this wrong.

Sorry about the noise, rick
ps: The loopback configuration issue might still be the culprit.

 NFS access cache time=0
 Starting amd.
 [halt - sent]
 KDB: enter: Break to debugger
 [ thread pid 762 tid 100072 ]
 Stopped at kdb_break+0x4e: movl $0,kdb_why
 db bt
 Tracing pid 762 tid 100072 td 0x8a1675e0
 kdb_break(87641200,c7c8617c,807a9208,81ac6b54,81ac6b50,...) at
 kdb_break+0x4e/frame 0xc7c86130
 uart_intr(87641200,0,8a1675e0,4,875f30d0,...) at uart_intr+0x8e/frame
 0xc7c8615c
 intr_event_handle(8757fa80,c7c861c0,1,8a1675e0,8a22d6e4,...) at
 intr_event_handle+0x85/frame 0xc7c8617c
 intr_execute_handlers(875f30d0,c7c861c0,0) at
 intr_execute_handlers+0x42/fra
 me 0xc7c8619c
 lapic_handle_intr(42,c7c861c0) at lapic_handle_intr+0x3d/frame
 0xc7c861b0
 Xapic_isr2() at Xapic_isr2+0x35/frame 0xc7c861b0
 --- interrupt, eip = 0x80929af4, esp = 0xc7c86200, ebp = 0xc7c86220
 ---
 udp_bind(8a4b71a0,8a125380,8a1675e0,8a1675e0,8758b400,...) at
 udp_bind+0x104/frame 0xc7c86220
 bindresvport(8a4b71a0,0,c7c86380,89fa8300,c7c86408,...) at
 bindresvport+0x14a/frame 0xc7c86284
 clnt_reconnect_call(876e82e0,c7c86358,1,89fa8300,c7c86408,...) at
 clnt_reconnect_call+0x2a0/frame 0xc7c862e8
 newnfs_request(c7c86408,8a229200,0,8a229310,0,...) at
 newnfs_request+0x82a/frame 0xc7c863b0
 nfsrpc_getattrnovp(8a229200,8a22928c,20,1,8758be80,...) at
 nfsrpc_getattrnovp+0xfa/frame 0xc7c864b0
 mountnfs(8a125b40,c7c86870,c7c8678c,0,c7c86728,...) at
 mountnfs+0x883/frame
 0xc7c865a0
 nfs_mount(8a11c2a0,80d1e8e8,8a0fc400,8758be80,0,...) at
 nfs_mount+0x169f/frame 0xc7c86960
 vfs_donmount(8a1675e0,80,0,c7c86b58,8a10b000,...) at
 vfs_donmount+0xc94/frame 0xc7c86b40
 kernel_mount(87557a80,80,0,58,3,...) at kernel_mount+0x52/frame
 0xc7c86b80
 nfs_cmount(87557a80,7fbfd170,80,0,80b46c55,...) at
 nfs_cmount+0x63/frame 0xc7c86c08
 sys_mount(8a1675e0,c7c86cc8,8a1675e0,88bb82f0,80d94a80,...) at
 sys_mount+0x20b/frame 0xc7c86c40
 syscall(c7c86d08) at syscall+0x479/frame 0xc7c86cfc
 Xint0x80_syscall() at Xint0x80_syscall+0x21/frame 0xc7c86cfc
 --- syscall (21, FreeBSD ELF32, sys_mount), eip = 0x280ebef7, esp =
 0x7fbfd09c, ebp = 0x7fbfd0c0 ---
 db
 
 
 --
 Cheers,
 Cy Schubert cy.schub...@komquats.com
 FreeBSD UNIX: c...@freebsd.org Web: http://www.FreeBSD.org
 
 The need of the many outweighs the greed of the few.
 
 
 ___
 freebsd-current@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 To unsubscribe, send any mail to
 freebsd-current-unsubscr...@freebsd.org
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Amd(8) Hangs at Boot

2012-12-30 Thread David Wolfskill
On Sat, Dec 29, 2012 at 09:38:42AM -0800, Cy Schubert wrote:
 Just udated to the latest current and amd hangs at boot. Ideas?
 

I don't see a problem @r244855.  On my build machine, /usr/ports is a
symlink to a ports working copy that resides on a ReadyNAS:

freebeast(10.0-C)[2] ls -F /usr/ports
/usr/ports@
freebeast(10.0-C)[3] ls -F /usr/ports/
CHANGES accessibility/  emulators/  misc/   sysutils/
COPYRIGHT   arabic/ finance/multimedia/ textproc/
GIDsarchivers/  french/ net/ukrainian/
INDEX-8 astro/  ftp/net-im/ vietnamese/
INDEX-8.bz2 audio/  games/  net-mgmt/   www/
INDEX-9 benchmarks/ german/ net-p2p/x11/
INDEX-9.bz2 biology/graphics/   news/   x11-clocks/
KNOBS   cad/head/   packages/   x11-drivers/
LEGAL   chinese/hebrew/ palm/   x11-fm/
MOVED   comms/  hungarian/  polish/ x11-fonts/
Makefileconverters/ irc/ports-mgmt/ x11-servers/
Mk/ databases/  japanese/   portuguese/ x11-themes/
README  deskutils/  java/   print/  x11-toolkits/
Templates/  devel/  korean/ russian/x11-wm/
Tools/  distfiles/  lang/   science/
UIDsdns/mail/   security/
UPDATINGeditors/math/   shells/
freebeast(10.0-C)[4] uname -a
FreeBSD freebeast.catwhisker.org 10.0-CURRENT FreeBSD 10.0-CURRENT #1029 
r244855M/244856: Sun Dec 30 10:48:45 PST 2012 
r...@freebeast.catwhisker.org:/usr/obj/usr/src/sys/GENERIC  i386
freebeast(10.0-C)[5] ps axwwl | grep -w amd
   0  7641   0  20  0  10024 10052 select   Ss-   0:00.07 /usr/sbin/amd 
-p -c 1800 -k i386 -l syslog /net /etc/amd.map
1001 1878  964   0  23  0  10104  9916 -R+1   0:00.01 grep -w amd
freebeast(10.0-C)[6] 

Peace,
david
-- 
David H. Wolfskill  da...@catwhisker.org
Taliban: Evil men with guns afraid of truth from a 14-year old girl.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.


pgpAekLJzJSMg.pgp
Description: PGP signature


Re: Amd(8) Hangs at Boot

2012-12-30 Thread O. Hartmann
Am 12/30/12 20:41, schrieb David Wolfskill:
 On Sat, Dec 29, 2012 at 09:38:42AM -0800, Cy Schubert wrote:
 Just udated to the latest current and amd hangs at boot. Ideas?
 
 
 I don't see a problem @r244855.  On my build machine, /usr/ports is a
 symlink to a ports working copy that resides on a ReadyNAS:
 
 freebeast(10.0-C)[2] ls -F /usr/ports
 /usr/ports@
 freebeast(10.0-C)[3] ls -F /usr/ports/
 CHANGES accessibility/  emulators/  misc/   sysutils/
 COPYRIGHT   arabic/ finance/multimedia/ textproc/
 GIDsarchivers/  french/ net/ukrainian/
 INDEX-8 astro/  ftp/net-im/ vietnamese/
 INDEX-8.bz2 audio/  games/  net-mgmt/   www/
 INDEX-9 benchmarks/ german/ net-p2p/x11/
 INDEX-9.bz2 biology/graphics/   news/   x11-clocks/
 KNOBS   cad/head/   packages/   x11-drivers/
 LEGAL   chinese/hebrew/ palm/   x11-fm/
 MOVED   comms/  hungarian/  polish/ x11-fonts/
 Makefileconverters/ irc/ports-mgmt/ x11-servers/
 Mk/ databases/  japanese/   portuguese/ x11-themes/
 README  deskutils/  java/   print/  x11-toolkits/
 Templates/  devel/  korean/ russian/x11-wm/
 Tools/  distfiles/  lang/   science/
 UIDsdns/mail/   security/
 UPDATINGeditors/math/   shells/
 freebeast(10.0-C)[4] uname -a
 FreeBSD freebeast.catwhisker.org 10.0-CURRENT FreeBSD 10.0-CURRENT #1029 
 r244855M/244856: Sun Dec 30 10:48:45 PST 2012 
 r...@freebeast.catwhisker.org:/usr/obj/usr/src/sys/GENERIC  i386
 freebeast(10.0-C)[5] ps axwwl | grep -w amd
0  7641   0  20  0  10024 10052 select   Ss-   0:00.07 
 /usr/sbin/amd -p -c 1800 -k i386 -l syslog /net /etc/amd.map
 1001 1878  964   0  23  0  10104  9916 -R+1   0:00.01 grep -w amd
 freebeast(10.0-C)[6] 
 
 Peace,
 david
 


I see a similar picture here and this AMD crap brought down my whole server.

I'm not able to install new buildworld, since I got stuck when mtree
accesses / and then the amd automounter mountpoint directory /extern is
reported

newnfs server pid767@telesto:/extern: not responding

I have no remote filesystems containing the sources for the OS, so I do
not understand whats going on. This is definitely a bug in the recent
system.



signature.asc
Description: OpenPGP digital signature


Re: Amd(8) Hangs at Boot

2012-12-30 Thread Rick Macklem
David Wolfskill wrote:
 On Sat, Dec 29, 2012 at 09:38:42AM -0800, Cy Schubert wrote:
  Just udated to the latest current and amd hangs at boot. Ideas?
  
 
 I don't see a problem @r244855. On my build machine, /usr/ports is a
 symlink to a ports working copy that resides on a ReadyNAS:
 
 freebeast(10.0-C)[2] ls -F /usr/ports
 /usr/ports@
 freebeast(10.0-C)[3] ls -F /usr/ports/
 CHANGES accessibility/ emulators/ misc/ sysutils/
 COPYRIGHT arabic/ finance/ multimedia/ textproc/
 GIDs archivers/ french/ net/ ukrainian/
 INDEX-8 astro/ ftp/ net-im/ vietnamese/
 INDEX-8.bz2 audio/ games/ net-mgmt/ www/
 INDEX-9 benchmarks/ german/ net-p2p/ x11/
 INDEX-9.bz2 biology/ graphics/ news/ x11-clocks/
 KNOBS cad/ head/ packages/ x11-drivers/
 LEGAL chinese/ hebrew/ palm/ x11-fm/
 MOVED comms/ hungarian/ polish/ x11-fonts/
 Makefile converters/ irc/ ports-mgmt/ x11-servers/
 Mk/ databases/ japanese/ portuguese/ x11-themes/
 README deskutils/ java/ print/ x11-toolkits/
 Templates/ devel/ korean/ russian/ x11-wm/
 Tools/ distfiles/ lang/ science/
 UIDs dns/ mail/ security/
 UPDATING editors/ math/ shells/
 freebeast(10.0-C)[4] uname -a
 FreeBSD freebeast.catwhisker.org 10.0-CURRENT FreeBSD 10.0-CURRENT
 #1029 r244855M/244856: Sun Dec 30 10:48:45 PST 2012
 r...@freebeast.catwhisker.org:/usr/obj/usr/src/sys/GENERIC i386
 freebeast(10.0-C)[5] ps axwwl | grep -w amd
 0 764 1 0 20 0 10024 10052 select Ss - 0:00.07 /usr/sbin/amd -p -c
 1800 -k i386 -l syslog /net /etc/amd.map
 1001 1878 964 0 23 0 10104 9916 - R+ 1 0:00.01 grep -w amd
 freebeast(10.0-C)[6]
 
 Peace,
 david
 --
 David H. Wolfskill da...@catwhisker.org
 Taliban: Evil men with guns afraid of truth from a 14-year old girl.
 
 See http://www.catwhisker.org/~david/publickey.gpg for my public key.
This message is basically for Cy and not David...

Since David doesn't see the problem with r244855, I'd suggest trying a
new kernel and seeing if the problem still exists. If you still see the
problem, I'd be suspicious of any recent commit done to the network
device driver for whatever network interface you are using.

Beyond that, Kostik recently pointed me at this:
 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug-deadlocks.html
which covers the commands you can use under DB to try and figure out
why it is stuck in udp_bind().

You can also do the following to figure out what source line# it is
stuck at:
- go to wherever the kernel binaries are
# nm kernel | grep udp_bind
- add the offset to the address for udp_bind
# addr2line -e kernel.symbols
- type in the hex value for address + offset
-- it should give you a source line#

It never hurts to capture packets between the client and NFS server and
see if there what network traffic is occurring. If there is any traffic,
wireshark does a good job of decoding it.

Finally, there was an email w.r.t. loopback being broken, posted on Dec. 27,
but I haven't seen any followup email about this being fixed. (I don't know
if amd uses 127.0.0.1 or not?)

Good luck with it and please let us know when you have more information, rick

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Amd(8) Hangs at Boot

2012-12-29 Thread Cy Schubert
Just udated to the latest current and amd hangs at boot. Ideas?

NFS access cache time=0
Starting amd.
[halt - sent]
KDB: enter: Break to debugger
[ thread pid 762 tid 100072 ]
Stopped at  kdb_break+0x4e: movl$0,kdb_why
db bt
Tracing pid 762 tid 100072 td 0x8a1675e0
kdb_break(87641200,c7c8617c,807a9208,81ac6b54,81ac6b50,...) at 
kdb_break+0x4e/frame 0xc7c86130
uart_intr(87641200,0,8a1675e0,4,875f30d0,...) at uart_intr+0x8e/frame 
0xc7c8615c
intr_event_handle(8757fa80,c7c861c0,1,8a1675e0,8a22d6e4,...) at 
intr_event_handle+0x85/frame 0xc7c8617c
intr_execute_handlers(875f30d0,c7c861c0,0) at intr_execute_handlers+0x42/fra
me 0xc7c8619c
lapic_handle_intr(42,c7c861c0) at lapic_handle_intr+0x3d/frame 0xc7c861b0
Xapic_isr2() at Xapic_isr2+0x35/frame 0xc7c861b0
--- interrupt, eip = 0x80929af4, esp = 0xc7c86200, ebp = 0xc7c86220 ---
udp_bind(8a4b71a0,8a125380,8a1675e0,8a1675e0,8758b400,...) at 
udp_bind+0x104/frame 0xc7c86220
bindresvport(8a4b71a0,0,c7c86380,89fa8300,c7c86408,...) at 
bindresvport+0x14a/frame 0xc7c86284
clnt_reconnect_call(876e82e0,c7c86358,1,89fa8300,c7c86408,...) at 
clnt_reconnect_call+0x2a0/frame 0xc7c862e8
newnfs_request(c7c86408,8a229200,0,8a229310,0,...) at 
newnfs_request+0x82a/frame 0xc7c863b0
nfsrpc_getattrnovp(8a229200,8a22928c,20,1,8758be80,...) at 
nfsrpc_getattrnovp+0xfa/frame 0xc7c864b0
mountnfs(8a125b40,c7c86870,c7c8678c,0,c7c86728,...) at mountnfs+0x883/frame 
0xc7c865a0
nfs_mount(8a11c2a0,80d1e8e8,8a0fc400,8758be80,0,...) at 
nfs_mount+0x169f/frame 0xc7c86960
vfs_donmount(8a1675e0,80,0,c7c86b58,8a10b000,...) at 
vfs_donmount+0xc94/frame 0xc7c86b40
kernel_mount(87557a80,80,0,58,3,...) at kernel_mount+0x52/frame 
0xc7c86b80
nfs_cmount(87557a80,7fbfd170,80,0,80b46c55,...) at 
nfs_cmount+0x63/frame 0xc7c86c08
sys_mount(8a1675e0,c7c86cc8,8a1675e0,88bb82f0,80d94a80,...) at 
sys_mount+0x20b/frame 0xc7c86c40
syscall(c7c86d08) at syscall+0x479/frame 0xc7c86cfc
Xint0x80_syscall() at Xint0x80_syscall+0x21/frame 0xc7c86cfc
--- syscall (21, FreeBSD ELF32, sys_mount), eip = 0x280ebef7, esp = 
0x7fbfd09c, ebp = 0x7fbfd0c0 ---
db 


-- 
Cheers,
Cy Schubert cy.schub...@komquats.com
FreeBSD UNIX:  c...@freebsd.org   Web:  http://www.FreeBSD.org

The need of the many outweighs the greed of the few.


___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org