-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libproxy crashes in connection with glibproxyresolver #199
Comments
People were able to bisect this, and found libproxy 0.4.15-15 (Debian package) as the last known working version. Seems the issue was introduced by libproxy 0.4.16-1 (Debian package). |
That looks very strange. Apparently |
Hi, I did some tests and the crash happens when the runtime error is thrown in this place: https://github.com/libproxy/libproxy/blob/master/libproxy/modules/config_envvar.cpp#L56 . With the following patch applied I no longer see a crash. Note, that I haven't spent the time to fully understand the code base. I don't know if its ok to return an empty vector when no environment variables are set.
|
Is something built with |
glib-networking uses This works:
This works:
This results in a crash:
|
I also did some investigation regarding compiler/linker flags. Debian's libproxy package currently enables all security hardening flags known by |
Building without |
It really looks like the problem is with the destructor of response when the runtime error is thrown. This fixes the issue on my laptop:
Interestingly I cannot reproduce the issue with the bundled |
I can confirm that this patch seems to fix the issue. A fix in Debian's libproxy package (see https://sources.debian.org/patches/libproxy/0.4.18-1.2/ ) is in place, user feedback looks good so far. |
Well of course that patch does not really help us understand the bug here -- why is the allocator's destructor throwing? -- but it makes the code nicer, so it's good to do regardless. Feel free to submit a pull request. |
Closing as obsolete. |
Additional infos: The client program is using pyGObject (and libsoup), and it receives SIGABRT shortly after starting. There is no explicit
get_proxies
call coming from the client using pyGObject. The client used to work without this issue, but at some point dependencies were upgraded, and then these errors occurred (also for older versions of the client).Here is an excerpt of the latest report from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1028192
-- System Information:
Debian Release: bookworm/sid
APT prefers testing
APT policy: (500, 'testing'), (90, 'unstable'), (10, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 6.0.0-6-amd64 (SMP w/2 CPU threads; PREEMPT)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages gajim depends on:
ii desktop-file-utils 0.26-1
ii gir1.2-gst-plugins-base-1.0 1.20.5-1
ii gir1.2-gtk-3.0 3.24.36-1
ii gir1.2-gtksource-4 4.8.4-4
ii python3 3.10.6-3+b1
ii python3-cairo 1.20.1-5
ii python3-cryptography 38.0.4-2
ii python3-css-parser 1.0.8-1
ii python3-gi 3.42.2-3
ii python3-gi-cairo 3.42.2-3
ii python3-idna 3.3-1
ii python3-keyring 23.9.3-2
ii python3-nbxmpp 4.0.1-1
ii python3-packaging 22.0-2
ii python3-pil 9.4.0-1+b1
ii python3-precis-i18n 1.0.5-1
Versions of packages gajim recommends:
ii alsa-utils 1.2.8-1
ii aspell-en [aspell-dictionary] 2018.04.16-0-1
ii ca-certificates 20211016
ii dbus 1.14.4-1
ii fonts-noto-color-emoji 2.038-1
ii gajim-omemo 2.9.0-1
pn gajim-openpgp
ii gir1.2-farstream-0.2 0.2.9-1
pn gir1.2-geoclue-2.0
ii gir1.2-gsound-1.0 1.0.3-2
ii gir1.2-gspell-1 1.12.0-1+b1
ii gir1.2-gstreamer-1.0 1.20.5-1
pn gir1.2-gupnpigd-1.0
ii gir1.2-secret-1 0.20.5-3
ii gstreamer1.0-gl 1.20.5-1
ii gstreamer1.0-nice 0.1.18-2
ii gstreamer1.0-plugins-ugly 1.20.5-1
ii notification-daemon 3.20.0-4+b1
ii pulseaudio-utils 16.1+dfsg1-2+b1
ii python3-dbus 1.3.2-3
ii python3-gssapi 1.8.2-1
ii python3-sentry-sdk 1.9.10-2
ii sox 14.4.2+git20190427-3+b1
ii xfce4-notifyd [notification-daemon] 0.6.5-1
Versions of packages gajim suggests:
ii libxss1 1:1.2.3-1
pn nautilus-sendto
-- no debconf information
The text was updated successfully, but these errors were encountered: