Public bug reported: Binary package hint: mono
When compiled and run, the following program crashes with SIGSEGV public class Foo { static void Main() { new System.IO.Pipes.NamedPipeServerStream("testpipe").Disconnect(); } } $ gmcs pipetest.cs $ mono pipetest.exe Stacktrace: at (wrapper managed-to-native) Mono.Unix.Native.Stdlib.fclose (intptr) <0x0005b> at (wrapper managed-to-native) Mono.Unix.Native.Stdlib.fclose (intptr) <0x0005b> at System.IO.Pipes.UnixNamedPipeServer.Disconnect () <0x0002b> at System.IO.Pipes.NamedPipeServerStream.Disconnect () <0x00020> at (wrapper remoting-invoke-with-check) System.IO.Pipes.NamedPipeServerStream.Disconnect () <0x00053> at Foo.Main () <0x0003b> at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) <0x00049> Native stacktrace: mono() [0x48563b] mono() [0x4d275f] /lib/libpthread.so.0(+0xfb40) [0x7f44c0ed4b40] /lib/libc.so.6(fclose+0x4) [0x7f44c09268a4] [0x41d4e91b] Debug info from gdb: 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. ================================================================= Aborted $ mono --version Mono JIT compiler version 2.6.7 (Debian 2.6.7-3ubuntu1) Copyright (C) 2002-2010 Novell, Inc and Contributors. www.mono-project.com TLS: __thread GC: Included Boehm (with typed GC and Parallel Mark) SIGSEGV: altstack Notifications: epoll Architecture: amd64 Disabled: none ** Affects: mono (Ubuntu) Importance: Undecided Status: New ** Description changed: Binary package hint: mono When compiled and run, the following program crashes with SIGSEGV public class Foo { - static void Main() { - new System.IO.Pipes.NamedPipeServerStream("testpipe").Disconnect(); - } + static void Main() { + new System.IO.Pipes.NamedPipeServerStream("testpipe").Disconnect(); + } } - $ gmcs pipetest.cs $ mono pipetest.exe Stacktrace: - at (wrapper managed-to-native) Mono.Unix.Native.Stdlib.fclose (intptr) <0x0005b> - at (wrapper managed-to-native) Mono.Unix.Native.Stdlib.fclose (intptr) <0x0005b> - at System.IO.Pipes.UnixNamedPipeServer.Disconnect () <0x0002b> - at System.IO.Pipes.NamedPipeServerStream.Disconnect () <0x00020> - at (wrapper remoting-invoke-with-check) System.IO.Pipes.NamedPipeServerStream.Disconnect () <0x00053> - at Foo.Main () <0x0003b> - at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) <0x00049> + at (wrapper managed-to-native) Mono.Unix.Native.Stdlib.fclose (intptr) <0x0005b> + at (wrapper managed-to-native) Mono.Unix.Native.Stdlib.fclose (intptr) <0x0005b> + at System.IO.Pipes.UnixNamedPipeServer.Disconnect () <0x0002b> + at System.IO.Pipes.NamedPipeServerStream.Disconnect () <0x00020> + at (wrapper remoting-invoke-with-check) System.IO.Pipes.NamedPipeServerStream.Disconnect () <0x00053> + at Foo.Main () <0x0003b> + at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) <0x00049> Native stacktrace: - mono() [0x48563b] - mono() [0x4d275f] - /lib/libpthread.so.0(+0xfb40) [0x7f44c0ed4b40] - /lib/libc.so.6(fclose+0x4) [0x7f44c09268a4] - [0x41d4e91b] + mono() [0x48563b] + mono() [0x4d275f] + /lib/libpthread.so.0(+0xfb40) [0x7f44c0ed4b40] + /lib/libc.so.6(fclose+0x4) [0x7f44c09268a4] + [0x41d4e91b] Debug info from gdb: 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 + a fatal error in the mono runtime or one of the native libraries used by your application. ================================================================= Aborted + + $ mono --version + Mono JIT compiler version 2.6.7 (Debian 2.6.7-3ubuntu1) + Copyright (C) 2002-2010 Novell, Inc and Contributors. www.mono-project.com + TLS: __thread + GC: Included Boehm (with typed GC and Parallel Mark) + SIGSEGV: altstack + Notifications: epoll + Architecture: amd64 + Disabled: none -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/700504 Title: calling NamedPipeServerStream.Disconnect causes SIGSEGV -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs