You are not logged in.

#1 2020-01-19 19:26:26

plitter
Member
Registered: 2010-10-07
Posts: 28

[SOLVED] Thunderbird segfaults

After upgrading to ~ 68 from 60 it has been instantly segfaulting. The reason I wasn't upgrading before is because at work we're using exchange and to get the calendar to sync I use https://github.com/ExchangeCalendar/exchangecalendar.

$ thunderbird
Segmentation fault (core dumped)
$ thunderbird --safe-mode
Segmentation fault (core dumped)

I also found this in journalctl

Jan 19 19:38:15 ITPC118 systemd-coredump[611589]: Process 611568 (thunderbird) of user 1000 dumped core.
                                                  
                                                  Stack trace of thread 611568:
                                                  #0  0x00007fb1f3a057b5 raise (libpthread.so.0 + 0x147b5)
                                                  #1  0x00007fb1eefb5013 n/a (libxul.so + 0x3d8a013)
                                                  #2  0x00007fb1ef8457a1 n/a (libxul.so + 0x461a7a1)
                                                  #3  0x00007fb1f3a05930 __restore_rt (libpthread.so.0 + 0x14930)
                                                  #4  0x00007fb1ec4d2dd0 n/a (libxul.so + 0x12a7dd0)
                                                  #5  0x00007fb1ebe4ca4d n/a (libxul.so + 0xc21a4d)
                                                  #6  0x00007fb1ebe561bf n/a (libxul.so + 0xc2b1bf)
                                                  #7  0x00007fb1ebe52e24 n/a (libxul.so + 0xc27e24)
                                                  #8  0x00007fb1ebe58561 n/a (libxul.so + 0xc2d561)
                                                  #9  0x00007fb1ebdef180 n/a (libxul.so + 0xbc4180)
                                                  #10 0x00007fb1edae97db n/a (libxul.so + 0x28be7db)
                                                  #11 0x00007fb1ee35224d n/a (libxul.so + 0x312724d)
                                                  #12 0x00007fb1ee35201f n/a (libxul.so + 0x312701f)
                                                  #13 0x00007fb1ebe534d6 n/a (libxul.so + 0xc284d6)
                                                  #14 0x00007fb1ebe822e7 n/a (libxul.so + 0xc572e7)
                                                  #15 0x00007fb1eefc61cf n/a (libxul.so + 0x3d9b1cf)
                                                  #16 0x00007fb1eefc66a5 n/a (libxul.so + 0x3d9b6a5)
                                                  #17 0x000056056fc3ebac n/a (thunderbird + 0x6bac)
                                                  #18 0x00007fb1f3502153 __libc_start_main (libc.so.6 + 0x27153)
                                                  #19 0x000056056fc3e6de _start (thunderbird + 0x66de)
                                                  
                                                  Stack trace of thread 611577:
                                                  #0  0x00007fb1f3a00c45 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xfc45)
                                                  #1  0x000056056fc4924a _ZN7mozilla6detail21ConditionVariableImpl8wait_forERNS0_9MutexImplERKNS_16BaseTimeDurationINS_27TimeDurationValueCalculatorEEE (thunderbird + 0x1124a)
                                                  #2  0x00007fb1ef1d49ea n/a (libxul.so + 0x3fa99ea)
                                                  #3  0x00007fb1ef1e0b0a n/a (libxul.so + 0x3fb5b0a)
                                                  #4  0x00007fb1f39fa4cf start_thread (libpthread.so.0 + 0x94cf)
                                                  #5  0x00007fb1f35da2d3 __clone (libc.so.6 + 0xff2d3)
                                                  
                                                  Stack trace of thread 611574:
                                                  #0  0x00007fb1f3a00c45 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xfc45)
                                                  #1  0x000056056fc4924a _ZN7mozilla6detail21ConditionVariableImpl8wait_forERNS0_9MutexImplERKNS_16BaseTimeDurationINS_27TimeDurationValueCalculatorEEE (thunderbird + 0x1124a)
                                                  #2  0x00007fb1ef1d49ea n/a (libxul.so + 0x3fa99ea)
                                                  #3  0x00007fb1ef1e0b0a n/a (libxul.so + 0x3fb5b0a)
                                                  #4  0x00007fb1f39fa4cf start_thread (libpthread.so.0 + 0x94cf)
                                                  #5  0x00007fb1f35da2d3 __clone (libc.so.6 + 0xff2d3)
                                                  
                                                  Stack trace of thread 611575:
                                                  #0  0x00007fb1f3a00c45 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xfc45)
                                                  #1  0x000056056fc4924a _ZN7mozilla6detail21ConditionVariableImpl8wait_forERNS0_9MutexImplERKNS_16BaseTimeDurationINS_27TimeDurationValueCalculatorEEE (thunderbird + 0x1124a)
                                                  #2  0x00007fb1ef1d49ea n/a (libxul.so + 0x3fa99ea)
                                                  #3  0x00007fb1ef1e0b0a n/a (libxul.so + 0x3fb5b0a)
                                                  #4  0x00007fb1f39fa4cf start_thread (libpthread.so.0 + 0x94cf)
                                                  #5  0x00007fb1f35da2d3 __clone (libc.so.6 + 0xff2d3)
                                                  
                                                  Stack trace of thread 611573:
                                                  #0  0x00007fb1f3a00f7a pthread_cond_timedwait@@GLIBC_2.3.2 (libpthread.so.0 + 0xff7a)
                                                  #1  0x00007fb1f3478207 n/a (libnspr4.so + 0x24207)
                                                  #2  0x00007fb1f34786cd PR_WaitCondVar (libnspr4.so + 0x246cd)
                                                  #3  0x00007fb1ec48d1ea n/a (libxul.so + 0x12621ea)
                                                  #4  0x00007fb1f347e4e8 n/a (libnspr4.so + 0x2a4e8)
                                                  #5  0x00007fb1f39fa4cf start_thread (libpthread.so.0 + 0x94cf)
                                                  #6  0x00007fb1f35da2d3 __clone (libc.so.6 + 0xff2d3)
                                                  
                                                  Stack trace of thread 611572:
                                                  #0  0x00007fb1f35d4e9d syscall (libc.so.6 + 0xf9e9d)
                                                  #1  0x00007fb1ec18a9f0 n/a (libxul.so + 0xf5f9f0)
                                                  #2  0x00007fb1ec18d0f3 n/a (libxul.so + 0xf620f3)
                                                  #3  0x00007fb1ec17d0d9 n/a (libxul.so + 0xf520d9)
                                                  #4  0x00007fb1ec17ba28 n/a (libxul.so + 0xf50a28)
                                                  #5  0x00007fb1ec1841b4 n/a (libxul.so + 0xf591b4)
                                                  #6  0x00007fb1ec180ce7 n/a (libxul.so + 0xf55ce7)
                                                  #7  0x00007fb1f39fa4cf start_thread (libpthread.so.0 + 0x94cf)
                                                  #8  0x00007fb1f35da2d3 __clone (libc.so.6 + 0xff2d3)
                                                  
                                                  Stack trace of thread 611576:
                                                  #0  0x00007fb1f3a00c45 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xfc45)
                                                  #1  0x000056056fc4924a _ZN7mozilla6detail21ConditionVariableImpl8wait_forERNS0_9MutexImplERKNS_16BaseTimeDurationINS_27TimeDurationValueCalculatorEEE (thunderbird + 0x1124a)
                                                  #2  0x00007fb1ef1d49ea n/a (libxul.so + 0x3fa99ea)
                                                  #3  0x00007fb1ef1e0b0a n/a (libxul.so + 0x3fb5b0a)
                                                  #4  0x00007fb1f39fa4cf start_thread (libpthread.so.0 + 0x94cf)
                                                  #5  0x00007fb1f35da2d3 __clone (libc.so.6 + 0xff2d3)
                                                  
                                                  Stack trace of thread 611587:
                                                  #0  0x00007fb1f35d4e9d syscall (libc.so.6 + 0xf9e9d)
                                                  #1  0x00007fb1efde96ed n/a (libxul.so + 0x4bbe6ed)
                                                  #2  0x00007fb1efde9347 n/a (libxul.so + 0x4bbe347)
                                                  #3  0x00007fb1efb2fb8e n/a (libxul.so + 0x4904b8e)
                                                  #4  0x00007fb1efb31868 n/a (libxul.so + 0x4906868)
                                                  #5  0x00007fb1f39fa4cf start_thread (libpthread.so.0 + 0x94cf)
                                                  #6  0x00007fb1f35da2d3 __clone (libc.so.6 + 0xff2d3)
                                                  
                                                  Stack trace of thread 611584:
                                                  #0  0x00007fb1f3a00c45 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xfc45)
                                                  #1  0x00007fb1efde4faf n/a (libxul.so + 0x4bb9faf)
                                                  #2  0x00007fb1efde17c2 n/a (libxul.so + 0x4bb67c2)
                                                  #3  0x00007fb1efde0d4b n/a (libxul.so + 0x4bb5d4b)
                                                  #4  0x00007fb1ef8f2984 n/a (libxul.so + 0x46c7984)
                                                  #5  0x00007fb1ef8f17cc n/a (libxul.so + 0x46c67cc)
                                                  #6  0x00007fb1efb2fb8e n/a (libxul.so + 0x4904b8e)
                                                  #7  0x00007fb1efb31868 n/a (libxul.so + 0x4906868)
                                                  #8  0x00007fb1f39fa4cf start_thread (libpthread.so.0 + 0x94cf)
                                                  #9  0x00007fb1f35da2d3 __clone (libc.so.6 + 0xff2d3)
                                                  
                                                  Stack trace of thread 611581:
                                                  #0  0x00007fb1f3a00c45 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xfc45)
                                                  #1  0x000056056fc4924a _ZN7mozilla6detail21ConditionVariableImpl8wait_forERNS0_9MutexImplERKNS_16BaseTimeDurationINS_27TimeDurationValueCalculatorEEE (thunderbird + 0x1124a)
                                                  #2  0x00007fb1ef1d49ea n/a (libxul.so + 0x3fa99ea)
                                                  #3  0x00007fb1ef1e0b0a n/a (libxul.so + 0x3fb5b0a)
                                                  #4  0x00007fb1f39fa4cf start_thread (libpthread.so.0 + 0x94cf)
                                                  #5  0x00007fb1f35da2d3 __clone (libc.so.6 + 0xff2d3)
                                                  
                                                  Stack trace of thread 611586:
                                                  #0  0x00007fb1f3a00c45 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xfc45)
                                                  #1  0x00007fb1efde4faf n/a (libxul.so + 0x4bb9faf)
                                                  #2  0x00007fb1efde17c2 n/a (libxul.so + 0x4bb67c2)
                                                  #3  0x00007fb1efde0d4b n/a (libxul.so + 0x4bb5d4b)
                                                  #4  0x00007fb1ef8f2984 n/a (libxul.so + 0x46c7984)
                                                  #5  0x00007fb1ef8f17cc n/a (libxul.so + 0x46c67cc)
                                                  #6  0x00007fb1efb2fb8e n/a (libxul.so + 0x4904b8e)
                                                  #7  0x00007fb1efb31868 n/a (libxul.so + 0x4906868)
                                                  #8  0x00007fb1f39fa4cf start_thread (libpthread.so.0 + 0x94cf)
                                                  #9  0x00007fb1f35da2d3 __clone (libc.so.6 + 0xff2d3)
                                                  
                                                  Stack trace of thread 611579:
                                                  #0  0x00007fb1f3a00c45 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xfc45)
                                                  #1  0x000056056fc4924a _ZN7mozilla6detail21ConditionVariableImpl8wait_forERNS0_9MutexImplERKNS_16BaseTimeDurationINS_27TimeDurationValueCalculatorEEE (thunderbird + 0x1124a)
                                                  #2  0x00007fb1ef1d49ea n/a (libxul.so + 0x3fa99ea)
                                                  #3  0x00007fb1ef1e0b0a n/a (libxul.so + 0x3fb5b0a)
                                                  #4  0x00007fb1f39fa4cf start_thread (libpthread.so.0 + 0x94cf)
                                                  #5  0x00007fb1f35da2d3 __clone (libc.so.6 + 0xff2d3)
                                                  
                                                  Stack trace of thread 611582:
                                                  #0  0x00007fb1f35cf9ef __poll (libc.so.6 + 0xf49ef)
                                                  #1  0x00007fb1ec0f6f50 n/a (libxul.so + 0xecbf50)
                                                  #2  0x00007fb1ebe6a1f2 n/a (libxul.so + 0xc3f1f2)
                                                  #3  0x00007fb1ebe6be66 n/a (libxul.so + 0xc40e66)
                                                  #4  0x00007fb1ec1afafa n/a (libxul.so + 0xf84afa)
                                                  #5  0x00007fb1ec17ba28 n/a (libxul.so + 0xf50a28)
                                                  #6  0x00007fb1ebe68405 n/a (libxul.so + 0xc3d405)
                                                  #7  0x00007fb1f347e4e8 n/a (libnspr4.so + 0x2a4e8)
                                                  #8  0x00007fb1f39fa4cf start_thread (libpthread.so.0 + 0x94cf)
                                                  #9  0x00007fb1f35da2d3 __clone (libc.so.6 + 0xff2d3)
                                                  
                                                  Stack trace of thread 611578:
                                                  #0  0x00007fb1f3a00c45 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xfc45)
                                                  #1  0x000056056fc4924a _ZN7mozilla6detail21ConditionVariableImpl8wait_forERNS0_9MutexImplERKNS_16BaseTimeDurationINS_27TimeDurationValueCalculatorEEE (thunderbird + 0x1124a)
                                                  #2  0x00007fb1ef1d49ea n/a (libxul.so + 0x3fa99ea)
                                                  #3  0x00007fb1ef1e0b0a n/a (libxul.so + 0x3fb5b0a)
                                                  #4  0x00007fb1f39fa4cf start_thread (libpthread.so.0 + 0x94cf)
                                                  #5  0x00007fb1f35da2d3 __clone (libc.so.6 + 0xff2d3)
                                                  
                                                  Stack trace of thread 611583:
                                                  #0  0x00007fb1f35cf9ef __poll (libc.so.6 + 0xf49ef)
                                                  #1  0x00007fb1f347a1bf n/a (libnspr4.so + 0x261bf)
                                                  #2  0x00007fb1ebf24012 n/a (libxul.so + 0xcf9012)
                                                  #3  0x00007fb1ebf25dd1 n/a (libxul.so + 0xcfadd1)
                                                  #4  0x00007fb1ebf2525b n/a (libxul.so + 0xcfa25b)
                                                  #5  0x00007fb1ebf2606a n/a (libxul.so + 0xcfb06a)
                                                  #6  0x00007fb1ebe6a1f2 n/a (libxul.so + 0xc3f1f2)
                                                  #7  0x00007fb1ebe6be66 n/a (libxul.so + 0xc40e66)
                                                  #8  0x00007fb1ec1afafa n/a (libxul.so + 0xf84afa)
                                                  #9  0x00007fb1ec17ba28 n/a (libxul.so + 0xf50a28)
                                                  #10 0x00007fb1ebe68405 n/a (libxul.so + 0xc3d405)
                                                  #11 0x00007fb1f347e4e8 n/a (libnspr4.so + 0x2a4e8)
                                                  #12 0x00007fb1f39fa4cf start_thread (libpthread.so.0 + 0x94cf)
                                                  #13 0x00007fb1f35da2d3 __clone (libc.so.6 + 0xff2d3)
                                                  
                                                  Stack trace of thread 611580:
                                                  #0  0x00007fb1f3a00c45 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xfc45)
                                                  #1  0x000056056fc4924a _ZN7mozilla6detail21ConditionVariableImpl8wait_forERNS0_9MutexImplERKNS_16BaseTimeDurationINS_27TimeDurationValueCalculatorEEE (thunderbird + 0x1124a)
                                                  #2  0x00007fb1ef1d49ea n/a (libxul.so + 0x3fa99ea)
                                                  #3  0x00007fb1ef1e0b0a n/a (libxul.so + 0x3fb5b0a)
                                                  #4  0x00007fb1f39fa4cf start_thread (libpthread.so.0 + 0x94cf)
                                                  #5  0x00007fb1f35da2d3 __clone (libc.so.6 + 0xff2d3)
                                                  
                                                  Stack trace of thread 611585:
                                                  #0  0x00007fb1f35d4e9d syscall (libc.so.6 + 0xf9e9d)
                                                  #1  0x00007fb1efde96ed n/a (libxul.so + 0x4bbe6ed)
                                                  #2  0x00007fb1efde9347 n/a (libxul.so + 0x4bbe347)
                                                  #3  0x00007fb1efb2fb8e n/a (libxul.so + 0x4904b8e)
                                                  #4  0x00007fb1efb31868 n/a (libxul.so + 0x4906868)
                                                  #5  0x00007fb1f39fa4cf start_thread (libpthread.so.0 + 0x94cf)
                                                  #6  0x00007fb1f35da2d3 __clone (libc.so.6 + 0xff2d3)
Jan 19 19:38:15 ITPC118 systemd[1]: systemd-coredump@2-611588-0.service: Succeeded.

I've asked in the IRC channel before and people where suggesting (it has been a while, so from what I remember):

  • Some GDK variable

  • Strace were given, but they couldn't see what happened

  • I tried making a gdb trace, but I didn't manage to build thunderbird with the debug symbols

I'm going to try again and add the output here, have added !strip and debug to the options in the PKGCONFIG. It failed and trying with extra-x86_64-build now smile

[EDIT] http://ix.io/27QB output of the build... which didn't really help much

[EDIT 2] I've added a bug report to thunderbird as well, https://bugzilla.mozilla.org/show_bug.cgi?id=1610460

Last edited by plitter (2020-01-23 23:06:04)

Offline

#2 2020-01-19 20:06:18

eschwartz
Trusted User/Bug Wrangler
Registered: 2014-08-08
Posts: 3,022

Re: [SOLVED] Thunderbird segfaults

You can acquire gtk3/glib2 debug symbols from the prebuilt packages described here: https://wiki.archlinux.org/index.php/De … Gtk3/glib2

Mozilla's debug symbol server can be used for symbols for the repository thunderbird/firefox packages. See the following instructions: https://developer.mozilla.org/en-US/doc … x_Mac_OS_X


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#3 2020-01-19 20:34:22

loqs
Member
Registered: 2014-03-06
Posts: 9,790

Re: [SOLVED] Thunderbird segfaults

eschwartz's solution is certainly better,  for completeness you can drop the option clang does not support with:

DEBUG_CFLAGS=${DEBUG_CFLAGS/-fvar-tracking-assignments/}
DEBUG_CXXFLAGS=${DEBUG_CXXFLAGS/-fvar-tracking-assignments/}

Offline

#4 2020-01-20 09:24:37

plitter
Member
Registered: 2010-10-07
Posts: 28

Re: [SOLVED] Thunderbird segfaults

@eschwartz thanks for this. I installed the gtk3-debug and glib2-debug. Then I downloaded the symbols.py that was listed in developer link and did

$ gdb
GNU gdb (GDB) 8.3.1
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word".
(gdb) source symbols.py
(gdb) exec /usr/lib/thunderbird/thunderbird
(gdb) run
Starting program: /usr/lib/thunderbird/thunderbird
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
/usr/lib/../share/gcc-9.2.0/python/libstdcxx/v6/xmethods.py:731: SyntaxWarning: list indices must be integers or slices, not str; perhaps you missed a comma?
  refcounts = ['_M_refcount']['_M_pi']
[Detaching after fork from child process 45492]
[New Thread 0x7fffecf48700 (LWP 45526)]
[Thread 0x7fffecf48700 (LWP 45526) exited]
[Detaching after fork from child process 45527]
[New Thread 0x7fffebf71700 (LWP 45528)]
[New Thread 0x7fffec118700 (LWP 45529)]
[New Thread 0x7fffe8bff700 (LWP 45530)]
[New Thread 0x7fffe8a00700 (LWP 45531)]
[New Thread 0x7fffe8801700 (LWP 45532)]
[New Thread 0x7fffe8602700 (LWP 45533)]
[New Thread 0x7fffe8403700 (LWP 45534)]
[New Thread 0x7fffe8204700 (LWP 45535)]
[New Thread 0x7fffe8005700 (LWP 45536)]
[New Thread 0x7fffe7e06700 (LWP 45537)]
[New Thread 0x7fffe8e44700 (LWP 45538)]
[New Thread 0x7fffe7c07700 (LWP 45539)]
[New Thread 0x7fffecf48700 (LWP 45540)]
[New Thread 0x7fffe74ff700 (LWP 45541)]
[New Thread 0x7fffe72fe700 (LWP 45542)]
[New Thread 0x7fffe70fd700 (LWP 45543)]

Thread 1 "thunderbird" received signal SIGSEGV, Segmentation fault.
0x00007ffff0a50dd0 in ?? () from /usr/lib/thunderbird/libxul.so

I can see that libxul is mentioned, but I don't know what to do about it....

@loqs should those be in the makefile.in? Or somewhere else when I'm building? I did a ripgrep on those terms and found that it is already set up to some extent,at least the first 4 lines.

repos/extra-x86_64/build-dir/extra-x86_64/root/etc/makepkg.conf:DEBUG_CFLAGS="-g -fvar-tracking-assignments"
repos/extra-x86_64/build-dir/extra-x86_64/root/etc/makepkg.conf:DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
repos/extra-x86_64/build-dir/extra-x86_64/plitter/etc/makepkg.conf:DEBUG_CFLAGS="-g -fvar-tracking-assignments"
repos/extra-x86_64/build-dir/extra-x86_64/plitter/etc/makepkg.conf:DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
repos/extra-x86_64/build-dir/extra-x86_64/root/usr/share/makepkg/buildenv/buildflags.sh:		unset CPPFLAGS CFLAGS DEBUG_CFLAGS CXXFLAGS DEBUG_CXXFLAGS LDFLAGS RUSTFLAGS DEBUG_RUSTFLAGS
repos/extra-x86_64/build-dir/extra-x86_64/root/usr/share/makepkg/buildenv/debugflags.sh:		DEBUG_CFLAGS+=" -fdebug-prefix-map=$srcdir=${DBGSRCDIR:-/usr/src/debug}"
repos/extra-x86_64/build-dir/extra-x86_64/root/usr/share/makepkg/buildenv/debugflags.sh:		DEBUG_CXXFLAGS+=" -fdebug-prefix-map=$srcdir=${DBGSRCDIR:-/usr/src/debug}"
repos/extra-x86_64/build-dir/extra-x86_64/root/usr/share/makepkg/buildenv/debugflags.sh:		CFLAGS+=" $DEBUG_CFLAGS"
repos/extra-x86_64/build-dir/extra-x86_64/root/usr/share/makepkg/buildenv/debugflags.sh:		CXXFLAGS+=" $DEBUG_CXXFLAGS"
repos/extra-x86_64/build-dir/extra-x86_64/root/usr/share/makepkg/lint_config/variable.sh:	local string=(CARCH CHOST CPPFLAGS CFLAGS CXXFLAGS RUSTFLAGS LDFLAGS DEBUG_CFLAGS
repos/extra-x86_64/build-dir/extra-x86_64/root/usr/share/makepkg/lint_config/variable.sh:	              DEBUG_CXXFLAGS DEBUG_RUSTFLAGS DISTCC_HOSTS BUILDDIR STRIP_BINARIES
repos/extra-x86_64/src/thunderbird-68.4.1/build/debian-packages/python3.5-wheezy.diff:-DEBUG_CFLAGS := $(patsubst -O%,-Og,$(DPKG_CFLAGS))
repos/extra-x86_64/src/thunderbird-68.4.1/build/debian-packages/python3.5-wheezy.diff:+DEBUG_CFLAGS := $(DPKG_CFLAGS)
repos/extra-x86_64/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:DEBUG_CFLAGS='-g'
repos/extra-x86_64/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:DEBUG_CXXFLAGS='-g'
repos/extra-x86_64/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CFLAGS='-g -O0'
repos/extra-x86_64/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CXXFLAGS='-g -O0'
repos/extra-x86_64/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CFLAGS='-g'
repos/extra-x86_64/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CXXFLAGS='-g'
repos/extra-x86_64/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CFLAGS='-g'
repos/extra-x86_64/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CXXFLAGS='-g'
repos/extra-x86_64/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CFLAGS='-FS -Zi -MDd'
repos/extra-x86_64/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CXXFLAGS='-FS -Zi -MDd'
repos/extra-x86_64/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CFLAGS='/Zi /MDd'
repos/extra-x86_64/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CXXFLAGS='/Zi /MDd'
repos/extra-x86_64/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CFLAGS='/Zi'
repos/extra-x86_64/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CXXFLAGS='/Zi'
repos/extra-x86_64/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CFLAGS='-g -O0'
repos/extra-x86_64/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CXXFLAGS='-g -O0'
repos/extra-x86_64/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CFLAGS='-g -O0'
repos/extra-x86_64/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CXXFLAGS='-g -O0'
repos/extra-x86_64/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CFLAGS='-FS -Zi -MDd'
repos/extra-x86_64/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CXXFLAGS='-FS -Zi -MDd'
repos/extra-x86_64/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CFLAGS='-g -O0'
repos/extra-x86_64/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CXXFLAGS='-g -O0'
repos/extra-x86_64/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:    if test "$DEBUG_CFLAGS" != ""
repos/extra-x86_64/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        CFLAGS="$DEBUG_CFLAGS $CFLAGS"
repos/extra-x86_64/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:    if test "$DEBUG_CXXFLAGS" != ""
repos/extra-x86_64/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS"
repos/extra-x86_64/build-dir/extra-x86_64/plitter/usr/share/makepkg/buildenv/buildflags.sh:		unset CPPFLAGS CFLAGS DEBUG_CFLAGS CXXFLAGS DEBUG_CXXFLAGS LDFLAGS RUSTFLAGS DEBUG_RUSTFLAGS
repos/extra-x86_64/build-dir/extra-x86_64/plitter/usr/share/makepkg/buildenv/debugflags.sh:		DEBUG_CFLAGS+=" -fdebug-prefix-map=$srcdir=${DBGSRCDIR:-/usr/src/debug}"
repos/extra-x86_64/build-dir/extra-x86_64/plitter/usr/share/makepkg/buildenv/debugflags.sh:		DEBUG_CXXFLAGS+=" -fdebug-prefix-map=$srcdir=${DBGSRCDIR:-/usr/src/debug}"
repos/extra-x86_64/build-dir/extra-x86_64/plitter/usr/share/makepkg/buildenv/debugflags.sh:		CFLAGS+=" $DEBUG_CFLAGS"
repos/extra-x86_64/build-dir/extra-x86_64/plitter/usr/share/makepkg/buildenv/debugflags.sh:		CXXFLAGS+=" $DEBUG_CXXFLAGS"
repos/extra-x86_64/build-dir/extra-x86_64/plitter/usr/share/makepkg/lint_config/variable.sh:	local string=(CARCH CHOST CPPFLAGS CFLAGS CXXFLAGS RUSTFLAGS LDFLAGS DEBUG_CFLAGS
repos/extra-x86_64/build-dir/extra-x86_64/plitter/usr/share/makepkg/lint_config/variable.sh:	              DEBUG_CXXFLAGS DEBUG_RUSTFLAGS DISTCC_HOSTS BUILDDIR STRIP_BINARIES
repos/extra-x86_64/build-dir/extra-x86_64/plitter/build/thunderbird/src/thunderbird-68.4.1/build/debian-packages/python3.5-wheezy.diff:-DEBUG_CFLAGS := $(patsubst -O%,-Og,$(DPKG_CFLAGS))
repos/extra-x86_64/build-dir/extra-x86_64/plitter/build/thunderbird/src/thunderbird-68.4.1/build/debian-packages/python3.5-wheezy.diff:+DEBUG_CFLAGS := $(DPKG_CFLAGS)
repos/extra-x86_64/build-dir/extra-x86_64/plitter/build/thunderbird/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:DEBUG_CFLAGS='-g'
repos/extra-x86_64/build-dir/extra-x86_64/plitter/build/thunderbird/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:DEBUG_CXXFLAGS='-g'
repos/extra-x86_64/build-dir/extra-x86_64/plitter/build/thunderbird/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CFLAGS='-g -O0'
repos/extra-x86_64/build-dir/extra-x86_64/plitter/build/thunderbird/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CXXFLAGS='-g -O0'
repos/extra-x86_64/build-dir/extra-x86_64/plitter/build/thunderbird/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CFLAGS='-g'
repos/extra-x86_64/build-dir/extra-x86_64/plitter/build/thunderbird/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CXXFLAGS='-g'
repos/extra-x86_64/build-dir/extra-x86_64/plitter/build/thunderbird/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CFLAGS='-g'
repos/extra-x86_64/build-dir/extra-x86_64/plitter/build/thunderbird/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CXXFLAGS='-g'
repos/extra-x86_64/build-dir/extra-x86_64/plitter/build/thunderbird/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CFLAGS='-FS -Zi -MDd'
repos/extra-x86_64/build-dir/extra-x86_64/plitter/build/thunderbird/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CXXFLAGS='-FS -Zi -MDd'
repos/extra-x86_64/build-dir/extra-x86_64/plitter/build/thunderbird/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CFLAGS='/Zi /MDd'
repos/extra-x86_64/build-dir/extra-x86_64/plitter/build/thunderbird/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CXXFLAGS='/Zi /MDd'
repos/extra-x86_64/build-dir/extra-x86_64/plitter/build/thunderbird/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CFLAGS='/Zi'
repos/extra-x86_64/build-dir/extra-x86_64/plitter/build/thunderbird/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CXXFLAGS='/Zi'
repos/extra-x86_64/build-dir/extra-x86_64/plitter/build/thunderbird/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CFLAGS='-g -O0'
repos/extra-x86_64/build-dir/extra-x86_64/plitter/build/thunderbird/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CXXFLAGS='-g -O0'
repos/extra-x86_64/build-dir/extra-x86_64/plitter/build/thunderbird/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CFLAGS='-g -O0'
repos/extra-x86_64/build-dir/extra-x86_64/plitter/build/thunderbird/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CXXFLAGS='-g -O0'
repos/extra-x86_64/build-dir/extra-x86_64/plitter/build/thunderbird/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CFLAGS='-FS -Zi -MDd'
repos/extra-x86_64/build-dir/extra-x86_64/plitter/build/thunderbird/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CXXFLAGS='-FS -Zi -MDd'
repos/extra-x86_64/build-dir/extra-x86_64/plitter/build/thunderbird/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CFLAGS='-g -O0'
repos/extra-x86_64/build-dir/extra-x86_64/plitter/build/thunderbird/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        DEBUG_CXXFLAGS='-g -O0'
repos/extra-x86_64/build-dir/extra-x86_64/plitter/build/thunderbird/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:    if test "$DEBUG_CFLAGS" != ""
repos/extra-x86_64/build-dir/extra-x86_64/plitter/build/thunderbird/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        CFLAGS="$DEBUG_CFLAGS $CFLAGS"
repos/extra-x86_64/build-dir/extra-x86_64/plitter/build/thunderbird/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:    if test "$DEBUG_CXXFLAGS" != ""
repos/extra-x86_64/build-dir/extra-x86_64/plitter/build/thunderbird/src/thunderbird-68.4.1/intl/icu/source/runConfigureICU:        CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS"

Offline

#5 2020-01-23 08:45:54

plitter
Member
Registered: 2010-10-07
Posts: 28

Re: [SOLVED] Thunderbird segfaults

I've downloaded the thunderbird from the website, extracted it and executed it. And it works, the question is now why it doesn't work on my system..... Any hints or tips is appreciated smile

Offline

#6 2020-01-23 08:48:41

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 8,677

Re: [SOLVED] Thunderbird segfaults

Your stack trace reads like the kind of issue one gets with broken CPU firmware. DId you ensure to set up https://wiki.archlinux.org/index.php/Microcode and/or update your BIOS/UEFI ? What's your CPU?

Offline

#7 2020-01-23 11:28:07

plitter
Member
Registered: 2010-10-07
Posts: 28

Re: [SOLVED] Thunderbird segfaults

I do remember doing something with the microcode, and I know that I've updated the bios way after I got the pc. (it made my computer recognize the thunderbird hub). I'll read through it and write my results.

My cpu is http://ix.io/287y.

[edit] there has been at least half a year since I did update the bios though.

[Edit]

grub-mkconfig -o /boot/grub/grub.cfg

I've already installed intel-ucode. http://ix.io/287B is the output for

dmesg | grep microcode

Last edited by plitter (2020-01-23 11:56:10)

Offline

#8 2020-01-23 12:18:32

loqs
Member
Registered: 2014-03-06
Posts: 9,790

Re: [SOLVED] Thunderbird segfaults

plitter wrote:

@loqs should those be in the makefile.in? Or somewhere else when I'm building? I did a ripgrep on those terms and found that it is already set up to some extent,at least the first 4 lines.

You add it to the PKGBUILD

diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD
index 727dccf..5457af2 100644
--- a/trunk/PKGBUILD
+++ b/trunk/PKGBUILD
@@ -17,7 +17,7 @@ depends=(gtk3 mozilla-common libxt startup-notification mime-types dbus-glib als
 makedepends=(unzip zip diffutils python python2 yasm nasm mesa imake libpulse inetutils xorg-server-xvfb
              autoconf2.13 rust clang llvm gtk2 cbindgen nodejs)
 optdepends=('libcanberra: sound support')
-options=(!emptydirs !makeflags)
+options=(!emptydirs !makeflags !strip debug)
 source=(https://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$pkgver/source/thunderbird-$pkgver.source.tar.xz{,.asc}
         $pkgname.desktop)
 sha256sums=('dc7fc4bfd9daafcfc5fd4cb743cd1cf15de2f5fe5041a6ad7015ab7b345c52b7'
@@ -37,6 +37,9 @@ _google_api_key=AIzaSyDwr302FpOSkGRpLlUpPThNTDPbXcIn_FM
 # more information.
 _mozilla_api_key=16674381-f021-49de-8622-3021c5942aff
 
+DEBUG_CFLAGS=${DEBUG_CFLAGS/-fvar-tracking-assignments/}
+DEBUG_CXXFLAGS=${DEBUG_CXXFLAGS/-fvar-tracking-assignments/}
+
 prepare() {
   cd $pkgname-$pkgver
 

You can achive the same result by amending CFLAGS and CXXFLAGS inside the build()

diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD
index 727dccf..0b461b8 100644
--- a/trunk/PKGBUILD
+++ b/trunk/PKGBUILD
@@ -17,7 +17,7 @@ depends=(gtk3 mozilla-common libxt startup-notification mime-types dbus-glib als
 makedepends=(unzip zip diffutils python python2 yasm nasm mesa imake libpulse inetutils xorg-server-xvfb
              autoconf2.13 rust clang llvm gtk2 cbindgen nodejs)
 optdepends=('libcanberra: sound support')
-options=(!emptydirs !makeflags)
+options=(!emptydirs !makeflags !strip debug)
 source=(https://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$pkgver/source/thunderbird-$pkgver.source.tar.xz{,.asc}
         $pkgname.desktop)
 sha256sums=('dc7fc4bfd9daafcfc5fd4cb743cd1cf15de2f5fe5041a6ad7015ab7b345c52b7'
@@ -89,6 +89,9 @@ END
 }
 
 build() {
+  CFLAGS=${CFLAGS/-fvar-tracking-assignments/}
+  CXXFLAGS=${CXXFLAGS/-fvar-tracking-assignments/}
+
   cd $pkgname-$pkgver
   ./mach configure
   ./mach build

Offline

#9 2020-01-23 12:39:10

plitter
Member
Registered: 2010-10-07
Posts: 28

Re: [SOLVED] Thunderbird segfaults

@loqs right, I was reading this to fast, I thought it was to add those, but what you've written is pattern substitution. My failed build makes more sense now that I see that your removing those options, I've gotten past the point where I failed, so it is probably going to be another hour or so... Thanks for the help!

Offline

#10 2020-01-23 14:29:54

plitter
Member
Registered: 2010-10-07
Posts: 28

Re: [SOLVED] Thunderbird segfaults

I've done the build now, and it was saying that I have the same thunderbird as in repo, but I guess that can be a same package version and not that the package is identical so I'm incrementing pkgrel to 2.

This is the PKGBUILD that I used http://ix.io/2884.

:: Retrieving packages...
 elfutils-0.177-2...     0.0   B  0.00   B/s 00:00 [----------------------]   0%
 elfutils-0.177-2...   326.0 KiB  4.30 MiB/s 00:00 [######################] 100%
 pyalpm-0.9.0-3-x...     0.0   B  0.00   B/s 00:00 [----------------------]   0%
 pyalpm-0.9.0-3-x...    42.6 KiB  10.4 MiB/s 00:00 [######################] 100%
 python-pyelftool...     0.0   B  0.00   B/s 00:00 [----------------------]   0%
 python-pyelftool...   185.3 KiB  9.05 MiB/s 00:00 [######################] 100%
 namcap-3.2.10-1-any     0.0   B  0.00   B/s 00:00 [----------------------]   0%
 namcap-3.2.10-1-any    90.3 KiB  14.7 MiB/s 00:00 [######################] 100%
(0/5) checking keys in keyring                     [----------------------]   0%
(1/5) checking keys in keyring                     [####------------------]  20%
(2/5) checking keys in keyring                     [########--------------]  40%
(3/5) checking keys in keyring                     [#############---------]  60%
(4/5) checking keys in keyring                     [#################-----]  80%
(5/5) checking keys in keyring                     [######################] 100%
(0/5) checking package integrity                   [----------------------]   0%
(1/5) checking package integrity                   [#---------------------]   5%
(2/5) checking package integrity                   [###-------------------]  15%
(3/5) checking package integrity                   [#############---------]  61%
(4/5) checking package integrity                   [###################---]  87%
(5/5) checking package integrity                   [######################] 100%
(0/5) loading package files                        [----------------------]   0%
(1/5) loading package files                        [#---------------------]   5%
(2/5) loading package files                        [###-------------------]  15%
(3/5) loading package files                        [#############---------]  61%
(4/5) loading package files                        [###################---]  87%
(5/5) loading package files                        [######################] 100%
(0/5) checking for file conflicts                  [----------------------]   0%
(1/5) checking for file conflicts                  [####------------------]  20%
(2/5) checking for file conflicts                  [########--------------]  40%
(3/5) checking for file conflicts                  [#############---------]  60%
(4/5) checking for file conflicts                  [#################-----]  80%
(5/5) checking for file conflicts                  [######################] 100%
:: Processing package changes...
(1/5) installing pyalpm                            [----------------------]   0%
(1/5) installing pyalpm                            [######################] 100%
(2/5) installing licenses                          [----------------------]   0%
(2/5) installing licenses                          [######################] 100%
(3/5) installing elfutils                          [----------------------]   0%
(3/5) installing elfutils                          [######################] 100%
(4/5) installing python-pyelftools                 [----------------------]   0%
(4/5) installing python-pyelftools                 [######################] 100%
(5/5) installing namcap                            [----------------------]   0%
(5/5) installing namcap                            [######################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
Checking PKGBUILD
Checking thunderbird-68.4.1-1-x86_64.pkg.tar.zst
thunderbird W: Referenced library 'libmozsandbox.so' is an uninstalled dependency
thunderbird W: Referenced library 'libprldap60.so' is an uninstalled dependency
thunderbird W: Referenced library 'libldap60.so' is an uninstalled dependency
thunderbird W: Referenced library 'libmozwayland.so' is an uninstalled dependency
thunderbird W: Referenced library 'libmozgtk.so' is an uninstalled dependency
thunderbird W: Referenced library 'libxul.so' is an uninstalled dependency
thunderbird W: Referenced library 'liblgpllibs.so' is an uninstalled dependency
thunderbird E: Symlink (usr/lib/thunderbird/dictionaries) points to non-existing /usr/share/hunspell
thunderbird E: Symlink (usr/lib/thunderbird/hyphenation) points to non-existing /usr/share/hyphen
thunderbird W: Unused shared library '/usr/lib/libpthread.so.0' by file ('usr/lib/thunderbird/gtk2/libmozgtk.so')
thunderbird W: Unused shared library '/usr/lib/libgtk-x11-2.0.so.0' by file ('usr/lib/thunderbird/gtk2/libmozgtk.so')
thunderbird W: Unused shared library '/usr/lib/libgdk-x11-2.0.so.0' by file ('usr/lib/thunderbird/gtk2/libmozgtk.so')
thunderbird W: Unused shared library '/usr/lib/libpthread.so.0' by file ('usr/lib/thunderbird/libldif60.so')
thunderbird W: Unused shared library '/usr/lib/libpthread.so.0' by file ('usr/lib/thunderbird/liblgpllibs.so')
thunderbird W: Unused shared library '/usr/lib/libstdc++.so.6' by file ('usr/lib/thunderbird/liblgpllibs.so')
thunderbird W: Unused shared library '/usr/lib/libpthread.so.0' by file ('usr/lib/thunderbird/libmozgtk.so')
thunderbird W: Unused shared library '/usr/lib/libgtk-3.so.0' by file ('usr/lib/thunderbird/libmozgtk.so')
thunderbird W: Unused shared library '/usr/lib/libgdk-3.so.0' by file ('usr/lib/thunderbird/libmozgtk.so')
thunderbird W: Unused shared library '/usr/lib/libpthread.so.0' by file ('usr/lib/thunderbird/libmozwayland.so')
thunderbird W: Unused shared library '/usr/lib/libpthread.so.0' by file ('usr/lib/thunderbird/libprldap60.so')
thunderbird E: Dependency gtk2 detected and not included (libraries ['usr/lib/libgdk-x11-2.0.so.0', 'usr/lib/libgtk-x11-2.0.so.0'] needed in files ['usr/lib/thunderbird/gtk2/libmozgtk.so'])
thunderbird W: Dependency included and not needed ('mozilla-common')
thunderbird W: Dependency alsa-lib included but already satisfied
thunderbird W: Dependency included and not needed ('hunspell')
thunderbird W: Dependency sqlite included but already satisfied
thunderbird W: Dependency icu included but already satisfied
==> Running checkpkg
:: Synchronizing package databases...
downloading core.db...
downloading extra.db...
downloading community.db...
downloading eschwartz.db...
downloading eschwartz.db.sig...
downloading multilib.db...
  -> Checking packages
==> ERROR: The built package (thunderbird) is the one in the repo right now!

I built it again and the build was successful this time. I installed it with

sudo pacman -U thunderbird-68.4.1-2-x86_64.pkg.tar.zst

and tried running it and it segfaults.

strace thunderbird

: http://ix.io/288f
GDB:

$ gdb /usr/lib/thunderbird/thunderbird
GNU gdb (GDB) 8.3.1
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/lib/thunderbird/thunderbird...
(No debugging symbols found in /usr/lib/thunderbird/thunderbird)
(gdb) source symbols.py
(gdb) start
Function "main" not defined.
Make breakpoint pending on future shared library load? (y or [n]) n
Starting program: /usr/lib/thunderbird/thunderbird
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
/usr/lib/../share/gcc-9.2.0/python/libstdcxx/v6/xmethods.py:731: SyntaxWarning: list indices must be integers or slices, not str; perhaps you missed
a comma?
  refcounts = ['_M_refcount']['_M_pi']
[Detaching after fork from child process 175700]
[New Thread 0x7fffecf50700 (LWP 175734)]
[Thread 0x7fffecf50700 (LWP 175734) exited]
[Detaching after fork from child process 175735]
[New Thread 0x7fffebf71700 (LWP 175736)]
[New Thread 0x7fffec120700 (LWP 175737)]
[New Thread 0x7fffe8bff700 (LWP 175738)]
[New Thread 0x7fffe8a00700 (LWP 175739)]
[New Thread 0x7fffe8801700 (LWP 175740)]
[New Thread 0x7fffe8602700 (LWP 175741)]
[New Thread 0x7fffe8403700 (LWP 175742)]
[New Thread 0x7fffe8204700 (LWP 175743)]
[New Thread 0x7fffe8005700 (LWP 175744)]
[New Thread 0x7fffe7e06700 (LWP 175745)]
[New Thread 0x7fffe8e43700 (LWP 175746)]
[New Thread 0x7fffe7c07700 (LWP 175747)]
[New Thread 0x7fffecf50700 (LWP 175748)]
[New Thread 0x7fffe74ff700 (LWP 175749)]
[New Thread 0x7fffe72fe700 (LWP 175750)]
[New Thread 0x7fffe70fd700 (LWP 175751)]

Thread 1 "thunderbird" received signal SIGSEGV, Segmentation fault.
0x00007ffff0a58dd0 in ?? () from /usr/lib/thunderbird/libxul.so
(gdb)

journalctl: http://ix.io/288h

any hints on what I should do now?

Offline

#11 2020-01-23 15:18:52

loqs
Member
Registered: 2014-03-06
Posts: 9,790

Re: [SOLVED] Thunderbird segfaults

From the gdb prompt 'thread apply all bt'

Offline

#12 2020-01-23 16:42:42

plitter
Member
Registered: 2010-10-07
Posts: 28

Re: [SOLVED] Thunderbird segfaults

@loqs, thanks. This is the output http://ix.io/288Y

Offline

#13 2020-01-23 20:42:33

loqs
Member
Registered: 2014-03-06
Posts: 9,790

Re: [SOLVED] Thunderbird segfaults

Unfortunately libxul.so is still being stripped.  Does the second link eschwartz provided in post #2 not work to obtain the symbols?
Is the testing repository enabled https://bugs.archlinux.org/task/65248 ?

Offline

#14 2020-01-23 21:12:42

eschwartz
Trusted User/Bug Wrangler
Registered: 2014-08-08
Posts: 3,022

Re: [SOLVED] Thunderbird segfaults

loqs wrote:

Unfortunately libxul.so is still being stripped.

I think ./mach buildsymbols in build() does this... it also creates a zip file containing the symbols for upload to the mozilla symbol server, though.


loqs wrote:

Does the second link eschwartz provided in post #2 not work to obtain the symbols?
Is the testing repository enabled https://bugs.archlinux.org/task/65248 ?

Assuming that the zip created by ./mach buildsymbols is uploaded to Mozilla by @anthraxx after the official repo package is built, it should work.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#15 2020-01-23 22:38:27

plitter
Member
Registered: 2010-10-07
Posts: 28

Re: [SOLVED] Thunderbird segfaults

Ok, your second link made me think, I did install lxd before and sqlite was in the dependency, but a special version, so the current version I have is

$ sqlite3 --version
3.25.3 2018-11-05 20:37:38 89e099fbe5e13c33e683bef07361231ca525b88f7907be7092058007b750alt1

I updated to the repo version

$ sqlite3 --version
3.30.1 2019-10-10 20:19:45 18db032d058f1436ce3dea84081f4ee5a0f2259ad97301d43c426bc7f3df1b0b

and thunderbird works now big_smile Thank you so much!

Offline

#16 2020-01-23 22:45:54

eschwartz
Trusted User/Bug Wrangler
Registered: 2014-08-08
Posts: 3,022

Re: [SOLVED] Thunderbird segfaults

plitter wrote:

Ok, your second link made me think, I did install lxd before and sqlite was in the dependency, but a special version, so the current version I have is

$ sqlite3 --version
3.25.3 2018-11-05 20:37:38 89e099fbe5e13c33e683bef07361231ca525b88f7907be7092058007b750alt1

I updated to the repo version

$ sqlite3 --version
3.30.1 2019-10-10 20:19:45 18db032d058f1436ce3dea84081f4ee5a0f2259ad97301d43c426bc7f3df1b0b

and thunderbird works now big_smile Thank you so much!

That sounds... very bad.

The current AUR package for lxd doesn't depend on any sort of special version of sqlite, so what exactly did *you* do?


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#17 2020-01-23 23:26:16

plitter
Member
Registered: 2010-10-07
Posts: 28

Re: [SOLVED] Thunderbird segfaults

eschwartz wrote:

That sounds... very bad.

The current AUR package for lxd doesn't depend on any sort of special version of sqlite, so what exactly did *you* do?

It is a "long" time ago... I remember having abit to do to get it working. It required dqlite and that required sql-replication which had 3.25 at the time. From what I could piece together of what I had to uninstall. sqlite is from 2018-11.

Offline

#18 2020-01-24 17:48:10

Arctus
Member
Registered: 2012-07-14
Posts: 91

Re: [SOLVED] Thunderbird segfaults

I also ran into this issue. Turns out it is a bug in sqlite-3.31, in testing, at least according to https://bugs.debian.org/cgi-bin/bugrepo … bug=949647 .
Regardless, downgrading to sqlite-3.30 fixed the issue.

Last edited by Arctus (2020-01-24 17:48:53)

Offline

#19 2020-01-27 10:15:04

figue
Member
Registered: 2007-12-16
Posts: 51

Re: [SOLVED] Thunderbird segfaults

Arctus wrote:

I also ran into this issue. Turns out it is a bug in sqlite-3.31, in testing, at least according to https://bugs.debian.org/cgi-bin/bugrepo … bug=949647 .
Regardless, downgrading to sqlite-3.30 fixed the issue.

Thank you! I have cleaned my profile because I thought was corrupted... but no. This fixed the issue for now:

sudo pacman -U https://archive.archlinux.org/repos/2020/01/26/core/os/x86_64/sqlite-3.30.1-2-x86_64.pkg.tar.xz 

Last edited by figue (2020-01-27 10:15:19)

Offline

Board footer

Powered by FluxBB