[Mono-bugs] [Bug 431539] New: Segmentation Fault in mcs/gmcs
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Oct 2 07:21:41 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=431539
Summary: Segmentation Fault in mcs/gmcs
Product: Mono: Class Libraries
Version: 1.9
Platform: PowerPC-64
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: System
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: Yury at serdyuk.botik.ru
QAContact: mono-bugs at lists.ximian.com
Found By: ---
1. Compile an run the following code:
using System;
public class SegFault {
void func ( ) {
ulong ul_constant = 9223372036854775808;
}
}
2. Result:
[user002 at cell8i-3 ~]$ mcs -v SegFault.cs
** Message: Unknown errno: Success
Stacktrace:
Segmentation fault
3. Above code under gdb:
[user002 at cell8i-3 ~]$ gdb /usr/bin/mono
GNU gdb Fedora (6.8-1.fc9)
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "ppc-redhat-linux-gnu"...
(no debugging symbols found)
Missing separate debuginfos, use: debuginfo-install mono.ppc
(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 /usr/lib/mono/1.0/mcs.exe -v SegFault.cs
Starting program: /usr/bin/mono /usr/lib/mono/1.0/mcs.exe -v SegFault.cs
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[New Thread 0xf7fe2000 (LWP 26842)]
(no debugging symbols found)
[New Thread 0xf771a450 (LWP 26845)]
[New Thread 0xf76ba450 (LWP 26846)]
Program received signal SIGPWR, Power fail/restart.
Program received signal SIGXCPU, CPU time limit exceeded.
** Message: Unknown errno: Success
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xf7fe2000 (LWP 26842)]
0x0fd9e344 in _wordcopy_fwd_aligned () from /lib/libc.so.6
(gdb) info threads
3 Thread 0xf76ba450 (LWP 26846) 0x0fc5bf44 in pthread_cond_wait@@GLIBC_2.3.2
()
from /lib/libpthread.so.0
2 Thread 0xf771a450 (LWP 26845) 0x0fc611e8 in nanosleep () from
/lib/libpthread.so.0
* 1 Thread 0xf7fe2000 (LWP 26842) 0x0fd9e344 in _wordcopy_fwd_aligned () from
/lib/libc.so.6
(gdb) thread apply all bt
Thread 3 (Thread 0xf76ba450 (LWP 26846)):
#0 0x0fc5bf44 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1 0x100d13a4 in ?? ()
#2 0x100d3cc4 in ?? ()
#3 0x100d3cfc in ?? ()
#4 0x100e98dc in ?? ()
#5 0x10065c30 in ?? ()
#6 0x10086c9c in ?? ()
#7 0x100e6ff0 in ?? ()
#8 0x10105b98 in ?? ()
#9 0x0fc56e3c in start_thread () from /lib/libpthread.so.0
#10 0x0fe0b670 in clone () from /lib/libc.so.6
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Thread 2 (Thread 0xf771a450 (LWP 26845)):
#0 0x0fc611e8 in nanosleep () from /lib/libpthread.so.0
#1 0x100cd66c in ?? ()
#2 0x0fc56e3c in start_thread () from /lib/libpthread.so.0
#3 0x0fe0b670 in clone () from /lib/libc.so.6
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
---Type <return> to continue, or q <return> to quit---
Thread 1 (Thread 0xf7fe2000 (LWP 26842)):
#0 0x0fd9e344 in _wordcopy_fwd_aligned () from /lib/libc.so.6
#1 0x0fd9e184 in memcpy () from /lib/libc.so.6
#2 0x1010dae0 in ?? ()
#3 0x1012ada8 in ?? ()
#4 0x1012bbd0 in ?? ()
#5 0x10045b54 in mono_compile_method ()
#6 0x101678f4 in ?? ()
#7 0xf7ff3114 in ?? ()
#8 0xf733ac6c in ?? ()
#9 0xf733a098 in ?? ()
#10 0xf7339e0c in ?? ()
#11 0xf7338e24 in ?? ()
#12 0xf7338944 in ?? ()
#13 0xf73388ac in ?? ()
#14 0xf7338708 in ?? ()
#15 0xf733fc14 in ?? ()
#16 0xf733f7a8 in ?? ()
#17 0xf733f388 in ?? ()
#18 0xf733f06c in ?? ()
#19 0xf7340968 in ?? ()
#20 0xf7340884 in ?? ()
---Type <return> to continue, or q <return> to quit---
#21 0xf734071c in ?? ()
#22 0xf7348108 in ?? ()
#23 0xf732f6bc in ?? ()
#24 0xf734886c in ?? ()
#25 0xf7348160 in ?? ()
#26 0xf72356ec in ?? ()
#27 0xf7344810 in ?? ()
#28 0xf7393b90 in ?? ()
#29 0xf73933fc in ?? ()
#30 0xf7cbbf94 in ?? ()
#31 0xf7cba634 in ?? ()
#32 0xf7cb23c8 in ?? ()
#33 0x1012c548 in ?? ()
#34 0x1004a2a0 in mono_runtime_exec_main ()
#35 0x1004a954 in mono_runtime_run_main ()
#36 0x100100bc in mono_jit_exec ()
#37 0x10011118 in mono_main ()
#38 0x1000fad0 in ?? ()
#39 0x0fd2d8f0 in generic_start_main () from /lib/libc.so.6
#40 0x0fd2dab0 in __libc_start_main () from /lib/libc.so.6
#41 0x00000000 in ?? ()
(gdb) quit
The program is running. Exit anyway? (y or n) y
[user002 at cell8i-3 ~]$
4. System :
a) hardware
[user002 at cell8i-3 proc]$ cat cpuinfo
processor : 0
cpu : Cell Broadband Engine, altivec supported
clock : 3200.000000MHz
revision : 48.0 (pvr 0070 3000)
b) software - Fedora Core 9
[user002 at cell8i-3 proc]$ uname -a
Linux cell8i-3 2.6.25-14.fc9.ppc64 #1 SMP Thu May 1 05:49:24 EDT 2008 ppc64
ppc64 ppc64 GNU/Linux
[user002 at cell8i-3 proc]$ mono -V
Mono JIT compiler version 1.9.1 (tarball)
Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com
TLS: __thread
GC: Included Boehm (with typed GC)
SIGSEGV: altstack
Notifications: epoll
Architecture: ppc
Disabled: none
[user002 at cell8i-3 proc]$ rpm -qa | grep glibc
glibc-2.8-3.ppc64
glibc-common-2.8-3.ppc
glibc-devel-2.8-3.ppc
glibc-2.8-3.ppc
glibc-headers-2.8-3.ppc
glibc-devel-2.8-3.ppc64
Cooment: it's impossible to install the more newer versions of Mono from the
sources due to the given bug.
--
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