bug-sourceinstall
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-sourceinstall] [bug #23671] sourceinstall-gtk segmentation faults o


From: Nicola Fontana
Subject: [bug-sourceinstall] [bug #23671] sourceinstall-gtk segmentation faults on a 64bit GnuLinux platform
Date: Sun, 22 Jun 2008 13:59:59 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); it; rv:1.9) Gecko/2008052912 Firefox/3.0

URL:
  <http://savannah.gnu.org/bugs/?23671>

                 Summary: sourceinstall-gtk segmentation faults on a 64bit
GnuLinux platform
                 Project: GNU Source Installer
            Submitted by: ntd
            Submitted on: domenica 22/06/2008 alle 15:59
                Category: User Interface
                Severity: 3 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
        Additional Notes: uname -a:

Linux amd64 2.6.24.4-ntd #1 SMP PREEMPT Tue Apr 1 17:09:35 CEST 2008 x86_64
x86_64 x86_64 GNU/Linux

Backtrace:

#0  0x00002b8201f76ba0 in strlen () from /lib64/libc.so.6
#1  0x00002b8201c89b63 in g_strdup () from /usr/lib64/libglib-2.0.so.0
#2  0x00002b820162d0e8 in ?? () from /usr/lib64/libgobject-2.0.so.0
#3  0x00002b8201613dbb in g_object_new_valist ()
   from /usr/lib64/libgobject-2.0.so.0
#4  0x00002b8201613ff8 in g_object_new () from
/usr/lib64/libgobject-2.0.so.0
#5  0x00002b82004036c5 in gtk_button_new_from_stock ()
   from /usr/lib64/libgtk-x11-2.0.so.0
#6  0x00002b82004400d1 in gtk_dialog_add_button ()
   from /usr/lib64/libgtk-x11-2.0.so.0
#7  0x00002b8200440138 in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#8  0x00002b8200440520 in gtk_dialog_new_with_buttons ()
   from /usr/lib64/libgtk-x11-2.0.so.0
#9  0x000000000040bea1 in dialog_create_msgbox_scroll ()
#10 0x000000000040bfa9 in dialog_confirm ()
#11 0x000000000040d222 in gui_action_uninstall ()
#12 0x00002b82016107a9 in g_closure_invoke ()
   from /usr/lib64/libgobject-2.0.so.0
#13 0x00002b820161b9b1 in ?? () from /usr/lib64/libgobject-2.0.so.0
#14 0x00002b820161ca7e in g_signal_emit_valist ()
   from /usr/lib64/libgobject-2.0.so.0
#15 0x00002b820161f4d6 in g_signal_emit_by_name ()
   from /usr/lib64/libgobject-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#16 0x00002b82016107a9 in g_closure_invoke ()
   from /usr/lib64/libgobject-2.0.so.0
#17 0x00002b820161b9b1 in ?? () from /usr/lib64/libgobject-2.0.so.0
#18 0x00002b820161ca7e in g_signal_emit_valist ()
   from /usr/lib64/libgobject-2.0.so.0
#19 0x00002b820161cbd3 in g_signal_emit () from
/usr/lib64/libgobject-2.0.so.0
#20 0x00002b8200404b49 in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#21 0x00002b82016107a9 in g_closure_invoke ()
   from /usr/lib64/libgobject-2.0.so.0
#22 0x00002b820161b657 in ?? () from /usr/lib64/libgobject-2.0.so.0
#23 0x00002b820161ca7e in g_signal_emit_valist ()
   from /usr/lib64/libgobject-2.0.so.0
#24 0x00002b820161cbd3 in g_signal_emit () from
/usr/lib64/libgobject-2.0.so.0
#25 0x00002b8200403509 in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#26 0x00002b82004aa28f in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#27 0x00002b82016107a9 in g_closure_invoke ()
   from /usr/lib64/libgobject-2.0.so.0
#28 0x00002b820161bb45 in ?? () from /usr/lib64/libgobject-2.0.so.0
#29 0x00002b820161c6f2 in g_signal_emit_valist ()
   from /usr/lib64/libgobject-2.0.so.0
#30 0x00002b820161cbd3 in g_signal_emit () from
/usr/lib64/libgobject-2.0.so.0
#31 0x00002b820058113e in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#32 0x00002b82004a5061 in gtk_propagate_event ()
---Type <return> to continue, or q <return> to quit---
   from /usr/lib64/libgtk-x11-2.0.so.0
#33 0x00002b82004a5e4b in gtk_main_do_event ()
   from /usr/lib64/libgtk-x11-2.0.so.0
#34 0x00002b82008e106c in ?? () from /usr/lib64/libgdk-x11-2.0.so.0
#35 0x00002b8201c70091 in g_main_context_dispatch ()
   from /usr/lib64/libglib-2.0.so.0
#36 0x00002b8201c72be5 in ?? () from /usr/lib64/libglib-2.0.so.0
#37 0x00002b8201c72ec6 in g_main_loop_run () from
/usr/lib64/libglib-2.0.so.0
#38 0x00002b82004a6232 in gtk_main () from /usr/lib64/libgtk-x11-2.0.so.0
#39 0x0000000000407e59 in main ()

    _______________________________________________________

Details:

I'm experiencing segmentation faults while trying to uninstall (after
clicking the toolbutton) or update packages (after chosing the tarball). Tests
were done on 2.5-rc1 release.

Digging a bit in the code, I found it uses 0 instead of NULL.
Specifically, in the dialog.c the dialogs are created in such way:

msgbox = gtk_dialog_new_with_buttons(wintitle,
                                     GTK_WINDOW(w_main[W_MAIN]),
                                     GTK_DIALOG_MODAL,
                                     GTK_STOCK_YES,
                                     GTK_RESPONSE_YES,
                                     GTK_STOCK_NO,
                                     GTK_RESPONSE_NO,
                                     0);

gtk_dialog_new_with_buttons() takes variadic arguments so no
casting is performed. What I _guess_ is the last argument is
passed throught as integer. Being on a 64bit platform, I have
sizeof(void*) = 8 and sizeof(int) = 4, so the list is likely not
NULL terminated.

Changing 0 to NULL (I tried only on the rilevant YESNO dialog) and
recompiling solves this issue.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?23671>

_______________________________________________
  Messaggio inviato con/da Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]