Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 205136 - ~dev-lang/mono-1.2.6 segfaults while emerging on amd64 using nocona arch
Summary: ~dev-lang/mono-1.2.6 segfaults while emerging on amd64 using nocona arch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: dotnet project
URL:
Whiteboard:
Keywords:
: 205252 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-01-10 01:59 UTC by Marius Caldas
Modified: 2008-12-26 12:16 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marius Caldas 2008-01-10 01:59:43 UTC
While installing ~amd64 on a Core2, I ran across a problem in building mono-1.2.6 or above: the build segfaults. I tested mono-1.2.5 and 1.2.5.1-r1 and these work fine. 



Reproducible: Always

Steps to Reproduce:
1.emerge mono

Actual Results:  
This is the build log: 
-----------------------------------------------------------
make all-local
make[8]: Entering directory `/var/tmp/portage/dev-lang/mono-1.2.6-r1/work/mono-1.2.6/mcs/class/System.Core'
MONO_PATH="../../class/lib/net_2_0:$MONO_PATH" /var/tmp/portage/dev-lang/mono-1.2.6-r1/work/mono-1.2.6/runtime/mono-wrapper  ../../mcs/gmcs.exe /codepage:65001   -d:NET_1_1 -d:NET_2_0 -debug /noconfig -langversion:linq -unsafe -d:LIBC /r:mscorlib.dll -d:NET_3_5 -target:library -out:../../class/lib/net_2_0/System.Core.dll  @System.Core.dll.sources
Stacktrace:

  at System.TimeZone..cctor () <0xffffffff>
  at System.TimeZone..cctor () <0x0000d>
  at (wrapper runtime-invoke) System.Collections.Hashtable.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff>
  at System.DateTime.ToLocalTime () <0xffffffff>
  at System.DateTime.ToLocalTime () <0x00015>
  at System.IO.File..cctor () <0x0002b>
  at (wrapper runtime-invoke) System.Collections.Hashtable.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff>
  at System.IO.StreamReader..ctor (string,System.Text.Encoding,bool,int) <0xffffffff>
  at System.IO.StreamReader..ctor (string,System.Text.Encoding,bool,int) <0x000ab>
  at System.IO.StreamReader..ctor (string) <0x00037>
  at (wrapper remoting-invoke-with-check) System.IO.StreamReader..ctor (string) <0xffffffff>
  at Mono.CSharp.Driver.LoadArgs (string) <0x000ac>
  at Mono.CSharp.Driver.MainDriver (string[]) <0x00372>
  at Mono.CSharp.Driver.Main (string[]) <0x00079>
  at (wrapper runtime-invoke) Mono.CSharp.Driver.runtime_invoke_int_string[] (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

        /var/tmp/portage/dev-lang/mono-1.2.6-r1/work/mono-1.2.6/mono/mini/mono [0x516856]
        /var/tmp/portage/dev-lang/mono-1.2.6-r1/work/mono-1.2.6/mono/mini/mono [0x43cb27]
        /lib/libpthread.so.0 [0x2ae9d1fd8470]
        /lib/libc.so.6(memcpy+0x60) [0x2ae9d24debc0]
        /var/tmp/portage/dev-lang/mono-1.2.6-r1/work/mono-1.2.6/mono/mini/mono(mono_breakpoint_clean_code+0x1b) [0x4269ef]
        /var/tmp/portage/dev-lang/mono-1.2.6-r1/work/mono-1.2.6/mono/mini/mono [0x43e6ab]
        /var/tmp/portage/dev-lang/mono-1.2.6-r1/work/mono-1.2.6/mono/mini/mono [0x43ee4a]
        [0x4138f15b]

Debug info from gdb:

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 0x2ae9d27ae010 (LWP 23359)]
[New Thread 0x41c64950 (LWP 23441)]
[New Thread 0x40595950 (LWP 23440)]
0x00002ae9d2524942 in select () from /lib/libc.so.6
  3 Thread 0x40595950 (LWP 23440)  0x00002ae9d1fd7af1 in nanosleep ()
   from /lib/libpthread.so.0
  2 Thread 0x41c64950 (LWP 23441)  0x00002ae9d1fd4979 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
  1 Thread 0x2ae9d27ae010 (LWP 23359)  0x00002ae9d2524942 in select ()
   from /lib/libc.so.6

Thread 3 (Thread 0x40595950 (LWP 23440)):
#0  0x00002ae9d1fd7af1 in nanosleep () from /lib/libpthread.so.0
#1  0x00000000004ba40b in collection_thread (unused=<value optimized out>)
    at collection.c:34
#2  0x00002ae9d1fd0087 in start_thread () from /lib/libpthread.so.0
#3  0x00002ae9d252abcd in clone () from /lib/libc.so.6

Thread 2 (Thread 0x41c64950 (LWP 23441)):
#0  0x00002ae9d1fd4979 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0
#1  0x00000000004bc89f in timedwait_signal_poll_cond (cond=0x2aaaab5e4268,
    mutex=0x2aaaab5e4240, timeout=0x1, alertable=-1) at handles.c:1443
#2  0x00000000004bece5 in _wapi_handle_timedwait_signal_handle (
    handle=<value optimized out>, timeout=0x0, alertable=-1419886016)
    at handles.c:1523
#3  0x00000000004cb3b0 in WaitForSingleObjectEx (handle=0x404,
    timeout=4294967295, alertable=0) at wait.c:200
#4  0x0000000000465271 in finalizer_thread (unused=<value optimized out>)
    at gc.c:894
#5  0x00000000004b93c3 in start_wrapper (data=<value optimized out>)
    at threads.c:573
#6  0x00000000004caa54 in thread_start_routine (args=0x2aaaab64b3f0)
    at threads.c:264
#7  0x00000000004dc844 in GC_start_routine ()
#8  0x00002ae9d1fd0087 in start_thread () from /lib/libpthread.so.0
#9  0x00002ae9d252abcd in clone () from /lib/libc.so.6

Thread 1 (Thread 0x2ae9d27ae010 (LWP 23359)):
#0  0x00002ae9d2524942 in select () from /lib/libc.so.6
#1  0x00002ae9d1b5b349 in g_spawn_sync () from /usr/lib/libglib-2.0.so.0
#2  0x00002ae9d1b5b71f in g_spawn_command_line_sync ()
   from /usr/lib/libglib-2.0.so.0
#3  0x00000000005168e8 in mono_handle_native_sigsegv (
    signal=<value optimized out>, ctx=<value optimized out>)
    at mini-exceptions.c:1061
#4  0x000000000043cb27 in mono_arch_handle_altstack_exception (
    sigctx=0x2aaaaaadfc40, fault_addr=<value optimized out>, stack_ovf=0)
    at exceptions-amd64.c:845
#5  <signal handler called>
#6  0x00002ae9d24debc0 in memcpy () from /lib/libc.so.6
#7  0x00000000004269ef in mono_breakpoint_clean_code (
    code=0x41572fff <Address 0x41572fff out of bounds>,
    buf=0x7fffd95cded0 "`0WA", size=<value optimized out>) at mini-amd64.c:5254
#8  0x000000000043e6ab in mono_arch_patch_callsite (
    orig_code=0x4157300d "H\211D$\b¿\030c\202\002èÄ'£",
    addr=0x41573060 "H\203ìhM\215\035") at tramp-amd64.c:70
#9  0x000000000043ee4a in mono_magic_trampoline (regs=0x7fffd95ce108,
    code=0x4157300d "H\211D$\b¿\030c\202\002èÄ'£", m=<value optimized out>,
    tramp=<value optimized out>) at mini-trampolines.c:159
#10 0x000000004138f15b in ?? ()
#11 0x0000000041573008 in ?? ()
#12 0x00002ae9d1b245ea in ?? () from /usr/lib/libglib-2.0.so.0
#13 0x00002ae9d1b247e4 in g_hash_table_lookup () from /usr/lib/libglib-2.0.so.0
#14 0x00000000004e3be8 in mono_create_jit_trampoline_in_domain (
    domain=0x2aaaaaacce00, method=0x26aba20) at mini.c:8382
#15 0x00000000004e410b in mono_resolve_patch_target (method=0x281d190,
    domain=0x274efa0, code=0x10 <Address 0x10 out of bounds>,
    patch_info=0x28263e0, run_cctors=1) at mini.c:9348
#16 0x000000000281cf30 in ?? ()
#17 0x000000000281cf30 in ?? ()
#18 0x00002aaaaaacce00 in ?? ()
#19 0x00000000005311d1 in ?? ()
#20 0x000000000045cc72 in mono_class_get_method_from_name_flags (
    klass=0x27f6b70, name=0x281cf30 "0Ï\201\002", param_count=42061616,
    flags=2048) at class.c:5978
#21 0x000000000281cf30 in ?? ()
#22 0x000000000281d190 in ?? ()
#23 0x000000000274efa0 in ?? ()
#24 0x00000000d27ae010 in ?? ()
#25 0x4020800000000000 in ?? ()
#26 0x3fe8000000000000 in ?? ()
#27 0x0000000000000000 in ?? ()
#0  0x00002ae9d2524942 in select () from /lib/libc.so.6


=================================================================
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.
=================================================================

make[8]: *** [../../class/lib/net_2_0/System.Core.dll] Aborted
make[8]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.2.6-r1/work/mono-1.2.6/mcs/class/System.Core'
make[7]: *** [do-all] Error 2
make[7]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.2.6-r1/work/mono-1.2.6/mcs/class/System.Core'
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.2.6-r1/work/mono-1.2.6/mcs/class'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.2.6-r1/work/mono-1.2.6/mcs'
make[4]: *** [profile-do--net_2_0--all] Error 2
make[4]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.2.6-r1/work/mono-1.2.6/mcs'
make[3]: *** [profiles-do--all] Error 2
make[3]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.2.6-r1/work/mono-1.2.6/mcs'
make[2]: *** [all-local] Error 2
make[2]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.2.6-r1/work/mono-1.2.6/runtime'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.2.6-r1/work/mono-1.2.6'
make: *** [all] Error 2
 * If you are using any hardening features such as
 * PIE+SSP/SELinux/grsec/PAX then most probably this is the reason
 * why build has failed. In this case turn any active security
 * enhancements off and try emerging the package again
 *
 * ERROR: dev-lang/mono-1.2.6-r1 failed.
 * Call stack:
 *               ebuild.sh, line   46:  Called src_compile
 *             environment, line 2844:  Called die
 * The specific snippet of code:
 *           diefunc "$FUNCNAME" "$LINENO" "$?";
 *  The die message:
 *   (no error message)
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-lang/mono-1.2.6-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/mono-1.2.6-r1/temp/environment'.
 *
------------------------------------------------------------------




Here is my emerge --info:
Portage 2.1.4_rc14 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.7-r1, 2.6.24-rc6-mm1 x86_64)
=================================================================
System uname: 2.6.24-rc6-mm1 x86_64 Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz
Timestamp of tree: Wed, 09 Jan 2008 22:30:08 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.3
dev-lang/python:     2.4.4-r7, 2.5.1-r5
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ "
LINGUAS="en_US pt_BR"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/custom-kernels /usr/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi aim alsa amd64 arts berkdb bitmap-fonts bjam cairo cdr cli cracklib crypt cups cvs dbus deprecated discouraged dri dvd dvdr dvdread eds emboss encode esd evo fam fat firefox foomaticdb gcj gdbm gif gnome gpm gstreamer gtk hal iconv icq isdnlog java javascript jpeg kde kdepim kdm kerberos lame ldap lm_sensors lua mad midi mikmod mmx mono mozbranding mozcalendar mozdevelop mozdom mozilla mp3 mpeg msn mudflap ncurses newspr nls nptl nptlonly nsplugin objc objc++ ogg opengl openmp oss pam pcre pda pdf perl pmu png pppd python qt-copy qt3 qt3support qt4 quicktime readline reflection reiser4 reiserfs ruby samba sasl sdl session sockets spell spl sql sse sse2 ssl subversion svg sysvipc tcltk tcpd threads tiff tk transparency truetype truetype-fonts type1-fonts unicode usb vorbis wxwindows xml xorg xv yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US pt_BR" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-01-10 21:36:34 UTC
*** Bug 205252 has been marked as a duplicate of this bug. ***
Comment 2 N. Andrew Walsh 2008-05-23 15:43:49 UTC
Same problem here: ~amd64, though I haven't tried compiling other versions.
Comment 3 N. Andrew Walsh 2008-05-23 15:55:59 UTC
PS- this is only true, apparently, for the -r2 ebuild. -r1 just compiled fine. Can anybody suggest what change between the two might account for the segfault?
Comment 4 Jurek Bartuszek (RETIRED) gentoo-dev 2008-06-01 11:55:14 UTC
Did you try 1.9 or 1.9.1?
Comment 5 Torsten Kaiser 2008-06-01 17:49:53 UTC
> Did you try 1.9 or 1.9.1?

I'm currently tyring to upgrade from dev-lang/mono-1.2.6-r2 to 1.9.1 and have a similar error:

make[7]: Entering directory
`/var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/mcs/class/Mono.Security'
Creating ../../build/deps/Mono.Security_test_default.dll.response ...
Creating ../../build/deps/Mono.Security_test_default.dll.makefrag ...
Creating ../../build/deps/default_Mono.Security.dll.makefrag ...
make[7]: Leaving directory
`/var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/mcs/class/Mono.Security'
make[7]: Entering directory
`/var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/mcs/class/Mono.Security'
make all-local
make[8]: Entering directory
`/var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/mcs/class/Mono.Security'
MONO_PATH="../../class/lib/default:$MONO_PATH"
/var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/runtime/mono-wrapper
../../class/lib/default/mcs.exe /codepage:65001   -d:NET_1_1 -d:ONLY_1_1
/-debug /noconfig -r:System.dll -unsafe -target:library
/-out:Mono.Security.dll  @Mono.Security.dll.sources
./Mono.Security.Protocol.Tls.Handshake.Client/TlsClientCertificate.cs(75,1):
warning CS1030: #warning: `"Client certificate selection is unfinished"'
./Mono.Security.Protocol.Tls.Handshake.Client/TlsServerFinished.cs(76,1):
warning CS1030: #warning: `Review that selected alert is correct'
Stacktrace:

  at System.Type..ctor () <0xffffffff>
  at System.Type..ctor () <0x0000d>
  at System.Reflection.Emit.TypeBuilder..ctor
  (System.Reflection.Emit.ModuleBuilder,System.Reflection.TypeAttributes)
  <0x00019>
  at System.Reflection.Emit.ModuleBuilder.CreateGlobalType () <0x00044>
  at System.Reflection.Emit.ModuleBuilder..ctor
  (System.Reflection.Emit.AssemblyBuilder,string,string,bool,bool) <0x00137>
  at System.Reflection.Emit.AssemblyBuilder.DefineDynamicModule
  (string,string,bool,bool) <0x000fe>
  at System.Reflection.Emit.AssemblyBuilder.DefineDynamicModule
  (string,string,bool) <0x0002e>
  at Mono.CSharp.CodeGen.Init (string,string,bool) <0x0042e>
  at Mono.CSharp.Driver.MainDriver (string[]) <0x00738>
  at Mono.CSharp.Driver.Main (string[]) <0x00079>
  at (wrapper runtime-invoke) Mono.CSharp.Driver.runtime_invoke_int_string[]
  (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

        /var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/mono/mini/mono
        /[0x52c9ed]
        /var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/mono/mini/mono
        /[0x440c4d]
        /lib/libpthread.so.0 [0x2b962ea48400]
        /lib/libc.so.6(memcpy+0x60) [0x2b962ef4d8f0]
        /var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/mono/mini/mono(mono_breakpoint_clean_code+0x1b)
        /[0x428a6b]
        /var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/mono/mini/mono
        /[0x4422cd]
        /var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/mono/mini/mono
        /[0x5313c2]
        [0x40d89160]

Debug info from gdb:

[Thread debugging using libthread_db enabled]
[New Thread 0x2b962f21e010 (LWP 30109)]
[New Thread 0x40fad950 (LWP 30129)]
[New Thread 0x40dac950 (LWP 30128)]
0x00002b962ef948f2 in select () from /lib/libc.so.6
  3 Thread 0x40dac950 (LWP 30128)  0x00002b962ea47a91 in nanosleep ()
   from /lib/libpthread.so.0
  2 Thread 0x40fad950 (LWP 30129)  0x00002b962ea44909 in
pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
  1 Thread 0x2b962f21e010 (LWP 30109)  0x00002b962ef948f2 in select ()
   from /lib/libc.so.6
Current language:  auto; currently asm

Thread 3 (Thread 0x40dac950 (LWP 30128)):
#0  0x00002b962ea47a91 in nanosleep () from /lib/libpthread.so.0
#1  0x00000000004dbf8f in collection_thread (unused=<value optimized out>)
    at collection.c:34
#2  0x00002b962ea40067 in start_thread () from /lib/libpthread.so.0
#3  0x00002b962ef9abdd in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x40fad950 (LWP 30129)):
#0  0x00002b962ea44909 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0
#1  0x00000000004d7765 in timedwait_signal_poll_cond (cond=0x2aaaab72a268,
    mutex=0x2aaaab72a240, timeout=0x3, alertable=-1) at handles.c:1443
#2  0x00000000004d9d3b in _wapi_handle_timedwait_signal_handle (
    handle=<value optimized out>, timeout=0x0, alertable=1) at
#handles.c:1523
#3  0x00000000004c968f in WaitForSingleObjectEx (handle=0x404,
    timeout=4294967295, alertable=0) at wait.c:200
#4  0x00000000004a04a1 in finalizer_thread (unused=<value optimized out>)
    at gc.c:894
#5  0x0000000000485e8c in start_wrapper (data=<value optimized out>)
    at threads.c:589
#6  0x00000000004cb653 in thread_start_routine (args=0x2aaaab7913f0)
    at threads.c:282
#7  0x00000000004e4bd2 in GC_start_routine ()
#8  0x00002b962ea40067 in start_thread () from /lib/libpthread.so.0
#9  0x00002b962ef9abdd in clone () from /lib/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x2b962f21e010 (LWP 30109)):
#0  0x00002b962ef948f2 in select () from /lib/libc.so.6
#1  0x00002b962e5c3119 in g_spawn_sync () from /usr/lib/libglib-2.0.so.0
#2  0x00002b962e5c3563 in g_spawn_command_line_sync ()
   from /usr/lib/libglib-2.0.so.0
#3  0x000000000052ca7e in mono_handle_native_sigsegv (
    signal=<value optimized out>, ctx=<value optimized out>)
    at mini-exceptions.c:1044
#4  0x0000000000440c4d in mono_arch_handle_altstack_exception (
    sigctx=0x2aaaaabafc40, fault_addr=<value optimized out>, stack_ovf=0)
    at exceptions-amd64.c:862
#5  <signal handler called>
#6  0x00002b962ef4d8f0 in memcpy () from /lib/libc.so.6
#7  0x0000000000428a6b in mono_breakpoint_clean_code (
    code=0x4079ffff <Address 0x4079ffff out of bounds>,
    buf=0x7fff7cd9c330 " ", size=<value optimized out>) at mini-amd64.c:5333
#8  0x00000000004422cd in mono_arch_patch_callsite (
    orig_code=0x407a000d "H\203Ä\bÃèé\217^",
    addr=0x407a0020 "H\203ì\bH\211<$H\203Ä\bÃ") at tramp-amd64.c:70
#9  0x00000000005313c2 in mono_magic_trampoline (regs=0x7fff7cd9c560,
    code=0x407a000d "H\203Ä\bÃèé\217^", m=<value optimized out>,
    tramp=<value optimized out>) at mini-trampolines.c:171
#10 0x0000000040d89160 in ?? ()
#11 0x00007fff7cd9c610 in ?? ()
#12 0x0000000040d8916b in ?? ()
#13 0x00002aaab03a3150 in ?? ()
#14 0x00000000004862b5 in mono_thread_interruption_checkpoint_request (
    bypass_abort_protection=2094646064) at threads.c:3438
#15 0x0000000040d8916b in ?? ()
#16 0x00002aaaaab7e038 in ?? ()
#17 0x00002aaab03a3150 in ?? ()
#18 0x00007fff7cd9c660 in ?? ()
#19 0x0000000040d8916b in ?? ()
#20 0x00002aaaac4d33f0 in ?? ()
#21 0x0000000000000400 in ?? ()
#22 0x00002aaaac6633f0 in ?? ()
#23 0x00002aaaac6633f0 in ?? ()
#24 0x00002aaaac000020 in ?? ()
#25 0x0000000000000404 in ?? ()
#26 0x0000000000000003 in ?? ()
#27 0x00002b962ef47981 in _int_memalign () from /lib/libc.so.6
#28 0x0000000000001000 in ?? ()
#29 0x0000006300000040 in ?? ()
#30 0x00007fff7cd9c4c0 in ?? ()
#31 0x00002aaaac2dd360 in ?? ()
#32 0x00002b962e5a4742 in g_slice_alloc () from /usr/lib/libglib-2.0.so.0
#33 0x00002aaaabf12d20 in ?? ()
#34 0x0000000000000000 in ?? ()
#0  0x00002b962ef948f2 in select () from /lib/libc.so.6


=================================================================
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.
=================================================================

make[8]: *** [../../class/lib/default/Mono.Security.dll] Aborted
make[8]: Leaving directory
`/var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/mcs/class/Mono.Security'
make[7]: *** [do-all] Error 2
make[7]: Leaving directory
`/var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/mcs/class/Mono.Security'
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory
`/var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/mcs/class'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory
`/var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/mcs'
make[4]: *** [profile-do--default--all] Error 2
make[4]: Leaving directory
`/var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/mcs'
make[3]: *** [profiles-do--all] Error 2
make[3]: Leaving directory
`/var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/mcs'
make[2]: *** [all-local] Error 2
make[2]: Leaving directory
`/var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/runtime'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1'
make: *** [all] Error 2
 * If you are using any hardening features such as
 * PIE+SSP/SELinux/grsec/PAX then most probably this is the reason
 * why build has failed. In this case turn any active security
 * enhancements off and try emerging the package again
 *
 * ERROR: dev-lang/mono-1.9.1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2879:  Called die
 * The specific snippet of code:
 *           die;
 *  The die message:
 *   (no error message)
 *
 * If you need support, post the topmost build error, and the call stack if
 relevant.
 * A complete build log is located at
 '/var/tmp/portage/dev-lang/mono-1.9.1/temp/build.log'.
 * The ebuild environment file is located at
 '/var/tmp/portage/dev-lang/mono-1.9.1/temp/environment'.
 *

This happens both with gcc-4.2.4 and gcc-4.3.0-alpha20080410

As a large part of my system is compiled with this gcc-4.3-snapshot (not really an alpha, as it is a snapshot somewhere between 4.3.0 and 4.3.1), I don't know if this report is completely valid, so this is just FYI.
I'm also using gentoo ~amd64, but -march=opteron.
Comment 6 Jurek Bartuszek (RETIRED) gentoo-dev 2008-06-02 17:56:23 UTC
Just a guess - try upgrading gnutls to 2.3.11 and report back, please
Comment 7 Torsten Kaiser 2008-06-02 18:19:00 UTC
Nope, already had 2.3.11 installed:
     Sun Feb 24 09:05:23 2008 >>> net-libs/gnutls-2.2.2
     Mon May 12 19:14:52 2008 >>> net-libs/gnutls-2.2.3
     Tue May 20 19:39:50 2008 >>> net-libs/gnutls-2.2.5
     Sun Jun  1 16:56:10 2008 >>> net-libs/gnutls-2.3.11

Last successful mono-merge:
     Fri Mar 14 18:35:05 2008 >>> dev-lang/mono-1.2.6-r2

Comment 8 N. Andrew Walsh 2008-06-03 01:27:16 UTC
Huh. I tried 1.9.1 a couple hours ago, but it segfaulted in much the same way (have a look at bug #224673). But I just re-synced, and it ran fine. Perhaps this was also the problem here?

That said, there's a huge spew of error messages on both compiles, but that's another bug. 
Comment 9 David Sveningsson 2008-07-07 14:33:57 UTC
I got this error when I upgraded to gcc-4.3 and glibc-2.8 while running emerge -eav world.

Maybe glibc-2.8 might have something to do with it.
Comment 10 bosele 2008-10-01 13:31:09 UTC
Similar thing here:

ng/mono-1.9.1/work/mono-1.9.1/runtime/mono-wrapper  ../../class/lib/net_1_1_bootstrap/sn.exe -q -R ../../class/lib/default/Mono.Cecil.Mdb.dll ../mono.snk
Assembly ../../class/lib/default/Mono.Cecil.Mdb.dll signed.
make[8]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/mcs/class/Mono.Cecil.Mdb'
make[7]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/mcs/class/Mono.Cecil.Mdb'
make all-local
make[7]: Entering directory `/var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/mcs/class'
make[7]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/mcs/class'
make[6]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/mcs/class'
make[6]: Entering directory `/var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/mcs/nunit20'
make[7]: Entering directory `/var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/mcs/nunit20/framework'
Creating ../../build/deps/default_NUnit.Framework.dll.makefrag ...
make[7]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/mcs/nunit20/framework'
make[7]: Entering directory `/var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/mcs/nunit20/framework'
make all-local
make[8]: Entering directory `/var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/mcs/nunit20/framework'
MONO_PATH="../../class/lib/default:$MONO_PATH" /var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/runtime/mono-wrapper  ../../class/lib/default/mcs.exe /codepage:65001   -d:NET_1_1 -d:ONLY_1_1 -debug /noconfig -debug /r:System.Xml.dll /r:System.dll /d:StronglyNamedAssembly -target:library -out:../../class/lib/default/nunit.framework.dll  @NUnit.Framework.dll.sources
Stacktrace:

  at Mono.CSharp.AssemblyClass..ctor () <0xffffffff>
  at Mono.CSharp.AssemblyClass..ctor () <0x0000d>
  at Mono.CSharp.CodeGen.Reset () <0x0001c>
  at Mono.CSharp.CodeGen..cctor () <0x00008>
  at (wrapper runtime-invoke) Mono.CSharp.Driver.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff>
  at Mono.CSharp.CSharpParser.yyparse (Mono.CSharp.yyParser.yyInput) <0xffffffff>
  at Mono.CSharp.CSharpParser.yyparse (Mono.CSharp.yyParser.yyInput) <0x029f0>
  at Mono.CSharp.CSharpParser.parse () <0x0008f>
  at Mono.CSharp.Driver.parse (Mono.CSharp.SourceFile) <0x001de>
  at Mono.CSharp.Driver.ProcessFiles () <0x00078>
  at Mono.CSharp.Driver.MainDriver (string[]) <0x00440>
  at Mono.CSharp.Driver.Main (string[]) <0x00079>
  at (wrapper runtime-invoke) Mono.CSharp.Driver.runtime_invoke_int_string[] (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

	/var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/mono/mini/mono [0x525371]
	/var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/mono/mini/mono [0x43d6bd]
	/lib/libpthread.so.0 [0x3bea40e9c0]
	/lib/libc.so.6(memcpy+0x60) [0x3be987edd0]
	/var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/mono/mini/mono(mono_breakpoint_clean_code+0x1b) [0x42656b]
	/var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/mono/mini/mono [0x43ec05]
	/var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/mono/mini/mono [0x52a110]
	[0x41f87160]

=================================================================
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.
=================================================================

make[8]: *** [../../class/lib/default/nunit.framework.dll] Aborted
make[8]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/mcs/nunit20/framework'
make[7]: *** [do-all] Error 2
make[7]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/mcs/nunit20/framework'
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/mcs/nunit20'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/mcs'
make[4]: *** [profile-do--default--all] Error 2
make[4]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/mcs'
make[3]: *** [profiles-do--all] Error 2
make[3]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/mcs'
make[2]: *** [all-local] Error 2
make[2]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1/runtime'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.9.1/work/mono-1.9.1'
make: *** [all] Error 2
 * If you are using any hardening features such as
 * PIE+SSP/SELinux/grsec/PAX then most probably this is the reason
 * why build has failed. In this case turn any active security
 * enhancements off and try emerging the package again
 * 
 * ERROR: dev-lang/mono-1.9.1 failed.
 * Call stack:
 * ebuild.sh, line   49:  Called src_compile
 * environment, line 2897:  Called die
 * The specific snippet of code:
 * die;
 * The die message:

----------------------------------------------------------------


Portage 2.2_rc11 (default/linux/amd64/2008.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.26-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.26-gentoo-r1-x86_64-Intel-R-_Core-TM-2_CPU_T7200_@_2.00GHz-with-glibc2.2.5
Timestamp of tree: Wed, 01 Oct 2008 12:00:01 +0000
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.2-r8
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/init.d /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/var/tmp/distfiles"
FEATURES="distlocks nodoc noinfo noman parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS=" http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=" /usr/local/overlays/cairo-dock-overlay /usr/local/overlays/gentoo-lcd-filtering /usr/local/overlays/desktop-effects"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl acpi alsa amd64 berkdb bluetooth bzip2 cairo cdr cli cracklib crypt dbus dri dvd dvdr dvdread eds emboss encode evo fam fglrx fortran gdbm gif gnome gpm gstreamer gtk hal iconv isdnlog jpeg kerberos ldap libnotify mad midi mikmod mmx mp3 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3support quicktime readline reflection sdl session spell spl sse sse2 ssl ssse3 svg sysfs tcpd threadsafe tiff truetype unicode usb vorbis xml xorg xulrunner xv zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard synaptics mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="fglrx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 11 Peter Alfredsen (RETIRED) gentoo-dev 2008-12-26 12:16:54 UTC
Not reproducible with mono-2.0.1