[Mono-bugs] [Bug 74384][Maj] New - gnome-vfs wedges mdb

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 4 Apr 2005 18:38:04 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by danw@novell.com.

http://bugzilla.ximian.com/show_bug.cgi?id=74384

--- shadow/74384	2005-04-04 18:38:04.000000000 -0400
+++ shadow/74384.tmp.30704	2005-04-04 18:38:04.000000000 -0400
@@ -0,0 +1,40 @@
+Bug#: 74384
+Product: Mono: Debugger
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: backend
+AssignedTo: toshok@ximian.com                            
+ReportedBy: danw@novell.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: gnome-vfs wedges mdb
+
+gnome-vfs wedges mdb. I think it's seteuid's fault:
+
+Process @3 stopped at #0: 0xffffe410.
+0xffffe410      pop    %ebp
+(mdb) where
+(*) #0: 0xffffe410
+    #1: 0x4039bc85 in seteuid+0x75
+    #2: 0x41565d85 in _gnome_vfs_get_daemon_force_probe_callback+0x365
+    #3: 0x41565f5e in gnome_vfs_method_get+0x1e
+    #4: 0x4157841c in gnome_vfs_uri_new_private+0xac
+    #5: 0x4157948a in gnome_vfs_url_show+0x6a
+    #6: 0x4157a41b in gnome_vfs_make_uri_canonical+0x27b
+    ...
+
+(The call to seteuid is not actually in
+_gnome_vfs_get_daemon_force_probe_callback, it's in the static
+gnome_vfs_add_module_to_hash_table underneath it.)
+
+I think gdb hacks around this by skipping over calls to setxid that
+won't actually have any effect. (Eg, in this case, gnome-vfs is just
+trying to drop setuid/setgid privileges, but it doesn't actually
+have them, so it doesn't matter.)