Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 203389 - wxGTK-2.8 segfault with --with-gnomevfs (was: net-ftp/filezilla-3.0.4 crashes)
Summary: wxGTK-2.8 segfault with --with-gnomevfs (was: net-ftp/filezilla-3.0.4 crashes)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo wxWidgets project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-26 16:32 UTC by Chris Childress
Modified: 2020-11-25 09:51 UTC (History)
4 users (show)

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


Attachments
Bugbuddy crash info collection (filezilla-bugreport.txt,242.62 KB, text/plain)
2007-12-26 16:33 UTC, Chris Childress
Details
emerge --info (emerge info,3.85 KB, text/plain)
2007-12-28 16:07 UTC, Chris Childress
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Childress 2007-12-26 16:32:45 UTC
When attempting to close filezilla by either menu option or the "x" window decoration, filezilla crashes unexpectedly instead of closing cleanly.

Reproducible: Always

Steps to Reproduce:
1.Open Filezilla
2.operating in filezilla is optional
3.close filezilla

Actual Results:  
It crashes every time.  Attached is collected info from bugbuddy

Expected Results:  
It should have closed cleanly.

Fully updated gentoo linux.  Filezilla does require some updated dependencies such as gnutls and wxGTK, not sure if that makes a difference.
Comment 1 Chris Childress 2007-12-26 16:33:26 UTC
Created attachment 139365 [details]
Bugbuddy crash info collection
Comment 2 Jason Smathers (RETIRED) gentoo-dev 2007-12-27 02:26:11 UTC
I am unable to reproduce, can you paste `emerge --info` please?
Comment 3 Chris Childress 2007-12-28 16:07:58 UTC
Created attachment 139527 [details]
emerge --info

emerge --info from problematic box, as requested.
Comment 4 Michał Lipski 2008-01-02 01:11:09 UTC
Same problem here...
emerge --info: http://tallica.pl/linux/emerge_info
Comment 5 Tim Kosse 2008-01-04 15:19:29 UTC
I've compiled wxGTK and filezilla with C(XX)FLAGS -O0 -ggdb, FEATURES=nostrip, USE=debug

Ran it inside gdb and got this trace:

#0  0xb66baa50 in ?? ()
#1  0xb71c6d9c in exit () from /lib/libc.so.6
#2  0xb71b0fe4 in __libc_start_main () from /lib/libc.so.6
#3  0x08073171 in _start ()

Valgrind reported the following:

==27539== 
==27539== Jump to the invalid address stated on the next line
==27539==    at 0x59EBA50: ???
==27539==    by 0x4CF7FE3: (below main) (in /lib/libc-2.6.1.so)
==27539==  Address 0x59EBA50 is not stack'd, malloc'd or (recently) free'd
==27539== 
==27539== Process terminating with default action of signal 11 (SIGSEGV)
==27539==  Access not within mapped region at address 0x59EBA50
==27539==    at 0x59EBA50: ???
==27539==    by 0x4CF7FE3: (below main) (in /lib/libc-2.6.1.so)
==27539== 


This problem does not happen with self-compiled wxWidgets and FileZilla using the most recent reversions from the upstream SVN repositories.
Comment 6 Tim Kosse 2008-01-04 15:37:11 UTC
Update: Problem does still happen with wxGTK from portage and a self-compiled filezilla from the upstream SVN sources.
Comment 7 Tim Kosse 2008-01-04 16:11:22 UTC
Update: Manually compiling wxWidgets with the same flags passed to configure as the ebuild would do it will trigger the bug as well.

Trying to find out which flag is responsible.
Comment 8 Tim Kosse 2008-01-04 16:20:31 UTC
Note: The segfault also happens with the wxWidgets samples, indicating that this is a problem with wxGTK (or its deps) and not FileZilla.
Comment 9 Tim Kosse 2008-01-04 16:34:45 UTC
Good news: The responsible configure flag is --with-gnomevfs
Comment 10 Vadim Zeitlin 2008-01-04 18:24:11 UTC
This is not Gentoo-specific as I've just reproduced the bug under Debian too. We'll try to fix it in the upstream, for now it might make sense to not use --with-gnomevfs option for building wx.
Comment 11 Ryan Hill (RETIRED) gentoo-dev 2008-01-05 00:35:49 UTC
we can take this one ;)
Comment 12 Vadim Zeitlin 2008-01-06 13:16:39 UTC
I've "fixed" the bug in the latest wx version by not unloading libgnomevfs-2.so.0 at all (apparently this library installs some hooks into other GTK libraries to which we link explicitly which are not uninstalled when it's unloaded resulting in a crash because a call to already unloaded code is done) but the code enabled by --with-gnomevfs doesn't seem to do anything useful currently anyhow so I repeat my recommendation that you don't use this option at all for now. But if you do, at least it shouldn't crash any more...
Comment 13 Ryan Hill (RETIRED) gentoo-dev 2008-01-06 22:44:29 UTC
Fixed in wxGTK-2.8.7.1-r1 by passing --without-gnomevfs unconditionally.  Thanks everyone.
Comment 14 Hamish McIntyre-Bhatty 2020-11-25 09:51:46 UTC
In case anyone else happens across this, this issue also affected Cygwin back in the day, but I can confirm that the issue seems to have gone away as of wxWidgets 3.0.5.1, at least on Cygwin - building with GNOMEVFS now works just fine.

I imagine most packages elsewhere are more up to date so this probably isn't of much interest, but worth noting anyway.