Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bless crashes when closing #5

Open
vkmaheshbhat opened this issue Feb 5, 2019 · 2 comments
Open

Bless crashes when closing #5

vkmaheshbhat opened this issue Feb 5, 2019 · 2 comments

Comments

@vkmaheshbhat
Copy link

vkmaheshbhat commented Feb 5, 2019

System Ubuntu 18.04 (64bit).

Problem: Bless crashes when closing after opening a file.

Steps to reproduce issue: Start bless -> open any file -> close bless. Issue does not happen if no file is opened.

Command line output:

mahesh@home:~$ bless
Root element is missing.
Directory '/home/mahesh/.config/bless/plugins' not found.
Directory '/home/mahesh/.config/bless/plugins' not found.
Directory '/home/mahesh/.config/bless/plugins' not found.
Could not find file "/home/mahesh/.config/bless/export_patterns".
Root element is missing.
Document does not have a root element.
Sharing violation on path /home/mahesh/.config/bless/preferences.xml
Sharing violation on path /home/mahesh/.config/bless/preferences.xml
Sharing violation on path /home/mahesh/.config/bless/preferences.xml
Document does not have a root element.
free(): invalid pointer
Stacktrace:

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) GLib.SList.g_free (intptr) <0x0005f>
  at GLib.ListBase.Empty () <0x0013c>
  at GLib.ListBase.Dispose (bool) <0x0000f>
  at GLib.ListBase.Finalize () <0x0001d>
  at (wrapper runtime-invoke) object.runtime_invoke_virtual_void__this__ (object,intptr,intptr,intptr) <0x00068>

Native stacktrace:

	mono(+0xc8514) [0x55895faeb514]
	/lib/x86_64-linux-gnu/libpthread.so.0(+0x12890) [0x7fabc40d3890]
	/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7) [0x7fabc3af6e97]
	/lib/x86_64-linux-gnu/libc.so.6(abort+0x141) [0x7fabc3af8801]
	/lib/x86_64-linux-gnu/libc.so.6(+0x89897) [0x7fabc3b41897]
	/lib/x86_64-linux-gnu/libc.so.6(+0x9090a) [0x7fabc3b4890a]
	/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4cc) [0x7fabc3b4fe1c]
	[0x40992b80]

Debug info from gdb:

[New LWP 4241]
[New LWP 4242]
[New LWP 4243]
[New LWP 4244]
[New LWP 4245]
[New LWP 4374]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007fabc40cef85 in futex_abstimed_wait_cancelable (private=<optimized out>, abstime=0x7ffc97fdb250, expected=0, futex_word=0x5589618b9e70) at ../sysdeps/unix/sysv/linux/futex-internal.h:205
205	../sysdeps/unix/sysv/linux/futex-internal.h: No such file or directory.
  Id   Target Id         Frame 
* 1    Thread 0x7fabc4e5d780 (LWP 4240) "Main" 0x00007fabc40cef85 in futex_abstimed_wait_cancelable (private=<optimized out>, abstime=0x7ffc97fdb250, expected=0, futex_word=0x5589618b9e70) at ../sysdeps/unix/sysv/linux/futex-internal.h:205
  2    Thread 0x7fabc2fff700 (LWP 4241) "SGen worker" 0x00007fabc40ce9f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55895ffdea0c) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
  3    Thread 0x7fabc3689700 (LWP 4242) "Finalizer" 0x00007fabc40d323a in __waitpid (pid=4396, stat_loc=0x7fabc36879ac, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:30
  4    Thread 0x7fabb2313700 (LWP 4243) "dconf worker" 0x00007fabc3bccbf9 in __GI___poll (fds=0x558961b237f0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
  5    Thread 0x7fabb1b12700 (LWP 4244) "gmain" 0x00007fabc3bccbf9 in __GI___poll (fds=0x7fabac0074c0, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
  6    Thread 0x7fabb1311700 (LWP 4245) "gdbus" 0x00007fabc3bccbf9 in __GI___poll (fds=0x7faba8004920, nfds=3, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
  7    Thread 0x7fab9d122700 (LWP 4374) "pool" syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38

Thread 7 (Thread 0x7fab9d122700 (LWP 4374)):
#0  0x00007fabc3bd3839 in syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007fabb9c2e29a in g_cond_wait_until () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fabb9bbb4f1 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fabb9bbbaac in g_async_queue_timeout_pop () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fabb9c10bae in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fabb9c10105 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007fabc40c86db in start_thread (arg=0x7fab9d122700) at pthread_create.c:463
#7  0x00007fabc3bd988f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7fabb1311700 (LWP 4245)):
#0  0x00007fabc3bccbf9 in __GI___poll (fds=0x7faba8004920, nfds=3, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fabb9be8539 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fabb9be88d2 in g_main_loop_run () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fabba638026 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007fabb9c10105 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fabc40c86db in start_thread (arg=0x7fabb1311700) at pthread_create.c:463
#6  0x00007fabc3bd988f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7fabb1b12700 (LWP 4244)):
#0  0x00007fabc3bccbf9 in __GI___poll (fds=0x7fabac0074c0, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fabb9be8539 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fabb9be864c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fabb9be8691 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fabb9c10105 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fabc40c86db in start_thread (arg=0x7fabb1b12700) at pthread_create.c:463
#6  0x00007fabc3bd988f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7fabb2313700 (LWP 4243)):
#0  0x00007fabc3bccbf9 in __GI___poll (fds=0x558961b237f0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fabb9be8539 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fabb9be864c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fabb231b36d in  () at /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
#4  0x00007fabb9c10105 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fabc40c86db in start_thread (arg=0x7fabb2313700) at pthread_create.c:463
#6  0x00007fabc3bd988f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fabc3689700 (LWP 4242)):
#0  0x00007fabc40d323a in __waitpid (pid=4396, stat_loc=0x7fabc36879ac, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:30
#1  0x000055895faeb5f0 in  ()
#2  0x00007fabc40d3890 in <signal handler called> () at /lib/x86_64-linux-gnu/libpthread.so.0
#3  0x00007fabc3af6e97 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#4  0x00007fabc3af8801 in __GI_abort () at abort.c:79
#5  0x00007fabc3b41897 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7fabc3c6eb9a "%s\n") at ../sysdeps/posix/libc_fatal.c:181
#6  0x00007fabc3b4890a in malloc_printerr (str=str@entry=0x7fabc3c6cd88 "free(): invalid pointer") at malloc.c:5350
#7  0x00007fabc3b4fe1c in _int_free (have_lock=0, p=0x5589623b39a0, av=0x7fabc3ea3c40 <main_arena>) at malloc.c:4157
#8  0x00007fabc3b4fe1c in __GI___libc_free (mem=0x5589623b39b0) at malloc.c:3124
#9  0x0000000040992b80 in  ()
#10 0x00005589623b39b0 in  ()
#11 0x00005589618c6190 in  ()
#12 0x00005589618c6190 in  ()
#13 0x0000000000000000 in  ()

Thread 2 (Thread 0x7fabc2fff700 (LWP 4241)):
#0  0x00007fabc40ce9f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55895ffdea0c) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  0x00007fabc40ce9f3 in __pthread_cond_wait_common (abstime=0x0, mutex=0x55895ffdea20, cond=0x55895ffde9e0) at pthread_cond_wait.c:502
#2  0x00007fabc40ce9f3 in __pthread_cond_wait (cond=0x55895ffde9e0, mutex=0x55895ffdea20) at pthread_cond_wait.c:655
#3  0x000055895fc73863 in  ()
#4  0x00007fabc40c86db in start_thread (arg=0x7fabc2fff700) at pthread_create.c:463
#5  0x00007fabc3bd988f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fabc4e5d780 (LWP 4240)):
#0  0x00007fabc40cef85 in futex_abstimed_wait_cancelable (private=<optimized out>, abstime=0x7ffc97fdb250, expected=0, futex_word=0x5589618b9e70) at ../sysdeps/unix/sysv/linux/futex-internal.h:205
#1  0x00007fabc40cef85 in __pthread_cond_wait_common (abstime=0x7ffc97fdb250, mutex=0x5589618b9e20, cond=0x5589618b9e48) at pthread_cond_wait.c:539
#2  0x00007fabc40cef85 in __pthread_cond_timedwait (cond=0x5589618b9e48, mutex=0x5589618b9e20, abstime=0x7ffc97fdb250) at pthread_cond_wait.c:667
#3  0x000055895fc79dff in  ()
#4  0x000055895fc906b4 in  ()
#5  0x000055895fc0799b in  ()
#6  0x000055895fc083fc in mono_domain_finalize ()
#7  0x000055895fa5d5a4 in  ()
#8  0x000055895fabc81c in mono_main ()
#9  0x000055895fa5b236 in  ()
#10 0x00007fabc3ad9b97 in __libc_start_main (main=0x55895fa5b130, argc=2, argv=0x7ffc97fdb768, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffc97fdb758) at ../csu/libc-start.c:310
#11 0x000055895fa5b60a in _start ()

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

/usr/bin/bless: line 3:  4240 Aborted                 (core dumped) mono "/usr/lib/bless/bless.exe" "$@"(url)
@ghost ghost mentioned this issue Jul 12, 2019
@afrantzis
Copy link
Owner

This seems to be the same issue as #13, namely it's a problem with the mono runtime. Until Debian/Ubuntu get a fixed version in their repos, the solution would be to get the packages directly from upstream.

@ghost
Copy link

ghost commented Jul 14, 2019

I can confirm that with the packages from upstream this crash does not occur, whereas it does occur with the ones in the Ubuntu repos, even for the current devel release.

Someone should open a bug by Ubuntu (I might do it if I have some time later).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants