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

SIGSEGV when starting OmniSharp from VSCode #230

Open
Proxymoron461 opened this issue May 11, 2020 · 0 comments
Open

SIGSEGV when starting OmniSharp from VSCode #230

Proxymoron461 opened this issue May 11, 2020 · 0 comments

Comments

@Proxymoron461
Copy link

=================================================================
Native Crash Reporting
=================================================================
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.
=================================================================

=================================================================
Native stacktrace:
=================================================================
0x4a90c5 - mono : (null)
0x4a945c - mono : (null)
0x457d75 - mono : (null)
0x4a2dc1 - mono : (null)
0x7f0a58151c80 - /usr/lib/libc.so.6 : (null)
0x7f0a2c000080 - Unknown

=================================================================
Telemetry Dumper:
=================================================================
Pkilling 0x7f0a596ff700 from 0x7f0a69218780
Pkilling 0x7f0a59f90700 from 0x7f0a69218780
Pkilling 0x7f0a58cff700 from 0x7f0a69218780
Pkilling 0x7f0a590f0700 from 0x7f0a69218780
Could not exec mono-hang-watchdog, expected on path '/etc/../bin/mono-hang-watchdog' (errno 2)
Pkilling 0x7f0a592f5700 from 0x7f0a69218780
Pkilling 0x7f0a59900700 from 0x7f0a69218780
Pkilling 0x7f0a58afe700 from 0x7f0a69218780
Pkilling 0x7f0a594fa700 from 0x7f0a69218780
Entering thread summarizer pause from 0x7f0a69218780
Finished thread summarizer pause from 0x7f0a69218780.

Waiting for dumping threads to resume
[info]: OmniSharp.Stdio.Host
        Starting OmniSharp on solus 4.1 (x64)
[info]: OmniSharp.Services.DotNetCliService
        DotNetPath set to dotnet

=================================================================
	External Debugger Dump:
=================================================================
[New LWP 10221]
[New LWP 10222]
[New LWP 10226]
[New LWP 10227]
[New LWP 10228]
[New LWP 10229]
[New LWP 10230]
[New LWP 10231]
[New LWP 10232]
warning: File "/usr/bin/mono-sgen-gdb.py" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
	add-auto-load-safe-path /usr/bin/mono-sgen-gdb.py
line to your configuration file "/home/work/.gdbinit".
To completely disable this security protection add
	set auto-load safe-path /
line to your configuration file "/home/work/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
	info "(gdb)Auto-loading safe path"
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib64/libthread_db.so.1".
0x00007f0a69301abf in __GI___wait4 (pid=10237, stat_loc=0x7ffe9e80a104, options=0, usage=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:27
27	../sysdeps/unix/sysv/linux/wait4.c: No such file or directory.
  Id   Target Id                                           Frame 
* 1    Thread 0x7f0a69218780 (LWP 10220) "mono"            0x00007f0a69301abf in __GI___wait4 (pid=10237, stat_loc=0x7ffe9e80a104, options=0, usage=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:27
  2    Thread 0x7f0a5bbff700 (LWP 10221) "SGen worker"     futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x890dc8) at ../sysdeps/nptl/futex-internal.h:183
  3    Thread 0x7f0a59f90700 (LWP 10222) "Finalizer"       futex_abstimed_wait_cancelable (private=0, abstime=0x0, clockid=0, expected=0, futex_word=0x882060) at ../sysdeps/nptl/futex-internal.h:320
  4    Thread 0x7f0a59900700 (LWP 10226) "mono"            futex_abstimed_wait_cancelable (private=<optimized out>, abstime=0x7f0a598ffca0, clockid=<optimized out>, expected=0, futex_word=0x891448) at ../sysdeps/nptl/futex-internal.h:320
  5    Thread 0x7f0a596ff700 (LWP 10227) "Thread Pool Wor" 0x00007f0a6943a3f8 in futex_abstimed_wait_cancelable (private=0, abstime=0x7f0a596fed50, clockid=0, expected=0, futex_word=0x882948) at ../sysdeps/nptl/futex-internal.h:320
  6    Thread 0x7f0a594fa700 (LWP 10228) "Thread Pool Wor" 0x00007f0a6943a3f8 in futex_abstimed_wait_cancelable (private=0, abstime=0x7f0a594f9d50, clockid=0, expected=0, futex_word=0x882948) at ../sysdeps/nptl/futex-internal.h:320
  7    Thread 0x7f0a592f5700 (LWP 10229) "Thread Pool Wor" 0x00007f0a6943a3f8 in futex_abstimed_wait_cancelable (private=0, abstime=0x7f0a592f4d50, clockid=0, expected=0, futex_word=0x882948) at ../sysdeps/nptl/futex-internal.h:320
  8    Thread 0x7f0a590f0700 (LWP 10230) "Thread Pool Wor" 0x00007f0a6943a3f8 in futex_abstimed_wait_cancelable (private=0, abstime=0x7f0a590efd50, clockid=0, expected=0, futex_word=0x882948) at ../sysdeps/nptl/futex-internal.h:320
  9    Thread 0x7f0a58cff700 (LWP 10231) "Timer-Scheduler" futex_abstimed_wait_cancelable (private=<optimized out>, abstime=0x7f0a58cfdfb0, clockid=<optimized out>, expected=0, futex_word=0xd5f888) at ../sysdeps/nptl/futex-internal.h:320
  10   Thread 0x7f0a58afe700 (LWP 10232) "ProcessWriteQue" futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0xd5f9d8) at ../sysdeps/nptl/futex-internal.h:183

Thread 10 (Thread 0x7f0a58afe700 (LWP 10232)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0xd5f9d8) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0xd5f988, cond=0xd5f9b0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0xd5f9b0, mutex=0xd5f988) at pthread_cond_wait.c:638
#3  0x0000000000701d20 in ?? ()
#4  0x0000000000664843 in ?? ()
#5  0x0000000000665e52 in ?? ()
#6  0x000000000069ed5e in ?? ()
#7  0x00000000005d5e4d in ?? ()
#8  0x0000000040318393 in ?? ()
#9  0x00007f0a5bc47218 in ?? ()
#10 0xffffffffffffffff in ?? ()
#11 0x00007f0a5bc47148 in ?? ()
#12 0xffffffffffffffff in ?? ()
#13 0x00007f0a5bc47148 in ?? ()
#14 0x00007f0a34002820 in ?? ()
#15 0x00007f0a58afd5f0 in ?? ()
#16 0x00007f0a58afd4d0 in ?? ()
#17 0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7f0a58cff700 (LWP 10231)):
#0  futex_abstimed_wait_cancelable (private=<optimized out>, abstime=0x7f0a58cfdfb0, clockid=<optimized out>, expected=0, futex_word=0xd5f888) at ../sysdeps/nptl/futex-internal.h:320
#1  __pthread_cond_wait_common (abstime=0x7f0a58cfdfb0, clockid=<optimized out>, mutex=0xd5f838, cond=0xd5f860) at pthread_cond_wait.c:520
#2  __pthread_cond_timedwait (cond=0xd5f860, mutex=0xd5f838, abstime=0x7f0a58cfdfb0) at pthread_cond_wait.c:656
#3  0x0000000000701cca in ?? ()
#4  0x0000000000664843 in ?? ()
#5  0x0000000000665ec3 in ?? ()
#6  0x0000000000666710 in ?? ()
#7  0x0000000000645452 in ?? ()
#8  0x00000000005d8318 in ?? ()
#9  0x0000000040311084 in ?? ()
#10 0x00007f0a5bc3c568 in ?? ()
#11 0x00007f0a5bc3c4c8 in ?? ()
#12 0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f0a590f0700 (LWP 10230)):
#0  0x00007f0a6943a3f8 in futex_abstimed_wait_cancelable (private=0, abstime=0x7f0a590efd50, clockid=0, expected=0, futex_word=0x882948) at ../sysdeps/nptl/futex-internal.h:320
#1  do_futex_wait (sem=sem@entry=0x882948, abstime=abstime@entry=0x7f0a590efd50, clockid=0) at sem_waitcommon.c:112
#2  0x00007f0a6943a523 in __new_sem_wait_slow (sem=0x882948, abstime=0x7f0a590efd50, clockid=0) at sem_waitcommon.c:184
#3  0x00000000006aac03 in ?? ()
#4  0x0000000000647f96 in ?? ()
#5  0x00007f0a69430606 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f0a6933d753 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7f0a592f5700 (LWP 10229)):
#0  0x00007f0a6943a3f8 in futex_abstimed_wait_cancelable (private=0, abstime=0x7f0a592f4d50, clockid=0, expected=0, futex_word=0x882948) at ../sysdeps/nptl/futex-internal.h:320
#1  do_futex_wait (sem=sem@entry=0x882948, abstime=abstime@entry=0x7f0a592f4d50, clockid=0) at sem_waitcommon.c:112
#2  0x00007f0a6943a523 in __new_sem_wait_slow (sem=0x882948, abstime=0x7f0a592f4d50, clockid=0) at sem_waitcommon.c:184
#3  0x00000000006aac03 in ?? ()
#4  0x0000000000647f96 in ?? ()
#5  0x00007f0a69430606 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f0a6933d753 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7f0a594fa700 (LWP 10228)):
#0  0x00007f0a6943a3f8 in futex_abstimed_wait_cancelable (private=0, abstime=0x7f0a594f9d50, clockid=0, expected=0, futex_word=0x882948) at ../sysdeps/nptl/futex-internal.h:320
#1  do_futex_wait (sem=sem@entry=0x882948, abstime=abstime@entry=0x7f0a594f9d50, clockid=0) at sem_waitcommon.c:112
#2  0x00007f0a6943a523 in __new_sem_wait_slow (sem=0x882948, abstime=0x7f0a594f9d50, clockid=0) at sem_waitcommon.c:184
#3  0x00000000006aac03 in ?? ()
#4  0x0000000000647f96 in ?? ()
#5  0x00007f0a69430606 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f0a6933d753 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7f0a596ff700 (LWP 10227)):
#0  0x00007f0a6943a3f8 in futex_abstimed_wait_cancelable (private=0, abstime=0x7f0a596fed50, clockid=0, expected=0, futex_word=0x882948) at ../sysdeps/nptl/futex-internal.h:320
#1  do_futex_wait (sem=sem@entry=0x882948, abstime=abstime@entry=0x7f0a596fed50, clockid=0) at sem_waitcommon.c:112
#2  0x00007f0a6943a523 in __new_sem_wait_slow (sem=0x882948, abstime=0x7f0a596fed50, clockid=0) at sem_waitcommon.c:184
#3  0x00000000006aac03 in ?? ()
#4  0x0000000000647f96 in ?? ()
#5  0x00007f0a69430606 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f0a6933d753 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f0a59900700 (LWP 10226)):
#0  futex_abstimed_wait_cancelable (private=<optimized out>, abstime=0x7f0a598ffca0, clockid=<optimized out>, expected=0, futex_word=0x891448) at ../sysdeps/nptl/futex-internal.h:320
#1  __pthread_cond_wait_common (abstime=0x7f0a598ffca0, clockid=<optimized out>, mutex=0x891460, cond=0x891420) at pthread_cond_wait.c:520
#2  __pthread_cond_timedwait (cond=0x891420, mutex=0x891460, abstime=0x7f0a598ffca0) at pthread_cond_wait.c:656
#3  0x0000000000701cca in ?? ()
#4  0x000000000070ce25 in ?? ()
#5  0x00000000006ab823 in ?? ()
#6  0x0000000000647f96 in ?? ()
#7  0x00007f0a69430606 in start_thread (arg=<optimized out>) at pthread_create.c:477
#8  0x00007f0a6933d753 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f0a59f90700 (LWP 10222)):
#0  futex_abstimed_wait_cancelable (private=0, abstime=0x0, clockid=0, expected=0, futex_word=0x882060) at ../sysdeps/nptl/futex-internal.h:320
#1  do_futex_wait (sem=sem@entry=0x882060, abstime=0x0, clockid=0) at sem_waitcommon.c:112
#2  0x00007f0a6943a2c8 in __new_sem_wait_slow (sem=0x882060, abstime=0x0, clockid=0) at sem_waitcommon.c:184
#3  0x000000000069aa3a in ?? ()
#4  0x0000000000647f96 in ?? ()
#5  0x00007f0a69430606 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f0a6933d753 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f0a5bbff700 (LWP 10221)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x890dc8) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x890de0, cond=0x890da0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x890da0, mutex=0x890de0) at pthread_cond_wait.c:638
#3  0x00000000006f4636 in ?? ()
#4  0x00007f0a69430606 in start_thread (arg=<optimized out>) at pthread_create.c:477
#5  0x00007f0a6933d753 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f0a69218780 (LWP 10220)):
#0  0x00007f0a69301abf in __GI___wait4 (pid=10237, stat_loc=0x7ffe9e80a104, options=0, usage=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:27
#1  0x00000000004a92cf in ?? ()
#2  0x00000000004a945c in ?? ()
#3  0x0000000000457d75 in ?? ()
#4  0x00000000004a2dc1 in ?? ()
#5  0x00007f0a58151c80 in _int_free (av=0x7f0a582a19e0 <main_arena>, p=0x167f750, have_lock=<optimized out>) at malloc.c:4309
#6  0x00007f0a2c000080 in ?? ()
#7  0x000000000167f750 in ?? ()
#8  0x0000000001680760 in ?? ()
#9  0x0000000000dc3610 in ?? ()
#10 0x0000000000000001 in ?? ()
#11 0x00007f0a58151c80 in _int_free (av=0x167f750, p=0x7f0a582a19e0 <main_arena>, have_lock=<optimized out>) at malloc.c:4309
#12 0x000000000070fdf4 in mono_threads_enter_gc_safe_region_unbalanced ()
#13 0x0a0c010e1b1c0126 in ?? ()
#14 0x0000000000000000 in ?? ()
[Inferior 1 (process 10220) detached]

=================================================================
Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x7f0a58151c80):0x7f0a58151c70  48 8d 3d 69 09 12 00 e8 64 e3 ff ff 0f 1f 40 00  H.=i....d.....@.
0x7f0a58151c80  48 8b 50 08 48 83 e2 f8 48 01 d0 49 39 c5 0f 82  H.P.H...H..I9...
0x7f0a58151c90  4d fa ff ff 48 8d 3d 65 09 12 00 e8 40 e3 ff ff  M...H.=e....@...
0x7f0a58151ca0  48 8d 3d 79 09 12 00 e8 34 e3 ff ff 0f 1f 40 00  H.=y....4.....@.

=================================================================
Managed Stacktrace:
=================================================================
at <unknown> <0xffffffff>
at OmniSharp.Utilities.PlatformHelper:Unix_free <0x0008f>
at OmniSharp.Utilities.PlatformHelper:RealPath <0x00047>
at OmniSharp.Utilities.PlatformHelper:GetMonoRuntimePath <0x00183>
at OmniSharp.MSBuild.Discovery.Providers.MonoInstanceProvider:GetInstances <0x0006b>
at OmniSharp.MSBuild.Discovery.MSBuildLocator:GetInstances <0x000ca>
at OmniSharp.MSBuild.Discovery.Extensions:GetBestInstance <0x00066>
at OmniSharp.MSBuild.Discovery.Extensions:RegisterDefaultInstance <0x0003f>
at OmniSharp.CompositionHostBuilder:Build <0x001cf>
at OmniSharp.Stdio.Host:.ctor <0x0018f>
at <>c__DisplayClass0_1:<Main>b__1 <0x0053b>
at <>c__DisplayClass11_0:<OnExecute>b__0 <0x0003a>
at McMaster.Extensions.CommandLineUtils.CommandLineApplication:Execute <0x000b1>
at OmniSharp.CommandLineApplication:Execute <0x002d7>
at <>c__DisplayClass0_0:<Main>b__0 <0x0013f>
at OmniSharp.HostHelpers:Start <0x00082>
at OmniSharp.Stdio.Driver.Program:Main <0x000eb>
at <Module>:runtime_invoke_int_object <0x00085>

The only part of this I can edit is the add-auto-load-safe-path, but I added that to ~/.gdbinit and it still crashes.

I'm running Solus 4.1.

> mono --version
Mono JIT compiler version 6.8.0.105 (tarball Mon 13 Apr 2020 03:53:48 AM UTC)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           __thread
	SIGSEGV:       altstack
	Notifications: epoll
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug 
	Interpreter:   yes
	LLVM:          supported, not enabled.
	Suspend:       hybrid
	GC:            sgen (concurrent by default)
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

1 participant