Bug 699255 - Segfault in g_str_hash()
Summary: Segfault in g_str_hash()
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: rhythmbox
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Bastien Nocera
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-24 16:48 UTC by Tom London
Modified: 2015-02-17 13:43 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-17 13:43:41 UTC
Type: ---


Attachments (Terms of Use)
'script' run with complete output from 'gdb core.XXXX' (148.10 KB, text/plain)
2011-04-24 16:48 UTC, Tom London
no flags Details
output of gdb on seg-fault core file showing 'bt full' and 'thread apply all bt full" (52.95 KB, text/plain)
2011-04-30 19:08 UTC, Tom London
no flags Details

Description Tom London 2011-04-24 16:48:22 UTC
Created attachment 494542 [details]
'script' run with complete output from 'gdb core.XXXX'

Description of problem:
Got this segfault when I used audacity to update a strip I was playing in rhythmbox:

Core was generated by `rhythmbox'.
Program terminated with signal 11, Segmentation fault.
#0  g_str_hash (v=0x0) at gstring.c:142
142	  for (p = v; *p != '\0'; p++)
Missing separate debuginfos, use: debuginfo-install fluendo-codecs-mp3-10-2.x86_64

Here is the 'top' of the stack:
Thread 10 (Thread 0x7f75c56bc700 (LWP 3478)):
#0  0x0000003a630d73e3 in __poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
        resultvar = <optimized out>
        oldtype = 0
        result = <optimized out>
#1  0x00007f75b77a205f in poll_func (ufds=0x7f75c12adfe0, nfds=2, timeout=858, userdata=0x2f7ceb0) at pulse/thread-mainloop.c:75
        mutex = 0x2f7ceb0
        r = <optimized out>
#2  0x00007f75b7793ee6 in pa_mainloop_poll (m=0x420ab00) at pulse/mainloop.c:879
        __func__ = "pa_mainloop_poll"
        __PRETTY_FUNCTION__ = "pa_mainloop_poll"
#3  0x00007f75b7794519 in pa_mainloop_iterate (m=0x420ab00, block=<optimized out>, retval=0x0) at pulse/mainloop.c:961
        r = <optimized out>
        __func__ = "pa_mainloop_iterate"
        __PRETTY_FUNCTION__ = "pa_mainloop_iterate"
#4  0x00007f75b77945d0 in pa_mainloop_run (m=0x420ab00, retval=0x0) at pulse/mainloop.c:979
        r = <optimized out>

Full output of gdb attached.

Version-Release number of selected component (if applicable):
rhythmbox-2.90.1-7.git20110329.fc16.x86_64

How reproducible:
Don't know

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Tom London 2011-04-30 19:04:47 UTC
Got this again, this time when I was running 'grip' on a CD.

backtrace of faulting thread below.  I attach complete 'thread apply all bt full" below as well.

Core was generated by `rhythmbox'.
Program terminated with signal 11, Segmentation fault.
#0  g_str_hash (v=0x0) at gstring.c:142
142	  for (p = v; *p != '\0'; p++)
set pagination off
bt fullMissing separate debuginfos, use: debuginfo-install cdparanoia-libs-10.2-10.fc15.x86_64 fluendo-codecs-mp3-10-2.x86_64 orc-0.4.14-1.fc16.x86_64
(gdb) set pagination off
(gdb) bt full
#0  g_str_hash (v=0x0) at gstring.c:142
        p = 0x0
        h = 5381
#1  0x00000030c5a3208d in g_hash_table_lookup_node (key=0x0, hash_table=0xb53d90 = {...}) at ghash.c:313
        node = <optimized out>
        node_index = <optimized out>
        hash_value = <optimized out>
        step = 0
#2  g_hash_table_lookup (hash_table=0xb53d90 = {...}, key=0x0) at ghash.c:902
        node = <optimized out>
        node_index = 0
        __PRETTY_FUNCTION__ = "g_hash_table_lookup"
#3  0x00000039b14a4035 in rb_refstring_new (init=0x0) at rb-refstring.c:88
        ret = <optimized out>
#4  0x00000039b14a47c7 in rhythmdb_entry_sync_mirrored (entry=0x3927200, propid=<optimized out>) at rhythmdb.c:3681
        old = 0x0
        new = <optimized out>
        never = 0x39b14f69c2 "Never"
        val = 0x0
#5  0x00000039b14a9236 in rhythmdb_entry_get_string (entry=0x3927200, propid=RHYTHMDB_PROP_LAST_SEEN_STR) at rhythmdb.c:4790
        __PRETTY_FUNCTION__ = "rhythmdb_entry_get_string"
#6  0x00000039b148e41c in rb_entry_view_string_cell_data_func (column=<optimized out>, renderer=0xdc7510 [GtkCellRendererText], tree_model=<optimized out>, iter=<optimized out>, data=0xddab70) at rb-entry-view.c:1115
        entry = 0x3927200
        str = <optimized out>
#7  0x00000030c9a99425 in apply_cell_attributes (renderer=0xdc7510 [GtkCellRendererText], info=0xdd64d0, data=0x7fff51553290) at gtkcellarea.c:1281
        attribute = <optimized out>
        list = 0x0
        value = {g_type = 0, data = {{v_int = 0, v_uint = 0, v_long = 0, v_ulong = 0, v_int64 = 0, v_uint64 = 0, v_float = 0, v_double = 0, v_pointer = 0x0}, {v_int = 0, v_uint = 0, v_long = 0, v_ulong = 0, v_int64 = 0, v_uint64 = 0, v_float = 0, v_double = 0, v_pointer = 0x0}}}
        is_expander = 0
        is_expanded = 0
#8  0x00000030c5a32593 in g_hash_table_foreach (hash_table=0xdd0de0 = {...}, func=0x30c9a99320 <apply_cell_attributes>, user_data=0x7fff51553290) at ghash.c:1330
        node = <optimized out>
        i = <optimized out>
        __PRETTY_FUNCTION__ = "g_hash_table_foreach"
#9  0x00000030c9a992d6 in gtk_cell_area_real_apply_attributes (area=<optimized out>, tree_model=0xd1ee20, iter=0xdc0480, is_expander=<optimized out>, is_expanded=<optimized out>) at gtkcellarea.c:1310
        priv = 0xda5b00
        data = {area = 0xda5ad0 [GtkCellAreaBox], model = 0xd1ee20, iter = 0xdc0480, is_expander = 0, is_expanded = 0}
        path = <optimized out>
#10 0x00000030c9a9ece9 in gtk_cell_area_box_apply_attributes (area=<optimized out>, tree_model=<optimized out>, iter=<optimized out>, is_expander=<optimized out>, is_expanded=<optimized out>) at gtkcellareabox.c:1320
        box = <optimized out>
        priv = 0xda5b40
        i = <optimized out>
#11 0x00000030c620e30e in g_closure_invoke (closure=0xc536d0, return_value=0x0, n_param_values=5, param_values=0x7f1414c62000, invocation_hint=0x7fff51553420) at gclosure.c:767
        marshal = <optimized out>
        marshal_data = <optimized out>
        in_marshal = <optimized out>
        __PRETTY_FUNCTION__ = "g_closure_invoke"
#12 0x00000030c621e962 in signal_emit_unlocked_R (node=<optimized out>, detail=0, instance=0xda5ad0, emission_return=0x0, instance_and_params=0x7f1414c62000) at gsignal.c:3182
        accumulator = 0x0
        emission = {next = 0x0, instance = 0xda5ad0, ihint = {signal_id = 326, detail = 0, run_type = G_SIGNAL_RUN_FIRST}, state = EMISSION_RUN, chain_type = 11993744}
        class_closure = 0xc536d0
        hlist = 0xddac88
        handler_list = <optimized out>
        return_accu = 0x0
        accu = {g_type = 0, data = {{v_int = 0, v_uint = 0, v_long = 0, v_ulong = 0, v_int64 = 0, v_uint64 = 0, v_float = 0, v_double = 0, v_pointer = 0x0}, {v_int = 0, v_uint = 0, v_long = 0, v_ulong = 0, v_int64 = 0, v_uint64 = 0, v_float = 0, v_double = 0, v_pointer = 0x0}}}
        signal_id = 326
        max_sequential_handler_number = 11628
        return_value_altered = <optimized out>
#13 0x00000030c6228992 in g_signal_emit_valist (instance=<optimized out>, signal_id=<optimized out>, detail=<optimized out>, var_args=<optimized out>) at gsignal.c:2983
        instance_and_params = 0x7f1414c62000
        signal_return_type = 4
        param_values = 0x7f1414c62018
        node = <optimized out>
        i = <optimized out>
        n_params = 4
        __PRETTY_FUNCTION__ = "g_signal_emit_valist"
#14 0x00000030c6228b32 in g_signal_emit (instance=<optimized out>, signal_id=<optimized out>, detail=<optimized out>) at gsignal.c:3040
        var_args = {{gp_offset = 48, fp_offset = 48, overflow_arg_area = 0x7fff51553708, reg_save_area = 0x7fff51553640}}
#15 0x00000030c9a9b154 in gtk_cell_area_apply_attributes (area=0xda5ad0 [GtkCellAreaBox], tree_model=0xd1ee20, iter=0x7fff51553880, is_expander=0, is_expanded=0) at gtkcellarea.c:2359
        __PRETTY_FUNCTION__ = "gtk_cell_area_apply_attributes"
#16 0x00000030c9c458ac in validate_row (tree_view=0xd32ed0 [GtkTreeView], tree=0x2d4f4b0, node=0x7f13f8005f00, iter=0x7fff51553880, path=<optimized out>) at gtktreeview.c:6152
        padding = 0
        original_width = -1
        new_width = <optimized out>
        row_height = 27
        column = 0xdce220 [GtkTreeViewColumn]
        list = 0xdd9f80 = {0xdce220}
        first_column = 0xdc38e0 = {0xda1c20, 0xda1d00, 0xda1de0, 0xda1ec0, 0xdce060, 0xdce140, 0xdce220}
        last_column = 0xdd9f80 = {0xdce220}
        height = <optimized out>
        horizontal_separator = 2
        vertical_separator = 0
        depth = 1
        retval = <optimized out>
        is_separator = <optimized out>
        draw_vgrid_lines = 1
        draw_hgrid_lines = 0
        focus_pad = 2
        grid_line_width = 1
        wide_separators = 1
        separator_height = 0
#17 0x00000030c9c4a5e2 in validate_visible_area (tree_view=0xd32ed0 [GtkTreeView]) at gtktreeview.c:6368
        offset = <optimized out>
        iter = {stamp = -1891666807, user_data = 0x7f1444024870, user_data2 = 0x0, user_data3 = 0x0}
        need_redraw = 0
        allocation = {x = 214, y = 203, width = 799, height = 493}
        tree = 0x2d4f4b0
        node = 0x7f13f8005f00
        total_height = 462
        path = 0x2c82780
        above_path = 0x0
        size_changed = 0
        area_above = 0
        area_below = 0
#18 do_presize_handler (tree_view=0xd32ed0 [GtkTreeView]) at gtktreeview.c:6818
No locals.
#19 0x00000030c9c4a649 in presize_handler_callback (data=<optimized out>) at gtktreeview.c:6841
No locals.
#20 0x00000030c8219daf in gdk_threads_dispatch (data=0xdd1240) at gdk.c:741
        dispatch = 0xdd1240
        ret = 0
#21 0x00000030c5a42b8d in g_main_dispatch (context=0xa90180) at gmain.c:2440
        dispatch = 0x30c5a3eb40 <g_idle_dispatch>
        was_in_call = 0
        user_data = 0xdd1240
        callback = 0x30c8219d80 <gdk_threads_dispatch>
        cb_funcs = 0x30c5d15c30
        cb_data = 0x2d241f0
        current_source_link = {data = 0xe07970, next = 0x0}
        need_destroy = <optimized out>
        source = 0xe07970
        current = 0xb65bc0
        i = <optimized out>
#22 g_main_context_dispatch (context=0xa90180) at gmain.c:3013
No locals.
#23 0x00000030c5a43368 in g_main_context_iterate (context=0xa90180, block=<optimized out>, dispatch=1, self=<optimized out>) at gmain.c:3091
        max_priority = 108
        timeout = 0
        some_ready = 1
        nfds = 9
        allocated_nfds = <optimized out>
        fds = <optimized out>
        __PRETTY_FUNCTION__ = "g_main_context_iterate"
#24 0x00000030c5a439ad in g_main_loop_run (loop=0xb566c0) at gmain.c:3299
        self = 0x94e0e0
        __PRETTY_FUNCTION__ = "g_main_loop_run"
#25 0x00000030c9b476ad in gtk_main () at gtkmain.c:1358
        loop = 0xb566c0
#26 0x0000000000402d30 in main (argc=1, argv=0x7fff51553c08) at main.c:326
        _save = 0x1007960
        session_bus = <optimized out>
        error = 0x0
        rb_shell = 0xb5b000 [RBShell]
        activated = 0
        autostarted = <optimized out>
        accel_map_file = 0xb55150 "/home/tbl/.gnome2/accels/rhythmbox"
        desktop_file_path = <optimized out>
        context = <optimized out>
        options = {{long_name = 0x404113 "debug", short_name = 100 'd', flags = 0, arg = G_OPTION_ARG_NONE, arg_data = 0x605830, description = 0x404119 "Enable debug output", arg_description = 0x0}, {long_name = 0x40412d "debug-match", short_name = 68 'D', flags = 0, arg = G_OPTION_ARG_STRING, arg_data = 0x605838, description = 0x404320 "Enable debug output matching a specified string", arg_description = 0x0}, {long_name = 0x404139 "no-update", short_name = 0 '\000', flags = 0, arg = G_OPTION_ARG_NONE, arg_data = 0x605860, description = 0x404350 "Do not update the library with file changes", arg_description = 0x0}, {long_name = 0x404143 "no-registration", short_name = 110 'n', flags = 0, arg = G_OPTION_ARG_NONE, arg_data = 0x605840, description = 0x404153 "Do not register the shell", arg_description = 0x0}, {long_name = 0x40416d "dry-run", short_name = 0 '\000', flags = 0, arg = G_OPTION_ARG_NONE, arg_data = 0x60585c, description = 0x404380 "Don't save any data permanently (implies --no-registration)", arg_description = 0x0}, {long_name = 0x404175 "disable-plugins", short_name = 0 '\000', flags = 0, arg = G_OPTION_ARG_NONE, arg_data = 0x605858, description = 0x404185 "Disable loading of plugins", arg_description = 0x0}, {long_name = 0x4041a0 "rhythmdb-file", short_name = 0 '\000', flags = 0, arg = G_OPTION_ARG_STRING, arg_data = 0x605850, description = 0x4041ae "Path for database file to use", arg_description = 0x0}, {long_name = 0x4041cc "playlists-file", short_name = 0 '\000', flags = 0, arg = G_OPTION_ARG_STRING, arg_data = 0x605848, description = 0x4043c0 "Path for playlists file to use", arg_description = 0x0}, {long_name = 0x4040e0 "quit", short_name = 113 'q', flags = 0, arg = G_OPTION_ARG_NONE, arg_data = 0x605844, description = 0x4041db "Quit Rhythmbox", arg_description = 0x0}, {long_name = 0x403f11 "", short_name = 0 '\000', flags = 0, arg = G_OPTION_ARG_STRING_ARRAY, arg_data = 0x605868, description = 0x0, arg_description = 0x4041ea "[URI...]"}, {long_name = 0x0, short_name = 0 '\000', flags = 0, arg = G_OPTION_ARG_NONE, arg_data = 0x0, description = 0x0, arg_description = 0x0}}
        __FUNCTION__ = "main"
(gdb)

Comment 2 Tom London 2011-04-30 19:08:38 UTC
Created attachment 495990 [details]
output of gdb on seg-fault core file showing 'bt full' and 'thread apply all bt full"

rhythmbox-2.90.1-7.git20110329.fc16.x86_64

Comment 3 Fedora End Of Life 2013-04-03 13:54:07 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle.
Changing version to '19'.

(As we did not run this process for some time, it could affect also pre-Fedora 19 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora19

Comment 4 Fedora End Of Life 2015-01-09 16:38:49 UTC
This message is a notice that Fedora 19 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 19. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained. Approximately 4 (four) weeks from now this bug will
be closed as EOL if it remains open with a Fedora 'version' of '19'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 19 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 5 Fedora End Of Life 2015-02-17 13:43:41 UTC
Fedora 19 changed to end-of-life (EOL) status on 2015-01-06. Fedora 19 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.