GNOME Bugzilla – Bug 324618
g-v-m-1.5.7 crashes
Last modified: 2006-01-05 18:12:05 UTC
Steps to reproduce: Three ways to reproduce the crash: (1) Launch GARNOME-2.13.3 desktop ==> g-v-m silently crashes. (2) bring up "removable drives and media" dialog. click on "multimedia" tab => crash is trapped by bug-buddy. (3) start g-v-m from gdb ==> g-v-m crashes. stack trace attached. Stack trace: Backtrace was generated from '/opt/garnome/bin/gnome-volume-manager' Using host libthread_db library "/lib/tls/libthread_db.so.1". [Thread debugging using libthread_db enabled] [New Thread 808544032 (LWP 24507)] 0x0fc5f2b8 in __waitpid_nocancel () from /lib/tls/libpthread.so.0
+ Trace 64725
Thread 1 (Thread 808544032 (LWP 24507))
Other information: System ------ * G4 PPC running YDL-4.0.1+ * GARNOME-2.13.3 * dbus-0.60 * hal-0.5.5.1 Note: g-v-m-1.5.5 does *not* crash when built in this environment
Would this be the same bug #176445 reported in Red Hat's bugzilla? [] https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=176445 I am using the same version of g-v-m on a fedora devel box using VMWare, more information on the link provided above.
this doesn't make sense to me... the bt suggests that the mount_point argument is NULL (or otherwise an invalid string such that strlen crashes), yet this cannot possibly be true as mount_point is hard-coded to ""
fwiw, I'm unable to reproduce with g-v-m 1.5.7 & dbus 0.50
pointers and arrays are not addressed same in C so when you get the address of the array (&options) *(&options) will derefrence to "sync" and not {"sync", NULL}. Consiquently when d-bus gets the first element of "sync" it gets a out of range address and causes a crash. Whenever passing static arrays to d-bus you must do this: char *array[2] = {"foo", "bar"}; char **parray = array; dbus_message_append_args (message, DBUS_TYPE_ARRAY, DBUS_TYPE_STRING, &parray, 2, DBUS_TYPE_INVALID);
Created attachment 56793 [details] [review] fix for crash Assign array of char * to a char ** and send that to d-bus
Good catch. The patch worked. -Joseph
gah, missed that. thanks j5