I'm afraid I am still encountering this bug, and, worse yet, sometimes the workaround does not work!
The log messages are pretty much the same. What now?
A truncated log:
...
(I) gajim.c.dbus.logind Name org.freedesktop.login1 appeared, owned by :1.14
fish: Job 1, 'gajim -vw' terminated by signal SIGSEGV (Address boundary error)
When it works, immediately after the above, minus the segfault:
...
(I) gajim.c.dbus.logind Obtained shutdown delay inhibitor
(D) gajim.gtk.main Window state changed: ICONIFIED: False, WITHDRAWN: False
...
I'm guessing it has to do either with DBus & secret storage problems, or something to do with this shutdown delay inhibitor. Thoughts on further debugging this?
Does Gajim 1.8.1 use libsoup2 anymore?
OK, so here's what GDB shows:
...
[New Thread 0x7fffe1f09640 (LWP 81056)] [30/1863]
[Thread 0x7fffe1f09640 (LWP 81056) exited]
[Detaching after vfork from child process 81057]
[Detaching after vfork from child process 81058]
[Detaching after vfork from child process 81061]
[Detaching after vfork from child process 81062]
[Detaching after vfork from child process 81063]
[Detaching after vfork from child process 81066]
[Detaching after vfork from child process 81067]
[Detaching after vfork from child process 81068]
[Detaching after vfork from child process 81071]
[New Thread 0x7fffe1f09640 (LWP 81073)]
[New Thread 0x7fffd5c7e640 (LWP 81074)]
[Thread 0x7fffd5c7e640 (LWP 81074) exited]
[New Thread 0x7fffd5c7e640 (LWP 81075)]
[New Thread 0x7fffd4fff640 (LWP 81076)]
[Thread 0x7fffd5c7e640 (LWP 81075) exited]
[Thread 0x7fffd4fff640 (LWP 81076) exited]
[New Thread 0x7fffd4fff640 (LWP 81077)]
[New Thread 0x7fffd5c7e640 (LWP 81078)]
[Thread 0x7fffd4fff640 (LWP 81077) exited]
[New Thread 0x7fffd4fff640 (LWP 81079)]
[New Thread 0x7fffcf3ff640 (LWP 81080)]
[Thread 0x7fffd5c7e640 (LWP 81078) exited]
[Thread 0x7fffd4fff640 (LWP 81079) exited]
[Thread 0x7fffcf3ff640 (LWP 81080) exited]
[New Thread 0x7fffcf3ff640 (LWP 81081)]
[New Thread 0x7fffd4fff640 (LWP 81082)]
[Thread 0x7fffcf3ff640 (LWP 81081) exited]
[New Thread 0x7fffcf3ff640 (LWP 81083)]
[New Thread 0x7fffd5c7e640 (LWP 81084)]
[Thread 0x7fffd4fff640 (LWP 81082) exited]
[Thread 0x7fffcf3ff640 (LWP 81083) exited]
[Thread 0x7fffd5c7e640 (LWP 81084) exited]
[New Thread 0x7fffd5c7e640 (LWP 81085)]
[New Thread 0x7fffcf3ff640 (LWP 81086)]
[Thread 0x7fffd5c7e640 (LWP 81085) exited]
[New Thread 0x7fffd5c7e640 (LWP 81087)]
[New Thread 0x7fffd4fff640 (LWP 81088)]
[Thread 0x7fffcf3ff640 (LWP 81086) exited]
[Thread 0x7fffd5c7e640 (LWP 81087) exited]
[Thread 0x7fffd4fff640 (LWP 81088) exited]
[New Thread 0x7fffd4fff640 (LWP 81089)]
[New Thread 0x7fffd5c7e640 (LWP 81090)]
[Thread 0x7fffd4fff640 (LWP 81089) exited]
[Thread 0x7fffd5c7e640 (LWP 81090) exited]
[New Thread 0x7fffd5c7e640 (LWP 81091)]
[New Thread 0x7fffd4fff640 (LWP 81092)]
[Thread 0x7fffd5c7e640 (LWP 81091) exited]
[New Thread 0x7fffd5c7e640 (LWP 81093)]
[New Thread 0x7fffcf3ff640 (LWP 81094)]
[Thread 0x7fffd4fff640 (LWP 81092) exited]
[Thread 0x7fffd5c7e640 (LWP 81093) exited]
[Thread 0x7fffcf3ff640 (LWP 81094) exited]
[New Thread 0x7fffcf3ff640 (LWP 81095)]
[New Thread 0x7fffd5c7e640 (LWP 81096)]
[Thread 0x7fffcf3ff640 (LWP 81095) exited]
[Thread 0x7fffd5c7e640 (LWP 81096) exited]
[New Thread 0x7fffd5c7e640 (LWP 81097)]
[New Thread 0x7fffcf3ff640 (LWP 81098)]
[Thread 0x7fffd5c7e640 (LWP 81097) exited]
[New Thread 0x7fffd5c7e640 (LWP 81099)]
[New Thread 0x7fffd4fff640 (LWP 81100)]
[Thread 0x7fffcf3ff640 (LWP 81098) exited]
[Thread 0x7fffd5c7e640 (LWP 81099) exited]
[Thread 0x7fffd4fff640 (LWP 81100) exited]
Thread 7 "pool-org.gajim." received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffe1f09640 (LWP 81073)]
0x00007fffe38ad590 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
While running under commit a39f0a1b (and Python 3.11.2), I no longer have this issue, so I'm not sure where the problem is still..
It's been... almost a decade since I last analysed a core dump. Can you give some pointers as to how, like an article?
Oh, and since I'm compiling from source, do I need to install more *-dev Ubuntu packages, to add more debugging symbols?
A truncated log:
...
(I) gajim.c.dbus.logind Name org.freedesktop.login1 appeared, owned by :1.14
fish: Job 1, 'gajim -vw' terminated by signal SIGSEGV (Address boundary error)
When it works, immediately after the above, minus the segfault:
...
(I) gajim.c.dbus.logind Obtained shutdown delay inhibitor
(D) gajim.gtk.main Window state changed: ICONIFIED: False, WITHDRAWN: False
...
I'm guessing it has to do either with DBus & secret storage problems, or something to do with this shutdown delay inhibitor. Thoughts on further debugging this?
When running from the command-line, I see the following error:
Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
1. Downgrade the protobuf package to 3.20.x or lower.
2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
I'm using the 2nd workaround, but is there a way to regenerate this protobuf code myself? And when it says downgrade the package, are they talking the Python package, or the underlining Protobuf C library? Is 3.20.x even compatible with this plugin?