Subject: [netatalk-admins] afpd crash with asun2.1.0 patch

From: Shawn Samuel <[email-masked]>
Date: Fri, 6 Nov 1998 19:29:27 -0500 (EST)

I'm running Linux 2.0.34 (slackware) and tried installing both
netatalk 1.3.3 and 1.4b2. With the base distribution of both,
nbprgstr failed when trying to register the computer. I then
installed netatalk-1.4b2 with the asun2.1.0 patch. With this
I was able to successfully nbpregister my workstation and AFPServer and
could use nbplkup to see various services from my PowerMac 6100. 
My PowerMac could see my linux box as a file server under AppleShare, 
but when I tried to connect to it, I got a "No response from server..."
message. I then looked at my linux box and both atalkd and afpd had
crashed when the PowerMac tried to connect to it. Attached are 
the syslog error msgs which were generated by this. 

Can anybody suggest any solutions either for the problem with the patch or
possible reasons why nbprgstr and nbplkup did not work with the original
1.3.3 and 1.4b2 netatalks?

	thanks,
	Shawn
Nov  6 18:01:02 momotaro papd[4168]: restart (1.4b2+asun2.1.0)
Nov  6 18:01:08 momotaro papd[4168]: register momotaro:LaserWriter@*
Nov  6 18:01:08 momotaro afpd[4170]: momotaro:AFPServer@* started on 65280.151:130 (1.4b2+asun2.1.0)
Nov  6 18:01:08 momotaro afpd[4170]: ASIP started on 192.168.0.67:548(2) (1.4b2+asun2.1.0) 
Nov  6 18:03:40 momotaro kernel: Unable to handle kernel NULL pointer dereference at virtual address c0000000 
Nov  6 18:03:40 momotaro kernel: current->tss.cr3 = 00acd000, %cr3 = 00acd000 
Nov  6 18:03:40 momotaro kernel: *pde = 00102067 
Nov  6 18:03:40 momotaro kernel: *pte = 00000000 
Nov  6 18:03:40 momotaro kernel: Oops: 0000 
Nov  6 18:03:40 momotaro kernel: CPU:    0 
Nov  6 18:03:40 momotaro kernel: EIP:    0010:[<00000000>] 
Nov  6 18:03:40 momotaro kernel: EFLAGS: 00010046 
Nov  6 18:03:40 momotaro kernel: eax: 00000000   ebx: 0115c018   ecx: 00000006   edx: 0120573c 
Nov  6 18:03:40 momotaro kernel: esi: 0120573c   edi: 00000000   ebp: 017304f8   esp: 01137d90 
Nov  6 18:03:40 momotaro kernel: ds: 0018   es: 0018   fs: 002b   gs: 002b   ss: 0018 
Nov  6 18:03:40 momotaro kernel: Process atalkd (pid: 4160, process nr: 50, stackpage=01137000) 
Nov  6 18:03:40 momotaro kernel: Stack: 0013e200 0115c018 00000000 000007b4 01730414 0013e67d 0120573c 00000000  
Nov  6 18:03:40 momotaro kernel:        00000000 0281898a 0120573c 00000000 00000001 00000000 0120573c 017304ac  
Nov  6 18:03:40 momotaro kernel:        012056fc 00000330 0120573c 03300414 00000046 0013f143 0120573c 01730414  
Nov  6 18:03:40 momotaro kernel: Call Trace: [unix_sendmsg+868/968] [unix_recvmsg+981/1004] [ip_alias:ip_alias_print_1+-59046/64] [register_8022tr_client+79/104] [unregister_8022tr_client+62/64] [<028297f5>] [<0282bb5d>]  
Nov  6 18:03:40 momotaro kernel:        [net_alias_devsetup+264/336] [net_alias_devsetup+93/336] [net_alias_dev_rx32+158/316] [kmalloc+460/500] [write_ldt+703/720] [sys_sigreturn+99/432] [unix_getsockopt+43/48] [lcall7+37/96]  
Nov  6 18:03:40 momotaro kernel: Code: <1>Unable to handle kernel NULL pointer dereference at virtual address c0000000 
Nov  6 18:03:40 momotaro kernel: current->tss.cr3 = 00acd000, %cr3 = 00acd000 
Nov  6 18:03:40 momotaro kernel: *pde = 00102067 
Nov  6 18:03:40 momotaro kernel: *pte = 00000000 
Nov  6 18:03:40 momotaro kernel: Oops: 0000 
Nov  6 18:03:40 momotaro kernel: CPU:    0 
Nov  6 18:03:40 momotaro kernel: EIP:    0010:[die_if_kernel+480/692] 
Nov  6 18:03:40 momotaro kernel: EFLAGS: 00010016 
Nov  6 18:03:40 momotaro kernel: eax: 00000010   ebx: 0009002b   ecx: 00000000   edx: 01b41414 
Nov  6 18:03:40 momotaro kernel: esi: 00000000   edi: 01138000   ebp: 01137d54   esp: 01137cec 
Nov  6 18:03:40 momotaro kernel: ds: 0018   es: 0018   fs: 0010   gs: 002b   ss: 0018 
Nov  6 18:03:40 momotaro kernel: Process atalkd (pid: 4160, process nr: 50, stackpage=01137000) 
Nov  6 18:03:40 momotaro kernel: Stack: 001a002b 00000000 00000000 00000000 017304f8 01137000 03000000 02800000  
Nov  6 18:03:40 momotaro kernel:        001804f8 01137d90 001120b0 001a2f2f 01137d54 00000000 00111d90 0120573c  
Nov  6 18:03:40 momotaro kernel:        00000000 017304f8 00000000 00012013 004e0198 0076e810 00012013 0010aa60  
Nov  6 18:03:40 momotaro kernel: Call Trace: [n_tty_receive_buf+2319/2904] [<03000000>] [ip_alias:ip_alias_print_1+-159792/64] [msdos_partition+804/812] [add_timer+128/352] [wake_up_interruptible+64/232] [signal_return+16/64]  
Nov  6 18:03:40 momotaro kernel:        [unix_sendmsg+868/968] [unix_recvmsg+981/1004] [ip_alias:ip_alias_print_1+-59046/64] [register_8022tr_client+79/104] [unregister_8022tr_client+62/64] [<028297f5>] [<0282bb5d>] [net_alias_devsetup+264/336]  
Nov  6 18:03:40 momotaro kernel:        [net_alias_devsetup+93/336] [net_alias_dev_rx32+158/316] [kmalloc+460/500] [write_ldt+703/720] [sys_sigreturn+99/432] [unix_getsockopt+43/48] [lcall7+37/96]  
Nov  6 18:03:40 momotaro kernel: Code: 64 8a 04 0e 0f a1 88 c2 31 c0 88 d0 89 44 24 10 50 68 f7 23  
Nov  6 18:03:40 momotaro kernel: Aiee, killing interrupt handler 
Nov  6 18:07:19 momotaro kernel: Unable to handle kernel NULL pointer dereference at virtual address c0000000 
Nov  6 18:07:19 momotaro kernel: current->tss.cr3 = 00f8c000, %cr3 = 00f8c000 
Nov  6 18:07:19 momotaro kernel: *pde = 00102067 
Nov  6 18:07:19 momotaro kernel: *pte = 00000000 
Nov  6 18:07:19 momotaro kernel: Oops: 0000 
Nov  6 18:07:19 momotaro kernel: CPU:    0 
Nov  6 18:07:19 momotaro kernel: EIP:    0010:[<00000000>] 
Nov  6 18:07:19 momotaro kernel: EFLAGS: 00010046 
Nov  6 18:07:19 momotaro kernel: eax: 00000000   ebx: 00cab810   ecx: 00000006   edx: 005d6ddc 
Nov  6 18:07:19 momotaro kernel: esi: 005d6ddc   edi: 00000000   ebp: 017304f8   esp: 01494d90 
Nov  6 18:07:19 momotaro kernel: ds: 0018   es: 0018   fs: 002b   gs: 002b   ss: 0018 
Nov  6 18:07:19 momotaro kernel: Process afpd (pid: 4170, process nr: 52, stackpage=01494000) 
Nov  6 18:07:19 momotaro kernel: Stack: 0013e200 00cab810 00000000 00000630 01730414 0013e67d 005d6ddc 00000000  
Nov  6 18:07:19 momotaro kernel:        00000000 0281898a 005d6ddc 00000000 00000001 00000000 005d6ddc 017304ac  
Nov  6 18:07:19 momotaro kernel:        005d6c0c 00000330 005d6ddc 03300414 00000046 0013f143 005d6ddc 01730414  
Nov  6 18:07:19 momotaro kernel: Call Trace: [unix_sendmsg+868/968] [unix_recvmsg+981/1004] [ip_alias:ip_alias_print_1+-59046/64] [register_8022tr_client+79/104] [unregister_8022tr_client+62/64] [<028297f5>] [<0282bb5d>]  
Nov  6 18:07:19 momotaro kernel:        [net_alias_devsetup+264/336] [net_alias_devsetup+93/336] [net_alias_dev_rx32+158/316] [insert_vm_struct+81/692] [build_mmap_avl+108/488] [unix_getsockopt+43/48] [lcall7+37/96]  
Nov  6 18:07:19 momotaro kernel: Code: <1>Unable to handle kernel NULL pointer dereference at virtual address c0000000 
Nov  6 18:07:19 momotaro kernel: current->tss.cr3 = 00f8c000, %cr3 = 00f8c000 
Nov  6 18:07:19 momotaro kernel: *pde = 00102067 
Nov  6 18:07:19 momotaro kernel: *pte = 00000000 
Nov  6 18:07:19 momotaro kernel: Oops: 0000 
Nov  6 18:07:19 momotaro kernel: CPU:    0 
Nov  6 18:07:19 momotaro kernel: EIP:    0010:[die_if_kernel+480/692] 
Nov  6 18:07:19 momotaro kernel: EFLAGS: 00010016 
Nov  6 18:07:19 momotaro kernel: eax: 00000010   ebx: 0009002b   ecx: 00000000   edx: 01b41414 
Nov  6 18:07:19 momotaro kernel: esi: 00000000   edi: 01495000   ebp: 01494d54   esp: 01494cec 
Nov  6 18:07:19 momotaro kernel: ds: 0018   es: 0018   fs: 0010   gs: 002b   ss: 0018 
Nov  6 18:07:19 momotaro kernel: Process afpd (pid: 4170, process nr: 52, stackpage=01494000) 
Nov  6 18:07:19 momotaro kernel: Stack: 001a002b 00000000 00000000 01170000 017304f8 01494000 03000000 02800000  
Nov  6 18:07:19 momotaro kernel:        001804f8 01494d90 001120b0 001a2f2f 01494d54 01170000 00111d90 005d6ddc  
Nov  6 18:07:19 momotaro kernel:        00000000 017304f8 00000001 00012013 0124cd18 00656810 00012013 0010aa60  
Nov  6 18:07:19 momotaro kernel: Call Trace: [n_tty_receive_buf+2319/2904] [<03000000>] [ip_alias:ip_alias_print_1+-159792/64] [msdos_partition+804/812] [add_timer+128/352] [wake_up_interruptible+64/232] [signal_return+16/64]  
Nov  6 18:07:19 momotaro kernel:        [write_ldt+676/720] [unix_sendmsg+868/968] [unix_recvmsg+981/1004] [ip_alias:ip_alias_print_1+-59046/64] [register_8022tr_client+79/104] [unregister_8022tr_client+62/64] [<028297f5>] [<0282bb5d>]  
Nov  6 18:07:19 momotaro kernel:        [net_alias_devsetup+264/336] [net_alias_devsetup+93/336] [net_alias_dev_rx32+158/316] [insert_vm_struct+81/692] [build_mmap_avl+108/488] [unix_getsockopt+43/48] [lcall7+37/96]  
Nov  6 18:07:19 momotaro kernel: Code: 64 8a 04 0e 0f a1 88 c2 31 c0 88 d0 89 44 24 10 50 68 f7 23  
Nov  6 18:07:19 momotaro kernel: Aiee, killing interrupt handler