Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 767481 - net-libs/libetpan segfault after a few days
Summary: net-libs/libetpan segfault after a few days
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-27 18:27 UTC by Thomas Groman
Modified: 2022-07-10 12:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Groman 2021-01-27 18:27:24 UTC
claws-mail, using libetpan SIGSEVs randomly if you leave it running long enough

dmesg:
traps: claws-mail[11482] general protection fault ip:7f0712366ec7 sp:7f06ff7fd598 error:0 in libetpan.so.20.5.0[7f071232f000+64000]

Reproducible: Always

Steps to Reproduce:
1. configure claws mail with several imap accounts and netnews access
2. load the notification and PGP/MIME plugins
3. leave it running in the background for a few days, use occasionally
Actual Results:  
disappears from systray at seemingly random times.

Expected Results:  
be there when I need it, not try to access kernel memory.


[:~] $ gdb /usr/bin/claws-mail /var/crash/1611717619.6094.1000.claws-mail.core
GNU gdb (Gentoo 10.1 vanilla) 10.1
Copyright (C) 2020 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:
<https://bugs.gentoo.org/>.
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/bin/claws-mail...
(No debugging symbols found in /usr/bin/claws-mail)

warning: Can't open file /SYSV00000000 (deleted) during file-backed mapping note processing
[New LWP 11482]
[New LWP 8751]
[New LWP 8754]
[New LWP 6572]
[New LWP 6094]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `claws-mail'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f0712366ec7 in ?? () from /usr/lib64/libetpan.so.20
[Current thread is 1 (Thread 0x7f06ff7fe640 (LWP 11482))]
(gdb) bt
#0  0x00007f0712366ec7 in  () at /usr/lib64/libetpan.so.20
#1  0x00007f0712336b3f in mailstream_low_read () at /usr/lib64/libetpan.so.20
#2  0x00007f071233780b in mailstream_feed_read_buffer () at /usr/lib64/libetpan.so.20
#3  0x00007f07123363ef in mailstream_read_line_append () at /usr/lib64/libetpan.so.20
#4  0x00007f0712336441 in mailstream_read_line_remove_eol () at /usr/lib64/libetpan.so.20
#5  0x00007f0712368d55 in newsnntp_date () at /usr/lib64/libetpan.so.20
#6  0x00005575e7803556 in  ()
#7  0x00005575e7823c78 in  ()
#8  0x00007f071368df5e in start_thread () at /lib64/libpthread.so.0
#9  0x00007f07120c12bf in clone () at /lib64/libc.so.6
(gdb) bt full
#0  0x00007f0712366ec7 in  () at /usr/lib64/libetpan.so.20
#1  0x00007f0712336b3f in mailstream_low_read () at /usr/lib64/libetpan.so.20
#2  0x00007f071233780b in mailstream_feed_read_buffer () at /usr/lib64/libetpan.so.20
#3  0x00007f07123363ef in mailstream_read_line_append () at /usr/lib64/libetpan.so.20
#4  0x00007f0712336441 in mailstream_read_line_remove_eol () at /usr/lib64/libetpan.so.20
#5  0x00007f0712368d55 in newsnntp_date () at /usr/lib64/libetpan.so.20
#6  0x00005575e7803556 in  ()
#7  0x00005575e7823c78 in  ()
#8  0x00007f071368df5e in start_thread () at /lib64/libpthread.so.0
#9  0x00007f07120c12bf in clone () at /lib64/libc.so.6
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-01-27 18:35:15 UTC
Able to look at https://wiki.gentoo.org/wiki/Debugging?
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2021-01-27 18:47:28 UTC
please add the output of

  emerge --info libetpan claws-mail

as comment to this bug.
Comment 3 Thomas Groman 2021-01-27 19:06:34 UTC
$ emerge --info libetpan claws-mail
Portage 3.0.9 (python 3.7.9-final-0, default/linux/amd64/17.1/desktop, gcc-9.3.0, glibc-2.32-r3, 5.9.16-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.9.16-gentoo-x86_64-Intel-R-_Core-TM-_i5-6500_CPU_@_3.20GHz-with-gentoo-2.7
KiB Mem:    16377080 total,    302692 free
KiB Swap:    6291452 total,   4535804 free
Timestamp of repository gentoo: Sat, 26 Dec 2020 05:30:01 +0000
Head commit of repository gentoo: d6074a6ef8eaad81aae84f74f02fd0f1c30c5d2e
Head commit of repository trinity: f994447b579414ca7d6ee4881195b4b14443312b

sh bash 5.0_p18
ld GNU ld (Gentoo 2.34 p6) 2.34.0
distcc 3.3.3 x86_64-pc-linux-gnu [disabled]
ccache version 3.7.12 [disabled]
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18-r4::gentoo, 3.7.9::gentoo, 3.8.6::gentoo, 3.9.0::gentoo
dev-util/ccache:          3.7.12::gentoo
dev-util/cmake:           3.17.4-r1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.16.2-r1::gentoo
sys-devel/binutils:       2.34-r2::gentoo
sys-devel/gcc:            9.3.0-r2::gentoo
sys-devel/gcc-config:     2.3.2-r1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24

localrepo
    location: /home/tom/Documents/localrepo
    masters: gentoo

trinity
    location: /usr/local/overlay/trinity
    sync-type: git
    sync-uri: https://github.com/Fat-Zer/trinity.git
    masters: gentoo

rion
    location: /var/lib/layman/rion
    masters: gentoo
    priority: 50

Installed sets: @steam
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE freedist free-noncomm linux-firmware linux-fw-redistributable NPSL WidePix Kermit"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=skylake"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/i2pd/certificates"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=skylake"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://mirror.usu.edu/mirrors/gentoo/ http://gentoo.mirrors.tds.net/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 berkdb branding brotli bzip2 cairo caps cdda cdr cli crypt cups custom-modes dbus dmenu dri dts dvb dvd dvdr elogind emboss encode exif fat ffmpeg flac fortran ftdi fuse g726 g729 gdbm gif gnutls gpm gsm gtk gtk2 gui http2 iconv icu imlib ipv6 ithreads jack java jpeg kdrive lcms libglvnd liblockfile libnotify libsamplerate libtirpc lm-sensors lmdb mad mbox mng mp3 mp4 mpeg multilib ncurses nftables nonfree nova nptl nsplugin ntfs offensive offlinehelp ogg opencl opengl openmp opus pam pango pcre pdf png ppds qt5 rav1e readline rtlsdr sasl sdl seccomp sndfile socks5 speex spell split-usr ssl startup-notification svg tcpd theora threads tiff truetype udev udisks unicode upower usb v4l vaapi video vim-syntax vorbis vpx webp webrtc wxwidgets x x264 x265 xattr xcb xephyr xinerama xml xscreensaver xtables xv xvid zenmap zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="gnutls" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_8 python3_7" QEMU_SOFTMMU_TARGETS="x86_64 arm aarch64 mips" RUBY_TARGETS="ruby25 ruby26" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

net-libs/libetpan-1.9.4-r1::gentoo was built with the following:
USE="berkdb gnutls ipv6 liblockfile lmdb sasl ssl -libressl -static-libs" ABI_X86="(64)"
CFLAGS="-Os -fomit-frame-pointer -pipe -march=skylake"
CXXFLAGS="-Os -fomit-frame-pointer -pipe -march=skylake"


mail-client/claws-mail-3.17.7::gentoo was built with the following:
USE="archive calendar dbus gnutls imap ipv6 libcanberra libnotify nntp notification pdf pgp rss session spam-report spell startup-notification svg xface -appindicator -bogofilter -clamav -debug -dillo -doc -gdata -ldap -litehtml -networkmanager -nls -perl -sieve -smime -spamassassin -valgrind" ABI_X86="(64)"                     
CFLAGS="-Os -fomit-frame-pointer -pipe -march=skylake"
CXXFLAGS="-Os -fomit-frame-pointer -pipe -march=skylake"
Comment 4 Thomas Groman 2021-01-27 19:27:49 UTC
I have recompiled claws-mail and libetpan with CFLAGS="-Og -pipe -march=skylake" FEATURES="userfetch nostrip". I'm running that currently so if the SIGSEGV happens again It will generate more info, but hopefully until then what I have documented so far is enough.
Comment 5 Thomas Groman 2021-01-28 18:55:43 UTC
 $ gdb /usr/bin/claws-mail /var/crash/1611813528.4264.1000.claws-mail.core
GNU gdb (Gentoo 10.1 vanilla) 10.1
Copyright (C) 2020 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:
<https://bugs.gentoo.org/>.
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/bin/claws-mail...
(No debugging symbols found in /usr/bin/claws-mail)

warning: Can't open file /SYSV00000000 (deleted) during file-backed mapping note processing
[New LWP 7787]
[New LWP 4291]
[New LWP 4294]
[New LWP 4280]
[New LWP 4264]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `claws-mail'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f5f037e6df5 in low_logger () from /usr/lib64/libetpan.so.20
[Current thread is 1 (Thread 0x7f5efe4e0640 (LWP 7787))]
(gdb) bt full
#0  0x00007f5f037e6df5 in low_logger () at /usr/lib64/libetpan.so.20
#1  0x00007f5f037e625e in mailstream_low_read () at /usr/lib64/libetpan.so.20
#2  0x00007f5f037e71b8 in mailstream_feed_read_buffer () at /usr/lib64/libetpan.so.20
#3  0x00007f5f037e54e4 in mailstream_read_line_append () at /usr/lib64/libetpan.so.20
#4  0x00007f5f037e556f in mailstream_read_line () at /usr/lib64/libetpan.so.20
#5  0x00007f5f037e557f in mailstream_read_line_remove_eol () at /usr/lib64/libetpan.so.20
#6  0x00007f5f038235fb in read_line () at /usr/lib64/libetpan.so.20
#7  0x00007f5f03825982 in newsnntp_date () at /usr/lib64/libetpan.so.20
#8  0x000055de42b5b217 in date_run ()
#9  0x000055de42b82910 in thread_run ()
#10 0x00007f5f04b59f5e in start_thread () at /lib64/libpthread.so.0
#11 0x00007f5f035702bf in clone () at /lib64/libc.so.6
(gdb)
Comment 6 Thomas Groman 2021-01-28 18:56:49 UTC
Portage 3.0.13 (python 3.7.9-final-0, default/linux/amd64/17.1/desktop, gcc-9.3.0, glibc-2.32-r3, 5.9.16-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.9.16-gentoo-x86_64-Intel-R-_Core-TM-_i5-6500_CPU_@_3.20GHz-with-gentoo-2.7
KiB Mem:    16377080 total,    670540 free
KiB Swap:    6291452 total,   4829436 free
Timestamp of repository gentoo: Wed, 27 Jan 2021 19:30:01 +0000
Head commit of repository gentoo: 48a0ce169298d2256228c4f5e878122587ba1b46
Head commit of repository trinity: f994447b579414ca7d6ee4881195b4b14443312b

sh bash 5.0_p18
ld GNU ld (Gentoo 2.34 p6) 2.34.0
distcc 3.3.3 x86_64-pc-linux-gnu [disabled]
ccache version 3.7.12 [disabled]
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18-r4::gentoo, 3.7.9::gentoo, 3.8.6::gentoo, 3.9.0::gentoo
dev-util/ccache:          3.7.12::gentoo
dev-util/cmake:           3.17.4-r1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.16.2-r1::gentoo
sys-devel/binutils:       2.34-r2::gentoo
sys-devel/gcc:            9.3.0-r2::gentoo
sys-devel/gcc-config:     2.3.2-r1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1

localrepo
    location: /home/tom/Documents/localrepo
    masters: gentoo

trinity
    location: /usr/local/overlay/trinity
    sync-type: git
    sync-uri: https://github.com/Fat-Zer/trinity.git
    masters: gentoo

rion
    location: /var/lib/layman/rion
    masters: gentoo
    priority: 50

Installed sets: @steam
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE freedist free-noncomm linux-firmware linux-fw-redistributable NPSL WidePix"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=skylake"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/i2pd/certificates"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=skylake"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://mirror.usu.edu/mirrors/gentoo/ http://gentoo.mirrors.tds.net/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 berkdb branding brotli bzip2 cairo caps cdda cdr cli crypt cups custom-modes dbus dmenu dri dts dvb dvd dvdr elogind emboss encode exif fat ffmpeg flac fortran ftdi fuse g726 g729 gdbm gif gnutls gpm gsm gtk gtk2 gui http2 iconv icu imlib ipv6 ithreads jack java jpeg kdrive lcms libglvnd liblockfile libnotify libsamplerate libtirpc lm-sensors lmdb mad mbox mng mp3 mp4 mpeg multilib ncurses nftables nonfree nova nptl nsplugin ntfs offensive offlinehelp ogg opencl opengl openmp opus pam pango pcre pdf png ppds qt5 rav1e readline rtlsdr sasl sdl seccomp sndfile socks5 speex spell split-usr ssl startup-notification svg tcpd theora threads tiff truetype udev udisks unicode upower usb v4l vaapi video vim-syntax vorbis vpx webp webrtc wxwidgets x x264 x265 xattr xcb xephyr xinerama xml xscreensaver xtables xv xvid zenmap zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="gnutls" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_8 python3_7" QEMU_SOFTMMU_TARGETS="x86_64 arm aarch64 mips" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

net-libs/libetpan-1.9.4-r1::gentoo was built with the following:
USE="gnutls ipv6 liblockfile lmdb sasl ssl -berkdb -libressl -static-libs" ABI_X86="(64)"
CFLAGS="-Og -pipe -march=skylake"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news nostrip parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"


mail-client/claws-mail-3.17.7::gentoo was built with the following:
USE="archive calendar dbus gnutls imap ipv6 libcanberra libnotify nntp notification pdf pgp rss session spam-report spell startup-notification svg xface -appindicator -bogofilter -clamav -debug -dillo -doc -gdata -ldap -litehtml -networkmanager -nls -perl -sieve -smime -spamassassin -valgrind" ABI_X86="(64)"
CFLAGS="-Og -pipe -march=skylake"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news nostrip parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
Comment 7 Thomas Groman 2021-03-15 20:49:07 UTC
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `claws-mail'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007fdf051f9df5 in low_logger () from /usr/lib64/libetpan.so.20
[Current thread is 1 (Thread 0x7fdefa7fc640 (LWP 7789))]
(gdb) bt
#0  0x00007fdf051f9df5 in low_logger () at /usr/lib64/libetpan.so.20
#1  0x00007fdf051f925e in mailstream_low_read () at /usr/lib64/libetpan.so.20
#2  0x00007fdf051fa1b8 in mailstream_feed_read_buffer () at /usr/lib64/libetpan.so.20
#3  0x00007fdf051f84e4 in mailstream_read_line_append () at /usr/lib64/libetpan.so.20
#4  0x00007fdf051f856f in mailstream_read_line () at /usr/lib64/libetpan.so.20
#5  0x00007fdf051f857f in mailstream_read_line_remove_eol () at /usr/lib64/libetpan.so.20
#6  0x00007fdf052365fb in read_line () at /usr/lib64/libetpan.so.20
#7  0x00007fdf05238982 in newsnntp_date () at /usr/lib64/libetpan.so.20
#8  0x0000564d8efc5217 in date_run ()
#9  0x0000564d8efec910 in thread_run ()
#10 0x00007fdf0656cf5e in start_thread () at /lib64/libpthread.so.0
#11 0x00007fdf04f832bf in clone () at /lib64/libc.so.6
Comment 8 Bernard Cafarelli gentoo-dev 2022-07-10 12:50:53 UTC
Taking over the package, does it still happen with current claws-mail? It may be worth reporting upstream too at https://github.com/dinhvh/libetpan (only bug mentioning low_logger is quite old and has been fixed)