Menu

#566 OSX v 1.2 crashing

Future
open
None
6
2020-11-07
2020-11-07
No

seems that it crashes every 5 min or so lately...
Process: Gtk-Gnutella-bin [94547]
Path: /Applications/Gtk-Gnutella 20.app/Contents/MacOS/Gtk-Gnutella-bin
Identifier: net.sourceforge.gtk-gnutella
Version: 1.2.0 (1.2.0r12-g872f)
Code Type: X86-64 (Native)
Parent Process: Gtk-Gnutella-bin [94517]
Responsible: Gtk-Gnutella-bin [94547]
User ID: 502

Date/Time: 2020-11-06 19:06:00.314 -0800
OS Version: Mac OS X 10.13.6 (17G14033)
Report Version: 12
Anonymous UUID: AD048E4E-53D5-7742-272D-C50B08F35BCA

Time Awake Since Boot: 860000 seconds

System Integrity Protection: enabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000010
Exception Note: EXC_CORPSE_NOTIFY

VM Regions Near 0x10:
-->
__TEXT 0000000104822000-0000000104cc0000 [ 4728K] r-x/rwx SM=COW /Applications/Gtk-Gnutella 20.app/Contents/MacOS/Gtk-Gnutella-bin

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff74cc1b66 __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff74e8c080 pthread_kill + 333
2 libsystem_c.dylib 0x00007fff74bcf6fe raise + 26
3 Gtk-Gnutella-bin 0x0000000104a79049 crash_handler_process + 5897
4 Gtk-Gnutella-bin 0x0000000104a75d27 crash_handler + 887
5 Gtk-Gnutella-bin 0x0000000104a7b07e crash_abort + 14
6 Gtk-Gnutella-bin 0x0000000104a94612 assertion_abort_process + 210
7 Gtk-Gnutella-bin 0x0000000104a943b4 assertion_abort + 84
8 Gtk-Gnutella-bin 0x0000000104a94360 assertion_failure + 32
9 Gtk-Gnutella-bin 0x00000001048dc9cf fi_pick_rarest_chunk + 2575
10 Gtk-Gnutella-bin 0x00000001048dd867 file_info_find_available_hole + 375
11 Gtk-Gnutella-bin 0x00000001048b0d4d download_pick_available + 173
12 Gtk-Gnutella-bin 0x00000001048afe19 download_send_request + 905
13 Gtk-Gnutella-bin 0x00000001048b1b94 download_connected + 548
14 Gtk-Gnutella-bin 0x0000000104988414 socket_connected + 1652
15 Gtk-Gnutella-bin 0x0000000104abdaee inputevt_handle + 286
16 Gtk-Gnutella-bin 0x0000000104abcdc3 inputevt_timer + 323
17 Gtk-Gnutella-bin 0x0000000104abc43c dispatch_poll + 12
18 libglib-2.0.0.dylib 0x00000001058feaae g_io_unix_dispatch + 142
19 libglib-2.0.0.dylib 0x0000000105894873 g_main_dispatch + 419
20 libglib-2.0.0.dylib 0x00000001058946c0 g_main_context_dispatch + 48
21 libglib-2.0.0.dylib 0x0000000105894c0e g_main_context_iterate + 446
22 libglib-2.0.0.dylib 0x00000001058950ce g_main_loop_run + 558
23 libgtk-quartz-2.0.0.dylib 0x0000000105241252 gtk_main + 242
24 Gtk-Gnutella-bin 0x00000001049d4ee7 main_gui_run + 471
25 Gtk-Gnutella-bin 0x000000010482a454 main + 2964
26 libdyld.dylib 0x00007fff74b71015 start + 1

Thread 1:
0 libsystem_kernel.dylib 0x00007fff74cc1d82 __semwait_signal + 10
1 libsystem_c.dylib 0x00007fff74c3c724 nanosleep + 199
2 Gtk-Gnutella-bin 0x0000000104a6fbd8 compat_sleep_ms + 72
3 Gtk-Gnutella-bin 0x0000000104b3362a tm_thread_main + 74
4 Gtk-Gnutella-bin 0x0000000104b2efe7 thread_launch_trampoline + 1623
5 libsystem_pthread.dylib 0x00007fff74e89661 _pthread_body + 340
6 libsystem_pthread.dylib 0x00007fff74e8950d _pthread_start + 377
7 libsystem_pthread.dylib 0x00007fff74e88bf9 thread_start + 13

Thread 2:
0 libsystem_kernel.dylib 0x00007fff74cc1d82 __semwait_signal + 10
1 libsystem_c.dylib 0x00007fff74c3c724 nanosleep + 199
2 Gtk-Gnutella-bin 0x0000000104a6fca3 compat_usleep_nocancel + 67
3 Gtk-Gnutella-bin 0x0000000104b1e75a thread_suspend_loop + 282
4 Gtk-Gnutella-bin 0x0000000104b1dc28 thread_check_suspended_element + 280
5 Gtk-Gnutella-bin 0x0000000104b275ee thread_element_block_until + 1374
6 Gtk-Gnutella-bin 0x0000000104b2a0c0 thread_timed_sigsuspend + 384
7 Gtk-Gnutella-bin 0x0000000104a939ea evq_thread_main + 426
8 Gtk-Gnutella-bin 0x0000000104b2efe7 thread_launch_trampoline + 1623
9 libsystem_pthread.dylib 0x00007fff74e89661 _pthread_body + 340
10 libsystem_pthread.dylib 0x00007fff74e8950d _pthread_start + 377
11 libsystem_pthread.dylib 0x00007fff74e88bf9 thread_start + 13

Thread 3:
0 libsystem_kernel.dylib 0x00007fff74cc1d82 __semwait_signal + 10
1 libsystem_c.dylib 0x00007fff74c3c724 nanosleep + 199
2 Gtk-Gnutella-bin 0x0000000104a6fca3 compat_usleep_nocancel + 67
3 Gtk-Gnutella-bin 0x0000000104b1e75a thread_suspend_loop + 282
4 Gtk-Gnutella-bin 0x0000000104b1dc28 thread_check_suspended_element + 280
5 Gtk-Gnutella-bin 0x0000000104b275ee thread_element_block_until + 1374
6 Gtk-Gnutella-bin 0x0000000104b277b0 thread_timed_block_self + 112
7 Gtk-Gnutella-bin 0x0000000104af8341 semaphore_acquire_internal + 385
8 Gtk-Gnutella-bin 0x0000000104a70fdc cond_wait_until + 556
9 Gtk-Gnutella-bin 0x0000000104a7183f cond_wait_until_clean + 95
10 Gtk-Gnutella-bin 0x0000000104a60f82 aq_remove + 98
11 Gtk-Gnutella-bin 0x0000000104a5e0a8 adns_helper + 136
12 Gtk-Gnutella-bin 0x0000000104b2efe7 thread_launch_trampoline + 1623
13 libsystem_pthread.dylib 0x00007fff74e89661 _pthread_body + 340
14 libsystem_pthread.dylib 0x00007fff74e8950d _pthread_start + 377
15 libsystem_pthread.dylib 0x00007fff74e88bf9 thread_start + 13

Thread 4:
0 libsystem_kernel.dylib 0x00007fff74cc1d82 __semwait_signal + 10
1 libsystem_c.dylib 0x00007fff74c3c724 nanosleep + 199
2 Gtk-Gnutella-bin 0x0000000104a6fca3 compat_usleep_nocancel + 67
3 Gtk-Gnutella-bin 0x0000000104b1e75a thread_suspend_loop + 282
4 Gtk-Gnutella-bin 0x0000000104b1dc28 thread_check_suspended_element + 280
5 Gtk-Gnutella-bin 0x0000000104b29b39 thread_sigblock_element + 233
6 Gtk-Gnutella-bin 0x0000000104b1a3c8 teq_wait + 184
7 Gtk-Gnutella-bin 0x00000001049afabb verify_thread_main + 331
8 Gtk-Gnutella-bin 0x0000000104b2efe7 thread_launch_trampoline + 1623
9 libsystem_pthread.dylib 0x00007fff74e89661 _pthread_body + 340
10 libsystem_pthread.dylib 0x00007fff74e8950d _pthread_start + 377
11 libsystem_pthread.dylib 0x00007fff74e88bf9 thread_start + 13

Thread 5:
0 libsystem_kernel.dylib 0x00007fff74cc1d82 __semwait_signal + 10
1 libsystem_c.dylib 0x00007fff74c3c724 nanosleep + 199
2 Gtk-Gnutella-bin 0x0000000104a6fca3 compat_usleep_nocancel + 67
3 Gtk-Gnutella-bin 0x0000000104b1e75a thread_suspend_loop + 282
4 Gtk-Gnutella-bin 0x0000000104b1dc28 thread_check_suspended_element + 280
5 Gtk-Gnutella-bin 0x0000000104b29b39 thread_sigblock_element + 233
6 Gtk-Gnutella-bin 0x0000000104b1a3c8 teq_wait + 184
7 Gtk-Gnutella-bin 0x00000001049afabb verify_thread_main + 331
8 Gtk-Gnutella-bin 0x0000000104b2efe7 thread_launch_trampoline + 1623
9 libsystem_pthread.dylib 0x00007fff74e89661 _pthread_body + 340
10 libsystem_pthread.dylib 0x00007fff74e8950d _pthread_start + 377
11 libsystem_pthread.dylib 0x00007fff74e88bf9 thread_start + 13

Thread 6:
0 libsystem_kernel.dylib 0x00007fff74cc1d82 __semwait_signal + 10
1 libsystem_c.dylib 0x00007fff74c3c724 nanosleep + 199
2 Gtk-Gnutella-bin 0x0000000104a6fca3 compat_usleep_nocancel + 67
3 Gtk-Gnutella-bin 0x0000000104b1e75a thread_suspend_loop + 282
4 Gtk-Gnutella-bin 0x0000000104b1dc28 thread_check_suspended_element + 280
5 Gtk-Gnutella-bin 0x0000000104b29b39 thread_sigblock_element + 233
6 Gtk-Gnutella-bin 0x0000000104b1a3c8 teq_wait + 184
7 Gtk-Gnutella-bin 0x00000001049111df move_thread_main + 191
8 Gtk-Gnutella-bin 0x0000000104b2efe7 thread_launch_trampoline + 1623
9 libsystem_pthread.dylib 0x00007fff74e89661 _pthread_body + 340
10 libsystem_pthread.dylib 0x00007fff74e8950d _pthread_start + 377
11 libsystem_pthread.dylib 0x00007fff74e88bf9 thread_start + 13

Thread 7:
0 libsystem_kernel.dylib 0x00007fff74cc1d82 __semwait_signal + 10
1 libsystem_c.dylib 0x00007fff74c3c724 nanosleep + 199
2 Gtk-Gnutella-bin 0x0000000104a6fca3 compat_usleep_nocancel + 67
3 Gtk-Gnutella-bin 0x0000000104b1e75a thread_suspend_loop + 282
4 Gtk-Gnutella-bin 0x0000000104b1dc28 thread_check_suspended_element + 280
5 Gtk-Gnutella-bin 0x0000000104b29b39 thread_sigblock_element + 233
6 Gtk-Gnutella-bin 0x0000000104b1a3c8 teq_wait + 184
7 Gtk-Gnutella-bin 0x000000010497f538 share_thread_main + 216
8 Gtk-Gnutella-bin 0x0000000104b2efe7 thread_launch_trampoline + 1623
9 libsystem_pthread.dylib 0x00007fff74e89661 _pthread_body + 340
10 libsystem_pthread.dylib 0x00007fff74e8950d _pthread_start + 377
11 libsystem_pthread.dylib 0x00007fff74e88bf9 thread_start + 13

Thread 8:: com.apple.NSEventThread
0 libsystem_kernel.dylib 0x00007fff74cb81fa mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff74cb7714 mach_msg + 60
2 com.apple.CoreFoundation 0x00007fff4cb53dc5 __CFRunLoopServiceMachPort + 341
3 com.apple.CoreFoundation 0x00007fff4cb53117 __CFRunLoopRun + 1783
4 com.apple.CoreFoundation 0x00007fff4cb52787 CFRunLoopRunSpecific + 487
5 com.apple.AppKit 0x00007fff4a21cfc4 _NSEventThread + 184
6 libsystem_pthread.dylib 0x00007fff74e89661 _pthread_body + 340
7 libsystem_pthread.dylib 0x00007fff74e8950d _pthread_start + 377
8 libsystem_pthread.dylib 0x00007fff74e88bf9 thread_start + 13

Thread 9:
0 libsystem_kernel.dylib 0x00007fff74cc228a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff74e89009 _pthread_wqthread + 1035
2 libsystem_pthread.dylib 0x00007fff74e88be9 start_wqthread + 13

Thread 10:
0 libsystem_kernel.dylib 0x00007fff74cc1a16 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fff74e8a589 _pthread_cond_wait + 732
2 libgdk-quartz-2.0.0.dylib 0x00000001056ba6db select_thread_func + 139
3 libsystem_pthread.dylib 0x00007fff74e89661 _pthread_body + 340
4 libsystem_pthread.dylib 0x00007fff74e8950d _pthread_start + 377
5 libsystem_pthread.dylib 0x00007fff74e88bf9 thread_start + 13

Thread 11:
0 libsystem_pthread.dylib 0x00007fff74e88bdc start_wqthread + 0
1 ??? 0x0000000100000038 0 + 4294967352

Thread 12:
0 libsystem_pthread.dylib 0x00007fff74e88bdc start_wqthread + 0
1 ??? 0x0000700003424b40 0 + 123145356987200

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x00007fffad257380 rcx: 0x00007ffeeb3db1d8 rdx: 0x0000000000000000
rdi: 0x0000000000000307 rsi: 0x0000000000000006 rbp: 0x00007ffeeb3db210 rsp: 0x00007ffeeb3db1d8
r8: 0x8080808080808080 r9: 0xfefefefefefefeff r10: 0x00007fff74cc3700 r11: 0x0000000000000287
r12: 0x0000000000000307 r13: 0x0000000000000003 r14: 0x0000000000000006 r15: 0x000000000000002d
rip: 0x00007fff74cc1b66 rfl: 0x0000000000000286 cr2: 0x0000000104cc02b8

Logical CPU: 0
Error Code: 0x02000148
Trap Number: 133

Discussion

  • Raphael Manfredi

    Yes, it's a bug I've hit myself, but so far I have been unable to reproduce it. It happened once, and then poof, it disappeared. Not having enough context, I'm not able to look at the logic to understand the flaw in the code.
    I have added extra logging at the place where this triggers on the "devel" branch to help me the next time it happens.
    Unfortunately, the OSX Build on Travis CI is broken, so I cannot supply you with a binary to test it and help me debug it. And I do not have any Apple box to build this for you...

     
  • Raphael Manfredi

    • assigned_to: Raphael Manfredi
    • Priority: 5 --> 6
     

Log in to post a comment.