Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#78881 - [libproxy] telegram-desktop segmentation fault (core dumped)

Attached to Project: Arch Linux
Opened by Kerr (zefkerrigan) - Saturday, 24 June 2023, 14:06 GMT
Last edited by Jan Alexander Steffens (heftig) - Thursday, 29 June 2023, 12:33 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Jan Alexander Steffens (heftig)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:


Additional info:
* package version: telegram-desktop 4.8.4-1

Steps to reproduce:

$ telegram-desktop
Segmentation fault (core dumped)
This task depends upon

Closed by  Jan Alexander Steffens (heftig)
Thursday, 29 June 2023, 12:33 GMT
Reason for closing:  Fixed
Additional comments about closing:  libproxy 0.5.2-2
Comment by Toolybird (Toolybird) - Sunday, 25 June 2023, 21:09 GMT
> Segmentation fault (core dumped)

This is a woefully inadequate bug report. Please review the guidelines [1] to ensure your bug reports are effective.

At the bare minimum, you'll need to provide a backtrace with debug symbols [2]. It's usually as simple as:

$ coredumpctl gdb (then answer y when it asks "Enable debuginfod for this session?")
(gdb) set logging enabled
(gdb) bt (or bt full)

Then post gdb.txt

[1] https://wiki.archlinux.org/title/Bug_reporting_guidelines
[2] https://wiki.archlinux.org/title/Debugging/Getting_traces
Comment by Alexis (Tutti) - Tuesday, 27 June 2023, 14:28 GMT
Hi, I've encountered the same issue, I've tried what you said, with "answer y when it asks "Enable debuginfod for this session", but it happens that it takes more than 32GB of ram... I've tried with answering no, and I got this https://0x0.st/HQt2.txt
Comment by marco (myyc) - Wednesday, 28 June 2023, 14:17 GMT
for some reason this is impossible to debug, as obtaining the trace the way @toolybird suggested makes everything crash in a reasonably recent machine (it used up all my RAM and swap and ultimately crashed the terminal altogether). telegram-desktop -debug only points to one

attaching a few debug logs.

https://0x0.st/HQYw.txt
https://0x0.st/HQY3.txt
https://0x0.st/HQYY.txt

telegram-desktop-bin works, FYI. i also tried downgrading telegram-desktop a few versions but it still crashes.
Comment by Toolybird (Toolybird) - Wednesday, 28 June 2023, 23:46 GMT
Not sure why debuginfod is exhausting all memory (I've also seen this in the past myself). But luckily there are other ways to get a backtrace with debug symbols as documented in link [2] above e.g. manually install some relevant *-debug pkgs.

Anyway, we *still* have no info about when this crash happens. Do you think we are mind readers?

Can you reproduce easily? What steps to reproduce? What other relevant circumstances? What DE in use? Wayland? Are you using a proxy? Does it still crash if you don't use a proxy? etc, etc, etc. Please provide as much relevant info as possible otherwise you are *not* helping.
Comment by Kerr (zefkerrigan) - Thursday, 29 June 2023, 03:18 GMT
GNOME Wayland, I don't using any proxy.
Comment by Toolybird (Toolybird) - Thursday, 29 June 2023, 07:12 GMT
> GNOME Wayland, I don't using any proxy.

Still too brief. Are we playing 20 questions? Hint: "Steps to reproduce:"
Comment by Kerr (zefkerrigan) - Thursday, 29 June 2023, 07:18 GMT
To reproduce just run:
$ telegram-desktop
Comment by Toolybird (Toolybird) - Thursday, 29 June 2023, 07:47 GMT
> To reproduce just run

Cannot repro, i.e. works for me. Anyone affected by this bug will need to supply better quality information. Otherwise we cannot help, it's that simple. I'll remind folks again about the Arch bug guidelines [1] (when the Wiki comes back online :)

[1] https://wiki.archlinux.org/title/Bug_reporting_guidelines
Comment by marco (myyc) - Thursday, 29 June 2023, 09:20 GMT
being rude to people doesn't help anyone. debug symbols fetched whichever way (via telegram-desktop-debug or debuginfod) exhaust all the ram and gdb crashes.

anyway, more info:

1. crashes on startup before even displaying the list of users
2. gnome wayland/x11, doesn't really matter (network config doesn't seem to matter either)
3. i can't reproduce it on my pc with a nvidia gpu. my laptop has an intel gpu and before crashing i see this message a few times. not sure if it's related:

warning: Can't open file anon_inode:i915.gem which was expanded to anon_inode:i915.gem during file-backed mapping note processing

is there any dependency one could try to downgrade to see if anything changes?
Comment by Antonio Rojas (arojas) - Thursday, 29 June 2023, 09:32 GMT
Looks similar to https://bbs.archlinux.org/viewtopic.php?id=286789 with points to a libproxy bug
Comment by Alexis (Tutti) - Thursday, 29 June 2023, 09:40 GMT
Step to reproduce : run telegram-desktop
Desktop env : Gnome Desktop with gnome-shell 44.2
Windowing system : X11
Kernel : Linux 6.1.35-1-lts
Graphic card : NVIDIA GeForce RTX™ 2060, using nvidia-lts 1:535.54.03-3 drivers.
Processor : AMD Ryzen™ 7 5700G with Radeon™ Graphics × 16
Comment by marco (myyc) - Thursday, 29 June 2023, 09:44 GMT
@arojas: bingo. downgrading libproxy to 0.4.18 works.
Comment by marco (myyc) - Thursday, 29 June 2023, 09:48 GMT
also, interesting, switching from "use system proxy settings" to "disable proxy" on telegram-desktop, while using libproxy 0.4.18, and then upgrading libproxy, telegram stops crashing.

as a side note, the system proxy settings are set to manual with no proxy enabled, so clearly there's something wrong there.
Comment by loqs (loqs) - Thursday, 29 June 2023, 10:57 GMT
What if you use libproxy built with with the patch from the thread arojas linked? I have provided such a package linked below

https://drive.google.com/file/d/1LBP-KfXG_xGLiJcQFdgJO6F5jyvINu4A/view?usp=sharing libproxy-0.5.2-1.1-x86_64.pkg.tar.zst
Comment by Jan Alexander Steffens (heftig) - Thursday, 29 June 2023, 12:22 GMT
Confirmed: With GNOME's proxy settings enabled and set to auto (which should result in no proxy here), Running `proxy udp:` crashes.
Comment by marco (myyc) - Thursday, 29 June 2023, 12:23 GMT
it works! telegram still freezes and won't connect if i click on "use system proxy settings" but at least it doesn't crash.

thinking that the freeze is probably a bug that should be reported upstream to telegram, thoughts?

Loading...