GNOME Bugzilla – Bug 573289
segfault (with testcase) (in gio? in dbus? in gvfs? in the sftp backend?)
Last modified: 2017-06-06 11:10:15 UTC
I extended the testcase for http://bugzilla.gnome.org/show_bug.cgi?id=556458 with an asynchronous replace test because some bluefish users on Fedora 9, Ubuntu 8.04 and Debian Lenny reported issues with sftp. The sftp connection is mounted already. starting the textcase with 'load' works fine. The segfault is triggered when I start the testcase with 'write'. The Debian Lenny system uses glib-2.16.6, libdbus 1.2.1 and gvfs 0.2.5. The testcase works fine on Ubuntu 8.10 (glib-2.18). the gdb backtrace: [Thread debugging using libthread_db enabled] Error while reading shared library symbols: Cannot find new threads: generic error Cannot find new threads: generic error (gdb) c Continuing. [New Thread 0xb7cad720 (LWP 11541)] Program received signal SIGSEGV, Segmentation fault.
+ Trace 212932
Thread 3083523872 (LWP 11541)
valgrind memcheck: ==11502== Process terminating with default action of signal 11 (SIGSEGV) ==11502== Access not within mapped region at address 0x0 ==11502== at 0x40239D8: strlen (mc_replace_strmem.c:242) ==11502== by 0x477B145: (within /usr/lib/libdbus-1.so.3.4.0) ==11502== by 0x4767BEB: (within /usr/lib/libdbus-1.so.3.4.0) ==11502== by 0x4767C49: (within /usr/lib/libdbus-1.so.3.4.0) ==11502== by 0x476C42B: dbus_message_iter_append_basic (in /usr/lib/libdbus-1.so.3.4.0) ==11502== by 0x47395EF: (within /usr/lib/gio/modules/libgvfsdbus.so) ==11502== by 0x47397F2: (within /usr/lib/gio/modules/libgvfsdbus.so) ==11502== by 0x472B11D: (within /usr/lib/gio/modules/libgvfsdbus.so) ==11502== by 0x472B27B: (within /usr/lib/gio/modules/libgvfsdbus.so) ==11502== by 0x4056059: g_file_replace_async (in /usr/lib/libgio-2.0.so.0.0.0) ==11502== by 0x804895C: main (giodebug.c:60)
Created attachment 129580 [details] testcase, run with ./giodebug write sftp://host/path/file
Works without a crash here...
on Debian Lenny? or Ubuntu 8.04?
Fedora 11
as described in the bugreport the bug seems to be glib 2.16 specific, it is visible on Ubuntu 8.04 and Debian Lenny. It is not visible on Ubuntu 8.10. I have not yet tested Fedora 9 (glib-2.16) or 10 (glib-2.18).
just tested with Fedora 9 and 10 the testcase segfaults on Fedora 9 the testcase runs fine on Fedora 10
I believe this is a fixed by the fix in bug 526454, which should be fixed in gvfs 0.2.4. What version is this?
as shown in comment #1 Debian Lenny uses glib-2.16.6, libdbus 1.2.1 and gvfs 0.2.5.
This is really an old bug and I can't reproduce it with current versions. Let's close this bug as obsolete. Please reopen if you still see the problem...