#4 1.0pre7: still problems with multiple matches

closed
Wenzler
None
5
2006-04-15
2004-11-14
Thomas Bark
No

There are still problems with multiple matches in
version 1.0pre7:
Query response: 211 Found inexact matches, list follows
(until terminating `.')
Speicherzugriffsfehler (memory access error)

Discussion

  • Nobody/Anonymous

    Logged In: NO

    so - does it crash? speicherzugriffsfehler/segfault looks
    like it
    ive found that it "kinda" works if you push cddb 2 times
    ill have a closer look another day
    cya
    s wenzler

     
  • Thomas Bark

    Thomas Bark - 2004-11-19

    Logged In: YES
    user_id=585545

    Yes, it crashes.
    maybe the buffer for the huge amount of replies is to small?
    Is there a possibility that I can start it with a debugger?

    BTW, I had bad success when trying to push the cddb buttom
    more than once. So if I want to put in another CD, I exit
    and start the application a second time.

     
  • Thomas Bark

    Thomas Bark - 2005-03-14

    Logged In: YES
    user_id=585545

    Now I used a debug version of 1.0pre7.
    here's the output:
    (gdb) run
    Starting program: /home/tom/cdl/bin/gtkcdlabel
    [Thread debugging using libthread_db enabled]
    [New Thread 1083379680 (LWP 16610)]
    Detaching after fork from child process 16613.
    Detaching after fork from child process 16614.
    Detaching after fork from child process 16615.
    Query response: 211 Found inexact matches, list follows
    (until terminating `.')
    Warum
    Sterne
    Geile Zeit
    Tage Wie Dieser

    Program received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 1083379680 (LWP 16610)]
    0x40666f73 in strlen () from /lib/tls/libc.so.6
    (gdb) where
    #0 0x40666f73 in strlen () from /lib/tls/libc.so.6
    #1 0x4065471c in puts () from /lib/tls/libc.so.6
    #2 0x0804effb in on_get_cddb_clicked (button=0x8155d00,
    user_data=0x0) at mcallbacks.c:576
    #3 0x40556ad1 in g_cclosure_marshal_VOID__VOID () from
    /opt/gnome/lib/libgobject-2.0.so.0
    #4 0x40547bfb in g_closure_invoke () from
    /opt/gnome/lib/libgobject-2.0.so.0
    #5 0x40558fb0 in signal_emit_unlocked_R () from
    /opt/gnome/lib/libgobject-2.0.so.0
    #6 0x4055a68a in g_signal_emit_valist () from
    /opt/gnome/lib/libgobject-2.0.so.0
    #7 0x4055a9b2 in g_signal_emit () from
    /opt/gnome/lib/libgobject-2.0.so.0
    #8 0x4009df91 in gtk_button_clicked () from
    /opt/gnome/lib/libgtk-x11-2.0.so.0
    #9 0x4009f015 in gtk_real_button_released () from
    /opt/gnome/lib/libgtk-x11-2.0.so.0
    #10 0x40556ad1 in g_cclosure_marshal_VOID__VOID () from
    /opt/gnome/lib/libgobject-2.0.so.0
    #11 0x405478e7 in g_type_class_meta_marshal () from
    /opt/gnome/lib/libgobject-2.0.so.0
    #12 0x40547bfb in g_closure_invoke () from
    /opt/gnome/lib/libgobject-2.0.so.0
    #13 0x40558df2 in signal_emit_unlocked_R () from
    /opt/gnome/lib/libgobject-2.0.so.0
    #14 0x4055a68a in g_signal_emit_valist () from
    /opt/gnome/lib/libgobject-2.0.so.0
    #15 0x4055a9b2 in g_signal_emit () from
    /opt/gnome/lib/libgobject-2.0.so.0
    #16 0x4009e041 in gtk_button_released () from
    /opt/gnome/lib/libgtk-x11-2.0.so.0
    #17 0x4009e0cf in gtk_button_button_release () from
    /opt/gnome/lib/libgtk-x11-2.0.so.0
    #18 0x4015ffa4 in _gtk_marshal_BOOLEAN__BOXED () from
    /opt/gnome/lib/libgtk-x11-2.0.so.0
    #19 0x405478e7 in g_type_class_meta_marshal () from
    /opt/gnome/lib/libgobject-2.0.so.0
    #20 0x40547bfb in g_closure_invoke () from
    /opt/gnome/lib/libgobject-2.0.so.0
    #21 0x405593f6 in signal_emit_unlocked_R () from
    /opt/gnome/lib/libgobject-2.0.so.0
    #22 0x4055a3f6 in g_signal_emit_valist () from
    /opt/gnome/lib/libgobject-2.0.so.0
    #23 0x4055a9b2 in g_signal_emit () from
    /opt/gnome/lib/libgobject-2.0.so.0
    #24 0x40257d64 in gtk_widget_event_internal () from
    /opt/gnome/lib/libgtk-x11-2.0.so.0
    #25 0x40158469 in gtk_propagate_event () from
    /opt/gnome/lib/libgtk-x11-2.0.so.0
    #26 0x40159991 in gtk_main_do_event () from
    /opt/gnome/lib/libgtk-x11-2.0.so.0
    #27 0x40477c12 in gdk_event_dispatch () from
    /opt/gnome/lib/libgdk-x11-2.0.so.0
    #28 0x405a5d17 in g_main_context_dispatch () from
    /opt/gnome/lib/libglib-2.0.so.0
    #29 0x405a8467 in g_main_context_iterate () from
    /opt/gnome/lib/libglib-2.0.so.0
    #30 0x405a9677 in g_main_loop_run () from
    /opt/gnome/lib/libglib-2.0.so.0
    #31 0x40159e43 in gtk_main () from
    /opt/gnome/lib/libgtk-x11-2.0.so.0
    #32 0x0804c971 in main (argc=1, argv=0xbffff164) at main.c:319
    (gdb)

    Hope it helps.
    You can give me some hints, what I can debug for you.
    I'm not familiar with gdb.

     
  • Thomas Bark

    Thomas Bark - 2005-03-15

    Logged In: YES
    user_id=585545

    problem is located in cddb.c line 73:
    cdinfo->tracks[num].title =
    g_strdup(g_locale_to_utf8(title,strlen(title),NULL,NULL,NULL));

    local charset is UTF-8;
    if the title contains a german special sign like ,,
    g_locale_to_utf8 returns an error, and delivers a NULL
    string as title. This later gives an segfault in
    mcallbacks.c line 576.

    Patch:
    replace line 73 by
    cdinfo->tracks[num].title =
    g_strdup(g_convert(title,strlen(title), "UTF-8",
    "ISO-8859-1", NULL, NULL, NULL));

     
  • Wenzler

    Wenzler - 2006-04-01
    • assigned_to: nobody --> s_wenzler
    • status: open --> pending
     
  • Wenzler

    Wenzler - 2006-04-01

    Logged In: YES
    user_id=58535

    plz check again

     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks