Meld crash (segfault) on startup with custom install
Hello, I'm following the LinuxFromScratch guide to make a custom installation on a SL6 machine (RHEL6 type) where i don't have admin access. I managed to compile a lot of software and libraries that are installed in /prefix, but i'm stuck on meld which crash on startup. I have installed meld 3.20.3 using:
python3.9 setup.py build
python3.9 setup.py install
Python version is 3.9.6 and is installed in /prefix/opt/python/python-3.9.6 .
If i just do a 'meld', it says i haven't installed GtkSourceView, and then segfaults:
$ PYTHONFAULTHANDLER=1 /prefix/opt/python/python-3.9.6/bin/meld
(meld:25936): dbind-WARNING **: 15:50:03.609: AT-SPI: Error retrieving accessibility bus address: org.a11y.Bus.Error: Failed to execute child process “/usr/lib64/firefox/bundled/bin/dbus-daemon” (No such file or directory)
Meld nécessite GtkSourceView 3 3.20.0 ou supérieur.
Gtk-Message: 15:50:03.637: Failed to load module "pk-gtk-module"
Fatal Python error: Segmentation fault
Current thread 0x00007f8043301700 (most recent call first):
File "/prefix/opt/python/python-3.9.6/lib/python3.9/site-packages/gi/_ossighelper.py", line 119 in wakeup_on_signal
File "/prefix/opt/python/python-3.9.6/lib/python3.9/contextlib.py", line 124 in __exit__
File "/prefix/opt/python/python-3.9.6/lib/python3.9/site-packages/gi/overrides/Gtk.py", line 585 in run
File "/prefix/opt/python/python-3.9.6/bin/./meld", line 161 in show_error_and_exit
File "/prefix/opt/python/python-3.9.6/bin/./meld", line 197 in missing_reqs
File "/prefix/opt/python/python-3.9.6/bin/./meld", line 226 in check_requirements
File "/prefix/opt/python/python-3.9.6/bin/./meld", line 383 in <module>
Erreur de segmentation
Then i set GI_TYPELIB_PATH variable so that python can find GtkSourceView (i use version 3.24.11):
$ export GI_TYPELIB_PATH=/prefix/lib/gireporsitory-1.0:/prefix/lib64/girepository-1.0
$ /prefix/opt/python/python-3.9.6/bin/meld
SIGTRAP
$ gdb /prefix/opt/python/python-3.9.6/bin/python3 meld
Starting program: /prefix/opt/python/python-3.9.6/bin/python3.9 meld
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
(meld:26082): dbind-WARNING **: 15:53:42.087: AT-SPI: Error retrieving accessibility bus address: org.a11y.Bus.Error: Failed to execute child process “/usr/lib64/firefox/bundled/bin/dbus-daemon” (No such file or directory)
[New Thread 0x7fffece83700 (LWP 26086)]
[New Thread 0x7fffe7fff700 (LWP 26087)]
[New Thread 0x7fffe75fe700 (LWP 26088)]
Thread 1 "python3.9" received signal SIGTRAP, Trace/breakpoint trap.
g_log_structured_array () at ../glib/gmessages.c:1971
1971 ../glib/gmessages.c: Aucun fichier ou dossier de ce type.
(gdb) bt
#0 g_log_structured_array () at ../glib/gmessages.c:1971
#1 0x00007ffff172c516 in g_log_default_handler () at ../glib/gmessages.c:3236
#2 0x00007ffff172c7dc in g_logv () at ../glib/gmessages.c:1382
#3 0x00007ffff172c9b2 in g_log () at ../glib/gmessages.c:1451
#4 0x00007ffff13e4cd7 in g_settings_set_property () at ../gio/gsettings.c:596
#5 0x00007ffff163d568 in object_set_property () at ../gobject/gobject.c:1565
#6 g_object_new_internal () at ../gobject/gobject.c:1973
#7 0x00007ffff163fbf9 in g_object_new_valist () at ../gobject/gobject.c:2282
#8 0x00007ffff16401ec in g_object_new () at ../gobject/gobject.c:1782
#9 0x00007ffff1c1a052 in ffi_call_unix64 () at ../src/x86/unix64.S:105
#10 0x00007ffff1c17f6e in ffi_call_int () at ../src/x86/ffi64.c:672
#11 0x00007ffff184bdfb in pygi_invoke_c_callable () at ../gi/pygi-invoke.c:684
#12 0x00007ffff184cff3 in _function_cache_invoke_real () at ../gi/pygi-cache.c:783
#13 _constructor_cache_invoke_real () at ../gi/pygi-cache.c:929
#14 0x00007ffff184e52a in pygi_function_cache_invoke () at ../gi/pygi-cache.c:862
#15 0x00007ffff1837dcc in _callable_info_call () at ../gi/pygi-info.c:548
#16 0x00007ffff7d88a0d in _PyObject_MakeTpCall () at Objects/call.c:191
#17 0x00007ffff7dfc9fd in _PyObject_VectorcallTstate () at ./Include/cpython/abstract.h:116
#18 PyObject_Vectorcall () at ./Include/cpython/abstract.h:127
#19 call_function () at Python/ceval.c:5072
#20 _PyEval_EvalFrameDefault () at Python/ceval.c:3487
#21 0x00007ffff7d8916f in _PyEval_EvalFrame () at ./Include/internal/pycore_ceval.h:40
#22 function_code_fastcall () at Objects/call.c:330
#23 _PyFunction_Vectorcall () at Objects/call.c:367
#24 0x00007ffff7df7c5d in _PyObject_VectorcallTstate () at ./Include/cpython/abstract.h:118
#25 PyObject_Vectorcall () at ./Include/cpython/abstract.h:127
#26 call_function () at Python/ceval.c:5072
#27 _PyEval_EvalFrameDefault () at Python/ceval.c:3518
#28 0x00007ffff7d8916f in _PyEval_EvalFrame () at ./Include/internal/pycore_ceval.h:40
#29 function_code_fastcall () at Objects/call.c:330
#30 _PyFunction_Vectorcall () at Objects/call.c:367
#31 0x00007ffff7dfbc84 in _PyObject_VectorcallTstate () at ./Include/cpython/abstract.h:118
#32 PyObject_Vectorcall () at ./Include/cpython/abstract.h:127
#33 call_function () at Python/ceval.c:5072
#34 _PyEval_EvalFrameDefault () at Python/ceval.c:3487
#35 0x00007ffff7d8916f in _PyEval_EvalFrame () at ./Include/internal/pycore_ceval.h:40
#36 function_code_fastcall () at Objects/call.c:330
#37 _PyFunction_Vectorcall () at Objects/call.c:367
#38 0x00007ffff7df7c5d in _PyObject_VectorcallTstate () at ./Include/cpython/abstract.h:118
#39 PyObject_Vectorcall () at ./Include/cpython/abstract.h:127
#40 call_function () at Python/ceval.c:5072
#41 _PyEval_EvalFrameDefault () at Python/ceval.c:3518
#42 0x00007ffff7df6bda in _PyEval_EvalFrame () at ./Include/internal/pycore_ceval.h:40
#43 _PyEval_EvalCode () at Python/ceval.c:4327
#44 0x00007ffff7df6902 in _PyEval_EvalCodeWithName () at Python/ceval.c:4359
#45 0x00007ffff7df689c in PyEval_EvalCodeEx () at Python/ceval.c:4375
#46 0x00007ffff7df685b in PyEval_EvalCode () at Python/ceval.c:826
#47 0x00007ffff7e8759d in run_eval_code_obj () at Python/pythonrun.c:1219
#48 0x00007ffff7e8752c in run_mod () at Python/pythonrun.c:1240
#49 0x00007ffff7d29f10 in pyrun_file () at Python/pythonrun.c:1138
#50 0x00007ffff7d2937b in pyrun_simple_file () at Python/pythonrun.c:449
#51 PyRun_SimpleFileExFlags () at Python/pythonrun.c:482
#52 0x00007ffff7e8e4e8 in pymain_run_file () at Modules/main.c:373
#53 pymain_run_python () at Modules/main.c:598
#54 Py_RunMain () at Modules/main.c:677
#55 0x00007ffff7e8e039 in Py_BytesMain () at Modules/main.c:731
#56 0x00000035bac1ed20 in __libc_start_main () at /lib64/libc.so.6
#57 0x0000000000401081 in _start ()
After further investigation, and also looking at how NixOS handles it, i also set XDG_DATA_DIRS:
$ export XDG_DATA_DIRS=/prefix/opt/python/python-3.9.6/share:/prefix/share:$XDG_DATA_DIRS
$ PYTHONFAULTHANDLER=1 /prefix/opt/python/python-3.9.6/bin/meld
(meld:28640): dbind-WARNING **: 17:52:43.733: AT-SPI: Error retrieving accessibility bus address: org.a11y.Bus.Error: Failed to execute child process “/usr/lib64/firefox/bundled/bin/dbus-daemon” (No such file or directory)
Fatal Python error: Segmentation fault
Current thread 0x00007f30169b4700 (most recent call first):
File "/prefix/opt/python/python-3.9.6/lib/python3.9/site-packages/gi/overrides/Gtk.py", line 481 in connect_signals
File "/prefix/opt/python/python-3.9.6/lib/python3.9/site-packages/meld/ui/gnomeglade.py", line 43 in __init__
File "/prefix/opt/python/python-3.9.6/lib/python3.9/site-packages/meld/meldwindow.py", line 43 in __init__
File "/prefix/opt/python/python-3.9.6/lib/python3.9/site-packages/meld/meldapp.py", line 144 in new_window
File "/prefix/opt/python/python-3.9.6/lib/python3.9/site-packages/meld/meldapp.py", line 77 in do_startup
File "/prefix/opt/python/python-3.9.6/lib/python3.9/site-packages/gi/overrides/Gio.py", line 42 in run
File "/prefix/opt/python/python-3.9.6/bin/./meld", line 393 in <module>
Erreur de segmentation
$ gdb /prefix/opt/python/python-3.9.6/bin/python3 meld
Starting program: /prefix/opt/python/python-3.9.6/bin/python3.9 meld
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
(meld:28732): dbind-WARNING **: 17:54:17.589: AT-SPI: Error retrieving accessibility bus address: org.a11y.Bus.Error: Failed to execute child process “/usr/lib64/firefox/bundled/bin/dbus-daemon” (No such file or directory)
[New Thread 0x7fffece84700 (LWP 28736)]
[New Thread 0x7fffe7fff700 (LWP 28737)]
[New Thread 0x7fffe75fe700 (LWP 28738)]
[New Thread 0x7fffe6bfd700 (LWP 28739)]
[New Thread 0x7fffe61fc700 (LWP 28740)]
Thread 1 "python3.9" received signal SIGSEGV, Segmentation fault.
g_callable_info_free_closure () at ../girepository/girffi.c:428
428 ../girepository/girffi.c: Aucun fichier ou dossier de ce type.
(gdb) bt
#0 g_callable_info_free_closure () at ../girepository/girffi.c:428
#1 0x00007ffff184a7b5 in _pygi_invoke_closure_free () at ../gi/pygi-closure.c:635
#2 _pygi_marshal_cleanup_from_py_interface_callback () at ../gi/pygi-closure.c:858
#3 0x00007ffff185005b in pygi_marshal_cleanup_args_from_py_marshal_success () at ../gi/pygi-marshal-cleanup.c:116
#4 0x00007ffff184cee3 in pygi_invoke_c_callable () at ../gi/pygi-invoke.c:712
#5 0x00007ffff184f52a in pygi_function_cache_invoke () at ../gi/pygi-cache.c:862
#6 0x00007ffff1838dcc in _callable_info_call () at ../gi/pygi-info.c:548
#7 0x00007ffff7d89a0d in _PyObject_MakeTpCall () at Objects/call.c:191
#8 0x00007ffff7dfd9fd in _PyObject_VectorcallTstate () at ./Include/cpython/abstract.h:116
#9 PyObject_Vectorcall () at ./Include/cpython/abstract.h:127
#10 call_function () at Python/ceval.c:5072
#11 _PyEval_EvalFrameDefault () at Python/ceval.c:3487
#12 0x00007ffff7d8a16f in _PyEval_EvalFrame () at ./Include/internal/pycore_ceval.h:40
#13 function_code_fastcall () at Objects/call.c:330
#14 _PyFunction_Vectorcall () at Objects/call.c:367
#15 0x00007ffff7df8f65 in _PyObject_VectorcallTstate () at ./Include/cpython/abstract.h:118
#16 PyObject_Vectorcall () at ./Include/cpython/abstract.h:127
#17 call_function () at Python/ceval.c:5072
#18 _PyEval_EvalFrameDefault () at Python/ceval.c:3504
#19 0x00007ffff7df7bda in _PyEval_EvalFrame () at ./Include/internal/pycore_ceval.h:40
#20 _PyEval_EvalCode () at Python/ceval.c:4327
#21 0x00007ffff7d8a1fb in _PyFunction_Vectorcall () at Objects/call.c:396
#22 0x00007ffff7d8bcd7 in _PyObject_VectorcallTstate () at ./Include/cpython/abstract.h:118
#23 method_vectorcall () at Objects/classobject.c:53
#24 0x00007ffff7dfcc84 in _PyObject_VectorcallTstate () at ./Include/cpython/abstract.h:118
#25 PyObject_Vectorcall () at ./Include/cpython/abstract.h:127
#26 call_function () at Python/ceval.c:5072
#27 _PyEval_EvalFrameDefault () at Python/ceval.c:3487
#28 0x00007ffff7df7f70 in _PyEval_EvalFrame () at ./Include/internal/pycore_ceval.h:40
#29 _PyEval_EvalCode () at Python/ceval.c:4327
#30 0x00007ffff7d8975a in _PyFunction_Vectorcall () at Objects/call.c:396
#31 _PyObject_FastCallDictTstate () at Objects/call.c:118
#32 0x00007ffff7d8a97a in _PyObject_Call_Prepend () at Objects/call.c:489
#33 0x00007ffff7dcad6c in slot_tp_init () at Objects/typeobject.c:6943
#34 0x00007ffff7dc83c6 in type_call () at Objects/typeobject.c:1026
#35 0x00007ffff7d89a0d in _PyObject_MakeTpCall () at Objects/call.c:191
#36 0x00007ffff7dfcba6 in _PyObject_VectorcallTstate () at ./Include/cpython/abstract.h:116
#37 PyObject_Vectorcall () at ./Include/cpython/abstract.h:127
#38 call_function () at Python/ceval.c:5072
#39 _PyEval_EvalFrameDefault () at Python/ceval.c:3518
#40 0x00007ffff7d8a16f in _PyEval_EvalFrame () at ./Include/internal/pycore_ceval.h:40
#41 function_code_fastcall () at Objects/call.c:330
#42 _PyFunction_Vectorcall () at Objects/call.c:367
#43 0x00007ffff7df8f65 in _PyObject_VectorcallTstate () at ./Include/cpython/abstract.h:118
#44 PyObject_Vectorcall () at ./Include/cpython/abstract.h:127
#45 call_function () at Python/ceval.c:5072
#46 _PyEval_EvalFrameDefault () at Python/ceval.c:3504
#47 0x00007ffff7d8a16f in _PyEval_EvalFrame () at ./Include/internal/pycore_ceval.h:40
#48 function_code_fastcall () at Objects/call.c:330
#49 _PyFunction_Vectorcall () at Objects/call.c:367
#50 0x00007ffff7d8aefc in PyVectorcall_Call () at Objects/call.c:231
#51 0x00007ffff184a318 in _pygi_closure_handle () at ../gi/pygi-closure.c:582
#52 0x00007ffff1c1a2b1 in ffi_closure_unix64_inner () at ../src/x86/ffi64.c:878
#53 0x00007ffff1c1b1e8 in ffi_closure_unix64 () at ../src/x86/unix64.S:304
#54 0x00007ffff163956c in _g_closure_invoke_va () at ../gobject/gclosure.c:873
#55 0x00007ffff16576a4 in g_signal_emit_valist () at ../gobject/gsignal.c:3406
#56 0x00007ffff1657cd2 in g_signal_emit () at ../gobject/gsignal.c:3553
#57 0x00007ffff13cd062 in g_application_register () at ../gio/gapplication.c:2205
#58 0x00007ffff13cd415 in g_application_real_local_command_line () at ../gio/gapplication.c:1107
#59 0x00007ffff13cd766 in g_application_run () at ../gio/gapplication.c:2529
#60 0x00007ffff1c1b052 in ffi_call_unix64 () at ../src/x86/unix64.S:105
#61 0x00007ffff1c18f6e in ffi_call_int () at ../src/x86/ffi64.c:672
#62 0x00007ffff184cdfb in pygi_invoke_c_callable () at ../gi/pygi-invoke.c:684
#63 0x00007ffff184f52a in pygi_function_cache_invoke () at ../gi/pygi-cache.c:862
#64 0x00007ffff7d8ae21 in _PyObject_Call () at Objects/call.c:281
#65 0x00007ffff7dfac34 in do_call_core () at Python/ceval.c:5120
#66 _PyEval_EvalFrameDefault () at Python/ceval.c:3580
#67 0x00007ffff7df7bda in _PyEval_EvalFrame () at ./Include/internal/pycore_ceval.h:40
#68 _PyEval_EvalCode () at Python/ceval.c:4327
#69 0x00007ffff7d8a1fb in _PyFunction_Vectorcall () at Objects/call.c:396
#70 0x00007ffff7df8f65 in _PyObject_VectorcallTstate () at ./Include/cpython/abstract.h:118
#71 PyObject_Vectorcall () at ./Include/cpython/abstract.h:127
#72 call_function () at Python/ceval.c:5072
#73 _PyEval_EvalFrameDefault () at Python/ceval.c:3504
#74 0x00007ffff7df7bda in _PyEval_EvalFrame () at ./Include/internal/pycore_ceval.h:40
#75 _PyEval_EvalCode () at Python/ceval.c:4327
#76 0x00007ffff7df7902 in _PyEval_EvalCodeWithName () at Python/ceval.c:4359
#77 0x00007ffff7df789c in PyEval_EvalCodeEx () at Python/ceval.c:4375
#78 0x00007ffff7df785b in PyEval_EvalCode () at Python/ceval.c:826
#79 0x00007ffff7e8859d in run_eval_code_obj () at Python/pythonrun.c:1219
#80 0x00007ffff7e8852c in run_mod () at Python/pythonrun.c:1240
#81 0x00007ffff7d2af10 in pyrun_file () at Python/pythonrun.c:1138
#82 0x00007ffff7d2a37b in pyrun_simple_file () at Python/pythonrun.c:449
#83 PyRun_SimpleFileExFlags () at Python/pythonrun.c:482
#84 0x00007ffff7e8f4e8 in pymain_run_file () at Modules/main.c:373
#85 pymain_run_python () at Modules/main.c:598
#86 Py_RunMain () at Modules/main.c:677
#87 0x00007ffff7e8f039 in Py_BytesMain () at Modules/main.c:731
#88 0x00000035bac1ed20 in __libc_start_main () at /lib64/libc.so.6
#89 0x0000000000401081 in _start ()
I tried to do the same as in #455 (closed), but with no success. Any idea of what is broken ? Thanks.