Segfault on Nokia N73 disconnect

Bug #330278 reported by Daniël van Eeden
4
Affects Status Importance Assigned to Milestone
banshee (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: banshee

Banshee version: 1.2.1-3ubuntu1
Ubuntu version: 8.10

To reproduce
1. Start banshee
2. Connect N73 Music Edition in "Media Player" mode
3. Press disconnect on the N73 or disconnect the cable.
4 *crash*

Console output:
dveeden@thinkpad:~$ banshee
[Info 22:15:51.597] Running Banshee 1.2.1
[Error 22:15:53.044] Unable to Migrate Smart Playlists - Please file a bug with this error: System.NullReferenceException: Object reference not set to an instance of an object
  at Banshee.SmartPlaylist.Migrator.ParseCondition (System.String value) [0x00000]
  at Banshee.SmartPlaylist.Migrator.Migrate (Int32 dbid, System.String Name, System.String Condition, System.String OrderBy, System.String LimitNumber, System.String LimitCriterion) [0x00000]
  at Banshee.SmartPlaylist.Migrator.MigrateAll () [0x00000]
[Info 22:15:53.328] All services are started 1.546576s
[Info 22:15:54.959] nereid Client Started
PTP: Opening session
Stacktrace:

  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_string_new_wrapper (intptr) <0x00004>
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_string_new_wrapper (intptr) <0xffffffff>
  at (wrapper unknown) Mtp.FolderStruct.PtrToStructure (intptr,object) <0xffffffff>
  at (wrapper runtime-invoke) Mtp.MtpDeviceStruct.runtime_invoke_void_intptr_object (object,intptr,intptr,intptr) <0xffffffff>
  at (wrapper managed-to-native) System.Runtime.InteropServices.Marshal.PtrToStructure (intptr,System.Type) <0x00004>
  at (wrapper managed-to-native) System.Runtime.InteropServices.Marshal.PtrToStructure (intptr,System.Type) <0xffffffff>
  at Mtp.Folder.GetRootFolders (Mtp.MtpDevice) <0x00072>
  at Mtp.MtpDevice.GetRootFolders () <0x0000a>
  at Mtp.MtpDevice.SetDefaultFolders () <0x0001e>
  at Mtp.MtpDevice..ctor (Mtp.MtpDeviceHandle,Mtp.MtpDeviceStruct) <0x00039>
  at Mtp.MtpDevice..ctor (intptr,bool,Mtp.MtpDeviceStruct) <0x0004b>
  at Mtp.MtpDevice.Detect () <0x000c3>
  at Banshee.Dap.Mtp.MtpSource.DeviceInitialize (Banshee.Hardware.IDevice) <0x000c7>
  at Banshee.Dap.DapService.FindDeviceSource (Banshee.Hardware.IDevice) <0x000a5>
  at <>c__CompilerGenerated1.<MapDevice>c__6 () <0x0040b>
  at Banshee.Kernel.DelegateJob.RunJob () <0x0000c>
  at Banshee.Kernel.Job.Run () <0x0000b>
  at Banshee.Kernel.Scheduler.ProcessJobThread () <0x0014f>
  at (wrapper runtime-invoke) System.Object.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

 banshee-1 [0x817b4ae]
 banshee-1 [0x807f78b]
 [0xb8045410]
 banshee-1(mono_string_new_wrapper+0x23) [0x809cab3]
 [0xb505aa6f]
 [0xb2c15f43]
 [0xb2c15703]
 banshee-1 [0x80c65c8]
 [0xb5006f42]
 [0xb2c15b9b]
 [0xb2c15b13]
 [0xb2c1598f]
 [0xb2c1586a]
 [0xb2c157dc]
 [0xb2c13224]
 [0xb2c106d0]
 [0xb2fbaa96]
 [0xb2fb1cbc]
 [0xb2faf325]
 [0xb2faf304]
 [0xb2faefb8]
 [0xb79cf411]
 banshee-1(mono_runtime_delegate_invoke+0x35) [0x8098c55]
 banshee-1 [0x80d5fdf]
 banshee-1 [0x81279de]
 banshee-1 [0x813ff75]
 /lib/tls/i686/cmov/libpthread.so.0 [0xb7f3250f]
 /lib/tls/i686/cmov/libc.so.6(clone+0x5e) [0xb7e89a0e]

Debug info from gdb:

(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0xb7d7c6d0 (LWP 23439)]
[New Thread 0xb2f64b90 (LWP 23480)]
[New Thread 0xb2c09b90 (LWP 23454)]
[New Thread 0xb2d24b90 (LWP 23453)]
[New Thread 0xb2e29b90 (LWP 23452)]
[New Thread 0xb3a34b90 (LWP 23447)]
[New Thread 0xb3b39b90 (LWP 23446)]
[New Thread 0xb3c3eb90 (LWP 23445)]
[New Thread 0xb631ab90 (LWP 23442)]
[New Thread 0xb7433b90 (LWP 23441)]
[New Thread 0xb8011b90 (LWP 23440)]
0xb8045430 in __kernel_vsyscall ()
  11 Thread 0xb8011b90 (LWP 23440) 0xb8045430 in __kernel_vsyscall ()
  10 Thread 0xb7433b90 (LWP 23441) 0xb8045430 in __kernel_vsyscall ()
  9 Thread 0xb631ab90 (LWP 23442) 0xb8045430 in __kernel_vsyscall ()
  8 Thread 0xb3c3eb90 (LWP 23445) 0xb8045430 in __kernel_vsyscall ()
  7 Thread 0xb3b39b90 (LWP 23446) 0xb8045430 in __kernel_vsyscall ()
  6 Thread 0xb3a34b90 (LWP 23447) 0xb8045430 in __kernel_vsyscall ()
  5 Thread 0xb2e29b90 (LWP 23452) 0xb8045430 in __kernel_vsyscall ()
  4 Thread 0xb2d24b90 (LWP 23453) 0xb8045430 in __kernel_vsyscall ()
  3 Thread 0xb2c09b90 (LWP 23454) 0xb8045430 in __kernel_vsyscall ()
  2 Thread 0xb2f64b90 (LWP 23480) 0xb8045430 in __kernel_vsyscall ()
  1 Thread 0xb7d7c6d0 (LWP 23439) 0xb8045430 in __kernel_vsyscall ()

Thread 11 (Thread 0xb8011b90 (LWP 23440)):
#0 0xb8045430 in __kernel_vsyscall ()
#1 0xb7f39906 in nanosleep () from /lib/tls/i686/cmov/libpthread.so.0
#2 0x08110fc8 in ?? ()
#3 0xb7f3250f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#4 0xb7e89a0e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 10 (Thread 0xb7433b90 (LWP 23441)):
#0 0xb8045430 in __kernel_vsyscall ()
#1 0xb7f36075 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2 0x081143b7 in ?? ()
#3 0x081169ec in ?? ()
#4 0x08116a2c in ?? ()
#5 0x0812962a in ?? ()
#6 0x080b5c1a in ?? ()
#7 0x080d5f74 in ?? ()
#8 0x081279de in ?? ()
#9 0x0813ff75 in ?? ()
#10 0xb7f3250f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#11 0xb7e89a0e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 9 (Thread 0xb631ab90 (LWP 23442)):
#0 0xb8045430 in __kernel_vsyscall ()
#1 0xb7f363a2 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2 0x08114368 in ?? ()
#3 0x081169ec in ?? ()
#4 0x08116a2c in ?? ()
#5 0x0812962a in ?? ()
#6 0x080d3013 in ?? ()
#7 0xb6137f3a in ?? ()
#8 0xb6137de3 in ?? ()
#9 0xb632a220 in ?? ()
#10 0xb79cf411 in ?? ()
#11 0x08098c55 in mono_runtime_delegate_invoke ()
#12 0x080d5fdf in ?? ()
#13 0x081279de in ?? ()
#14 0x0813ff75 in ?? ()
#15 0xb7f3250f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#16 0xb7e89a0e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 8 (Thread 0xb3c3eb90 (LWP 23445)):
#0 0xb8045430 in __kernel_vsyscall ()
#1 0xb7f363a2 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2 0x08114368 in ?? ()
#3 0x08114432 in ?? ()
#4 0x08129a75 in ?? ()
#5 0x080d4bd9 in ?? ()
#6 0xb3c7ec9f in ?? ()
#7 0xb3c7ea1f in ?? ()
#8 0xb3c7e82f in ?? ()
#9 0xb3c7e71e in ?? ()
#10 0x0809e8e3 in mono_runtime_invoke_array ()
#11 0x0809ea71 in ?? ()
#12 0x080d8ff3 in ?? ()
#13 0x080d9420 in ?? ()
#14 0x080d5f74 in ?? ()
#15 0x081279de in ?? ()
#16 0x0813ff75 in ?? ()
#17 0xb7f3250f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#18 0xb7e89a0e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 7 (Thread 0xb3b39b90 (LWP 23446)):
#0 0xb8045430 in __kernel_vsyscall ()
#1 0xb7f363a2 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2 0x08114368 in ?? ()
#3 0x08114432 in ?? ()
#4 0x08129a75 in ?? ()
#5 0x080d4bd9 in ?? ()
#6 0xb3c7ec9f in ?? ()
#7 0xb3c7ea1f in ?? ()
#8 0xb3c7e82f in ?? ()
#9 0xb3c7e71e in ?? ()
#10 0x0809e8e3 in mono_runtime_invoke_array ()
#11 0x0809ea71 in ?? ()
#12 0x080d8ff3 in ?? ()
#13 0x080d9420 in ?? ()
#14 0x080d5f74 in ?? ()
#15 0x081279de in ?? ()
#16 0x0813ff75 in ?? ()
#17 0xb7f3250f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#18 0xb7e89a0e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 6 (Thread 0xb3a34b90 (LWP 23447)):
#0 0xb8045430 in __kernel_vsyscall ()
#1 0xb7f363a2 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2 0x08114368 in ?? ()
#3 0x08114432 in ?? ()
#4 0x08129a75 in ?? ()
#5 0x080d4bd9 in ?? ()
#6 0xb3c7ec9f in ?? ()
#7 0xb3c7ea1f in ?? ()
#8 0xb3c7e82f in ?? ()
#9 0xb3c7e71e in ?? ()
#10 0x0809e8e3 in mono_runtime_invoke_array ()
#11 0x0809ea71 in ?? ()
#12 0x080d8ff3 in ?? ()
#13 0x080d9420 in ?? ()
#14 0x080d5f74 in ?? ()
#15 0x081279de in ?? ()
#16 0x0813ff75 in ?? ()
#17 0xb7f3250f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#18 0xb7e89a0e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 5 (Thread 0xb2e29b90 (LWP 23452)):
#0 0xb8045430 in __kernel_vsyscall ()
#1 0xb7e7f167 in poll () from /lib/tls/i686/cmov/libc.so.6
#2 0xb2fb4f21 in ?? ()
#3 0xb2fb4ecd in ?? ()
#4 0x09ba9d52 in ?? ()
#5 0xb2e41a4d in avahi_simple_poll_run () from /usr/lib/libavahi-common.so.3
#6 0xb2e42320 in avahi_simple_poll_iterate ()
   from /usr/lib/libavahi-common.so.3
#7 0xb2e42370 in avahi_simple_poll_loop () from /usr/lib/libavahi-common.so.3
#8 0xb2fb4e8b in ?? ()
#9 0xb2fb4dc2 in ?? ()
#10 0xb79cf411 in ?? ()
#11 0x08098c55 in mono_runtime_delegate_invoke ()
#12 0x080d5fdf in ?? ()
#13 0x081279de in ?? ()
#14 0x0813ff75 in ?? ()
#15 0xb7f3250f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#16 0xb7e89a0e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 4 (Thread 0xb2d24b90 (LWP 23453)):
#0 0xb8045430 in __kernel_vsyscall ()
#1 0xb7f39328 in accept () from /lib/tls/i686/cmov/libpthread.so.0
#2 0x08124909 in ?? ()
#3 0x080ddb1b in ?? ()
#4 0xb2fba672 in ?? ()
#5 0xb2fba487 in ?? ()
#6 0xb2fba36e in ?? ()
#7 0xb79cf411 in ?? ()
#8 0x08098c55 in mono_runtime_delegate_invoke ()
#9 0x080d5fdf in ?? ()
#10 0x081279de in ?? ()
#11 0x0813ff75 in ?? ()
#12 0xb7f3250f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#13 0xb7e89a0e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 3 (Thread 0xb2c09b90 (LWP 23454)):
#0 0xb8045430 in __kernel_vsyscall ()
#1 0xb7e7f167 in poll () from /lib/tls/i686/cmov/libc.so.6
#2 0xb7f85c32 in g_main_context_iterate (context=0x9bbf390, block=1,
    dispatch=1, self=0x9bd3e28)
    at /build/buildd/glib2.0-2.18.2/glib/gmain.c:3091
#3 0xb7f862c2 in IA__g_main_loop_run (loop=0x9bbf410)
    at /build/buildd/glib2.0-2.18.2/glib/gmain.c:2986
#4 0xb50b78b0 in ?? () from /usr/lib/libORBit-2.so.0
#5 0xb7fad02f in g_thread_create_proxy (data=0x9bd3e28)
    at /build/buildd/glib2.0-2.18.2/glib/gthread.c:635
#6 0xb7f3250f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#7 0xb7e89a0e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread 0xb2f64b90 (LWP 23480)):
#0 0xb8045430 in __kernel_vsyscall ()
#1 0xb7e81df1 in select () from /lib/tls/i686/cmov/libc.so.6
#2 0xb7fbb98b in IA__g_spawn_sync (working_directory=0x0, argv=0xb2a12640,
    envp=0x0, flags=<value optimized out>, child_setup=0, user_data=0x0,
    standard_output=0xb2e5f834, standard_error=0xb2e5f830,
    exit_status=0xb2e5f82c, error=0x0)
    at /build/buildd/glib2.0-2.18.2/glib/gspawn.c:313
#3 0xb7fbbd3c in IA__g_spawn_command_line_sync (
    command_line=0xb2e5f838 "gdb --ex 'attach 23439' --ex 'info threads' --ex 'thread apply all bt' --batch", standard_output=0xb2e5f834,
    standard_error=0xb2e5f830, exit_status=0xb2e5f82c, error=0x0)
    at /build/buildd/glib2.0-2.18.2/glib/gspawn.c:694
#4 0x0817b565 in ?? ()
#5 0x0807f78b in ?? ()
#6 <signal handler called>
#7 0xb7e1f323 in strlen () from /lib/tls/i686/cmov/libc.so.6
#8 0x0809ca2a in mono_string_new ()
#9 0x0809cab3 in mono_string_new_wrapper ()
#10 0xb505aa6f in ?? ()
#11 0xb2c15f43 in ?? ()
#12 0xb2c15703 in ?? ()
#13 0x080c65c8 in ?? ()
#14 0xb5006f42 in ?? ()
#15 0xb2c15b9b in ?? ()
#16 0xb2c15b13 in ?? ()
#17 0xb2c1598f in ?? ()
#18 0xb2c1586a in ?? ()
#19 0xb2c157dc in ?? ()
#20 0xb2c13224 in ?? ()
#21 0xb2c106d0 in ?? ()
#22 0xb2fbaa96 in ?? ()
#23 0xb2fb1cbc in ?? ()
#24 0xb2faf325 in ?? ()
#25 0xb2faf304 in ?? ()
#26 0xb2faefb8 in ?? ()
#27 0xb79cf411 in ?? ()
#28 0x08098c55 in mono_runtime_delegate_invoke ()
#29 0x080d5fdf in ?? ()
#30 0x081279de in ?? ()
#31 0x0813ff75 in ?? ()
#32 0xb7f3250f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#33 0xb7e89a0e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb7d7c6d0 (LWP 23439)):
#0 0xb8045430 in __kernel_vsyscall ()
#1 0xb7e7f167 in poll () from /lib/tls/i686/cmov/libc.so.6
#2 0xb7f85c32 in g_main_context_iterate (context=0x895b880, block=1,
    dispatch=1, self=0x871ad40)
    at /build/buildd/glib2.0-2.18.2/glib/gmain.c:3091
#3 0xb7f862c2 in IA__g_main_loop_run (loop=0x9a2f5a0)
    at /build/buildd/glib2.0-2.18.2/glib/gmain.c:2986
#4 0xb6bee3a9 in IA__gtk_main ()
    at /build/buildd/gtk+2.0-2.14.4/gtk/gtkmain.c:1200
#5 0xb305677e in ?? ()
#6 0xb3056748 in ?? ()
#7 0xb30564eb in ?? ()
#8 0xb6e6656d in ?? ()
#9 0xb6e66453 in ?? ()
#10 0xb6e6635a in ?? ()
#11 0xb79cd47c in ?? ()
#12 0xb79c11c3 in ?? ()
#13 0x0809cb76 in mono_runtime_exec_main ()
#14 0x0809d19b in mono_runtime_run_main ()
#15 0x0805af2e in mono_main ()
#16 0x0805a432 in ?? ()
#17 0xb7dbe685 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#18 0x0805a371 in ?? ()
#0 0xb8045430 in __kernel_vsyscall ()

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Aborted

Revision history for this message
Andrew Conkling (andrewski) wrote :

I believe a fix for this was released in 1.4; could you possibly try the Intrepid PPA or packaged version in Jaunty to see if it fixes the problem for you?
The PPA can be found here: https://edge.launchpad.net/~banshee-team/+archive/ppa
Thanks for reporting!

Changed in banshee:
status: New → Incomplete
Revision history for this message
Daniël van Eeden (dveeden) wrote :

I've upgraded to the Intrepid PPA version. (from 1.2.1-3ubuntu1 to1.4.2-1~intrepid1)

Problem 1 (LP #330278):
  Fixed. Disconnecting a N73 in "Media Player" mode no longer crashes Banshee
  Please backport this fix to Ubuntu 8.10 (and other impacted releases which are still in supported state)

Problem 2 (LP #330281):
  Smart Playlist System.NullReferenceException still exists.

LP #330281 is marked as a duplicate of LP #330278 which it isn't.

Revision history for this message
Andrew Conkling (andrewski) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. I am closing it because the bug has been fixed in the latest development version of Ubuntu - the Jaunty Jackalope.

If you need a fix for the bug in previous versions of Ubuntu, please follow the instructions for "How to request new packages" at https://help.ubuntu.com/community/UbuntuBackports#request-new-packages

Changed in banshee:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.