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 526662 - Crashes when switching from local file backend to remember the milk
Crashes when switching from local file backend to remember the milk
Status: RESOLVED FIXED
Product: Tasque
Classification: Other
Component: General
unspecified
Other Linux
: Normal major
: 0.1.8
Assigned To: tasque-maint
tasque-maint
Depends on:
Blocks:
 
 
Reported: 2008-04-07 07:09 UTC by Sebastian Dröge (slomo)
Modified: 2008-12-23 10:27 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sebastian Dröge (slomo) 2008-04-07 07:09:00 UTC
Quoting http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=474503 :

> 1. Start tasque
> 2. Go to preferences
> 3. Switch "Task Management System" from "Local File" to "Remember The Milk".
> 4. *Crash*

[Debug]: Tasque remote control active.
[Debug]: Found Available Backend: Tasque.Backends.RtmBackend.RtmBackend
[Debug]: Found Available Backend: Tasque.Backends.Sqlite.SqliteBackend
[Debug]: Found Available Backend: Tasque.Backends.EDS.EDSBackend
[Debug]: Tasque.exe location:  /usr/lib/tasque/Tasque.exe
[Info]: Searching for Backend DLLs in: /usr/lib/tasque
[Info]:         Reading /usr/lib/tasque/RtmNet.dll
[Debug]: Storing 'Tasque.Backends.RtmBackend.RtmBackend' = 'Remember the Milk'
[Debug]: Storing 'Tasque.Backends.Sqlite.SqliteBackend' = 'Local File'
[Debug]: Storing 'Tasque.Backends.EDS.EDSBackend' = 'Evolution Data Server'
[Debug]: CurrentBackend specified in Preferences: Tasque.Backends.Sqlite.SqliteBackend
[Info]: Using backend: Local File (Tasque.Backends.Sqlite.SqliteBackend)
[Debug]: Backend sync finished
[Warn]: Cannot set status when taskWindow is null
[Debug]: Configuration status: True
[Info]: OnPreferences called
[Debug]: Loading preferences
[Debug]: Called Preferences Init
[Info]: Cleaning up 'Local File'...
Stacktrace:

  at (wrapper managed-to-native) Gtk.ListStore.gtk_list_store_clear (intptr) <0x0000b>
  at (wrapper managed-to-native) Gtk.ListStore.gtk_list_store_clear (intptr) <0xffffffff>
  at Gtk.ListStore.Clear () <0x00024>
  at Tasque.Backends.Sqlite.SqliteBackend.Cleanup () <0x0001a>
  at Tasque.PreferencesDialog.OnBackendComboBoxChanged (object,System.EventArgs) <0x0018c>
  at GLib.Signal.voidObjectCallback (intptr,intptr) <0x00108>
  at (wrapper native-to-managed) GLib.Signal.voidObjectCallback (intptr,intptr) <0xffffffff>
  at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x0000b>
  at (wrapper managed-to-native) Gtk.Application.gtk_main () <0xffffffff>
  at Gtk.Application.Run () <0x00008>
  at Gnome.Program.Run () <0x0000c>
  at Tasque.Application.StartMainLoop () <0x0001d>
  at Tasque.Application.Main (string[]) <0x00054>
  at (wrapper runtime-invoke) Tasque.Application.runtime_invoke_void_string[] (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

        Tasque [0x5a114f]
        Tasque [0x468c05]
        Tasque [0x581ae6]
        /lib/libpthread.so.0 [0x2b2b8423b360]
        /usr/lib/libglib-2.0.so.0 [0x2b2b83dbcd28]
        /usr/lib/libglib-2.0.so.0(g_sequence_iter_get_sequence+0xe) [0x2b2b83dbd30e]
        /usr/lib/libgtk-x11-2.0.so.0 [0x2aaaac5bf4be]
        /usr/lib/libgtk-x11-2.0.so.0 [0x2aaaac69cc9f]
        /usr/lib/gtk-2.0/modules/libgail.so [0x2aaab4164316]
        /usr/lib/gtk-2.0/modules/libatk-bridge.so [0x2aaab439bde5]
        /usr/lib/libgobject-2.0.so.0 [0x2aaaad810442]
        /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x875) [0x2aaaad812005]
        /usr/lib/libgobject-2.0.so.0(g_signal_emit+0x83) [0x2aaaad8123b3]
        /usr/lib/libatk-1.0.so.0 [0x2aaaaccdbc81]
        /usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x10f) [0x2aaaad7fcb5f]
        /usr/lib/libgobject-2.0.so.0 [0x2aaaad8102b6]
        /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x875) [0x2aaaad812005]
        /usr/lib/libgobject-2.0.so.0(g_signal_emit+0x83) [0x2aaaad8123b3]
        /usr/lib/libgobject-2.0.so.0 [0x2aaaad800ab2]
        /usr/lib/libgobject-2.0.so.0(g_object_notify+0x207) [0x2aaaad801477]
        /usr/lib/gtk-2.0/modules/libgail.so [0x2aaab4167af8]
        /usr/lib/gtk-2.0/modules/libgail.so(gail_menu_item_new+0xb3) [0x2aaab41678f3]
        /usr/lib/libgtk-x11-2.0.so.0 [0x2aaaac6d7e55]
        /usr/lib/gtk-2.0/modules/libgail.so [0x2aaab415ecc3]
        /usr/lib/gtk-2.0/modules/libatk-bridge.so [0x2aaab439b968]
        /usr/lib/libgobject-2.0.so.0 [0x2aaaad810442]
        /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x875) [0x2aaaad812005]
        /usr/lib/libgobject-2.0.so.0(g_signal_emit_by_name+0x1b8) [0x2aaaad8122c8]
        /usr/lib/gtk-2.0/modules/libgail.so [0x2aaab415e921]
        /usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x10f) [0x2aaaad7fcb5f]
        /usr/lib/libgobject-2.0.so.0 [0x2aaaad8105ec]
        /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x875) [0x2aaaad812005]
        /usr/lib/libgobject-2.0.so.0(g_signal_emit+0x83) [0x2aaaad8123b3]
        /usr/lib/libgtk-x11-2.0.so.0 [0x2aaaac52ecfb]
        /usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x10f) [0x2aaaad7fcb5f]
        /usr/lib/libgobject-2.0.so.0 [0x2aaaad8105ec]
        /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x875) [0x2aaaad812005]
        /usr/lib/libgobject-2.0.so.0(g_signal_emit+0x83) [0x2aaaad8123b3]
        /usr/lib/libgtk-x11-2.0.so.0 [0x2aaaac69b2c7]
        /usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x10f) [0x2aaaad7fcb5f]
        /usr/lib/libgobject-2.0.so.0 [0x2aaaad8105ec]
        /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x875) [0x2aaaad812005]
        /usr/lib/libgobject-2.0.so.0(g_signal_emit+0x83) [0x2aaaad8123b3]
        /usr/lib/libgtk-x11-2.0.so.0(gtk_list_store_remove+0x12b) [0x2aaaac5bde9b]
        /usr/lib/libgtk-x11-2.0.so.0(gtk_list_store_clear+0x71) [0x2aaaac5bdf51]
        [0x412f4aa5]

Debug info from gdb:

(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0x2b2b84e52640 (LWP 32412)]
[New Thread 0x40224950 (LWP 32415)]
[New Thread 0x40023950 (LWP 32414)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
0x00002b2b8475f30b in fork () from /lib/libc.so.6
  3 Thread 0x40023950 (LWP 32414)  0x00002b2b8423aa11 in nanosleep ()
   from /lib/libpthread.so.0
  2 Thread 0x40224950 (LWP 32415)  0x00002b2b84237889 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
  1 Thread 0x2b2b84e52640 (LWP 32412)  0x00002b2b8475f30b in fork ()
   from /lib/libc.so.6

Thread 1 (Thread 0x2b2b84e52640 (LWP 32412))

  • #0 fork
    from /lib/libc.so.6
  • #1 ??
    from /usr/lib/libglib-2.0.so.0
  • #2 g_spawn_sync
    from /usr/lib/libglib-2.0.so.0
  • #3 g_spawn_command_line_sync
    from /usr/lib/libglib-2.0.so.0
  • #4 ??
  • #5 ??
  • #6 ??
  • #7 <signal handler called>
  • #8 ??
    from /usr/lib/libglib-2.0.so.0
  • #9 g_sequence_iter_get_sequence
    from /usr/lib/libglib-2.0.so.0
  • #10 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #11 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #12 ??
    from /usr/lib/gtk-2.0/modules/libgail.so
  • #13 ??
    from /usr/lib/gtk-2.0/modules/libatk-bridge.so
  • #14 ??
    from /usr/lib/libgobject-2.0.so.0
  • #15 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #16 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #17 ??
    from /usr/lib/libatk-1.0.so.0
  • #18 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #19 ??
    from /usr/lib/libgobject-2.0.so.0
  • #20 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #21 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #22 ??
    from /usr/lib/libgobject-2.0.so.0
  • #23 g_object_notify
    from /usr/lib/libgobject-2.0.so.0
  • #24 ??
    from /usr/lib/gtk-2.0/modules/libgail.so
  • #25 gail_menu_item_new
    from /usr/lib/gtk-2.0/modules/libgail.so
  • #26 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #27 ??
    from /usr/lib/gtk-2.0/modules/libgail.so
  • #28 ??
    from /usr/lib/gtk-2.0/modules/libatk-bridge.so
  • #29 ??
    from /usr/lib/libgobject-2.0.so.0
  • #30 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #31 g_signal_emit_by_name
    from /usr/lib/libgobject-2.0.so.0
  • #32 ??
    from /usr/lib/gtk-2.0/modules/libgail.so
  • #33 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #34 ??
    from /usr/lib/libgobject-2.0.so.0
  • #35 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #36 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #37 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #38 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #39 ??
    from /usr/lib/libgobject-2.0.so.0
  • #40 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #41 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #42 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #43 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #44 ??
    from /usr/lib/libgobject-2.0.so.0
  • #45 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #46 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #47 gtk_list_store_remove
    from /usr/lib/libgtk-x11-2.0.so.0
  • #48 gtk_list_store_clear
    from /usr/lib/libgtk-x11-2.0.so.0
  • #49 ??
  • #50 ??
  • #51 ??
  • #52 ??
  • #53 ??
  • #0 fork
    from /lib/libc.so.6


=================================================================
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.
=================================================================
Comment 1 Sandy Armstrong 2008-05-17 20:19:48 UTC
I cannot reproduce this in SVN trunk.  Can anyone?
Comment 2 Sebastian Dröge (slomo) 2008-06-24 07:20:23 UTC
Quoting the Debian bugreport:

> Got the same crash when running tasque from KDE. The crash happens
> when tasque tries to open the browser (so that you log into your
> 'Remember the milk' account). That is, when I click on the "Click here
> to connect" in the "Remember the Milk" tab.
>
> On the same box (but different user), under Gnome, tasque was able to
> launch the browser without crashing. So it might be that tasque
> doesn't know how to launch the browser under KDE.

I didn't try to reproduce it yet outside of gnome but maybe someone has an idea why this could happen.
Comment 3 Brian G. Merrell 2008-08-26 22:40:24 UTC
I also cannot reproduce this.  Sebastian, could you try building Tasque from trunk to see if you still have this issue?
Comment 4 Romain Tartière 2008-10-11 21:35:52 UTC
I can reproduce this on FreeBSD 7.1-PRERELEASE, with Mono 2.0, GNOME 2.24, Tasque 0.1.7 or from trunk.

Running ``mono --debug --trace=Tasque /usr/local/lib/tasque/Tasque.exe'' and changing the backend from file to rtm produce the following output:

[SNIP]
[Debug]: Cleaning up backend: Local File
. . . . . . . . . . . . LEAVE: Tasque.ConsoleLogger:Log (Tasque.LogLevel,string,object[])
. . . . . . . . . . . LEAVE: Tasque.FileLogger:Log (Tasque.LogLevel,string,object[])
. . . . . . . . . . LEAVE: Tasque.Logger:Log (Tasque.LogLevel,string,object[])
. . . . . . . . . LEAVE: Tasque.Logger:Debug (string,object[])
. . . . . . . . . ENTER: Tasque.Backends.Sqlite.SqliteBackend:Cleanup ()(this:0x8b03540[Tasque.Backends.Sqlite.SqliteBackend Tasque.exe], )
^\Full thread dump:

"" tid=0x0x8373c00 this=0x0x8424d20:

"" tid=0x0x8301100 this=0x0x8424e00:
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (object,object[],System.Exception&) <0x00004>
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (object,object[],System.Exception&) <0xffffffff>
  at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) [0x00057] in /usr/ports/lang/mono/work/mono-2.0/mcs/class/corlib/System.Reflection/MonoMethod.cs:157
  at System.Reflection.MethodBase.Invoke (object,object[]) [0x00000] in /usr/ports/lang/mono/work/mono-2.0/mcs/class/corlib/System.Reflection/MethodBase.cs:110
  at System.Delegate.DynamicInvokeImpl (object[]) [0x000b4] in /usr/ports/lang/mono/work/mono-2.0/mcs/class/corlib/System/Delegate.cs:422
  at System.MulticastDelegate.DynamicInvokeImpl (object[]) [0x00018] in /usr/ports/lang/mono/work/mono-2.0/mcs/class/corlib/System/MulticastDelegate.cs:71
  at System.Delegate.DynamicInvoke (object[]) [0x00000] in /usr/ports/lang/mono/work/mono-2.0/mcs/class/corlib/System/Delegate.cs:394
  at GLib.Signal.ClosureInvokedCB (object,GLib.ClosureInvokedArgs) <0x00159>
  at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs) <0x0001b>
  at GLib.SignalClosure.MarshalCallback (intptr,intptr,uint,intptr,intptr,intptr) <0x00199>
  at (wrapper native-to-managed) GLib.SignalClosure.MarshalCallback (intptr,intptr,uint,intptr,intptr,intptr) <0xffffffff>
  at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x00004>
  at (wrapper managed-to-native) Gtk.Application.gtk_main () <0xffffffff>
  at Gtk.Application.Run () <0x00007>
  at Gnome.Program.Run () <0x00007>
  at Tasque.GnomeApplication.StartMainLoop () [0x00000] in /usr/home/romain/Projects/BSD-sharp-latest/deskutils/tasque/work/tasque-0.1.8/src/GnomeApplication.cs:59
  at Tasque.Application.StartMainLoop () [0x00000] in /usr/home/romain/Projects/BSD-sharp-latest/deskutils/tasque/work/tasque-0.1.8/src/Application.cs:567
  at Tasque.Application.Main (string[]) [0x0000b] in /usr/home/romain/Projects/BSD-sharp-latest/deskutils/tasque/work/tasque-0.1.8/src/Application.cs:531
  at (wrapper runtime-invoke) Tasque.Application.runtime_invoke_void_string[] (object,intptr,intptr,intptr) <0xffffffff>


Unfortunately, the mono-debugger is not available for FreeBSD and I am afraid I cannot help much more.  I would be happy however to do further tests if you have suggestions.
Comment 5 Sandy Armstrong 2008-10-26 14:51:30 UTC
That trace really doesn't tell much, unfortunately.  That's the complete thread dump?  Not sure what to try at this point.

By the way, you can pass --debug and --trace arguments directly to the tasque command (at least in SVN you can).
Comment 6 Sandy Armstrong 2008-12-22 22:25:22 UTC
(In reply to comment #2)
> Quoting the Debian bugreport:
> 
> > Got the same crash when running tasque from KDE. The crash happens
> > when tasque tries to open the browser (so that you log into your
> > 'Remember the milk' account). That is, when I click on the "Click here
> > to connect" in the "Remember the Milk" tab.
> >
> > On the same box (but different user), under Gnome, tasque was able to
> > launch the browser without crashing. So it might be that tasque
> > doesn't know how to launch the browser under KDE.
> 
> I didn't try to reproduce it yet outside of gnome but maybe someone has an idea
> why this could happen.
> 

This is a different bug that is fixed in SVN (related to our use of GNOME's URL opener API).
Comment 7 Sandy Armstrong 2008-12-22 23:41:09 UTC
Okay, I am able to reproduce this bug, with a somewhat different stack trace.  Of interest, there is an exception occurring while cleaning up the sqlite backend.  Looking into it now.
Comment 8 Sandy Armstrong 2008-12-23 00:18:58 UTC
Fixed in r172.  To reproduce, I had to:

1) Create tasks in sqlite backend.
2) Delete all tasks in sqlite backend (using new delete feature).
3) Switch to RTM backend.

BOOM.

Closing.  Romain, please re-open if your bug isn't fixed as of r172 of SVN trunk.  And in that case, please just run `tasque --debug`...the trace could mess things up.  Thanks!
Comment 9 Romain Tartière 2008-12-23 10:27:19 UTC
Just check-out r176. The problem is fixed!

Thank's!