[Mono-bugs] [Bug 376435] New: [REGRESSION] Immediate segfault with XSP2 after recent changes in String.cs

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Apr 2 13:26:47 EDT 2008


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


           Summary: [REGRESSION] Immediate segfault with XSP2 after recent
                    changes in String.cs
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: juraj at hotfeet.ch
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


After the recent changes in String.cs, starting xsp2 in an empty directory and
requesting http://localhost:8080 immediately leads to a segfault. Reverting
back to r99568 "fixes" the problem.

xsp2
Listening on address: 0.0.0.0
Root directory: /home/js
Listening on port: 8080 (non-secure)
Hit Return to stop the server.
Stacktrace:

  at (wrapper managed-to-native)
System.Object.__icall_wrapper_mono_string_alloc (intptr) <0x00004>
  at (wrapper managed-to-native)
System.Object.__icall_wrapper_mono_string_alloc (intptr) <0xffffffff>
  at (wrapper alloc) System.Object.Alloc (intptr,int) <0xffffffff>
  at System.Globalization.TextInfo.ToLower (string) <0x00023>
  at System.Collections.CaseInsensitiveHashCodeProvider.GetHashCode (object)
<0x000aa>
  at System.Collections.Hashtable.GetHash (object) <0x00045>
  at System.Collections.Hashtable.PutImpl (object,object,bool) <0x00041>
  at System.Collections.Hashtable.Add (object,object) <0x00012>
  at System.Security.Cryptography.CryptoConfig.Initialize () <0x0079e>
  at System.Security.Cryptography.CryptoConfig.CreateFromName (string,object[])
<0x00040>
  at System.Security.Cryptography.CryptoConfig.CreateFromName (string)
<0x0000c>
  at System.Security.Cryptography.RandomNumberGenerator.Create (string)
<0x0000b>
  at System.Security.Cryptography.RandomNumberGenerator.Create () <0x0000c>
  at System.Guid.NewGuid () <0x0005e>
  at System.Runtime.Remoting.RemotingServices..cctor () <0x00165>
  at (wrapper runtime-invoke) System.Object.runtime_invoke_void
(object,intptr,intptr,intptr) <0xffffffff>
  at System.AppDomain.CreateDomain
(string,System.Security.Policy.Evidence,System.AppDomainSetup) <0xffffffff>
  at System.AppDomain.CreateDomain
(string,System.Security.Policy.Evidence,System.AppDomainSetup) <0x00170>
  at System.Web.Hosting.ApplicationHost.CreateApplicationHost
(System.Type,string,string) <0x0048b>
  at Mono.WebServer.VPathToHost.CreateHost
(Mono.WebServer.ApplicationServer,Mono.WebServer.WebSource) <0x00072>
  at Mono.WebServer.ApplicationServer.GetApplicationForPath
(string,int,string,bool) <0x000d3>
  at (wrapper remoting-invoke-with-check)
Mono.WebServer.ApplicationServer.GetApplicationForPath (string,int,string,bool)
<0xffffffff>
  at Mono.WebServer.XSPWorker.RunInternal (object) <0x0007c>
  at (wrapper runtime-invoke) System.Object.runtime_invoke_void_object
(object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

        /usr/local/bin/mono [0x81844af]
        /usr/local/bin/mono [0x807eb71]
        [0x110440]
        /usr/local/bin/mono [0x81356af]
        /usr/local/bin/mono [0x8135e35]
        /usr/local/bin/mono [0x81360bc]
        /usr/local/bin/mono [0x813657c]
        /usr/local/bin/mono [0x8139f3e]
        /usr/local/bin/mono [0x813d4fc]
        /usr/local/bin/mono [0x813b4f4]
        /usr/local/bin/mono(mono_string_new_size+0x4b) [0x80a8b5b]
        /usr/local/bin/mono [0x80a94ba]
        [0x5a5697]
        [0x5a5665]
        [0x92f354]
        [0x92f263]
        [0x5a91e6]
        [0x5a8f1a]
        [0x5a8e83]
        [0x953287]
        [0x952a11]
        [0x952995]
        [0x95294c]
        [0x95292d]
        [0x952867]
        [0x951ec6]
        [0x5a4a9e]
        /usr/local/bin/mono(mono_runtime_class_init+0x1d5) [0x80a7445]
        /usr/local/bin/mono [0x8171793]
        /usr/local/bin/mono [0x8069c24]
        [0x112066]
        [0x94bb1c]
        [0x94b4cb]
        [0x94b1b4]
        [0x94b0ac]
        [0x94a7ad]
        [0x94a6c6]
        /usr/local/bin/mono(mono_runtime_invoke_array+0x1a9) [0x80a8039]
        /usr/local/bin/mono [0x80a973d]
        /usr/local/bin/mono [0x80fe9c3]
        /usr/local/bin/mono [0x810007d]
        /usr/local/bin/mono [0x810697f]
        /usr/local/bin/mono [0x8124912]
        /usr/local/bin/mono [0x813b815]
        /lib/libpthread.so.0 [0xb1050b]
        /lib/libc.so.6(clone+0x5e) [0xa51b2e]

Debug info from gdb:

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 1217920 (LWP 1338)]
[New Thread 65260432 (LWP 1366)]
[New Thread 33213328 (LWP 1365)]
[New Thread 24325008 (LWP 1364)]
[New Thread 22031248 (LWP 1363)]
[New Thread 9022352 (LWP 1361)]
[New Thread 5991312 (LWP 1360)]
0x00110402 in __kernel_vsyscall ()
  7 Thread 5991312 (LWP 1360)  0x00110402 in __kernel_vsyscall ()
  6 Thread 9022352 (LWP 1361)  0x00110402 in __kernel_vsyscall ()
  5 Thread 22031248 (LWP 1363)  0x00110402 in __kernel_vsyscall ()
  4 Thread 24325008 (LWP 1364)  0x00110402 in __kernel_vsyscall ()
  3 Thread 33213328 (LWP 1365)  0x00110402 in __kernel_vsyscall ()
  2 Thread 65260432 (LWP 1366)  0x00110402 in __kernel_vsyscall ()
  1 Thread 1217920 (LWP 1338)  0x00110402 in __kernel_vsyscall ()

Thread 7 (Thread 5991312 (LWP 1360)):
#0  0x00110402 in __kernel_vsyscall ()
#1  0x00b17d26 in nanosleep () from /lib/libpthread.so.0
#2  0x08125e31 in collection_thread (unused=0x0) at collection.c:34
#3  0x00b1050b in start_thread () from /lib/libpthread.so.0
#4  0x00a51b2e in clone () from /lib/libc.so.6

Thread 6 (Thread 9022352 (LWP 1361)):
#0  0x00110402 in __kernel_vsyscall ()
#1  0x00b145d5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0x0810f1df in timedwait_signal_poll_cond (cond=0x5f426c, mutex=0x5f4254, 
    timeout=0x80, alertable=0) at handles.c:1443
#3  0x08111c52 in _wapi_handle_timedwait_signal_handle (handle=0x404, 
    timeout=0x0, alertable=0) at handles.c:1523
#4  0x08111ccc in _wapi_handle_wait_signal_handle (handle=0x404, alertable=0)
    at handles.c:1483
#5  0x0811d940 in WaitForSingleObjectEx (handle=0x404, timeout=4294967295, 
    alertable=0) at wait.c:200
#6  0x08100f6a in finalizer_thread (unused=0x0) at gc.c:894
#7  0x0810697f in start_wrapper (data=0x95170d8) at threads.c:587
#8  0x08124912 in thread_start_routine (args=0x5f44dc) at threads.c:285
#9  0x0813b815 in GC_start_routine (arg=0x27f40) at pthread_support.c:1369
#10 0x00b1050b in start_thread () from /lib/libpthread.so.0
#11 0x00a51b2e in clone () from /lib/libc.so.6

Thread 5 (Thread 22031248 (LWP 1363)):
#0  0x00110402 in __kernel_vsyscall ()
#1  0x00a52346 in epoll_wait () from /lib/libc.so.6
#2  0x080fe6ec in socket_io_epoll_main (p=0x823bd40) at threadpool.c:548
#3  0x0810697f in start_wrapper (data=0x96a9570) at threads.c:587
#4  0x08124912 in thread_start_routine (args=0x5f471c) at threads.c:285
#5  0x0813b815 in GC_start_routine (arg=0x6ffc0) at pthread_support.c:1369
#6  0x00b1050b in start_thread () from /lib/libpthread.so.0
#7  0x00a51b2e in clone () from /lib/libc.so.6

Thread 4 (Thread 24325008 (LWP 1364)):
#0  0x00110402 in __kernel_vsyscall ()
#1  0x00b14902 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0
#2  0x0810f19a in timedwait_signal_poll_cond (cond=0x5f465c, mutex=0x5f4644, 
    timeout=0x1732258, alertable=1) at handles.c:1453
#3  0x08111c52 in _wapi_handle_timedwait_signal_handle (handle=0x40b, 
    timeout=0x1732258, alertable=1) at handles.c:1523
#4  0x0811d811 in WaitForSingleObjectEx (handle=0x40b, timeout=10000, 
    alertable=1) at wait.c:202
#5  0x080fff62 in async_invoke_io_thread (data=0x0) at threadpool.c:280
#6  0x0810697f in start_wrapper (data=0x96a9570) at threads.c:587
#7  0x08124912 in thread_start_routine (args=0x5f47ac) at threads.c:285
#8  0x0813b815 in GC_start_routine (arg=0x6ffc0) at pthread_support.c:1369
#9  0x00b1050b in start_thread () from /lib/libpthread.so.0
#10 0x00a51b2e in clone () from /lib/libc.so.6

Thread 3 (Thread 33213328 (LWP 1365)):
#0  0x00110402 in __kernel_vsyscall ()
#1  0x00b14902 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0
#2  0x0810f19a in timedwait_signal_poll_cond (cond=0x5f465c, mutex=0x5f4644, 
    timeout=0x1fac258, alertable=1) at handles.c:1453
#3  0x08111c52 in _wapi_handle_timedwait_signal_handle (handle=0x40b, 
    timeout=0x1fac258, alertable=1) at handles.c:1523
#4  0x0811d811 in WaitForSingleObjectEx (handle=0x40b, timeout=10000, 
    alertable=1) at wait.c:202
#5  0x080fff62 in async_invoke_io_thread (data=0x0) at threadpool.c:280
#6  0x0810697f in start_wrapper (data=0x96b5c18) at threads.c:587
#7  0x08124912 in thread_start_routine (args=0x5f483c) at threads.c:285
#8  0x0813b815 in GC_start_routine (arg=0x6ffc0) at pthread_support.c:1369
#9  0x00b1050b in start_thread () from /lib/libpthread.so.0
#10 0x00a51b2e in clone () from /lib/libc.so.6

Thread 2 (Thread 65260432 (LWP 1366)):
#0  0x00110402 in __kernel_vsyscall ()
#1  0x00a4a5f1 in select () from /lib/libc.so.6
#2  0x04a52e9e in g_spawn_sync () from /lib/libglib-2.0.so.0
#3  0x04a5324c in g_spawn_command_line_sync () from /lib/libglib-2.0.so.0
#4  0x08184541 in mono_handle_native_sigsegv (signal=11, ctx=0xcabd0c)
    at mini-exceptions.c:1104
#5  0x0807eb71 in mono_arch_handle_altstack_exception (sigctx=0xcabd0c, 
    fault_addr=0x94, stack_ovf=0) at exceptions-x86.c:855
#6  <signal handler called>
#7  GC_is_marked (p=0x81f3d9e "GC_PRINT_ADDRESS_MAP") at mark.c:207
#8  0x081356af in GC_finish_collection () at alloc.c:697
#9  0x08135e35 in GC_try_to_collect_inner (
    stop_func=0x8134fb0 <GC_never_stop_func>) at alloc.c:397
#10 0x081360bc in GC_collect_or_expand (needed_blocks=1, ignore_off_page=0)
    at alloc.c:1046
#11 0x0813657c in GC_allocobj (sz=6, kind=0) at alloc.c:1126
#12 0x08139f3e in GC_generic_malloc_inner (lb=24, k=0) at malloc.c:136
#13 0x0813d4fc in GC_generic_malloc_many (lb=24, k=0, result=0xbf02c)
    at mallocx.c:513
#14 0x0813b4f4 in GC_local_malloc_atomic (bytes=20) at pthread_support.c:383
#15 0x080a8b5b in mono_string_new_size (domain=0x26f00, len=3) at object.c:3176
#16 0x080a94ba in mono_string_alloc (length=3) at object.c:833
#17 0x005a5697 in ?? ()
#18 0x00000003 in ?? ()
#19 0x03e3be7c in ?? ()
#20 0x00000004 in ?? ()
#21 0x00000094 in ?? ()
#22 0x09599820 in ?? ()
#23 0x00000000 in ?? ()

Thread 1 (Thread 1217920 (LWP 1338)):
#0  0x00110402 in __kernel_vsyscall ()
#1  0x00b1752b in read () from /lib/libpthread.so.0
#2  0x0811406a in console_read (handle=0x0, buffer=0x68560, numbytes=1024, 
    bytesread=0xbfc35aec, overlapped=0x0) at io.c:1069
#3  0x081155c0 in ReadFile (handle=0x0, buffer=0x68560, numbytes=1024, 
    bytesread=0xbfc35aec, overlapped=0x0) at io.c:2271
#4  0x080ecce6 in ves_icall_System_IO_MonoIO_Read (handle=0x0, dest=0x68550, 
    dest_offset=0, count=427360, error=0xbfc35b60) at file-io.c:697
#5  0x009149e3 in ?? ()
#6  0x00000000 in ?? ()
#0  0x00110402 in __kernel_vsyscall ()


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


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