Bug#972928: claws-mail: Crash when attempted to enter IMAP folder
Dear Maintainer, I just came across this report and want to note that since ASLR got quite common the addr2line method is unreliable. Therefore I want to point to here [1], were another method is described to find out the source line where a crash happened. Attached file contains this exercised for the given output in the first message. This would point to [3], folderview.c, line 2339. The most convenient way I guess is to install a coredump collector, and inspect that after a crash like in [2] you already mentioned. Kind regards, Bernhard [1] https://wiki.debian.org/InterpretingKernelOutputAtProcessCrash [2] https://wiki.debian.org/HowToGetABacktrace [3] https://sources.debian.org/src/claws-mail/3.17.3-2/src/folderview.c/#L2339 dmesg: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=972928#5 [Mon Oct 26 10:23:55 2020] claws-mail[1879911]: segfault at 1f ip 004a35bd sp 7ffe5872a4e0 error 4 in claws-mail[442000+23] [Mon Oct 26 10:23:55 2020] Code: 30 85 c0 0f 84 a4 02 00 00 c7 05 3e f6 2e 00 00 00 00 00 31 f6 48 89 df e8 c0 fc ff ff 49 8b 84 24 88 00 00 00 48 85 c0 74 19 <48> 8b 00 31 f6 83 38 04 48 8b 43 50 40 0f 94 c6 48 8b 78 30 e8 5a https://wiki.debian.org/InterpretingKernelOutputAtProcessCrash 0: no page found 0: read access 1: user-mode access benutzer@debian:~$ echo -n "find /b ..., ..., 0x" && \ > echo "30 85 c0 0f 84 a4 02 00 00 c7 05 3e f6 2e 00 00 00 00 00 31 f6 48 89 df > e8 c0 fc ff ff 49 8b 84 24 88 00 00 00 48 85 c0 74 19 <48> 8b 00 31 f6 83 38 > 04 48 8b 43 50 40 0f 94 c6 48 8b 78 30 e8 5a" \ > | sed 's/[<>]//g' | sed 's/ /, 0x/g' find /b ..., ..., 0x30, 0x85, 0xc0, 0x0f, 0x84, 0xa4, 0x02, 0x00, 0x00, 0xc7, 0x05, 0x3e, 0xf6, 0x2e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x31, 0xf6, 0x48, 0x89, 0xdf, 0xe8, 0xc0, 0xfc, 0xff, 0xff, 0x49, 0x8b, 0x84, 0x24, 0x88, 0x00, 0x00, 0x00, 0x48, 0x85, 0xc0, 0x74, 0x19, 0x48, 0x8b, 0x00, 0x31, 0xf6, 0x83, 0x38, 0x04, 0x48, 0x8b, 0x43, 0x50, 0x40, 0x0f, 0x94, 0xc6, 0x48, 0x8b, 0x78, 0x30, 0xe8, 0x5a benutzer@debian:~$ # Buster/stable amd64 qemu VM 2020-11-02 apt update apt dist-ugprade apt install systemd-coredump gdb claws-mail claws-mail-dbgsym gdb -q set width 0 set pagination off file /usr/bin/claws-mail tb main run info target 0x00448cb0 - 0x006715b1 is .text (gdb) find /b 0x00448cb0, 0x006715b1, 0x30, 0x85, 0xc0, 0x0f, 0x84, 0xa4, 0x02, 0x00, 0x00, 0xc7, 0x05, 0x3e, 0xf6, 0x2e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x31, 0xf6, 0x48, 0x89, 0xdf, 0xe8, 0xc0, 0xfc, 0xff, 0xff, 0x49, 0x8b, 0x84, 0x24, 0x88, 0x00, 0x00, 0x00, 0x48, 0x85, 0xc0, 0x74, 0x19, 0x48, 0x8b, 0x00, 0x31, 0xf6, 0x83, 0x38, 0x04, 0x48, 0x8b, 0x43, 0x50, 0x40, 0x0f, 0x94, 0xc6, 0x48, 0x8b, 0x78, 0x30, 0xe8, 0x5a 0x4a3593 1 pattern found. (gdb) b * (0x4a3593 + 42) Breakpoint 2 at 0x4a35bd: file folderview.c, line 2339. (gdb) info b Num Type Disp Enb AddressWhat 2 breakpoint keep y 0x004a35bd in folderview_selected at folderview.c:2339 (gdb) disassemble /r 0x4a3593, 0x4a3593 + 62 Dump of assembler code from 0x4a3593 to 0x4a35d1: 0x004a3593 :30 85 c0 0f 84 a4 xor%al,-0x5b7bf040(%rbp) 0x004a3599 :02 00 add(%rax),%al 0x004a359b :00 c7 add%al,%bh 0x004a359d :05 3e f6 2e 00 add$0x2ef63e,%eax 0x004a35a2 :00 00 add%al,(%rax) 0x004a35a4 :00 00 add%al,(%rax) 0x004a35a6 :31 f6 xor%esi,%esi 0x004a35a8 :48 89 df mov%rbx,%rdi 0x004a35ab :e8 c0 fc ff ff callq 0x4a3270 0x004a35b0 :49 8b 84 24 88 00 00 00 mov0x88(%r12),%rax 0x004a35b8 :48 85 c0 test %rax,%rax 0x004a35bb :74 19 je 0x4a35d6 0x004a35bd : >>> 48 8b 00 mov(%rax),%rax 0x004a35c0 :31 f6 xor%esi,%esi 0x004a35c2 :83 38 04 cmpl $0x4,(%rax) 0x004a35c5 :48 8b 43 50 mov0x50(%rbx),%rax 0x004a35c9 :40 0f 94 c6 sete %sil 0x004a35cd :48 8b 78 30 mov0x30(%rax),%rdi End of assembler dump. (gdb) print 0x88 $2 = 136 (gdb) ptype /o FolderView type = struct _FolderView { /*0 | 8 */GtkWidget *scrolledwin; /*8 | 8 */GtkWidget *ctree; /* 16 | 8 */GtkWidget *headerpopupmenu; /* 24 | 8 */GHashTable *popups; /* 32 | 8 */GtkCMCTreeNode *selected; /* 40 | 8 */GtkCMCTreeNode *opened; /* 48 | 4 */gboolean open_folder; /* 52 |12 */GdkColo
Bug#972928: claws-mail: Crash when attempted to enter IMAP folder
On 31/10/2020 11:27, Ricardo Mones wrote: > Is that reproducible? I've seen similar sporadic segfaults in the past > and is unlikely is Claws Mail fault only. You can try translate the > faulting address into some more meaningful, see [1]. Also, if it's > reproducible you'll have to install debugging packages and get a proper > backtrace [2]. > > regards, > > [1] https://stackoverflow.com/a/2549363 This now leaves some trail: $ addr2line -e /usr/bin/claws-mail -f 004a35bd folderview_close_opened ??:? > [2] https://wiki.debian.org/HowToGetABacktrace I've never encountered it before. If it happens again, I will attach it to the debugger. -- Kind regards, pioruns2019
Bug#972928: claws-mail: Crash when attempted to enter IMAP folder
control: tags -1 moreinfo On Mon, Oct 26, 2020 at 10:33:35AM +, curious_debian wrote: > Package: claws-mail > Version: 3.17.3-2 > Severity: normal > > When attempted to enter IMAP folder, window instantly dissapeared (crash) > > dmesg: > > [Mon Oct 26 10:23:55 2020] claws-mail[1879911]: segfault at 1f ip > 004a35bd sp 7ffe5872a4e0 error 4 in claws-mail[442000+23] > [Mon Oct 26 10:23:55 2020] Code: 30 85 c0 0f 84 a4 02 00 00 c7 05 3e f6 2e 00 > 00 00 00 00 31 f6 48 89 df e8 c0 fc ff ff 49 8b 84 24 88 00 00 00 48 85 c0 74 > 19 <48> 8b 00 31 f6 83 38 04 48 8b 43 50 40 0f 94 c6 48 8b 78 30 e8 5a > > Context: Folder I was entering to was just downloaded via "Check for new > folders" option. > > Using Debian Stable AMD64. Is that reproducible? I've seen similar sporadic segfaults in the past and is unlikely is Claws Mail fault only. You can try translate the faulting address into some more meaningful, see [1]. Also, if it's reproducible you'll have to install debugging packages and get a proper backtrace [2]. regards, [1] https://stackoverflow.com/a/2549363 [2] https://wiki.debian.org/HowToGetABacktrace -- Ricardo Mones ~ 00:45 < hammar> cool.. have you used rssyl? 00:46 <@Ticho> um, yesSeen on #sylpheed signature.asc Description: PGP signature
Bug#972928: claws-mail: Crash when attempted to enter IMAP folder
Package: claws-mail Version: 3.17.3-2 Severity: normal When attempted to enter IMAP folder, window instantly dissapeared (crash) dmesg: [Mon Oct 26 10:23:55 2020] claws-mail[1879911]: segfault at 1f ip 004a35bd sp 7ffe5872a4e0 error 4 in claws-mail[442000+23] [Mon Oct 26 10:23:55 2020] Code: 30 85 c0 0f 84 a4 02 00 00 c7 05 3e f6 2e 00 00 00 00 00 31 f6 48 89 df e8 c0 fc ff ff 49 8b 84 24 88 00 00 00 48 85 c0 74 19 <48> 8b 00 31 f6 83 38 04 48 8b 43 50 40 0f 94 c6 48 8b 78 30 e8 5a Context: Folder I was entering to was just downloaded via "Check for new folders" option. Using Debian Stable AMD64. -- System Information: Debian Release: 10.6 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable'), (10, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 5.8.0-0.bpo.2-amd64 (SMP w/16 CPU cores) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages claws-mail depends on: ii libatk1.0-0 2.36.0-2~bpo10+1 ii libc62.28-10 ii libcairo21.16.0-4 ii libcompfaceg11:1.5.2-5+b2 ii libcurl3-gnutls 7.64.0-4+deb10u1 ii libdb5.3 5.3.28+dfsg1-0.5 ii libenchant1c2a 1.6.0-11.1+b1 ii libetpan20 1.9.3-2 ii libexpat12.2.6-2+deb10u1 ii libfontconfig1 2.13.1-2 ii libfreetype6 2.9.1-3+deb10u2 ii libgdk-pixbuf2.0-0 2.38.1+dfsg-1 ii libglib2.0-0 2.58.3-2+deb10u2 ii libgnutls30 3.6.7-4+deb10u5 ii libgtk2.0-0 2.24.32-3 ii libice6 2:1.0.9-2 ii libldap-2.4-22.4.53+dfsg-1~bpo10+1 ii liblockfile1 1.14-1.1 ii libnettle6 3.4.1-1 ii libpango-1.0-0 1.42.4-8~deb10u1 ii libpangocairo-1.0-0 1.42.4-8~deb10u1 ii libpangoft2-1.0-01.42.4-8~deb10u1 ii librsvg2-2 2.44.10-2.1 ii libsasl2-2 2.1.27+dfsg-1+deb10u1 ii libsm6 2:1.2.3-1 ii xdg-utils1.1.3-1+deb10u1 Versions of packages claws-mail recommends: ii aspell-en [aspell-dictionary] 2018.04.16-0-1 ii claws-mail-i18n3.17.3-2 ii xfonts-100dpi 1:1.0.4+nmu1 ii xfonts-75dpi 1:1.0.4+nmu1 Versions of packages claws-mail suggests: pn claws-mail-doc pn claws-mail-tools ii firefox-esr [www-browser] 78.4.0esr-1~deb10u2 pn gedit | kwrite | mousepad | nedit ii lynx [www-browser] 2.8.9rel.1-3 -- no debconf information