Spurious crash in network code on OS X
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=7599
Reported by Jonas Wallden jonasw@roxen.com
Not sure if this can be used to pinpoint the cause. The server was started around 10.02 on a laptop with one network connection, and that laptop was put to sleep and later woken up on another network and used for ~28 minutes before dying at 10.43.
Pike was locally compiled from Pike/8.0: 2cf33896. (Curiously it still reports as 8.0.97, but that must be a makefile issue since e.g. ADT.Heap()->remove is available and that is newer than 8.0.97.)
10:02:36 : Adding package packages/throttling. 0m 0.0s : ----------------------------------------------------------------- : Pike version: Pike v8.0 release 97 : Product version: Roxen CMS 6.0.80-git : Operating system: Darwin 13.4.0 (x86_64) [...] : Start script terminating. : Shutting down MySQL.151120 10:43:26 [Note] /scratch/mariadb-10.0.13-osx10.9-x86_64/bin/mysqld: Normal shutdown
Crashed Thread: 7
Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
[...]
Thread 7 Crashed:
0 libsystem_info.dylib 0x00007fff89dfc6ba mdns_addrinfo + 339
1 libsystem_info.dylib 0x00007fff89dfc537 search_addrinfo + 183
2 libsystem_info.dylib 0x00007fff89dfc2cc si_addrinfo + 1468
3 libsystem_info.dylib 0x00007fff89dfbc6b getaddrinfo + 171
4 pike 0x00000001001baede get_inet_addr + 430 (system.c:1974)
5 pike 0x00000001001a4318 port_bind + 280 (socket.c:271)
6 pike 0x0000000100014c96 lower_mega_apply + 1238 (interpret.c:2172)
7 pike 0x0000000100014e93 jump_opcode_F_CALL_LFUN_N + 67 (interpret_functions.h:2359)
8 ??? 0x00000001011c0401 0 + 4313580545
9 pike 0x000000010000d5ee catching_eval_instruction + 126 (interpret.c:2754)
10 pike 0x000000010000d439 inter_return_opcode_F_CATCH + 217 (interpret.c:1295)
11 ??? 0x000000010389f242 0 + 4354339394
[...]
Thread 7 crashed with X86 Thread State (64-bit): rax: 0x000000010b5a24a0 rbx: 0x000000010b5a26a4 rcx: 0x0000000000001000 rdx: 0x0000000000000000 rdi: 0x00007fff72e36728 rsi: 0x0000000000000001 rbp: 0x000000010b5a2540 rsp: 0x000000010b5a2420 r8: 0x0000000000000000 r9: 0x0000000000000006 r10: 0x000000000000000a r11: 0x00000000000004e1 r12: 0x0000000000000001 r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000000 rip: 0x00007fff89dfc6ba rfl: 0x0000000000010202 cr2: 0x0000000000000000