[Mono-bugs] [Bug 503260] New: sn.exe crashes when building mono-addon-core in autobuild

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue May 12 19:14:47 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=503260


           Summary: sn.exe crashes when building mono-addon-core in
                    autobuild
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.4.x AddOn CD
          Platform: i586
        OS/Version: SLES 10
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: JIT
        AssignedTo: lupus at novell.com
        ReportedBy: srinidhi at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Description of Problem:
When building mono-addon-core in autobuild for sle10-sp2-i386 crashes with the
following stacktrace:

make all-local                                                                  
make[8]: Entering directory
`/usr/src/packages/BUILD/mono-2.4/mcs/class/Compat.ICSharpCode.SharpZipLib'     
/bin/sh ./../../mkinstalldirs ../../class/compat/net_1_1/                       
mkdir -p -- ../../class/compat/net_1_1/                                         
touch ../../class/compat/net_1_1//.stamp                                        
MONO_PATH="./../../class/lib/net_1_1:$MONO_PATH"
/usr/src/packages/BUILD/mono-2.4/runtime/mono-wrapper 
/../../class/lib/net_1_1/mcs.exe /codepage:65001  -optimize -d:NET_1_1
-d:ONLY_1_1 -debug /noconfig -r:mscorlib.dll -r:System.dll -r:System.Xml.dll
-target:library -out:../../class/compat/net_1_1/ICSharpCode.SharpZipLib.dll 
@Compat.ICSharpCode.SharpZipLib.dll.sources                                     
/ICSharpCode.SharpZipLib/BZip2/BZip2OutputStream.cs(462,29): warning CS0465:
Introducing `Finalize' method can interfere with destructor invocation. Did you
intend to declare a destructor?                                                 
/ICSharpCode.SharpZipLib/BZip2/BZip2OutputStream.cs(462,29): warning CS0114:
`ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.Finalize()' hides inherited
member `object.Finalize()'. To make the current member override that
implementation, add the override keyword. Otherwise add the new keyword         
/usr/src/packages/BUILD/mono-2.4/mcs/class/lib/net_1_1/mscorlib.dll (Location
of the symbol related to previous warning)                                     
/ICSharpCode.SharpZipLib/BZip2/BZip2OutputStream.cs(672,38): warning CS0219:
The variable `nBytes' is assigned but its value is never used                  
/ICSharpCode.SharpZipLib/Zip/Compression/DeflaterEngine.cs(328,47): warning
CS0429: Unreachable expression code detected                                    
/ICSharpCode.SharpZipLib/Zip/Compression/DeflaterEngine.cs(328,98): warning
CS0162: Unreachable code detected                                               
/ICSharpCode.SharpZipLib/Zip/Compression/DeflaterEngine.cs(333,55): warning
CS0429: Unreachable expression code detected                                    
/ICSharpCode.SharpZipLib/Zip/Compression/DeflaterEngine.cs(333,90): warning
CS0162: Unreachable code detected                                               
/ICSharpCode.SharpZipLib/Zip/Compression/DeflaterEngine.cs(381,47): warning
CS0429: Unreachable expression code detected                                    
/ICSharpCode.SharpZipLib/Zip/Compression/DeflaterEngine.cs(381,75): warning
CS0162: Unreachable code detected                                               
/ICSharpCode.SharpZipLib/Zip/Compression/DeflaterEngine.cs(526,63): warning
CS0429: Unreachable expression code detected                                    
/ICSharpCode.SharpZipLib/Zip/Compression/DeflaterEngine.cs(526,84): warning
CS0162: Unreachable code detected                                               
/ICSharpCode.SharpZipLib/Zip/Compression/DeflaterHuffman.cs(160,55): warning
CS0429: Unreachable expression code detected                                   
/ICSharpCode.SharpZipLib/Zip/Compression/DeflaterHuffman.cs(160,83): warning
CS0162: Unreachable code detected                                              
/ICSharpCode.SharpZipLib/Zip/Compression/DeflaterHuffman.cs(143,37): warning
CS0219: The variable `numSymbols' is assigned but its value is never used      
/ICSharpCode.SharpZipLib/Zip/Compression/PendingBuffer.cs(77,47): warning
CS0429: Unreachable expression code detected                                    
/ICSharpCode.SharpZipLib/Zip/Compression/PendingBuffer.cs(77,72): warning
CS0162: Unreachable code detected                                               
/ICSharpCode.SharpZipLib/Zip/Compression/PendingBuffer.cs(85,47): warning
CS0429: Unreachable expression code detected                                    
/ICSharpCode.SharpZipLib/Zip/Compression/PendingBuffer.cs(85,72): warning
CS0162: Unreachable code detected                                               
/ICSharpCode.SharpZipLib/Zip/Compression/PendingBuffer.cs(94,47): warning
CS0429: Unreachable expression code detected                                    
/ICSharpCode.SharpZipLib/Zip/Compression/PendingBuffer.cs(94,72): warning
CS0162: Unreachable code detected                                               
/ICSharpCode.SharpZipLib/Zip/Compression/PendingBuffer.cs(105,47): warning
CS0429: Unreachable expression code detected                                    
/ICSharpCode.SharpZipLib/Zip/Compression/PendingBuffer.cs(105,72): warning
CS0162: Unreachable code detected                                               
/ICSharpCode.SharpZipLib/Zip/Compression/PendingBuffer.cs(120,47): warning
CS0429: Unreachable expression code detected                                    
/ICSharpCode.SharpZipLib/Zip/Compression/PendingBuffer.cs(120,72): warning
CS0162: Unreachable code detected                                               
/ICSharpCode.SharpZipLib/Zip/Compression/PendingBuffer.cs(135,47): warning
CS0429: Unreachable expression code detected                                    
/ICSharpCode.SharpZipLib/Zip/Compression/PendingBuffer.cs(135,72): warning
CS0162: Unreachable code detected                                               
/ICSharpCode.SharpZipLib/Zip/Compression/PendingBuffer.cs(153,47): warning
CS0429: Unreachable expression code detected                                    
/ICSharpCode.SharpZipLib/Zip/Compression/PendingBuffer.cs(153,72): warning
CS0162: Unreachable code detected                                               
/ICSharpCode.SharpZipLib/BZip2/BZip2InputStream.cs(161,29): warning CS0169:
The private method `ICSharpCode.SharpZipLib.BZip2.BZip2InputStream.Cadvise()'
is never used                                                                   
/ICSharpCode.SharpZipLib/BZip2/BZip2InputStream.cs(167,29): warning CS0169:
The private method
`ICSharpCode.SharpZipLib.BZip2.BZip2InputStream.BadBGLengths()' is never used   
/ICSharpCode.SharpZipLib/BZip2/BZip2InputStream.cs(172,29): warning CS0169:
The private method
`ICSharpCode.SharpZipLib.BZip2.BZip2InputStream.BitStreamEOF()' is never used   
/ICSharpCode.SharpZipLib/Tar/TarArchive.cs(79,24): warning CS0169: The private
field `ICSharpCode.SharpZipLib.Tar.TarArchive.recordSize' is assigned but its
value is never used                                                             
/ICSharpCode.SharpZipLib/Tar/TarArchive.cs(80,24): warning CS0169: The private
field `ICSharpCode.SharpZipLib.Tar.TarArchive.recordBuf' is assigned but its
value is never used                                                             
/ICSharpCode.SharpZipLib/Zip/ZipInputStream.cs(185,22): warning CS0169: The
private method `ICSharpCode.SharpZipLib.Zip.ZipInputStream.ReadLeLong()' is
never used                                                                      
/ICSharpCode.SharpZipLib/Zip/ZipOutputStream.cs(206,30): warning CS0169: The
private method `ICSharpCode.SharpZipLib.Zip.ZipOutputStream.WriteLeLong(long)'
is never used                                                                   
/ICSharpCode.SharpZipLib/Zip/ZipOutputStream.cs(108,29): warning CS0169: The
private field `ICSharpCode.SharpZipLib.Zip.ZipOutputStream.defaultMethod' is
assigned but its value is never used                                            
Compilation succeeded - 36 warning(s)                                           
MONO_PATH="./../../class/lib/net_1_1_bootstrap:$MONO_PATH"
/usr/src/packages/BUILD/mono-2.4/runtime/mono-wrapper 
/../../class/lib/net_1_1_bootstrap/sn.exe -q -R
./../class/compat/net_1_1/ICSharpCode.SharpZipLib.dll SharpZipLib.key          
Stacktrace:                                                                     

  at System.Threading.Thread..cctor () <0xffffffff>
  at System.Threading.Thread..cctor () <0x00018>   
  at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <0xffffffff>
  at System.NumberFormatter.GetInstance () <0xffffffff>                         
  at System.NumberFormatter.GetInstance () <0x00018>                            
  at System.NumberFormatter.NumberToString (string,byte,System.IFormatProvider)
<0x0000a>          
  at byte.ToString (string,System.IFormatProvider) <0x0001a>                    
  at Mono.Security.Cryptography.CryptoConvert.ToHex (byte[]) <0x00082>          
  at Mono.Security.StrongNameManager.GetMappedPublicKey (byte[]) <0x00028>      
  at Mono.Tools.SN.ReSign (string,System.Security.Cryptography.RSA) <0x000d6>   
  at Mono.Tools.SN.Process (string[]) <0x00dd3>                                 
  at Mono.Tools.SN.Main (string[]) <0x0003f>                                    
  at (wrapper runtime-invoke) Mono.Tools.SN.runtime_invoke_int_object
(object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

       
/usr/src/packages/BUILD/mono-2.4/mono/mini/mono(mono_handle_native_sigsegv+0xd9)
[0x80d7a49]
       
/usr/src/packages/BUILD/mono-2.4/mono/mini/mono(mono_arch_handle_altstack_exception+0xe2)
[0x8102432]
        [0xffffe410]                                                            
       
/usr/src/packages/BUILD/mono-2.4/mono/mini/mono(mono_type_get_name_full+0x31)
[0x819ada1]            
        /usr/src/packages/BUILD/mono-2.4/mono/mini/mono [0x80e041e]             
       
/usr/src/packages/BUILD/mono-2.4/mono/mini/mono(mono_magic_trampoline+0x1cd)
[0x80e07ad]             
        [0xb7d66066]                                                            
        [0xb7b18b4a]                                                            
       
/usr/src/packages/BUILD/mono-2.4/mono/mini/mono(mono_runtime_class_init_full+0x185)
[0x8179175]      
       
/usr/src/packages/BUILD/mono-2.4/mono/mini/mono(mono_runtime_class_init+0x19)
[0x81797f9]            
        /usr/src/packages/BUILD/mono-2.4/mono/mini/mono [0x806c4f2]             
       
/usr/src/packages/BUILD/mono-2.4/mono/mini/mono(mono_magic_trampoline+0xa5)
[0x80e0685]              
        [0xb7d66066]                                                            
        [0xb760880b]                                                            
        [0xb76087eb]                                                            
        [0xb760877b]                                                            
        [0xb7608681]                                                            
        [0xb76070ff]                                                            
        [0xb7b181f4]                                                            
        [0xb7b172f8]                                                            
        [0xb7b17203]                                                            
       
/usr/src/packages/BUILD/mono-2.4/mono/mini/mono(mono_runtime_exec_main+0x15f)
[0x817a64f]            
       
/usr/src/packages/BUILD/mono-2.4/mono/mini/mono(mono_runtime_run_main+0x1ba)
[0x817bbca]             
        /usr/src/packages/BUILD/mono-2.4/mono/mini/mono(mono_main+0x1d32)
[0x80becb2]                        
        /usr/src/packages/BUILD/mono-2.4/mono/mini/mono [0x8064201]             
        /lib/libc.so.6(__libc_start_main+0xdc) [0xb7d8c89c]                     
        /usr/src/packages/BUILD/mono-2.4/mono/mini/mono [0x8064141]             

Debug info from gdb:

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]            
[New Thread -1210619200 (LWP 498)]                       
[New Thread -1217029216 (LWP 547)]                       
[New Thread -1216881760 (LWP 546)]                       
0xb7ed36f1 in read () from /lib/libpthread.so.0          
  3 Thread -1216881760 (LWP 546)  0xb7ed3eec in nanosleep ()
   from /lib/libpthread.so.0                                
  2 Thread -1217029216 (LWP 547)  0xb7ed2bda in sem_wait at GLIBC_2.0 ()
   from /lib/libpthread.so.0                                         
  1 Thread -1210619200 (LWP 498)  0xb7ed36f1 in read ()              
   from /lib/libpthread.so.0                                         

Thread 3 (Thread -1216881760 (LWP 546)):
#0  0xb7ed3eec in nanosleep () from /lib/libpthread.so.0
#1  0x081ae791 in collection_thread (unused=0x0) at collection.c:34
#2  0xb7ecd14b in start_thread () from /lib/libpthread.so.0        
#3  0xb777d480 in ?? ()                                            

Thread 2 (Thread -1217029216 (LWP 547)):
#0  0xb7ed2bda in sem_wait at GLIBC_2.0 () from /lib/libpthread.so.0
#1  0x081060b9 in finalizer_thread (unused=0x0) at gc.c:935      
#2  0x0813efbf in start_wrapper (data=0x82cd5d0) at threads.c:623
#3  0x081b57f2 in thread_start_routine (args=0x82d09fc) at threads.c:286
#4  0x081d2575 in GC_start_routine (arg=0x26f20) at pthread_support.c:1382
#5  0xb7ecd14b in start_thread () from /lib/libpthread.so.0               
#6  0xb7759480 in ?? ()                                                   
#7  0xb7759480 in ?? ()                                                   
#8  0xb7759480 in ?? ()                                                   
#9  0xb7759480 in ?? ()                                                   
#10 0x00000000 in ?? ()                                                   

Thread 1 (Thread -1210619200 (LWP 498)):
#0  0xb7ed36f1 in read () from /lib/libpthread.so.0
#1  0x080d7bd8 in mono_handle_native_sigsegv (signal=11, ctx=0xb7f78d0c)
    at /usr/include/bits/unistd.h:35                                    
#2  0x08102432 in mono_arch_handle_altstack_exception (sigctx=0xb7f78d0c, 
    fault_addr=0x83082c5e, stack_ovf=0) at exceptions-x86.c:881           
#3  <signal handler called>                                               
#4  mono_type_get_name_recurse (type=0x83082c58, str=0x82bdc00, is_recursed=0, 
    format=MONO_TYPE_NAME_FORMAT_IL) at class.c:239                            
#5  0x0819ada1 in mono_type_get_name_full (type=0x83082c58,                    
    format=MONO_TYPE_NAME_FORMAT_IL) at class.c:409                            
#6  0x080e041e in mono_convert_imt_slot_to_vtable_slot (slot=0x82bb8bc,        
    regs=0xbfb93f78, code=<value optimized out>, method=0x8310bfc,             
    impl_method=0x0) at mini-trampolines.c:66                                  
#7  0x080e07ad in mono_magic_trampoline (regs=0xbfb93f78,                      
    code=0xb76089e8 "\203&#65533;\020\213&#568;\210&#65533;\002", m=0x8310bfc,
tramp=0x0)         
    at mini-trampolines.c:345                                                  
#8  0xb7d66066 in ?? ()                                                        
#9  0xbfb93f78 in ?? ()                                                        
#10 0xb76089e8 in ?? ()                                                        
#11 0x08310bfc in ?? ()                                                        
#12 0x00000000 in ?? ()                                                        
#0  0xb7ed36f1 in read () from /lib/libpthread.so.0                            


=================================================================
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/compat/net_1_1/ICSharpCode.SharpZipLib.dll] Aborted
make[8]: *** Deleting file
`../../class/compat/net_1_1/ICSharpCode.SharpZipLib.dll'
make[8]: Leaving directory
`/usr/src/packages/BUILD/mono-2.4/mcs/class/Compat.ICSharpCode.SharpZipLib'
make[7]: *** [do-all] Error 2
make[7]: Leaving directory
`/usr/src/packages/BUILD/mono-2.4/mcs/class/Compat.ICSharpCode.SharpZipLib'
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory `/usr/src/packages/BUILD/mono-2.4/mcs/class'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/usr/src/packages/BUILD/mono-2.4/mcs'
make[4]: *** [profile-do--net_1_1--all] Error 2
make[4]: Leaving directory `/usr/src/packages/BUILD/mono-2.4/mcs'
make[3]: *** [profiles-do--all] Error 2
make[3]: Leaving directory `/usr/src/packages/BUILD/mono-2.4/mcs'
make[2]: *** [all-local] Error 2
make[2]: Leaving directory `/usr/src/packages/BUILD/mono-2.4/runtime'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/packages/BUILD/mono-2.4'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.8716 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.8716 (%build)

Steps to reproduce the problem:
1. getpac -r sle10-sp2 mono-addon-core
2. export BUILD_DIST=sle10-sp2-i386
3. build


Actual Results:
Build fails with the above stacktrace

Expected Results:
Build should pass without any crashes

How often does this happen? 
Every time.

Additional Information:
This crash **only** occurs when building in autobuild env. If you "chroot" into
the build env and run "make" inside /usr/src/packages/BUILD/mono-2.4, then the
build passes just fine.

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


More information about the mono-bugs mailing list