Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault on archlinux #26745

Closed
Brensom opened this issue Sep 3, 2023 · 8 comments
Closed

Segfault on archlinux #26745

Brensom opened this issue Sep 3, 2023 · 8 comments
Labels

Comments

@Brensom
Copy link

Brensom commented Sep 3, 2023

Steps to reproduce

Sep 01 21:13:14 home-desktop systemd-coredump[105061]: [馃] Process 104723 (telegram-deskto) of user 1000 du>
                                                       
                                                       Module libBlocksRuntime.so without build-id.
                                                       Module libdispatch.so without build-id.
                                                       Stack trace of thread 104723:
                                                       #0  0x00007f4a57e57724 n/a (libjemalloc.so.2 + 0x577>
                                                       #1  0x00007f4a57e5a3ca n/a (libjemalloc.so.2 + 0x5a3>
                                                       #2  0x00007f4a57e58c87 n/a (libjemalloc.so.2 + 0x58c>
                                                       #3  0x00007f4a57e63ce0 n/a (libjemalloc.so.2 + 0x63c>
                                                       #4  0x00007f4a57e26516 n/a (libjemalloc.so.2 + 0x265>
                                                       #5  0x00007f4a57e6d707 n/a (libjemalloc.so.2 + 0x6d7>
                                                       #6  0x00007f4a57e19f94 n/a (libjemalloc.so.2 + 0x19f>
                                                       #7  0x00007f4a4a7292b2 n/a (libtasn1.so.6 + 0x42b2)
                                                       #8  0x00007f4a57102441 n/a (libgnutls.so.30 + 0x7444>
                                                       #9  0x00007f4a5e04a0e2 n/a (ld-linux-x86-64.so.2 + 0>
                                                       #10 0x00007f4a5e04df4e n/a (ld-linux-x86-64.so.2 + 0>
                                                       #11 0x00007f4a57640cc6 n/a (libc.so.6 + 0x40cc6)
                                                       #12 0x00007f4a57640e10 exit (libc.so.6 + 0x40e10)
                                                       #13 0x00007f4a57627cd7 n/a (libc.so.6 + 0x27cd7)
                                                       #14 0x00007f4a57627d8a __libc_start_main (libc.so.6 >
                                                       #15 0x000055e9e2f3e685 n/a (telegram-desktop + 0xa4a>
                                                       
                                                       Stack trace of thread 104725:
                                                       #0  0x00007f4a576894ae n/a (libc.so.6 + 0x894ae)
                                                       #1  0x00007f4a5768c055 pthread_cond_timedwait (libc.>
                                                       #2  0x00007f4a57e2c643 n/a (libjemalloc.so.2 + 0x2c6>
...skipping...
                                                       #3  0x0000560c8d5b6a2a n/a (telegram-desktop + 0x2bc>
                                                       #4  0x00007fe9150e1943 execute_native_thread_routine>
                                                       #5  0x00007fe914c8c9eb n/a (libc.so.6 + 0x8c9eb)
                                                       #6  0x00007fe914d10dfc n/a (libc.so.6 + 0x110dfc)
                                                       
                                                       Stack trace of thread 143880:
                                                       #0  0x00007fe914d11226 epoll_wait (libc.so.6 + 0x111>
                                                       #1  0x00007fe919b499b8 n/a (libdispatch.so + 0x3e9b8)
                                                       #0  0x00007f2a9e0894ae n/a (libc.so.6 + 0x894ae)
                                                       #1  0x00007f2a9e08bd40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                       #2  0x00007f2a9e4d9e11 __gthread_cond_wait (libstdc++.so.6 + 0xd9e11)
                                                       #3  0x0000557fd188ea2a n/a (telegram-desktop + 0x2bc8a2a)
                                                       #4  0x00007f2a9e4e1943 execute_native_thread_routine (libstdc++.so.6 + 0xe1943)
                                                       #5  0x00007f2a9e08c9eb n/a (libc.so.6 + 0x8c9eb)
                                                       #6  0x00007f2a9e110dfc n/a (libc.so.6 + 0x110dfc)
                                                       
                                                       Stack trace of thread 176895:
                                                       #0  0x00007f2a9e0894ae n/a (libc.so.6 + 0x894ae)
                                                       #1  0x00007f2a9e08bd40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                       #2  0x00007f2a9e4d9e11 __gthread_cond_wait (libstdc++.so.6 + 0xd9e11)
                                                       #3  0x0000557fd188ea2a n/a (telegram-desktop + 0x2bc8a2a)
                                                       #4  0x00007f2a9e4e1943 execute_native_thread_routine (libstdc++.so.6 + 0xe1943)
                                                       #5  0x00007f2a9e08c9eb n/a (libc.so.6 + 0x8c9eb)
                                                       #6  0x00007f2a9e110dfc n/a (libc.so.6 + 0x110dfc)
                                                       
                                                       Stack trace of thread 176898:
                                                       #0  0x00007f2a9e0894ae n/a (libc.so.6 + 0x894ae)
                                                       #1  0x00007f2a9e08bd40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                       #2  0x00007f2a9e4d9e11 __gthread_cond_wait (libstdc++.so.6 + 0xd9e11)
                                                       #3  0x0000557fd188ea2a n/a (telegram-desktop + 0x2bc8a2a)
                                                       #4  0x00007f2a9e4e1943 execute_native_thread_routine (libstdc++.so.6 + 0xe1943)
                                                       #5  0x00007f2a9e08c9eb n/a (libc.so.6 + 0x8c9eb)
                                                       #6  0x00007f2a9e110dfc n/a (libc.so.6 + 0x110dfc)
                                                       ELF object binary architecture: AMD x86-64

Expected behaviour

The program crashes randomly

Actual behaviour

The program crashes randomly

Operating system

Linux home-desktop 6.1.50-1-lts #1 SMP PREEMPT_DYNAMIC Wed, 30 Aug 2023 14:44:21 +0000 x86_64 GNU/Linux

Version of Telegram Desktop

4.9.4

Installation source

Static binary from official website

Crash ID

No response

Logs

No response

@Brensom Brensom added the bug label Sep 3, 2023
@Aokromes
Copy link
Collaborator

Aokromes commented Sep 3, 2023

plz enable beta, restart telegram and send crash id on next start and post id here.

@Brensom
Copy link
Author

Brensom commented Sep 5, 2023

[ 2690.071134] telegram-deskto[11411]: segfault at 0 ip 00007f1a30660ee1 sp 00007ffe705f51f0 error 4 in libjemalloc.so.2[7f1a30609000+6a000] likely on CPU 5 (core 6, socket 0)
[ 2690.071145] Code: fa ff 0f 1f 80 00 00 00 00 f3 0f 1e fa 41 57 41 56 53 48 83 ec 10 48 89 f3 49 89 ff 64 48 8b 04 25 28 00 00 00 48 89 44 24 08 <48> 8b 06 25 ff 0f 00 00 48 8d 0d d0 c4 02 00 4c 8b 34 c1 4c 89 f6

@Brensom
Copy link
Author

Brensom commented Sep 5, 2023

Sep 05 08:04:59 home-desktop systemd-coredump[11521]: [馃] Process 11411 (telegram-deskto) of user 1000 dump>
                                                      
                                                      Module libBlocksRuntime.so without build-id.
                                                      Module libdispatch.so without build-id.
                                                      Stack trace of thread 11411:
                                                      #0  0x00007f1a30660ee1 n/a (libjemalloc.so.2 + 0x60ee>
                                                      #1  0x00007f1a30619fe7 n/a (libjemalloc.so.2 + 0x19fe>
                                                      #2  0x00007f1a3173eec6 _ZN10QImageDataD1Ev (libQt6Gui>
                                                      #3  0x00007f1a31744e99 _ZN6QImageD2Ev (libQt6Gui.so.6>
                                                      #4  0x0000555eebd7c628 n/a (telegram-desktop + 0xf826>
                                                      #5  0x00007f1a2fe40cc6 n/a (libc.so.6 + 0x40cc6)
                                                      #6  0x00007f1a2fe40e10 exit (libc.so.6 + 0x40e10)
                                                      #7  0x00007f1a2fe27cd7 n/a (libc.so.6 + 0x27cd7)
                                                      #8  0x00007f1a2fe27d8a __libc_start_main (libc.so.6 +>
                                                      #9  0x0000555eeb84efc5 n/a (telegram-desktop + 0xa54f>
                                                      
                                                      Stack trace of thread 11420:
                                                      #0  0x00007f1a2ff0ed6d syscall (libc.so.6 + 0x10ed6d)
                                                      #1  0x00007f1a362e1c07 g_cond_wait (libglib-2.0.so.0 >
                                                      #2  0x00007f1a36257154 n/a (libglib-2.0.so.0 + 0x2515>
                                                      #3  0x00007f1a362c125e n/a (libglib-2.0.so.0 + 0x8f25>
                                                      #4  0x00007f1a362becd5 n/a (libglib-2.0.so.0 + 0x8ccd>
                                                      #5  0x00007f1a2fe8c9eb n/a (libc.so.6 + 0x8c9eb)
                                                      #6  0x00007f1a2ff10dfc n/a (libc.so.6 + 0x110dfc)
                                                      
                                                      Stack trace of thread 11421:
                                                      #0  0x00007f1a2ff0359f __poll (libc.so.6 + 0x10359f)
                                                      #1  0x00007f1a362e9b8f n/a (libglib-2.0.so.0 + 0xb7b8>
                                                      #2  0x00007f1a3628a112 g_main_context_iteration (libg>
...skipping...
                                                      #3  0x00007f1a35906387 n/a (libdispatch.so + 0x36387)
                                                      #4  0x00007f1a2fe8c9eb n/a (libc.so.6 + 0x8c9eb)
                                                      #5  0x00007f1a2ff10dfc n/a (libc.so.6 + 0x110dfc)
                                                      
                                                      Stack trace of thread 11427:
                                                      #0  0x00007f1a2fe894ae n/a (libc.so.6 + 0x894ae)
                                                      #1  0x00007f1a2fe9476b n/a (libc.so.6 + 0x9476b)
                                                      #2  0x00007f1a3590799f n/a (libdispatch.so + 0x3799f)
                                                      #3  0x00007f1a35906387 n/a (libdispatch.so + 0x36387)
                                                      #4  0x00007f1a2fe8c9eb n/a (libc.so.6 + 0x8c9eb)
                                                      #5  0x00007f1a2ff10dfc n/a (libc.so.6 + 0x110dfc)
                                                      
                                                      Stack trace of thread 11431:
                                                      #0  0x00007f1a2ff0359f __poll (libc.so.6 + 0x10359f)
                                                      #1  0x00007f1a1d1ac8c7 n/a (libpulse.so.0 + 0x338c7)
                                                      #2  0x00007f1a1d19646c pa_mainloop_poll (libpulse.so.>
                                                      #3  0x00007f1a1d1a042c pa_mainloop_iterate (libpulse.>
                                                      #4  0x00007f1a1d1a04e1 pa_mainloop_run (libpulse.so.0>
                                                      #5  0x00007f1a1d1b0c02 n/a (libpulse.so.0 + 0x37c02)
                                                      #6  0x00007f1a1d14dc67 n/a (libpulsecommon-16.1.so + >
                                                      #7  0x00007f1a2fe8c9eb n/a (libc.so.6 + 0x8c9eb)
                                                      #8  0x00007f1a2ff10dfc n/a (libc.so.6 + 0x110dfc)
                                                      
                                                      Stack trace of thread 11440:
                                                      #0  0x00007f1a2fe894ae n/a (libc.so.6 + 0x894ae)
                                                      #1  0x00007f1a2fe9476b n/a (libc.so.6 + 0x9476b)
                                                      #2  0x00007f1a3590799f n/a (libdispatch.so + 0x3799f)
                                                      #3  0x00007f1a35906387 n/a (libdispatch.so + 0x36387)
                                                      #4  0x00007f1a2fe8c9eb n/a (libc.so.6 + 0x8c9eb)
                                                      #5  0x00007f1a2ff10dfc n/a (libc.so.6 + 0x110dfc)
                                                      ELF object binary architecture: AMD x86-64

@ilya-fedin
Copy link
Contributor

ilya-fedin commented Sep 5, 2023

@Brensom that's not what was asked. Please do what was asked: enable beta, trigger the crash, provide the crash id and send the crash report. Actually that's something the issue template asks you to do this for the Crash ID field (and with more details) which you didn't fill so your issue is invalid.

@Brensom
Copy link
Author

Brensom commented Sep 5, 2023

@ilya-fedin
I don't understand what you are talking about. I don't see the switch to the beta version in the settings. I don't see any crash-id.
If I run the application from the console, I see the following:

% telegram-desktop       
QPainter::begin: Paint device returned engine == 0, type: 2
QWidget::render: Cannot render with an inactive painter
qt.svg: Error while inflating gzip file: SVG format check failed
qt.svg: Error while inflating gzip file: SVG format check failed
qt.svg: Error while inflating gzip file: SVG format check failed
qt.svg: Error while inflating gzip file: SVG format check failed
qt.svg: Error while inflating gzip file: SVG format check failed
qt.svg: Error while inflating gzip file: SVG format check failed
qt.svg: Error while inflating gzip file: SVG format check failed
qt.svg: Error while inflating gzip file: SVG format check failed
qt.svg: Error while inflating gzip file: SVG format check failed
qt.svg: Error while inflating gzip file: SVG format check failed
qt.svg: Error while inflating gzip file: SVG format check failed
qt.svg: Error while inflating gzip file: SVG format check failed
qt.svg: Error while inflating gzip file: SVG format check failed
qt.svg: Error while inflating gzip file: SVG format check failed
qt.svg: Error while inflating gzip file: SVG format check failed
qt.svg: Error while inflating gzip file: SVG format check failed
qt.svg: Error while inflating gzip file: SVG format check failed
qt.svg: Error while inflating gzip file: SVG format check failed
qt.svg: Error while inflating gzip file: SVG format check failed
qt.svg: Error while inflating gzip file: SVG format check failed
qt.svg: Error while inflating gzip file: SVG format check failed
qt.svg: Error while inflating gzip file: SVG format check failed
qt.svg: Error while inflating gzip file: SVG format check failed
qt.gui.icc: fromIccProfile: failed minimal tag size sanity
qt.gui.imageio.jpeg: Corrupt JPEG data: premature end of data segment
qt.svg: Error while inflating gzip file: SVG format check failed
qt.svg: Error while inflating gzip file: SVG format check failed
qt.svg: Error while inflating gzip file: SVG format check failed
qt.svg: Error while inflating gzip file: SVG format check failed
qt.svg: Error while inflating gzip file: SVG format check failed
qt.svg: Error while inflating gzip file: SVG format check failed

@ilya-fedin
Copy link
Contributor

Installation source

Static binary from official website

Is this true?

@Brensom
Copy link
Author

Brensom commented Sep 5, 2023

@ilya-fedin
I don't know.

% pacman -Ss telegram
extra/telegram-desktop 4.9.4-1 [installed]
    Official Telegram Desktop client

@ilya-fedin
Copy link
Contributor

ilya-fedin commented Sep 5, 2023

You have provided false information in the issue, you're not using the binary from official website (https://desktop.telegram.org). Crash reporting is available only in that binary.

The build you're using is supported by your distro, not here. You should report to your distro bugtracker, the maintainers should do the initial investigation (confirming the issue is present on upstream build, getting a good crash trace (not the trash with n/a you provided in the issue) with the distro-provided technique, etc) and then make an upstream report with all the necessary information if it happens to be an upstream issue.

@Aokromes Aokromes closed this as completed Sep 5, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants