After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 524985 - crash in rb_ipod_db_set_ipod_name
crash in rb_ipod_db_set_ipod_name
Status: RESOLVED FIXED
Product: rhythmbox
Classification: Other
Component: iPod
0.11.x
Other All
: High critical
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
This bug is on the auto-stacktrace-re...
: 482571 517143 526995 527332 527417 527661 527678 527963 528997 529366 529404 530155 530547 530548 530625 532015 532191 532192 532903 533021 533235 533294 533572 533574 534030 534102 534816 535028 535316 535317 536333 536850 536945 537620 537630 537881 538092 538121 538291 538292 538985 539215 539217 539611 540052 541925 542238 542406 542449 542457 542584 542620 542732 542807 542901 543050 543980 544163 544641 545577 547235 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-03-29 16:03 UTC by gozdal
Modified: 2008-08-11 20:10 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
Proposed patch (1.04 KB, patch)
2008-05-17 15:41 UTC, Christophe Fergeau
accepted-commit_now Details | Review

Description gozdal 2008-03-29 16:03:56 UTC
Version: 0.11.5

What were you doing when the application crashed?
Run rhythmbox


Distribution: Debian 3.1 (sarge)
Gnome Release: 2.22.0 2008-03-14 (Debian)
BugBuddy Version: 2.22.0

System: Linux 2.6.24-1-amd64 #1 SMP Mon Feb 11 13:47:43 UTC 2008 x86_64
X Vendor: The X.Org Foundation
X Vendor Release: 10400090
Selinux: No
Accessibility: Disabled
GTK+ Theme: Clearlooks
Icon Theme: gnome

Memory status: size: 481062912 vsize: 481062912 resident: 45342720 share: 19804160 rss: 45342720 rss_rlim: 18446744073709551615
CPU usage: start_time: 1206806615 rtime: 97 utime: 84 stime: 13 cutime:0 cstime: 2 timeout: 0 it_real_value: 0 frequency: 100

Backtrace was generated from '/usr/bin/rhythmbox'

(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0x2b4aed5e1cc0 (LWP 13998)]
(no debugging symbols found)
0x0000003a57c0e5ef in waitpid () from /lib/libpthread.so.0

Thread 1 (Thread 0x2b4aed5e1cc0 (LWP 13998))

  • #0 waitpid
    from /lib/libpthread.so.0
  • #1 g_spawn_sync
    from /usr/lib/libglib-2.0.so.0
  • #2 g_spawn_command_line_sync
    from /usr/lib/libglib-2.0.so.0
  • #3 ??
    from /usr/lib/gtk-2.0/modules/libgnomebreakpad.so
  • #4 <signal handler called>
  • #5 rb_ipod_db_set_ipod_name
    from /usr/lib/rhythmbox/plugins/ipod/libipod.so
  • #6 ??
    from /usr/lib/rhythmbox/plugins/ipod/libipod.so
  • #7 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #8 ??
    from /usr/lib/libgobject-2.0.so.0
  • #9 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #10 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #11 ??
    from /usr/lib/libgobject-2.0.so.0
  • #12 g_object_newv
    from /usr/lib/libgobject-2.0.so.0
  • #13 g_object_new_valist
    from /usr/lib/libgobject-2.0.so.0
  • #14 g_object_new
    from /usr/lib/libgobject-2.0.so.0
  • #15 rb_ipod_source_new
    from /usr/lib/rhythmbox/plugins/ipod/libipod.so
  • #16 ??
    from /usr/lib/rhythmbox/plugins/ipod/libipod.so
  • #17 rb_marshal_OBJECT__OBJECT
    from /usr/lib/librhythmbox-core.so.0
  • #18 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #19 ??
    from /usr/lib/libgobject-2.0.so.0
  • #20 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #21 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #22 ??
  • #23 rb_removable_media_manager_scan
  • #24 ??
  • #25 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #26 ??
    from /usr/lib/libglib-2.0.so.0
  • #27 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #28 gtk_main
    from /usr/lib/libgtk-x11-2.0.so.0
  • #29 main
  • #0 waitpid
    from /lib/libpthread.so.0


----------- .xsession-errors ---------------------
(rhythmbox:13998): GLib-CRITICAL **: g_utf8_collate: assertion `str1 != NULL' failed
(rhythmbox:13998): GLib-CRITICAL **: g_utf8_casefold: assertion `str != NULL' failed
(rhythmbox:13998): GLib-CRITICAL **: g_utf8_collate: assertion `str1 != NULL' failed
(rhythmbox:13998): GLib-CRITICAL **: g_utf8_casefold: assertion `str != NULL' failed
(rhythmbox:13998): GLib-CRITICAL **: g_utf8_collate: assertion `str1 != NULL' failed
(rhythmbox:13998): GLib-CRITICAL **: g_utf8_casefold: assertion `str != NULL' failed
(rhythmbox:13998): GLib-CRITICAL **: g_utf8_collate: assertion `str1 != NULL' failed
(rhythmbox:13998): GLib-GObject-CRITICAL **: g_type_instance_get_private: assertion `instance != NULL && instance->g_class != NULL' failed
--------------------------------------------------
Comment 1 Jonathan Matthew 2008-03-29 22:05:37 UTC
Thanks for taking the time to report this bug.
Unfortunately, that stack trace is missing some elements that will help a lot to solve the problem, so it will be hard for the developers to fix that crash. Can you get us a stack trace with debugging symbols? Please see http://live.gnome.org/GettingTraces for more information on how to do so and reopen this bug or report a new one. Thanks in advance!
Comment 2 gozdal 2008-03-30 21:23:05 UTC
Distribution: Debian 3.1 (sarge)
Gnome Release: 2.22.0 2008-03-14 (Debian)
BugBuddy Version: 2.22.0

System: Linux 2.6.24-1-amd64 #1 SMP Mon Feb 11 13:47:43 UTC 2008 x86_64
X Vendor: The X.Org Foundation
X Vendor Release: 10400090
Selinux: No
Accessibility: Disabled
GTK+ Theme: Clearlooks
Icon Theme: gnome

Memory status: size: 478498816 vsize: 478498816 resident: 45416448 share: 19820544 rss: 45416448 rss_rlim: 18446744073709551615
CPU usage: start_time: 1206912045 rtime: 104 utime: 86 stime: 18 cutime:4 cstime: 12 timeout: 0 it_real_value: 0 frequency: 100

Backtrace was generated from '/usr/bin/rhythmbox'

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 0x2b7ac29439e0 (LWP 23948)]
0x0000003a57c0e5ef in waitpid () from /lib/libpthread.so.0

Thread 1 (Thread 0x2b7ac29439e0 (LWP 23948))

  • #0 waitpid
    from /lib/libpthread.so.0
  • #1 g_spawn_sync
    from /usr/lib/libglib-2.0.so.0
  • #2 g_spawn_command_line_sync
    from /usr/lib/libglib-2.0.so.0
  • #3 ??
    from /usr/lib/gtk-2.0/modules/libgnomebreakpad.so
  • #4 <signal handler called>
  • #5 rb_ipod_db_set_ipod_name
    at rb-ipod-db.c line 439
  • #6 rb_ipod_source_name_changed_cb
    at rb-ipod-source.c line 161
  • #7 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #8 ??
    from /usr/lib/libgobject-2.0.so.0
  • #9 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #10 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #11 ??
    from /usr/lib/libgobject-2.0.so.0
  • #12 g_object_newv
    from /usr/lib/libgobject-2.0.so.0
  • #13 g_object_new_valist
    from /usr/lib/libgobject-2.0.so.0
  • #14 g_object_new
    from /usr/lib/libgobject-2.0.so.0
  • #15 rb_ipod_source_new
    at rb-ipod-source.c line 273
  • #16 create_source_cb
    at rb-ipod-plugin.c line 205
  • #17 rb_marshal_OBJECT__OBJECT
    at rb-marshal.c line 327
  • #18 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #19 ??
    from /usr/lib/libgobject-2.0.so.0
  • #20 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #21 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #22 rb_removable_media_manager_mount_volume
    at rb-removable-media-manager.c line 438
  • #23 rb_removable_media_manager_scan
    at rb-removable-media-manager.c line 610
  • #24 _scan_idle
    at rb-shell.c line 1294
  • #25 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #26 ??
    from /usr/lib/libglib-2.0.so.0
  • #27 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #28 IA__gtk_main
    at /build/buildd/gtk+2.0-2.12.9/gtk/gtkmain.c line 1163
  • #29 main
    at main.c line 327
  • #0 waitpid
    from /lib/libpthread.so.0


----------- .xsession-errors (92901 sec old) ---------------------
(npviewer.bin:20412): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so: niew\xb3a\xb6ciwa klasa ELF: ELFCLASS64
(npviewer.bin:20412): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so: niew\xb3a\xb6ciwa klasa ELF: ELFCLASS64
(npviewer.bin:20412): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so: niew\xb3a\xb6ciwa klasa ELF: ELFCLASS64
(npviewer.bin:20412): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so: niew\xb3a\xb6ciwa klasa ELF: ELFCLASS64
(npviewer.bin:20412): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so: niew\xb3a\xb6ciwa klasa ELF: ELFCLASS64
(npviewer.bin:20412): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so: niew\xb3a\xb6ciwa klasa ELF: ELFCLASS64
(npviewer.bin:20412): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so: niew\xb3a\xb6ciwa klasa ELF: ELFCLASS64
...Too much output, ignoring rest...
--------------------------------------------------
Comment 3 Jonathan Matthew 2008-04-11 23:26:55 UTC
*** Bug 527332 has been marked as a duplicate of this bug. ***
Comment 4 Jonathan Matthew 2008-04-11 23:27:05 UTC
*** Bug 527417 has been marked as a duplicate of this bug. ***
Comment 5 Jonathan Matthew 2008-04-12 22:51:18 UTC
*** Bug 526995 has been marked as a duplicate of this bug. ***
Comment 6 Jonathan Matthew 2008-04-12 22:51:40 UTC
*** Bug 527661 has been marked as a duplicate of this bug. ***
Comment 7 Jonathan Matthew 2008-04-12 23:49:35 UTC
*** Bug 527678 has been marked as a duplicate of this bug. ***
Comment 8 Jonathan Matthew 2008-04-17 01:28:36 UTC
*** Bug 527963 has been marked as a duplicate of this bug. ***
Comment 9 Jonathan Matthew 2008-04-22 08:22:31 UTC
*** Bug 528997 has been marked as a duplicate of this bug. ***
Comment 10 Christophe Fergeau 2008-04-22 12:11:19 UTC
*** Bug 482571 has been marked as a duplicate of this bug. ***
Comment 11 Christophe Fergeau 2008-04-22 12:23:48 UTC
we connect rb_ipod_source_name_changed_cb to RbIpodSource::notify::name in RbIpodSource::init but the callback uses RbIpodSource::priv::ipod_db which is only created at the end of RbIpodSource::constructor. I guess a notify::name signal is emitted after the signal is connected but befor the constructor runs to its end. We could move the signal connection after the creation of priv::ipod_db or silently return if priv::ipod_db is NULL.
Comment 12 Jonathan Matthew 2008-04-22 12:57:08 UTC
I think it'd make sense to connect the notify::name signal handler in rb_ipod_load_songs after the g_object_set that sets the name.
Comment 13 Jonathan Matthew 2008-04-22 21:18:49 UTC
*** Bug 529404 has been marked as a duplicate of this bug. ***
Comment 14 Jonathan Matthew 2008-04-28 09:45:28 UTC
*** Bug 529366 has been marked as a duplicate of this bug. ***
Comment 15 Susana 2008-04-30 09:42:19 UTC
*** Bug 530155 has been marked as a duplicate of this bug. ***
Comment 16 Susana 2008-04-30 10:46:37 UTC
*** Bug 530625 has been marked as a duplicate of this bug. ***
Comment 17 Susana 2008-04-30 10:46:50 UTC
*** Bug 530548 has been marked as a duplicate of this bug. ***
Comment 18 Susana 2008-04-30 10:48:27 UTC
*** Bug 530547 has been marked as a duplicate of this bug. ***
Comment 19 Susana 2008-05-09 22:44:53 UTC
*** Bug 532015 has been marked as a duplicate of this bug. ***
Comment 20 Susana 2008-05-09 22:47:54 UTC
*** Bug 532191 has been marked as a duplicate of this bug. ***
Comment 21 Susana 2008-05-09 22:48:01 UTC
*** Bug 532192 has been marked as a duplicate of this bug. ***
Comment 22 Christophe Fergeau 2008-05-17 15:10:14 UTC
*** Bug 533574 has been marked as a duplicate of this bug. ***
Comment 23 Christophe Fergeau 2008-05-17 15:41:55 UTC
Created attachment 111052 [details] [review]
Proposed patch
Comment 24 Jonathan Matthew 2008-05-18 01:24:24 UTC
looks fine to me.
Comment 25 Diego Escalante Urrelo (not reading bugmail) 2008-05-18 20:11:33 UTC
*** Bug 532903 has been marked as a duplicate of this bug. ***
Comment 26 Diego Escalante Urrelo (not reading bugmail) 2008-05-18 20:14:04 UTC
*** Bug 533021 has been marked as a duplicate of this bug. ***
Comment 27 Diego Escalante Urrelo (not reading bugmail) 2008-05-18 21:12:00 UTC
*** Bug 533235 has been marked as a duplicate of this bug. ***
Comment 28 Diego Escalante Urrelo (not reading bugmail) 2008-05-18 21:12:05 UTC
*** Bug 533294 has been marked as a duplicate of this bug. ***
Comment 29 Diego Escalante Urrelo (not reading bugmail) 2008-05-18 21:12:33 UTC
*** Bug 533572 has been marked as a duplicate of this bug. ***
Comment 30 Diego Escalante Urrelo (not reading bugmail) 2008-05-18 21:13:35 UTC
Confirming as per dupes and patch status. As a bonus note, some reports mentioned that if you initialized the db somewhere else, the crash didn't happen.
Comment 31 Christophe Fergeau 2008-05-20 12:37:22 UTC
*** Bug 534030 has been marked as a duplicate of this bug. ***
Comment 32 Christophe Fergeau 2008-05-20 21:12:03 UTC
ok, I committed the patch in rev 5705:

2008-05-20  Christophe Fergeaui  <teuf@gnome.org>

        * plugins/ipod/rb-ipod-source.c: don't connect to notify::name too
        soon during RbIpodSource instanciation since
        RbIpodSource::priv::ipod_db must be set before the notify::name
        callback can be safely used, this fixes bug #524985. In
        impl_delete_thyself, don't try to use priv->ipod_db if it's NULL
        (which can happen with empty ipods)

Comment 33 Christophe Fergeau 2008-05-20 21:12:52 UTC
*** Bug 534102 has been marked as a duplicate of this bug. ***
Comment 34 Diego Escalante Urrelo (not reading bugmail) 2008-05-27 15:10:23 UTC
*** Bug 535028 has been marked as a duplicate of this bug. ***
Comment 35 André Klapper 2008-05-28 23:07:46 UTC
*** Bug 534816 has been marked as a duplicate of this bug. ***
Comment 36 André Klapper 2008-05-28 23:09:33 UTC
*** Bug 535317 has been marked as a duplicate of this bug. ***
Comment 37 André Klapper 2008-05-28 23:09:33 UTC
*** Bug 535316 has been marked as a duplicate of this bug. ***
Comment 38 Susana 2008-06-07 12:14:31 UTC
*** Bug 536333 has been marked as a duplicate of this bug. ***
Comment 39 Susana 2008-06-07 12:14:44 UTC
*** Bug 536850 has been marked as a duplicate of this bug. ***
Comment 40 Susana 2008-06-07 12:43:23 UTC
*** Bug 536945 has been marked as a duplicate of this bug. ***
Comment 41 Jonathan Matthew 2008-06-09 02:06:52 UTC
*** Bug 517143 has been marked as a duplicate of this bug. ***
Comment 42 Christophe Fergeau 2008-06-11 22:08:05 UTC
*** Bug 537881 has been marked as a duplicate of this bug. ***
Comment 43 Christophe Fergeau 2008-06-14 19:14:41 UTC
*** Bug 538292 has been marked as a duplicate of this bug. ***
Comment 44 Christophe Fergeau 2008-06-14 19:16:21 UTC
*** Bug 538092 has been marked as a duplicate of this bug. ***
Comment 45 Christophe Fergeau 2008-06-14 19:16:45 UTC
*** Bug 537630 has been marked as a duplicate of this bug. ***
Comment 46 André Klapper 2008-06-15 12:12:31 UTC
*** Bug 537620 has been marked as a duplicate of this bug. ***
Comment 47 André Klapper 2008-06-15 12:12:33 UTC
*** Bug 538121 has been marked as a duplicate of this bug. ***
Comment 48 André Klapper 2008-06-15 12:12:35 UTC
*** Bug 538291 has been marked as a duplicate of this bug. ***
Comment 49 Susana 2008-06-22 13:04:55 UTC
*** Bug 538985 has been marked as a duplicate of this bug. ***
Comment 50 Susana 2008-06-22 13:05:05 UTC
*** Bug 539215 has been marked as a duplicate of this bug. ***
Comment 51 Susana 2008-06-22 13:05:18 UTC
*** Bug 539217 has been marked as a duplicate of this bug. ***
Comment 52 Susana 2008-06-23 20:13:34 UTC
*** Bug 539611 has been marked as a duplicate of this bug. ***
Comment 53 André Klapper 2008-06-26 12:10:34 UTC
*** Bug 540052 has been marked as a duplicate of this bug. ***
Comment 54 Christophe Fergeau 2008-07-10 21:41:13 UTC
*** Bug 542406 has been marked as a duplicate of this bug. ***
Comment 55 Christophe Fergeau 2008-07-10 23:16:08 UTC
*** Bug 542449 has been marked as a duplicate of this bug. ***
Comment 56 Christophe Fergeau 2008-07-10 23:16:46 UTC
*** Bug 542457 has been marked as a duplicate of this bug. ***
Comment 57 Christophe Fergeau 2008-07-11 20:46:44 UTC
*** Bug 542584 has been marked as a duplicate of this bug. ***
Comment 58 Christophe Fergeau 2008-07-12 10:58:38 UTC
*** Bug 542620 has been marked as a duplicate of this bug. ***
Comment 59 Christophe Fergeau 2008-07-13 10:12:34 UTC
*** Bug 542732 has been marked as a duplicate of this bug. ***
Comment 60 Susana 2008-07-21 06:24:20 UTC
*** Bug 542901 has been marked as a duplicate of this bug. ***
Comment 61 Susana 2008-07-21 06:24:32 UTC
*** Bug 543050 has been marked as a duplicate of this bug. ***
Comment 62 Susana 2008-07-21 06:25:45 UTC
*** Bug 542238 has been marked as a duplicate of this bug. ***
Comment 63 Susana 2008-07-21 06:26:16 UTC
*** Bug 541925 has been marked as a duplicate of this bug. ***
Comment 64 André Klapper 2008-07-21 21:52:25 UTC
*** Bug 542807 has been marked as a duplicate of this bug. ***
Comment 65 André Klapper 2008-07-21 22:04:32 UTC
*** Bug 543980 has been marked as a duplicate of this bug. ***
Comment 66 Christophe Fergeau 2008-07-22 13:54:40 UTC
*** Bug 544163 has been marked as a duplicate of this bug. ***
Comment 67 Christophe Fergeau 2008-07-25 10:30:20 UTC
*** Bug 544641 has been marked as a duplicate of this bug. ***
Comment 68 Christophe Fergeau 2008-07-30 19:38:11 UTC
*** Bug 545577 has been marked as a duplicate of this bug. ***
Comment 69 Susana 2008-08-11 20:10:08 UTC
*** Bug 547235 has been marked as a duplicate of this bug. ***