Opened 13 months ago

Last modified 13 months ago

#68500 assigned defect

gtk-gnutella does not launch on Sonoma

Reported by: barracuda156 Owned by: barracuda156
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: sonoma Cc:
Port: gtk-gnutella

Description

svacchanda@Sergeys-MacBook-Air bin % /opt/local/bin/gtk-gnutella
23-10-18 20:08:59.654 (INFO): creating configuration directory "/Users/svacchanda/.gtk-gnutella"
23-10-18 20:08:59.655 (INFO): creating directory "/Users/svacchanda/.gtk-gnutella/crashes" for crash log files
23-10-18 20:08:59.655 (INFO): creating directory "/Users/svacchanda/.gtk-gnutella/gnet-db" for Gnutella database files
23-10-18 20:08:59.655 (INFO): creating directory "/Users/svacchanda/.gtk-gnutella/dht-db" for DHT database files
23-10-18 20:08:59.655 [87460] (WARNING): turning PID logging for supervisor process
23-10-18 20:08:59.655 [87460] (MESSAGE): use --log-supervise to redirect supervisor logs
23-10-18 20:08:59.655 [87460] (INFO): supervisor starting as PID 87460
23-10-18 20:08:59.655 [87460] (MESSAGE): walloc() size limit set to 120
23-10-18 20:08:59.655 [87460] (INFO): callout queue will be running in thread #4
23-10-18 20:08:59.655 [87460] (INFO): program path is /opt/local/bin/gtk-gnutella
23-10-18 20:08:59.655 [87460] (INFO): will be launching: /opt/local/bin/gtk-gnutella --child
23-10-18 20:08:59.656 [87460] (INFO): launched child #1 as PID 87465
23-10-18 20:08:59.724 (INFO): gtk-gnutella/1.2.2 (2022-02-25; GTK2; Darwin arm64)
23-10-18 20:08:59.724 (INFO): using our own malloc() replacement (memory alignment: 16 bytes)
23-10-18 20:08:59.724 (INFO): running /opt/local/bin/gtk-gnutella --child
23-10-18 20:08:59.724 (INFO): loaded 10131 symbols from "/opt/local/bin/gtk-gnutella" via nm output parsing in 0.043 secs 0.001 secs ago
23-10-18 20:08:59.724 (MESSAGE): will be offsetting symbol addresses by 0xfffffffffb968000 (-74022912)
23-10-18 20:09:01.802 (INFO): INPUTEVT using customized I/O dispatching with kqueue()
23-10-18 20:09:01.805 (INFO): language code: "en"
23-10-18 20:09:01.805 (INFO): using locale character set "UTF-8"
23-10-18 20:09:01.805 (INFO): primary filename character set "UTF-8"
23-10-18 20:09:01.805 (DEBUG-2): ADNS thread started
23-10-18 20:09:01.809 (WARNING): can't read file "/Users/svacchanda/.gtk-gnutella/config_gnet": ENOENT (No such file or directory)
	prop_load_from_file+96
	settings_init+356
	main+1824
	<start+2224>
23-10-18 20:09:01.809 (INFO): attempt to create directory "/Users/svacchanda/gtk-gnutella-downloads/incomplete"
23-10-18 20:09:01.809 (INFO): attempt to create directory "/Users/svacchanda/gtk-gnutella-downloads/complete"
23-10-18 20:09:01.809 (INFO): attempt to create directory "/Users/svacchanda/gtk-gnutella-downloads/corrupt"
23-10-18 20:09:01.810 (WARNING): prop_save_to_file(): could not stat "/Users/svacchanda/.gtk-gnutella/config_gnet": ENOENT (No such file or directory)
23-10-18 20:09:01.820 (WARNING): cannot open display: 
	main_gui_early_init+76
	main+1944
	<start+2224>
23-10-18 20:09:01.821 [87460] (MESSAGE): child #1 (PID 87465) exited, status=1 after 2s
23-10-18 20:09:01.822 [87460] (INFO): launched child #2 as PID 87467
23-10-18 20:09:01.882 (INFO): gtk-gnutella/1.2.2 (2022-02-25; GTK2; Darwin arm64)
23-10-18 20:09:01.882 (INFO): using our own malloc() replacement (memory alignment: 16 bytes)
23-10-18 20:09:01.882 (WARNING): got SIGBUS for VA=0x1078a0090 {PA=0x1078a0000+144} (invalid address alignment)
23-10-18 20:09:01.882 (DEBUG): crash_mode(): initial external call, level=basic from thread "main" (#0)
23-10-18 20:09:01.882 (DEBUG): crash_mode(): depth=0, external=y, level=basic, old=none, new=basic
23-10-18 20:09:01.882 (DEBUG): crash_mode(): subsequent internal call, level=exception
23-10-18 20:09:01.882 (DEBUG): crash_mode(): depth=1, external=n, level=exception, old=basic, new=exception
23-10-18 20:09:01.882 (WARNING): disabling locks, PID 87467 now in thread-unsafe mode (3 threads)
23-10-18 20:09:01.882 (DEBUG): crash_mode(): depth=2, external=y, level=basic, old=exception, new=exception
23-10-18 20:09:01.882 (DEBUG): crash_mode(): depth=3, external=y, level=basic, old=exception, new=exception
23-10-18 20:09:01.882 CRASH (pid=87467) for gtk-gnutella
23-10-18 20:09:01.882 CRASH (pid=87467) by SIGBUS after 0s -- stack was:
	crash_handler+672
	signal_trampoline+248
	signal_trampoline_extended+340
	<_sigtramp+56>
	hash_table_insert_no_resize+96
	hash_table_insert+196
	crash_hook_add+196
	xmalloc_show_settings+68
	main+1500
	<start+2224>
23-10-18 20:09:01.885 CRASH (pid=87467) calling gdb...
23-10-18 20:09:01.887 CRASH (pid=87467) child exited with status 127
23-10-18 20:09:01.887 CRASH (pid=87467) possibly incomplete trace left in /Users/svacchanda/.gtk-gnutella/crashes/gtk-gnutella-1.2.2-crash.652fcadd.87467.log
23-10-18 20:09:01.887 CRASH (pid=87467) end of line.
23-10-18 20:09:01.892 (WARNING) not auto-restarting: supervising parent PID=87460 still present
23-10-18 20:09:01.893 [87460] (MESSAGE): child #2 (PID 87467) exited, status=1 after 0s
23-10-18 20:09:01.893 [87460] (INFO): launched child #3 as PID 87470
23-10-18 20:09:01.953 (INFO): gtk-gnutella/1.2.2 (2022-02-25; GTK2; Darwin arm64)
23-10-18 20:09:01.953 (INFO): using our own malloc() replacement (memory alignment: 16 bytes)
23-10-18 20:09:01.953 (INFO): running /opt/local/bin/gtk-gnutella --child
23-10-18 20:09:01.953 (INFO): loaded 10131 symbols from "/opt/local/bin/gtk-gnutella" via nm output parsing in 0.041 secs 0.001 secs ago
23-10-18 20:09:01.953 (MESSAGE): will be offsetting symbol addresses by 0xfffffffffd6e4000 (-43106304)
23-10-18 20:09:03.373 (WARNING): pattern_benchmark(): has 0 items left after pruning outliers for pattern_match_unknown(), retrying...
23-10-18 20:09:03.937 (INFO): INPUTEVT using customized I/O dispatching with kqueue()
23-10-18 20:09:03.938 (INFO): language code: "en"
23-10-18 20:09:03.938 (INFO): using locale character set "UTF-8"
23-10-18 20:09:03.938 (INFO): primary filename character set "UTF-8"
23-10-18 20:09:03.938 (DEBUG-2): ADNS thread started
23-10-18 20:09:03.940 (WARNING): restarting after abnormal termination (pid was 87465)
23-10-18 20:09:03.940 (INFO): preserving session traffic counters
23-10-18 20:09:03.945 (WARNING): cannot open display: 
	main_gui_early_init+76
	main+1944
	<start+2224>
23-10-18 20:09:03.946 [87460] (MESSAGE): child #3 (PID 87470) exited, status=1 after 2s
23-10-18 20:09:03.946 [87460] (INFO): launched child #4 as PID 87472
23-10-18 20:09:04.011 (INFO): gtk-gnutella/1.2.2 (2022-02-25; GTK2; Darwin arm64)
23-10-18 20:09:04.012 (INFO): using our own malloc() replacement (memory alignment: 16 bytes)
23-10-18 20:09:04.012 (INFO): running /opt/local/bin/gtk-gnutella --child
23-10-18 20:09:04.012 (INFO): loaded 10131 symbols from "/opt/local/bin/gtk-gnutella" via nm output parsing in 0.042 secs 0.001 secs ago
23-10-18 20:09:04.012 (MESSAGE): will be offsetting symbol addresses by 0xffffffffff01c000 (-16662528)
23-10-18 20:09:05.967 (INFO): INPUTEVT using customized I/O dispatching with kqueue()
23-10-18 20:09:05.968 (INFO): language code: "en"
23-10-18 20:09:05.968 (INFO): using locale character set "UTF-8"
23-10-18 20:09:05.968 (INFO): primary filename character set "UTF-8"
23-10-18 20:09:05.968 (DEBUG-2): ADNS thread started
23-10-18 20:09:05.969 (WARNING): restarting after abnormal termination (pid was 87470)
23-10-18 20:09:05.969 (INFO): preserving session traffic counters
23-10-18 20:09:05.974 (WARNING): cannot open display: 
	main_gui_early_init+76
	main+1944
	<start+2224>
23-10-18 20:09:05.975 [87460] (MESSAGE): child #4 (PID 87472) exited, status=1 after 2s
23-10-18 20:09:05.976 [87460] (INFO): launched child #5 as PID 87474
23-10-18 20:09:06.037 (INFO): gtk-gnutella/1.2.2 (2022-02-25; GTK2; Darwin arm64)
23-10-18 20:09:06.037 (INFO): using our own malloc() replacement (memory alignment: 16 bytes)
23-10-18 20:09:06.037 (INFO): running /opt/local/bin/gtk-gnutella --child
23-10-18 20:09:06.037 (INFO): loaded 10131 symbols from "/opt/local/bin/gtk-gnutella" via nm output parsing in 0.042 secs 0.001 secs ago
23-10-18 20:09:06.037 (MESSAGE): will be offsetting symbol addresses by 0xfffffffffde78000 (-35160064)
23-10-18 20:09:07.434 (WARNING): pattern_benchmark(): has 0 items left after pruning outliers for strrchr(), retrying...
23-10-18 20:09:08.042 (INFO): INPUTEVT using customized I/O dispatching with kqueue()
23-10-18 20:09:08.043 (INFO): language code: "en"
23-10-18 20:09:08.043 (INFO): using locale character set "UTF-8"
23-10-18 20:09:08.043 (INFO): primary filename character set "UTF-8"
23-10-18 20:09:08.043 (DEBUG-2): ADNS thread started
23-10-18 20:09:08.045 (WARNING): restarting after abnormal termination (pid was 87472)
23-10-18 20:09:08.045 (INFO): preserving session traffic counters
23-10-18 20:09:08.050 (WARNING): cannot open display: 
	main_gui_early_init+76
	main+1944
	<start+2224>
23-10-18 20:09:08.051 [87460] (MESSAGE): child #5 (PID 87474) exited, status=1 after 3s
23-10-18 20:09:08.051 [87460] (WARNING): 5 children were launched during last hour
23-10-18 20:09:08.051 [87460] (INFO): supervisor exiting on failure, launched 5 children over 13s
23-10-18 20:09:08.051 [87460] (WARNING): filelock_clean(): unlocking /Users/svacchanda/.gtk-gnutella/gtk-gnutella-super.pid

Change History (3)

comment:1 Changed 13 months ago by ryandesign (Ryan Carsten Schmidt)

Ok, so it looks like gtk-gnutella started a child process which exited unexpectedly so it started a second child process which exited unexpectedly so it started a third child, and so on.

The reason why the child processes exited seems to be:

23-10-18 20:09:01.820 (WARNING): cannot open display: 
	main_gui_early_init+76
	main+1944
	<start+2224>

The usual reason for any program to give a "cannot open display" message is that you don't have an X11 server (such as the xorg-server port) installed. Do you?

comment:2 in reply to:  1 Changed 13 months ago by barracuda156

Replying to ryandesign:

The usual reason for any program to give a "cannot open display" message is that you don't have an X11 server (such as the xorg-server port) installed. Do you?

Unless something asked for it, I do not, not on this system. Should I declare a dependency on it then? How to handle it correctly, given that we have several ports for xorg-server?

comment:3 Changed 13 months ago by barracuda156

UPD. Ok, I installed xorg-server, which itself now works (confirmed by another port), however gtk-gnutella does not launch it, freezing now on:

23-10-19 20:31:26.519 CRASH (pid=7502) done with hook "settings_dump_gnet"
23-10-19 20:31:26.513 CRASH (pid=7502) child exited with status 127
23-10-19 20:31:26.513 CRASH (pid=7502) possibly incomplete trace left in /Users/svacchanda/.gtk-gnutella/crashes/gtk-gnutella-1.2.2-crash.6531219c.7502.log
23-10-19 20:31:26.513 CRASH (pid=7502) end of line.
23-10-19 20:31:26.522 (WARNING) not auto-restarting: supervising parent PID=7322 still present
23-10-19 20:31:26.523 [7322] (MESSAGE): child #3 (PID 7502) exited, status=1 after 2s
23-10-19 20:31:26.524 [7322] (INFO): launched child #4 as PID 7505
23-10-19 20:31:26.586 (INFO): gtk-gnutella/1.2.2 (2022-02-25; GTK2; Darwin arm64)
23-10-19 20:31:26.586 (INFO): using our own malloc() replacement (memory alignment: 16 bytes)
23-10-19 20:31:26.586 (INFO): running /opt/local/bin/gtk-gnutella --child
23-10-19 20:31:26.586 (INFO): loaded 10131 symbols from "/opt/local/bin/gtk-gnutella" via nm output parsing in 0.043 secs 0.001 secs ago
23-10-19 20:31:26.586 (MESSAGE): will be offsetting symbol addresses by 0xfffffffffb720000 (-76414976)

Maybe it is just broken on aarch64, maybe gtk2 is broken for it.

Note: See TracTickets for help on using tickets.