Opened 12 years ago

Closed 11 years ago

#35601 closed defect (worksforme)

claws-mail: runtime crash: malloc error

Reported by: jurgen.defurne@… Owned by: pmetzger (Perry E. Metzger)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: claws-mail

Description

After upgrading to Mountain Lion and updating ports, the only problem I still have is that claws-mail has become unstable due to a malloc problem:

claws-mail(3106) malloc: *** error for object 0x7ff5450216e8: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
claws-mail(3106) malloc: *** error for object 0x7ff5450216e8: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
decraemerDataNewsclaws.c:101:Starting Claws Mail version Claws Mail 3.8.0
main.c:848:runtime GTK+ 2.24.10 / GLib 2.32.4
main.c:856:buildtime GTK+ 2.24.10 / GLib 2.32.4
main.c:865:Compiled-in features:
main.c:870: compface
main.c:876: aspell
main.c:882: gnutls
main.c:888: ipv6
main.c:894: iconv
main.c:906: ldap
main.c:912: libetpan 1.1
main.c:918: libsm

Maybe this is an upstream problem?

Change History (11)

comment:1 Changed 12 years ago by jurgen.defurne@…

It does not crash immediately, I can still download mail and read things, so it is not that urgent. However, I use claws-mail already since the time it was called sylpheed, and it is the first time in all those years that I have problem with it.

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: malloc problem in claws-mailclaws-mail: runtime crash: malloc error

Can you provide a reproduction recipe—a set of steps that we could follow to see the crash for ourselves?

It might be a problem with having used the clang compiler. You could try uninstalling claws-mail and reinstalling it with a different compiler.

comment:3 Changed 12 years ago by jurgen.defurne@…

It seems to crash after it has fetched mail and sorts it into the different folders, so not due to any action of me. Just set it up to automatically fetch mail and leave it be.

I will try the suggestion, thanks.

comment:4 Changed 12 years ago by jurgen.defurne@…

It seems more stable with llvm-gcc-4.2, although the issue is still there. Trying to build with apple-gcc42 returns

Error: org.macports.configure for port claws-mail returned: Invalid value for configure.compiler

comment:5 Changed 12 years ago by jurgen.defurne@…

More information, by running claws-mail from a console.

The following is reported by claws-mail, but apparently does not immediately cause a crash:

decraemerDataNews++ STATS ++ INC 5 5
claws-mail(10885) malloc: *** error for object 0x7fb3bb023600: double free
*** set a breakpoint in malloc_error_break to debug
++ STATS ++ INC 5 0
++ STATS ++ INC 5 0

comment:6 Changed 12 years ago by jurgen.defurne@…

In the same session as the previous information:

claws-mail(11671) malloc: *** error for object 0x7fb3bbe43008: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
++ STATS ++ INC 6 0

comment:7 Changed 12 years ago by jurgen.defurne@…

Today's crash:

++ STATS ++ INC 102 1
claws-mail(4651) malloc: *** error for object 0x7ff4aa087b80: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
claws.c:101:Starting Claws Mail version Claws Mail 3.8.1
main.c:858:runtime GTK+ 2.24.12 / GLib 2.32.4
main.c:866:buildtime GTK+ 2.24.12 / GLib 2.32.4
main.c:875:Compiled-in features:
main.c:880: compface
main.c:886: aspell
main.c:892: gnutls
main.c:898: ipv6
main.c:904: iconv
main.c:916: ldap
main.c:922: libetpan 1.1
main.c:928: libsm
prefs_gtk.c:1037:new file '/Users/jurgen/.claws-mail/clawsrc'
prefs_gtk.c:996:new section 'Common'
prefs_gtk.c:996:new section 'Plugins_Common'
prefs_gtk.c:996:new section 'Plugins_GTK2'
prefs_gtk.c:996:new section 'SpamAssassin'
prefs_gtk.c:996:new section 'Plugins_GTK'
prefs_gtk.c:1037:new file '/Users/jurgen/.claws-mail/folderitemrc'
prefs_gtk.c:996:new section '#mh/mutt_mail/pgsql docs'
prefs_gtk.c:996:new section '#mh/mutt_mail/Amazon'
prefs_gtk.c:996:new section '#mh/mutt_mail/Personen/Jan Defurne'
prefs_gtk.c:996:new section '#mh/mutt_mail/Personen/Jean-Marie'
prefs_gtk.c:996:new section '#mh/mutt_mail/Onderdelen/ATC'
prefs_gtk.c:996:new section '#mh/mutt_mail/Onderdelen/Cloetens'
prefs_gtk.c:996:new section '#mh/mutt_mail/Onderdelen/Drix'
prefs_gtk.c:996:new section '#mh/mutt_mail/Onderdelen/Jameco'
prefs_gtk.c:996:new section '#mh/mutt_mail/Onderdelen/JDR Micro Devices'
prefs_gtk.c:996:new section '#mh/mutt_mail/Boekhandel/abebooks'
prefs_gtk.c:996:new section '#mh/mutt_mail/Boekhandel/Amazon'
prefs_gtk.c:996:new section '#mh/mutt_mail/Boekhandel/HCW'
prefs_gtk.c:996:new section '#mh/mutt_mail/Onderdelen/Jasa'
prefs_gtk.c:996:new section '#mh/mutt_mail/Programmeren/Literate Programming'
prefs_gtk.c:996:new section '#mh/mutt_mail/Programmeren/ORBit'
prefs_gtk.c:996:new section '#mh/mutt_mail/Boekhandel/O'Reilly'
prefs_gtk.c:996:new section '#mh/mutt_mail/Programmeren/pgsql docs'
prefs_gtk.c:996:new section '#mh/mutt_mail/Programmeren/pgsql hackers'
prefs_gtk.c:996:new section '#mh/mutt_mail/Programmeren/PHP'
prefs_gtk.c:996:new section '#mh/mutt_mail/Boekhandel/Proxis'
prefs_gtk.c:996:new section '#mh/mutt_mail/Programmeren/SourceForge'
prefs_gtk.c:996:new section '#mh/mutt_mail/Boekhandel/Standaard Boekhandel'
prefs_gtk.c:996:new section '#mh/mutt_mail/Programmeren/svnbook-dev'
prefs_gtk.c:996:new section '#mh/mutt_mail/Linux/BugTracking'
prefs_gtk.c:996:new section '#mh/mutt_mail/Linux/LinuxCounter'
prefs_gtk.c:996:new section '#mh/mutt_mail/Linux/cygwin'
prefs_gtk.c:996:new section '#mh/mutt_mail/Linux/Debian'
prefs_gtk.c:996:new section '#mh/mutt_mail/Linux/Diald'
prefs_gtk.c:996:new section '#mh/mutt_mail/Linux/dosemu'
prefs_gtk.c:996:new section '#mh/mutt_mail/Boekhandel/eBay'
prefs_gtk.c:996:new section '#mh/mutt_mail/Linux/RedHat'
prefs_gtk.c:996:new section '#mh/mutt_mail/Linux/sane-devel'
prefs_gtk.c:996:new section '#mh/mutt_mail/Linux/Ubuntu'
prefs_gtk.c:996:new section '#mh/mutt_mail/Programmeren/pgsql general'
prefs_gtk.c:996:new section '#mh/mutt_mail/Boekhandel/Sherpa'
prefs_gtk.c:996:new section '#mh/mutt_mail/Jobs/JobAt'
prefs_gtk.c:996:new section '#mh/mutt_mail/Jobs/StepStone'
prefs_gtk.c:996:new section '#mh/mutt_mail/Jobs/Vacature'
prefs_gtk.c:996:new section '#mh/mutt_mail/inbox'
prefs_gtk.c:996:new section '#mh/Mailbox/inbox'
prefs_gtk.c:996:new section '#mh/mutt_mail/XING'
prefs_gtk.c:996:new section '#mh/mutt_mail/Publicaties/SciAm'
prefs_gtk.c:996:new section '#mh/mutt_mail/Publicaties/Tuinkrant'
prefs_gtk.c:996:new section '#mh/mutt_mail/Publicaties/WittePion'
prefs_gtk.c:996:new section '#mh/mutt_mail/Jobs/XING'
prefs_gtk.c:996:new section '#mh/mutt_mail/Winkels/Auchan'
prefs_gtk.c:996:new section '#mh/mutt_mail/Winkels/ExtraFilm'
prefs_gtk.c:996:new section '#mh/mutt_mail/Winkels/HEMA'
prefs_gtk.c:996:new section '#mh/mutt_mail/Winkels/SyntraWest'
prefs_gtk.c:996:new section '#mh/mutt_mail/Winkels/Telenet'
prefs_gtk.c:996:new section '#mh/mutt_mail/Winkels/BCC'
prefs_gtk.c:996:new section '#mh/mutt_mail/Recruitment'
prefs_gtk.c:996:new section '#mh/mutt_mail/Recruitment/JobAt'
prefs_gtk.c:996:new section '#mh/mutt_mail/Recruitment/StepStone'
prefs_gtk.c:996:new section '#mh/mutt_mail/Recruitment/Vacature'
prefs_gtk.c:996:new section '#mh/mutt_mail/Recruitment/Monster'
prefs_gtk.c:996:new section '#mh/mutt_mail/Recruitment/computerfutures'
prefs_gtk.c:996:new section '#mh/mutt_mail/School/KHBO'
prefs_gtk.c:996:new section '#mh/mutt_mail/School/StijnGheyle'
prefs_gtk.c:996:new section '#mh/Mailbox/Spam'
prefs_gtk.c:996:new section '#mh/Mailbox/trash'
prefs_gtk.c:1037:new file '/Users/jurgen/.claws-mail/accountrc'
prefs_gtk.c:996:new section 'Account: 1'
prefs_gtk.c:996:new section 'Account: 2'

warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_bzip2/bzip2/work/bzip2-1.0.6/blocksort.o" - no debug information available for "blocksort.c".


warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_bzip2/bzip2/work/bzip2-1.0.6/huffman.o" - no debug information available for "huffman.c".


warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_bzip2/bzip2/work/bzip2-1.0.6/crctable.o" - no debug information available for "crctable.c".


warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_bzip2/bzip2/work/bzip2-1.0.6/randtable.o" - no debug information available for "randtable.c".


warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_bzip2/bzip2/work/bzip2-1.0.6/compress.o" - no debug information available for "compress.c".


warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_bzip2/bzip2/work/bzip2-1.0.6/decompress.o" - no debug information available for "decompress.c".


warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_bzip2/bzip2/work/bzip2-1.0.6/bzlib.o" - no debug information available for "bzlib.c".


warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libffi/libffi/work/libffi-3.0.11-x86_64/x86_64-apple-darwin12.0.0/src/.libs/prep_cif.o" - no debug information available for "prep_cif.c".


warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libffi/libffi/work/libffi-3.0.11-x86_64/x86_64-apple-darwin12.0.0/src/.libs/types.o" - no debug information available for "types.c".


warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libffi/libffi/work/libffi-3.0.11-x86_64/x86_64-apple-darwin12.0.0/src/.libs/raw_api.o" - no debug information available for "raw_api.c".


warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libffi/libffi/work/libffi-3.0.11-x86_64/x86_64-apple-darwin12.0.0/src/.libs/java_raw_api.o" - no debug information available for "java_raw_api.c".


warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libffi/libffi/work/libffi-3.0.11-x86_64/x86_64-apple-darwin12.0.0/src/.libs/closures.o" - no debug information available for "closures.c".


warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libffi/libffi/work/libffi-3.0.11-x86_64/x86_64-apple-darwin12.0.0/src/x86/.libs/ffi64.o" - no debug information available for "ffi64.c".


warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libffi/libffi/work/libffi-3.0.11-x86_64/x86_64-apple-darwin12.0.0/src/x86/.libs/darwin64.o" - no debug information available for "{standard input}".

/Users/jurgen/4651: No such file or directory
No symbol table is loaded.  Use the "file" command.
prefs_gtk.c:85:Reading configuration...
codeconv.c:1485:current locale: nl_BE.UTF-8
codeconv.c:1485:current locale: nl_BE.UTF-8

+ Debug log generated by claws-mail:

Claws Mail version 3.8.1
GTK+ version 2.24.12 / GLib 2.32.4
Locale: nl_BE.UTF-8 (charset: UTF-8)
Features: IPv6 iconv compface GnuTLS LDAP GNU/aspell libetpan libSM
Operating system: Darwin 12.1.0 (x86_64)
C Library: Onbekend
--
Reading symbols for shared libraries ................................................................... done
Attaching to program: `/opt/local/bin/claws-mail', process 4651.
Reading symbols for shared libraries + done
Reading symbols for shared libraries +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++........................................................................................................................................................... done
Reading symbols for shared libraries + done
0x00007fff8d4fa698 in __wait4 ()
#0  0x00007fff8d4fa698 in __wait4 ()
No symbol table info available.
#1  0x0000000107166192 in crash_handler ()
No symbol table info available.
#2  <signal handler called>
No symbol table info available.
#3  0x00007fff8d4f9d46 in __kill ()
No symbol table info available.
#4  0x00007fff92d87e1c in abort ()
No symbol table info available.
#5  0x00007fff92d5b989 in free ()
No symbol table info available.
#6  0x00007fff92779ecb in freeaddrinfo ()
No symbol table info available.
#7  0x00000001072c35e0 in sock_connect_async ()
No symbol table info available.
#8  0x00000001072bf729 in session_connect ()
No symbol table info available.
#9  0x0000000107197733 in inc_start ()
No symbol table info available.
#10 0x000000010719855e in inc_all_account_mail ()
No symbol table info available.
#11 0x00000001071988ad in inc_autocheck_func ()
No symbol table info available.
#12 0x0000000108484862 in g_timeout_dispatch ()
No symbol table info available.
#13 0x0000000108484118 in g_main_context_dispatch ()
No symbol table info available.
#14 0x0000000108485cee in g_main_context_iterate ()
No symbol table info available.
#15 0x000000010848713f in g_main_loop_run ()
No symbol table info available.
#16 0x00000001075bdadf in gtk_main ()
No symbol table info available.
#17 0x000000010719c810 in main ()
No symbol table info available.

comment:8 Changed 12 years ago by jurgen.defurne@…

Still another crash report:

claws-mail(9495) malloc: *** error for object 0x7fc4c473bce8: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
Assertion failed: (!xcb_xlib_threads_sequence_lost), function poll_for_event, file xcb_io.c, line 273.
decraemerDataNews[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
Assertion failed: (!xcb_xlib_threads_sequence_lost), function poll_for_event, file xcb_io.c, line 273.
Abort trap: 6

comment:9 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to perry@…

Is this still a problem with 3.9.2?

comment:10 Changed 11 years ago by pmetzger (Perry E. Metzger)

I cannot reproduce such issues, and it is from a quite old version of claws. I think closing the ticket for now would be best, unless someone can give a recipe for reproducing the problem.

comment:11 Changed 11 years ago by mf2k (Frank Schima)

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.