gksu -u root segfault (dapper)

Bug #34570 reported by Luis Mondesi
12
Affects Status Importance Assigned to Milestone
gksu (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

When explicitly setting the user to root in gksu, the application segfaults.

Example:

$> gksu echo foo
foo

$> gksu -u root echo foo
Segmentation fault

Revision history for this message
Ming Hua (minghua) wrote :

I can reproduce this.

Changed in gksu:
status: Unconfirmed → Confirmed
Revision history for this message
Dennis Kaarsemaker (dennis) wrote : Re: [Bug 34570] gksu -u root segfault (dapper)

Works fine for me in dapper, can you try and get a backtrace?

Revision history for this message
Luis Mondesi (lemsx1) wrote :

(gdb) run --disable-grab -u root echo foo
Starting program: /tmp/gksu-1.3.6/gksu/gksu --disable-grab -u root echo foo
[Thread debugging using libthread_db enabled]
[New Thread -1218292032 (LWP 6834)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1218292032 (LWP 6834)]
0xb7f43e24 in gksu_context_set_user () from /usr/lib/libgksu1.2.so.1
(gdb) bt
#0 0xb7f43e24 in gksu_context_set_user () from /usr/lib/libgksu1.2.so.1
#1 0x0804ceee in main (argc=6, argv=0xbfb75d24) at gksu.c:1101

Revision history for this message
Ming Hua (minghua) wrote : gdb backtrace for gksu crash

Seem related to the new theme engine?

gksu version 1.3.6-1ubuntu13, gtk2-engines-ubuntulooks version 0.9.5-1.

Revision history for this message
Ming Hua (minghua) wrote : gdb backtrace with clearlooks theme

Nah. Also reproducible with clearlooks theme.

Revision history for this message
Dennis Kaarsemaker (dennis) wrote : Re: [Bug 34570] gksu -u root segfault (dapper)

Ming, yours looks like an error in the new Ubuntu theme - could you try
with another theme set. Luis, please try that too.

Are you both using the latest version of ubuntulooks?

Revision history for this message
Luis Mondesi (lemsx1) wrote :

Dennis,

I'm using the new version of the theme for controls, indeed. (metacity and icons are different -- milk and gartoon respectively)

Revision history for this message
Luis Mondesi (lemsx1) wrote :

tried Nuvola theme. same error

Revision history for this message
Luis Mondesi (lemsx1) wrote :

the segfault happens exactly at this line:

dialog = g_object_new (GKSUUI_TYPE_DIALOG,
                        "type", GTK_WINDOW_POPUP,
                        NULL);

in gksu.c around line number 1215 or so

Revision history for this message
Dennis Kaarsemaker (dennis) wrote :

 subscribe <email address hidden>

Seb, you're the resident gnome GURU - what do you think?

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

I tried this on two different dapper machines (both up-to-date) and wasn't able to reproduce it. Is it still a problem?

Thanks,
 Michael

Changed in gksu:
status: Confirmed → Needs Info
Revision history for this message
Luis Mondesi (lemsx1) wrote :

using the latest version of dapper's gksu worked. please close.

Revision history for this message
Dennis Kaarsemaker (dennis) wrote : Re: [Bug 34570] Re: gksu -u root segfault (dapper)

Good to hear, thanks

 status FixReleased

Changed in gksu:
status: Needs Info → 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.