Could not attach to process. If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
=================================================================
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.
=================================================================
Binary package hint: mono
When compiled and run, the following program crashes with SIGSEGV
public class Foo { IO.Pipes. NamedPipeServer Stream( "testpipe" ).Disconnect( );
static void Main() {
new System.
}
}
$ gmcs pipetest.cs
$ mono pipetest.exe
Stacktrace:
at (wrapper managed-to-native) Mono.Unix. Native. Stdlib. fclose (intptr) <0x0005b> Native. Stdlib. fclose (intptr) <0x0005b> IO.Pipes. UnixNamedPipeSe rver.Disconnect () <0x0002b> IO.Pipes. NamedPipeServer Stream. Disconnect () <0x00020> invoke- with-check) System. IO.Pipes. NamedPipeServer Stream. Disconnect () <0x00053> runtime_ invoke_ void (object, intptr, intptr, intptr) <0x00049>
at (wrapper managed-to-native) Mono.Unix.
at System.
at System.
at (wrapper remoting-
at Foo.Main () <0x0003b>
at (wrapper runtime-invoke) object.
Native stacktrace:
mono() [0x48563b]
/lib/libpthrea d.so.0( +0xfb40) [0x7f44c0ed4b40]
/lib/libc. so.6(fclose+ 0x4) [0x7f44c09268a4]
[0x41d4e91b]
mono() [0x4d275f]
Debug info from gdb:
Could not attach to process. If your uid matches the uid of the target kernel/ yama/ptrace_ scope, or try d/10-ptrace. conf
process, check the setting of /proc/sys/
again as the root user. For more details, see /etc/sysctl.
ptrace: Operation not permitted.
======= ======= ======= ======= ======= ======= ======= ======= ======= == ======= ======= ======= ======= ======= ======= ======= ======= ==
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.
=======
Aborted