Bug 2626 - Crash in file browser when trying to attach a file
Summary: Crash in file browser when trying to attach a file
Status: RESOLVED FIXED
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: UI/Compose Window (show other bugs)
Version: 3.8.0
Hardware: PC Linux
: P3 normal
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2012-03-07 19:27 UTC by Leonid Isaev
Modified: 2012-05-02 21:24 UTC (History)
0 users

See Also:


Attachments

Description Leonid Isaev 2012-03-07 19:27:58 UTC
When attaching a file from Compose window (ctrl-m) the file browser opens in the last known directory and sometimes crashes, taking down the entire client. This is accompanied only by an error message from glib2 (running with --debug), e.g.:

(process:1102): GLib-ERROR (recursed) **: gmem.c:202: failed to allocate 2032
bytesUnexpected error.

There is no segfault or crash dumps. Also, crash dialog does not pop up. The crash only happens first time the attach dialog is open -- upon restarting claws afterwards, things work as expected.

I suspect this is related to folder size... The system is Archlinux x86_64 (Glib2 2.30.2). Compile/configure options:

CFLAGS="-march=native -O2 -pipe -fstack-protector-all -fexceptions -fno-delete-null-pointer-checks --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
CXXFLAGS="-march=native -O2 -pipe -fstack-protector-all -fexceptions -fno-delete-null-pointer-checks --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now,--hash-style=gnu"

./configure --prefix=/usr \
	      --enable-gnutls \
	      --enable-pgpcore-plugin \
	      --enable-pgpmime-plugin \
	      --enable-crash-dialog \
	      --disable-ldap \
	      --disable-libetpan \
	      --disable-static \
              --disable-enchant \
              --disable-dillo-viewer-plugin \
              --disable-spamassassin-plugin \
              --disable-bogofilter-plugin \
              --disable-jpilot \
              --disable-networkmanager-support \
	      --disable-startup-notification \
              --disable-valgrind \
	      --disable-ipv6 \
	      --disable-trayicon-plugin \
	      --disable-compface

Please let me know what additional info I need to provide to track down this problem. I will also test with new glib2 when it becomes available.

Thanks.
Comment 1 Leonid Isaev 2012-05-02 21:24:03 UTC
OK, this issue turned out to be glib2-related and was fixed in 2.32.1. Closing. Sorry for the noise.

Note You need to log in before you can comment on or make changes to this bug.