[Mono-bugs] [Bug 431539] Segmentation Fault in mcs/gmcs

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Nov 14 04:20:15 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=431539

User Yury at serdyuk.botik.ru added comment
https://bugzilla.novell.com/show_bug.cgi?id=431539#c9





--- Comment #9 from Yury Serdyuk <Yury at serdyuk.botik.ru>  2008-11-14 02:20:14 MST ---
Gdb protocols from testing on the system

[user002 at cell8i ~]$ uname -a
Linux cell8i 2.6.22-5.20070920bsc #1 SMP Tue Sep 25 10:49:16 CEST 2007 ppc64
ppc64 ppc64 GNU/Linux

1.  Original Mono 2.0.1:

[user002 at cell8i ~]$
MONO_PATH="/home/user002/mono-2.0.1/mcs/class/lib/monolite:$MONO_PATH" gdb
/home/user002/mono-2.0.1/mono/mini/mono
GNU gdb Red Hat Linux (6.6-8.fc7rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "ppc-redhat-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) handle SIGPWR nostop
Signal        Stop      Print   Pass to program Description
SIGPWR        No        Yes     Yes             Power fail/restart
(gdb) handle SIGXCPU nostop
Signal        Stop      Print   Pass to program Description
SIGXCPU       No        Yes     Yes             CPU time limit exceeded
(gdb)  run /home/user002/mono-2.0.1/mcs/class/lib/monolite/mcs.exe -v
SegFault.cs
Starting program: /home/user002/mono-2.0.1/mono/mini/mono
/home/user002/mono-2.0.1/mcs/class/lib/monolite/mcs.exe -v SegFault.cs
[Thread debugging using libthread_db enabled]
[New Thread 268381744 (LWP 1062)]
[New Thread -144116576 (LWP 1065)]
[New Thread -144509792 (LWP 1066)]

Program received signal SIGPWR, Power fail/restart.

Program received signal SIGXCPU, CPU time limit exceeded.

Program received signal SIGPWR, Power fail/restart.

Program received signal SIGXCPU, CPU time limit exceeded.
** Message: Unknown errno: Success

SegFault.cs(7,0): error CS8025: Parsing error** Message: Unknown errno: Level 2
not synchronized

SegFault.cs(7,0): error CS8025: Parsing error** Message: Unknown errno: Level 2
not synchronized

System.IO.IOException: Win32 IO returned ERROR_GEN_FAILURE. Path: SegFault.cs
  at System.IO.FileStream.ReadData (IntPtr handle, System.Byte[] buf, Int32
offset, Int32 count) [0x00000]
  at System.IO.FileStream.ReadInternal (System.Byte[] dest, Int32 offset, Int32
count) [0x00000]
  at System.IO.FileStream.Read (System.Byte[] array, Int32 offset, Int32 count)
[0x00000]
  at System.IO.StreamReader.ReadBuffer () [0x00000]
  at System.IO.StreamReader.Read (System.Char[] buffer, Int32 index, Int32
count) [0x00000]
  at Mono.CSharp.SeekableStreamReader.ReadBuffer () [0x00000]
  at Mono.CSharp.SeekableStreamReader.Read () [0x00000]
  at Mono.CSharp.Tokenizer.peek_char () [0x00000]
  at Mono.CSharp.Tokenizer.is_punct (Char c, System.Boolean& doread) [0x00000]
  at Mono.CSharp.Tokenizer.xtoken () [0x00000]
  at Mono.CSharp.Tokenizer.token () [0x00000]
  at Mono.CSharp.CSharpParser.yyparse (yyInput yyLex) [0x00000]
  at Mono.CSharp.CSharpParser.parse () [0x00000] ** Message: Unknown errno:
Unknown error 981

System.IO.IOException: Win32 IO returned ERROR_GEN_FAILURE. Path: SegFault.cs
  at System.IO.FileStream.ReadData (IntPtr handle, System.Byte[] buf, Int32
offset, Int32 count) [0x00000]
  at System.IO.FileStream.ReadInternal (System.Byte[] dest, Int32 offset, Int32
count) [0x00000]
  at System.IO.FileStream.Read (System.Byte[] array, Int32 offset, Int32 count)
[0x00000]
  at System.IO.StreamReader.ReadBuffer () [0x00000]
  at System.IO.StreamReader.Read (System.Char[] buffer, Int32 index, Int32
count) [0x00000]
  at Mono.CSharp.SeekableStreamReader.ReadBuffer () [0x00000]
  at Mono.CSharp.SeekableStreamReader.Read () [0x00000]
  at Mono.CSharp.Tokenizer.peek_char () [0x00000]
  at Mono.CSharp.Tokenizer.is_punct (Char c, System.Boolean& doread) [0x00000]
  at Mono.CSharp.Tokenizer.xtoken () [0x00000]
  at Mono.CSharp.Tokenizer.token () [0x00000]
  at Mono.CSharp.CSharpParser.yyparse (yyInput yyLex) [0x00000]
  at Mono.CSharp.CSharpParser.parse () [0x00000] ** Message: Unknown errno:
Unknown error 981

System.IO.IOException: Win32 IO returned ERROR_GEN_FAILURE. Path: SegFault.cs
  at System.IO.FileStream.ReadData (IntPtr handle, System.Byte[] buf, Int32
offset, Int32 count) [0x00000]
  at System.IO.FileStream.ReadInternal (System.Byte[] dest, Int32 offset, Int32
count) [0x00000]
  at System.IO.FileStream.Read (System.Byte[] array, Int32 offset, Int32 count)
[0x00000]
  at System.IO.StreamReader.ReadBuffer () [0x00000]
  at System.IO.StreamReader.Read (System.Char[] buffer, Int32 index, Int32
count) [0x00000]
  at Mono.CSharp.SeekableStreamReader.ReadBuffer () [0x00000]
  at Mono.CSharp.SeekableStreamReader.Read () [0x00000]
  at Mono.CSharp.Tokenizer.peek_char () [0x00000]
  at Mono.CSharp.Tokenizer.is_punct (Char c, System.Boolean& doread) [0x00000]
  at Mono.CSharp.Tokenizer.xtoken () [0x00000]
  at Mono.CSharp.Tokenizer.token () [0x00000]
  at Mono.CSharp.CSharpParser.yyparse (yyInput yyLex) [0x00000]
  at Mono.CSharp.CSharpParser.parse () [0x00000] ** Message: Unknown errno:
Unknown error 981

System.IO.IOException: Win32 IO returned ERROR_GEN_FAILURE. Path: SegFault.cs
  at System.IO.FileStream.ReadData (IntPtr handle, System.Byte[] buf, Int32
offset, Int32 count) [0x00000]
  at System.IO.FileStream.ReadInternal (System.Byte[] dest, Int32 offset, Int32
count) [0x00000]
  at System.IO.FileStream.Read (System.Byte[] array, Int32 offset, Int32 count)
[0x00000]
  at System.IO.StreamReader.ReadBuffer () [0x00000]
  at System.IO.StreamReader.Read (System.Char[] buffer, Int32 index, Int32
count) [0x00000]
  at Mono.CSharp.SeekableStreamReader.ReadBuffer () [0x00000]
  at Mono.CSharp.SeekableStreamReader.Read () [0x00000]
  at Mono.CSharp.Tokenizer.peek_char () [0x00000]
  at Mono.CSharp.Tokenizer.is_punct (Char c, System.Boolean& doread) [0x00000]
  at Mono.CSharp.Tokenizer.xtoken () [0x00000]
  at Mono.CSharp.Tokenizer.token () [0x00000]
  at Mono.CSharp.CSharpParser.yyparse (yyInput yyLex) [0x00000]
  at Mono.CSharp.CSharpParser.parse () [0x00000] ** Message: Unknown errno:
Unknown error 981


Program received signal SIGPWR, Power fail/restart.

Program received signal SIGXCPU, CPU time limit exceeded.

** ERROR **: file mini.c: line 13775 (remove_signal_handler): assertion failed:
(sigaction (signo, &sa, NULL) != -1)
aborting...

Program received signal SIGABRT, Aborted.
[Switching to Thread 268381744 (LWP 1062)]
0x0fd15f10 in raise () from /lib/libc.so.6
(gdb) info threads
  3 Thread -144509792 (LWP 1066)  0x0ffca880 in _dl_lookup_symbol_x () from
/lib/ld.so.1
  2 Thread -144116576 (LWP 1065)  0x0fcafc24 in nanosleep () from
/lib/libpthread.so.0
* 1 Thread 268381744 (LWP 1062)  0x0fd15f10 in raise () from /lib/libc.so.6
(gdb) thread apply all bt

Thread 3 (Thread -144509792 (LWP 1066)):
#0  0x0ffca880 in _dl_lookup_symbol_x () from /lib/ld.so.1
#1  0x0ffce064 in _dl_fixup () from /lib/ld.so.1
#2  0x0ffd5370 in _dl_runtime_resolve () from /lib/ld.so.1
#3  0x004edc5c in ?? () from /lib/libgcc_s.so.1
#4  0x004ee6cc in _Unwind_ForcedUnwind () from /lib/libgcc_s.so.1
#5  0x0fcb17d0 in _Unwind_ForcedUnwind () from /lib/libpthread.so.0
#6  0x0fcae6dc in __pthread_unwind () from /lib/libpthread.so.0
#7  0x0fca6e14 in pthread_exit () from /lib/libpthread.so.0
#8  0x101450e8 in thread_exit (exitstatus=<value optimized out>, handle=<value
optimized out>) at threads.c:201
#9  0x10145204 in thread_start_routine (args=0x102e51c8) at threads.c:279
#10 0x1016d7cc in GC_start_routine (arg=0xf7ec5f20) at pthread_support.c:1382
#11 0x0fca6a84 in start_thread () from /lib/libpthread.so.0
#12 0x0fdcf424 in clone () from /lib/libc.so.6
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 2 (Thread -144116576 (LWP 1065)):
#0  0x0fcafc24 in nanosleep () from /lib/libpthread.so.0
#1  0x1012807c in collection_thread (unused=<value optimized out>) at
collection.c:34
#2  0x0fca6a84 in start_thread () from /lib/libpthread.so.0
#3  0x0fdcf424 in clone () from /lib/libc.so.6
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 1 (Thread 268381744 (LWP 1062)):
#0  0x0fd15f10 in raise () from /lib/libc.so.6
#1  0x0fd17c94 in abort () from /lib/libc.so.6
#2  0x0fc124b4 in g_logv () from /lib/libglib-2.0.so.0
#3  0x0fc12528 in g_log () from /lib/libglib-2.0.so.0
#4  0x0fc125cc in g_assert_warning () from /lib/libglib-2.0.so.0
#5  0x101ade54 in remove_signal_handler (signo=8) at mini.c:13775
---Type <return> to continue, or q <return> to quit---
#6  0x101adfd0 in mono_runtime_cleanup_handlers () at mini.c:13835
#7  0x101afc30 in mini_cleanup (domain=0xf7ec4ee0) at mini.c:14490
#8  0x10014864 in mono_main (argc=4, argv=0xffe2fa14) at driver.c:1564
#9  0x10011004 in main (argc=4, argv=0xffe2fa14) at main.c:30
(gdb)
(gdb) quit
The program is running.  Exit anyway? (y or n) y
[user002 at cell8i ~]$

2. With deleted g_assert in  remove_signal_handler :

[user002 at cell8i ~]$
MONO_PATH="/home/user002/mono-2.0.1/mcs/class/lib/monolite:$MONO_PATH" gdb
/home/user002/mono-2.0.1/mono/mini/mono
GNU gdb Red Hat Linux (6.6-8.fc7rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "ppc-redhat-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) handle SIGPWR nostop
Signal        Stop      Print   Pass to program Description
SIGPWR        No        Yes     Yes             Power fail/restart
(gdb) handle SIGXCPU nostop
Signal        Stop      Print   Pass to program Description
SIGXCPU       No        Yes     Yes             CPU time limit exceeded
(gdb) run /home/user002/mono-2.0.1/mcs/class/lib/monolite/mcs.exe -v
SegFault.cs
Starting program: /home/user002/mono-2.0.1/mono/mini/mono
/home/user002/mono-2.0.1/mcs/class/lib/monolite/mcs.exe -v SegFault.cs
[Thread debugging using libthread_db enabled]
[New Thread 268381744 (LWP 7946)]
[New Thread -144116576 (LWP 7949)]
[New Thread -144509792 (LWP 7950)]

Program received signal SIGPWR, Power fail/restart.

Program received signal SIGXCPU, CPU time limit exceeded.

Program received signal SIGPWR, Power fail/restart.

Program received signal SIGXCPU, CPU time limit exceeded.
** Message: Unknown errno: Success

SegFault.cs(7,0): error CS8025: Parsing error** Message: Unknown errno: Level 2
not synchronized

SegFault.cs(7,0): error CS8025: Parsing error** Message: Unknown errno: Level 2
not synchronized

System.IO.IOException: Win32 IO returned ERROR_GEN_FAILURE. Path: SegFault.cs
  at System.IO.FileStream.ReadData (IntPtr handle, System.Byte[] buf, Int32
offset, Int32 count) [0x00000]
  at System.IO.FileStream.ReadInternal (System.Byte[] dest, Int32 offset, Int32
count) [0x00000]
  at System.IO.FileStream.Read (System.Byte[] array, Int32 offset, Int32 count)
[0x00000]
  at System.IO.StreamReader.ReadBuffer () [0x00000]
  at System.IO.StreamReader.Read (System.Char[] buffer, Int32 index, Int32
count) [0x00000]
  at Mono.CSharp.SeekableStreamReader.ReadBuffer () [0x00000]
  at Mono.CSharp.SeekableStreamReader.Read () [0x00000]
  at Mono.CSharp.Tokenizer.peek_char () [0x00000]
  at Mono.CSharp.Tokenizer.is_punct (Char c, System.Boolean& doread) [0x00000]
  at Mono.CSharp.Tokenizer.xtoken () [0x00000]
  at Mono.CSharp.Tokenizer.token () [0x00000]
  at Mono.CSharp.CSharpParser.yyparse (yyInput yyLex) [0x00000]
  at Mono.CSharp.CSharpParser.parse () [0x00000] ** Message: Unknown errno:
Unknown error 981

System.IO.IOException: Win32 IO returned ERROR_GEN_FAILURE. Path: SegFault.cs
  at System.IO.FileStream.ReadData (IntPtr handle, System.Byte[] buf, Int32
offset, Int32 count) [0x00000]
  at System.IO.FileStream.ReadInternal (System.Byte[] dest, Int32 offset, Int32
count) [0x00000]
  at System.IO.FileStream.Read (System.Byte[] array, Int32 offset, Int32 count)
[0x00000]
  at System.IO.StreamReader.ReadBuffer () [0x00000]
  at System.IO.StreamReader.Read (System.Char[] buffer, Int32 index, Int32
count) [0x00000]
  at Mono.CSharp.SeekableStreamReader.ReadBuffer () [0x00000]
  at Mono.CSharp.SeekableStreamReader.Read () [0x00000]
  at Mono.CSharp.Tokenizer.peek_char () [0x00000]
  at Mono.CSharp.Tokenizer.is_punct (Char c, System.Boolean& doread) [0x00000]
  at Mono.CSharp.Tokenizer.xtoken () [0x00000]
  at Mono.CSharp.Tokenizer.token () [0x00000]
  at Mono.CSharp.CSharpParser.yyparse (yyInput yyLex) [0x00000]
  at Mono.CSharp.CSharpParser.parse () [0x00000] ** Message: Unknown errno:
Unknown error 981

System.IO.IOException: Win32 IO returned ERROR_GEN_FAILURE. Path: SegFault.cs
  at System.IO.FileStream.ReadData (IntPtr handle, System.Byte[] buf, Int32
offset, Int32 count) [0x00000]
  at System.IO.FileStream.ReadInternal (System.Byte[] dest, Int32 offset, Int32
count) [0x00000]
  at System.IO.FileStream.Read (System.Byte[] array, Int32 offset, Int32 count)
[0x00000]
  at System.IO.StreamReader.ReadBuffer () [0x00000]
  at System.IO.StreamReader.Read (System.Char[] buffer, Int32 index, Int32
count) [0x00000]
  at Mono.CSharp.SeekableStreamReader.ReadBuffer () [0x00000]
  at Mono.CSharp.SeekableStreamReader.Read () [0x00000]
  at Mono.CSharp.Tokenizer.peek_char () [0x00000]
  at Mono.CSharp.Tokenizer.is_punct (Char c, System.Boolean& doread) [0x00000]
  at Mono.CSharp.Tokenizer.xtoken () [0x00000]
  at Mono.CSharp.Tokenizer.token () [0x00000]
  at Mono.CSharp.CSharpParser.yyparse (yyInput yyLex) [0x00000]
  at Mono.CSharp.CSharpParser.parse () [0x00000] ** Message: Unknown errno:
Unknown error 981

System.IO.IOException: Win32 IO returned ERROR_GEN_FAILURE. Path: SegFault.cs
  at System.IO.FileStream.ReadData (IntPtr handle, System.Byte[] buf, Int32
offset, Int32 count) [0x00000]
  at System.IO.FileStream.ReadInternal (System.Byte[] dest, Int32 offset, Int32
count) [0x00000]
  at System.IO.FileStream.Read (System.Byte[] array, Int32 offset, Int32 count)
[0x00000]
  at System.IO.StreamReader.ReadBuffer () [0x00000]
  at System.IO.StreamReader.Read (System.Char[] buffer, Int32 index, Int32
count) [0x00000]
  at Mono.CSharp.SeekableStreamReader.ReadBuffer () [0x00000]
  at Mono.CSharp.SeekableStreamReader.Read () [0x00000]
  at Mono.CSharp.Tokenizer.peek_char () [0x00000]
  at Mono.CSharp.Tokenizer.is_punct (Char c, System.Boolean& doread) [0x00000]
  at Mono.CSharp.Tokenizer.xtoken () [0x00000]
  at Mono.CSharp.Tokenizer.token () [0x00000]
  at Mono.CSharp.CSharpParser.yyparse (yyInput yyLex) [0x00000]
  at Mono.CSharp.CSharpParser.parse () [0x00000] ** Message: Unknown errno:
Unknown error 981


Program received signal SIGPWR, Power fail/restart.

Program received signal SIGXCPU, CPU time limit exceeded.
[Thread -144509792 (LWP 7950) exited]

** ERROR **: file shared.c: line 489 (shm_semaphores_remove): assertion failed:
(proc_count > 0)
aborting...

Program received signal SIGABRT, Aborted.
[Switching to Thread 268381744 (LWP 7946)]
0x0fd15f10 in raise () from /lib/libc.so.6
(gdb) info threads
  2 Thread -144116576 (LWP 7949)  0x0fcafc24 in nanosleep () from
/lib/libpthread.so.0
* 1 Thread 268381744 (LWP 7946)  0x0fd15f10 in raise () from /lib/libc.so.6
(gdb) thread apply all bt

Thread 2 (Thread -144116576 (LWP 7949)):
#0  0x0fcafc24 in nanosleep () from /lib/libpthread.so.0
#1  0x1012807c in collection_thread (unused=<value optimized out>) at
collection.c:34
#2  0x0fca6a84 in start_thread () from /lib/libpthread.so.0
#3  0x0fdcf424 in clone () from /lib/libc.so.6
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 1 (Thread 268381744 (LWP 7946)):
#0  0x0fd15f10 in raise () from /lib/libc.so.6
#1  0x0fd17c94 in abort () from /lib/libc.so.6
#2  0x0fc124b4 in g_logv () from /lib/libglib-2.0.so.0
#3  0x0fc12528 in g_log () from /lib/libglib-2.0.so.0
#4  0x0fc125cc in g_assert_warning () from /lib/libglib-2.0.so.0
#5  0x10140a9c in _wapi_shm_semaphores_remove () at shared.c:489
#6  0x1012cf60 in handle_cleanup () at handles.c:189
#7  0x0fd1947c in exit () from /lib/libc.so.6
#8  0x0fcfde10 in generic_start_main () from /lib/libc.so.6
#9  0x0fcfe060 in __libc_start_main () from /lib/libc.so.6
#10 0x00000000 in ?? ()
(gdb) quit
The program is running.  Exit anyway? (y or n) y
[user002 at cell8i ~]$


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list