Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 631530 - mail-client/balsa-2.5.3-r1 crashes on Send
Summary: mail-client/balsa-2.5.3-r1 crashes on Send
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-20 15:58 UTC by Helmut Jarausch
Modified: 2020-08-24 07:49 UTC (History)
2 users (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 Helmut Jarausch 2017-09-20 15:58:57 UTC
Hi,
I've been using Balsa for a long time.
Some recent upgrading of libraries which Balsa uses make it crash when
I try to send an email.

Having built balsa and glib with debugging info I :

Balsa -> Compose (fill out fields) -> Send

gives

Thread 1 "balsa" received signal SIGSEGV, Segmentation fault.
0x00007ffff23a4691 in g_main_context_prepare (context=0x77fbf0, 
    priority=0x7fffffffc8e8)
    at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/glib/gmain.c:3529
3529              prepare = source->source_funcs->prepare;

p *source
$1 = {callback_data = 0x0, callback_funcs = 0x0, 
  source_funcs = 0x7fffd2910880, ref_count = 3, context = 0x77fbf0, 
  priority = 0, flags = 1, source_id = 688, poll_fds = 0x0, prev = 0xd97d50, 
  next = 0x1142e00, name = 0x0, priv = 0x97df40}

p *(source->source_funcs)
Cannot access memory at address 0x7fffd2910880
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

(gdb) where
#0  0x00007ffff23a4691 in g_main_context_prepare (context=0x77fbf0, 
    priority=0x7fffffffc8e8)
    at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/glib/gmain.c:3529
#1  0x00007ffff23a4fef in g_main_context_iterate (context=0x77fbf0, block=1, 
    dispatch=1, self=0x774660)
    at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/glib/gmain.c:3952
#2  0x00007ffff23a54fd in g_main_loop_run (loop=0xd97dc0)
    at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/glib/gmain.c:4168
#3  0x00007ffff3b2a1fd in gtk_main () from /usr/lib64/libgtk-3.so.0
#4  0x00007fffffffca00 in ?? ()
#5  0x000000000046633c in real_main (argc=1, argv=0x90e9c0) at main.c:621
#6  0x000000000046675b in command_line_cb (application=0x77e0f0, 
    command_line=0x7fdc40, user_data=0x0) at main.c:813
#7  0x00007fffe8914de8 in ffi_call_unix64 () from /usr/lib64/libffi.so.6
#8  0x00007fffe89148e8 in ffi_call () from /usr/lib64/libffi.so.6
#9  0x00007ffff2691cd3 in g_cclosure_marshal_generic (closure=0x77fb80, 
    return_gvalue=0x7fffffffce00, n_param_values=2, 
    param_values=0x7fffffffce30, invocation_hint=0x7fffffffcde0, 
    marshal_data=0x0)
    at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/gobject/gclosure.c:1490
#10 0x00007ffff26904b2 in g_closure_invoke (closure=0x77fb80, 
    return_value=0x7fffffffce00, n_param_values=2, 
    param_values=0x7fffffffce30, invocation_hint=0x7fffffffcde0)
    at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/gobject/gclosure.c:804
#11 0x00007ffff26ad9d9 in signal_emit_unlocked_R (node=0x77bc10, detail=0, 
    instance=0x77e0f0, emission_return=0x7fffffffd020, 
    instance_and_params=0x7fffffffce30)
    at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/gobject/gsignal.c:3635
#12 0x00007ffff26accf7 in g_signal_emit_valist (instance=0x77e0f0, 
    signal_id=10, detail=0, var_args=0x7fffffffd0b0)
    at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/gobject/gsignal.c:3401
#13 0x00007ffff26ad1de in g_signal_emit (instance=0x77e0f0, signal_id=10, 
    detail=0)
    at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/gobject/gsignal.c:3447
#14 0x00007ffff299b7ac in g_application_call_command_line (
    application=0x77e0f0, arguments=0x75b500, options=0x922180, 
    exit_status=0x7fffffffd278)
    at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/gio/gapplication.c:982
#15 0x00007ffff299b9a4 in g_application_real_local_command_line (
    application=0x77e0f0, arguments=0x7fffffffd288, exit_status=0x7fffffffd278)
    at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/gio/gapplication.c:1036
#16 0x00007ffff299dcfc in g_application_run (application=0x77e0f0, argc=1, 
    argv=0x7fffffffd3e8)
    at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/gio/gapplication.c:2350
#17 0x0000000000466851 in main (argc=1, argv=0x7fffffffd3e8) at main.c:843

I have dev-libs/glib-2.52.3 installed here.

Many thanks for a hint,
Helmut

emerge --info gives
Portage 2.3.8 (python 3.6.1-final-0, default/linux/amd64/13.0/desktop, gcc-6.4.0, glibc-2.26-r1, 4.13.2-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.13.2-gentoo-x86_64-AMD_Phenom-tm-_II_X4_940_Processor-with-gentoo-2.4.1
KiB Mem:     7903376 total,   2199732 free
KiB Swap:    4194300 total,   4079100 free
Timestamp of repository gentoo: Wed, 20 Sep 2017 06:45:01 +0000
Head commit of repository gentoo: 9b21e7503165000dbf0fc9b63b3edf7b34c1aeb3
Head commit of repository java: 8288e3408c5590ceeb75bfe958977efed83d380b

Head commit of repository lisp: fb298a5873cdeaa83bb7f2fbc8c6499c2b7da9f1

Head commit of repository octave: 5e79f9fa4276413e36f665ecc43e8a39e68d3b49

Head commit of repository palemoon: 444eca359683352ee58e5c88cfca16acbe11afbf

sh bash 4.4_p12
ld GNU ld (Gentoo 2.29 p1.0) 2.29
ccache version 3.3.4 [disabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::local
dev-lang/perl:            5.24.2::gentoo
dev-lang/python:          2.7.14::gentoo, 3.6.1-r1::gentoo
dev-util/ccache:          3.3.4-r1::gentoo
dev-util/cmake:           3.9.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.31.2::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.9.6-r4::gentoo, 1.10.3-r2::gentoo, 1.11.6-r2::gentoo, 1.12.6-r1::gentoo, 1.13.4-r1::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.28-r2::gentoo, 2.28.1::gentoo, 2.29::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo, 6.3.0::gentoo, 6.4.0::gentoo, 7.2.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.informatik.rwth-aachen.de/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 

booboo
    location: /usr/local/portage/layman/booboo
    sync-type: laymansync
    sync-uri: https://github.com/l29ah/booboo.git
    masters: gentoo
    priority: 50

java
    location: /usr/local/portage/layman/java
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/java.git
    masters: gentoo
    priority: 50

lisp
    location: /usr/local/portage/layman/lisp
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/lisp.git
    masters: gentoo
    priority: 50

nx
    location: /usr/local/portage/layman/nx
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/proj/nx.git
    masters: gentoo
    priority: 50

octave
    location: /usr/local/portage/layman/octave
    sync-type: git
    sync-uri: git://github.com/rafaelmartins/octave-overlay.git
    masters: gentoo
    priority: 50

palemoon
    location: /usr/local/portage/layman/palemoon
    sync-type: git
    sync-uri: https://github.com/deuiore/palemoon-overlay.git
    masters: gentoo
    priority: 50

science
    location: /usr/local/portage/layman/science
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/sci.git
    masters: gentoo
    priority: 50

seden
    location: /usr/local/portage/layman/seden
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/user/seden.git
    masters: gentoo
    priority: 50

local
    location: /usr/local/portage
    masters: gentoo
    priority: 99

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -msse3 -pipe -fno-unwind-tables -fno-asynchronous-unwind-tables"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.1/ext-active/ /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="-march=native -O2 -msse3 -pipe -fno-unwind-tables -fno-asynchronous-unwind-tables"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo "
LANG="en_US.iso88591"
LC_ALL=""
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="3dnow 3dnowext 3dnowprefetch X a52 aac acl acpi alsa amd64 avahi berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam ffmpeg fftw firefox flac fortran fuse gcj gdbm gfortran gif gimp glamor gpm gtk gtk3 iconv ipv6 jpeg lapack lcms libnotify mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf png policykit ppds python qt qt3support qt4 qt5 readline sdl seccomp session smp spell sqlite sqlite3 sse sse2 sse3 sse4a ssl startup-notification svg tcl tcpd threads tiff tk truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xulrunner xv xvid zlib" ABI_X86="64" 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="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow mmx 3dnowext mmxext popcnt sse sse2 sse3 sse4a" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc multiboot" INPUT_DEVICES="keyboard mouse evdev wacom" KERNEL="linux" L10N="en de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="radeon radeonsi r600" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

mail-client/balsa-2.5.3-r1::gentoo was built with the following:
USE="gnome-keyring libnotify sqlite webkit -crypt -gnome -kerberos -ldap -libressl -rubrica -xface" ABI_X86="(64)"
CFLAGS="-g"
CXXFLAGS="-g"
Comment 1 Helmut Jarausch 2017-11-20 17:02:15 UTC
After a long time of hunting I have found the culprit.

This crash occurs if and only if app-text/enchant-1.6.1 is installed.

Downgrading to app-text/enchant-1.6.0 make this bug go away.

Since several packages which depend on app-text/enchant, like geany,
are working with app-text/enchant-1.6.1 this is probably a bug in Balsa.

Perhaps, Balsa should depend on <=app-text/enchant-1.6.0 until the bug
in Balsa is found.
Comment 2 Jack 2018-07-03 20:16:10 UTC
Is this still a problem?  I have balsa (git master - so I don't know when it got fixed) working with enchant 2.1.1 (although there is still a tracking bug for the ABI changes with enchant >= 2.0 - https://bugs.gentoo.org/629838
Comment 3 Helmut Jarausch 2018-07-11 08:31:40 UTC
(In reply to Jack from comment #2)
> Is this still a problem?  I have balsa (git master - so I don't know when it
> got fixed) working with enchant 2.1.1 (although there is still a tracking
> bug for the ABI changes with enchant >= 2.0 - https://bugs.gentoo.org/629838

With a recent version of Balsa GIT (2018/07/08) which contains a fix for 
Gentoo's old net-libs/webkit-gtk-2.18.6 and enchant-2.1.2 it seems to work
just fine now.

Meanwhile I could solve all problems with other packages caused by enchant-2 .
Comment 4 Mart Raudsepp gentoo-dev 2018-07-15 15:46:03 UTC
Please try with mail-client/balsa-2.5.6-r1
Comment 5 Arnaud Vallette d'Osia 2018-10-18 19:09:39 UTC
I can confirm this bug (with 2.5.6-r1 also)
https://gitlab.gnome.org/GNOME/balsa/issues/6
Comment 6 Jack 2019-10-27 16:32:43 UTC
Is this still relevant, or has it been fixed with more recent versions?
Comment 7 Helmut Jarausch 2019-10-27 16:38:04 UTC
(In reply to Jack from comment #6)
> Is this still relevant, or has it been fixed with more recent versions?

I'm using the current GIT version which doesn't have this problem any more.
Comment 8 Jack 2020-03-14 18:35:43 UTC
So should this finally be closed?  I suppose the optimal would be RESOLVED FIXED if someone is sure which version fixed the problem, or else WORKSFORME?
Comment 9 Mart Raudsepp gentoo-dev 2020-08-24 07:49:18 UTC
Closing as fixed then. A newer version of balsa also explicitly makes sure a problematic enchant version isn't used, however I don't think that check hits with our gspell option choice for spell checker. But our gspell uses enchant:2 these days anyhow.