After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 323431 - Crash when using an SMP kernel
Crash when using an SMP kernel
Status: RESOLVED FIXED
Product: f-spot
Classification: Other
Component: Browsing
0.1.5
Other Linux
: Normal critical
: ---
Assigned To: F-spot maintainers
F-spot maintainers
: 326468 330095 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-12-07 06:11 UTC by Nadeem Bitar
Modified: 2006-03-02 00:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
the patch that fixes this (1.22 KB, patch)
2006-03-01 04:54 UTC, Larry Ewing
none Details | Review

Description Nadeem Bitar 2005-12-07 06:11:23 UTC
F-Spot crashes after a minute or less of use regardless of the activity. I
narrowed down the problem to the kernel. If I reboot my machine and use a
non-smp kernel I can use F-spot without any problem. I guess there is some
concurrency bug.
Comment 1 Larry Ewing 2005-12-07 13:14:40 UTC
Can you get a stack trace of where it dies?
Comment 2 Nadeem Bitar 2005-12-08 07:37:59 UTC
Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object
in (wrapper unknown) Gdk.Rectangle:PtrToStructure (intptr,object)
in <0x00000> <unknown method>
in (wrapper managed-to-native)
System.Runtime.InteropServices.Marshal:PtrToStructure (intptr,System.Type)in
<0x000c1> Gdk.Region:GetRectangles ()
in <0x00055> IconView:OnExposeEvent (Gdk.EventExpose args)
in <0x0006f> Gtk.Widget:exposeevent_cb (IntPtr widget, IntPtr evnt)
in (wrapper native-to-managed) Gtk.Widget:exposeevent_cb (intptr,intptr)
in <0x00000> <unknown method>
in (wrapper managed-to-native) Gtk.Application:gtk_main ()
in <0x00008> Gtk.Application:Run ()
in <0x00010> Gnome.Program:Run ()
in <0x0057c> Driver:Main (System.String[] args)

Comment 3 Jonas Bergler 2006-01-11 09:51:13 UTC
is this still an issue in 0.1.5?
Comment 4 sfabel 2006-01-11 12:00:21 UTC
*** Bug 326468 has been marked as a duplicate of this bug. ***
Comment 5 Jonas Bergler 2006-01-11 12:09:05 UTC
sfabel, can you try using cvs so we can see if this issue still persists and another stack trace could be nice? i have an ebuild you can overlay if you wish http://jonas.bergler.name/stuff/f-spot-999.ebuild
Comment 6 sfabel 2006-01-11 15:07:09 UTC
Still crashes.

Stack trace #1 (program crashed immediately after starting):
Starting new FSpot server

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Stacktrace:

in <0xb> (wrapper managed-to-native) System.Runtime.InteropServices.Marshal:PtrT oStringAnsi (intptr)
in <0xfffffffffffff8a5> (wrapper managed-to-native) System.Runtime.InteropServic es.Marshal:PtrToStringAnsi (intptr)
in [0x91] Mono.Data.SqliteClient.SqliteDataReader:ReadpVm (intptr,int)
in [0x46] Mono.Data.SqliteClient.SqliteDataReader:.ctor (Mono.Data.SqliteClient. SqliteCommand,intptr,int)
in <0xffffffffffffa405> (wrapper remoting-invoke-with-check) Mono.Data.SqliteCli ent.SqliteDataReader:.ctor (Mono.Data.SqliteClient.SqliteCommand,intptr,int)
in [0x68] Mono.Data.SqliteClient.SqliteCommand:ExecuteReader (System.Data.Comman dBehavior,bool,int&)
in [0x5] Mono.Data.SqliteClient.SqliteCommand:ExecuteReader (System.Data.Command Behavior)
in [0x2] Mono.Data.SqliteClient.SqliteCommand:ExecuteReader ()
in <0xcf> TagStore:LoadAllTags ()
in <0x8d> TagStore:.ctor (Mono.Data.SqliteClient.SqliteConnection,bool)
in <0xf8> Db:.ctor (string,bool)
in <0x280> Driver:Main (string[])
in <0xffffffffc047826e> (wrapper runtime-invoke) System.Object:runtime_invoke_vo id_string[] (object,intptr,intptr,intptr)

Native stacktrace:

        mono(mono_handle_native_sigsegv+0x88) [0x504ad8]
        mono [0x4f180c]
        /lib/tls/libpthread.so.0 [0x2aaaab18c270]
        /lib/tls/libc.so.6(strlen+0x30) [0x2aaaab593260]
        mono(mono_string_new+0x2d) [0x48fc1d]
        [0x40252a43]

trace #2 (3rd time it started, this happened when scrolling down):
Starting new FSpot server

(..)

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
in (wrapper unknown) Gdk.Rectangle:PtrToStructure (intptr,object)
in <0x00000> <unknown method>
in (wrapper managed-to-native) System.Runtime.InteropServices.Marshal:PtrToStructure (intptr,System.Type)
in <0x000d4> Gdk.Region:GetRectangles ()
in <0x00044> IconView:PreloadRegion (Gdk.Region region, Int32 step)
in <0x00601> IconView:Scroll ()
in <0x0001a> IconView:HandleAdjustmentValueChanged (System.Object sender, System.EventArgs args)
in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
in <0x000c9> GLib.Signal:voidObjectCallback (IntPtr handle, IntPtr gch)
in (wrapper native-to-managed) GLib.Signal:voidObjectCallback (intptr,intptr)
in <0x00000> <unknown method>
in (wrapper managed-to-native) Gtk.Application:gtk_main ()
in <0x00008> Gtk.Application:Run ()
in <0x0000c> Gnome.Program:Run ()
in <0x00514> Driver:Main (System.String[] args)
Comment 7 Larry Ewing 2006-01-13 22:24:19 UTC
is this a 64bit machine?
Comment 8 Nadeem Bitar 2006-01-14 00:45:42 UTC
My Machine is 64bit.(Dual Opteron)
Comment 9 sfabel 2006-01-14 08:57:48 UTC
uname -a
Linux gemini 2.6.14-gentoo-r5 #1 SMP PREEMPT Thu Jan 12 11:06:12 CET 2006 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ AuthenticAMD GNU/Linux
Comment 10 Larry Ewing 2006-02-19 23:22:59 UTC
*** Bug 330095 has been marked as a duplicate of this bug. ***
Comment 11 Bengt Thuree 2006-02-20 05:02:07 UTC
Perhaps http://patches.ximian.com/Debugging could help to give some extra information on the stack traces?
Comment 12 Nico Kaiser 2006-02-22 12:03:55 UTC
Also crashes (freezes) on my 32bit HyperThreading (SMP Kernel) machine. Default SMP Kernel and libexif from Ubuntu Hoary and Dapper.
Comment 13 Nico Kaiser 2006-02-22 14:44:55 UTC
Sorry, can't give any debug information, because mono --trace outputs about 20mb per second...
Comment 14 Larry Ewing 2006-02-28 00:49:58 UTC
Ok I tracked this down to a bug in gtk-sharp.  See http://bugzilla.ximian.com/show_bug.cgi?id=77658
Comment 15 Nico Kaiser 2006-02-28 09:23:35 UTC
I applied the patch to Gdk.Region, it's still freezing after some time with HyperThreading turned on.
Xlib: unexpected async reply (sequence 0x74ff1)!
Comment 16 Stian Jordet 2006-02-28 21:54:00 UTC
Still here as well. Just got this when exporting to Original. Am also seeing the "unexpected async reply"...

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Stacktrace:

in <0x4> (wrapper managed-to-native) Exif.ExifData:exif_data_save_data (System.Runtime.InteropServices.HandleRef,intptr&,uint&)
in <0x81f11> (wrapper managed-to-native) Exif.ExifData:exif_data_save_data (System.Runtime.InteropServices.HandleRef,intptr&,uint&)
in <0x39> Exif.ExifData:Save ()
in <0x101> PixbufUtils:SaveJpeg (Gdk.Pixbuf,string,int,Exif.ExifData)
in <0x27f> FSpot.FolderGallery:ProcessImage (int)
in <0x26> FSpot.FolderGallery:Generate ()
in <0xe> FSpot.OriginalGallery:Generate ()
in <0x259> FSpot.FolderExport:Upload ()
in <0x2f0f48> (wrapper delegate-invoke) System.MulticastDelegate:invoke_void ()
in <0x21aec4f> (wrapper runtime-invoke) System.Object:runtime_invoke_void (object,intptr,intptr,intptr)

Native stacktrace:

        /usr/lib/libmono.so.0(mono_handle_native_sigsegv+0xdf) [0x77e21060]
        /usr/lib/libmono.so.0 [0x77de2ece]
        [0xffffe440]
        /usr/lib/libexif.so.12(exif_data_save_data+0x102) [0x755c8eb4]
        [0x75651060]
        [0x756d2f12]
        [0x756d1672]
        [0x756d0828]
        [0x756d04df]
        [0x756d040f]
        [0x756cf702]
        [0x75960768]
        [0x75c51681]
        /usr/lib/libmono.so.0 [0x77e002a8]
        /usr/lib/libmono.so.0(mono_runtime_invoke+0x33) [0x77e622ad]
        /usr/lib/libmono.so.0(mono_runtime_delegate_invoke+0x42) [0x77e6348b]
        /usr/lib/libmono.so.0 [0x77e93347]
        /usr/lib/libmono.so.0 [0x77edce2b]
        /usr/lib/libmono.so.0(GC_start_routine+0x5f) [0x77ef66dd]
        /lib/tls/i686/cmov/libpthread.so.0 [0x77cf9341]
        /lib/tls/i686/cmov/libc.so.6(__clone+0x5e) [0x77c6452e]
Comment 17 Larry Ewing 2006-03-01 04:54:25 UTC
Created attachment 60370 [details] [review]
the patch that fixes this

Stian, does your PixbufUtils.cs include this patch?
Comment 18 Larry Ewing 2006-03-01 04:55:35 UTC
The async reply bug is separate from the region bug, nico what version are you testing?
Comment 19 Nico Kaiser 2006-03-01 08:02:14 UTC
I'm running Current CVS version, Mono 1.1.13.2, gtk-sharp 2.8.1, libexif 0.6.12 (from Ubuntu Dapper, Kernel 2.6.15-16).
Comment 20 Stian Jordet 2006-03-01 21:35:16 UTC
Larry,

it does now :P Bug fixed. But I couldn't reproduce that problem with a non-smp kernel, but I guess I might have tried to little.

I now got

The program 'f-spot' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadName (named color or font does not exist)'.
  (Details: serial 195134 error_code 15 request_code 154 minor_code 30)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

But I guess that's totally unrelated to the smp-bug (because I made dozens of galleries before I saw it), so I'll shut up about it here.

Still seeing the async reply bug, though. I'm also on Ubuntu Dapper...
Comment 21 Larry Ewing 2006-03-02 00:14:05 UTC
I've opened http://bugzilla.gnome.org/show_bug.cgi?id=333071 on the async reply bug. I'm closing this one to keep the issues separate.