[Mono-devel-list] possible bustages in reflection.c

eric lindvall eric at 5stops.com
Tue Nov 4 01:41:31 EST 2003


I just did a sync of anon-cvs and attempted to do a fullbuild and started
getting NullReferenceExceptions when i tried to build mcs.

after hooking GDB up to mono, i found:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 2051 (LWP 17556)]
mono_image_module_basic_init (moduleb=0x91b6a20) at reflection.c:3772
3772                    if (!ab->modules) {
(gdb) print ab
$1 = (MonoReflectionAssemblyBuilder *) 0x0

has anyone else seen this?

thanks.

e.


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

Starting program: /usr/local/mono/bin/mono /usr/local/mono/bin/mcs.exe -d:NET_1_1 -g /target:exe /out:mcs.exe AssemblyInfo.cs anonymous.cs assign.cs attribute.cs driver.cs cs-tokenizer.cs cfold.cs class.cs codegen.cs const.cs constant.cs convert.cs decl.cs delegate.cs enum.cs ecore.cs expression.cs flowanalysis.cs genericparser.cs interface.cs iterators.cs literal.cs location.cs modifiers.cs namespace.cs parameter.cs pending.cs report.cs rootcontext.cs statement.cs support.cs typemanager.cs symbolwriter.cs tree.cs cs-parser.cs
[New Thread 1024 (LWP 17542)]
[New Thread 2049 (LWP 17554)]
[New Thread 1026 (LWP 17555)]
[New Thread 2051 (LWP 17556)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 2051 (LWP 17556)]
mono_image_module_basic_init (moduleb=0x91b6a20) at reflection.c:3772
3772                    if (!ab->modules) {
(gdb) where
#0  mono_image_module_basic_init (moduleb=0x91b6a20) at reflection.c:3772
#1  0x082254a7 in ?? ()
#2  0x08331ff2 in ?? ()
#3  0x08331e82 in ?? ()
#4  0x08547339 in ?? ()
#5  0x0808f3fb in ?? ()
#6  0x0808ebc4 in ?? ()
#7  0x0808ea1e in ?? ()
#8  0x40050615 in mono_jit_runtime_invoke (method=0x810cf80, obj=0x0, params=0xbf5ff924, exc=0x0) at mini.c:7447
#9  0x4008ca33 in mono_runtime_invoke (method=0x810cf80, obj=0x0, params=0xbf5ff924, exc=0x0) at object.c:726
#10 0x4008d560 in mono_runtime_exec_main (method=0x810cf80, args=0x80cbe70, exc=0x0) at object.c:1111
#11 0x4008d1f9 in mono_runtime_run_main (method=0x810cf80, argc=40, argv=0xbffff6b8, exc=0x0) at object.c:987
#12 0x4006c4f3 in mono_jit_exec (domain=0x806fed8, assembly=0x80d77d8, argc=40, argv=0xbffff6b8) at driver.c:463
#13 0x4006c5cc in main_thread_handler (user_data=0xbffff618) at driver.c:497
#14 0x400aa63a in start_wrapper (data=0x810cc28) at threads.c:216
#15 0x400df384 in timed_thread_start_routine (args=0x810cc40) at timed-thread.c:115
#16 0x400f1264 in GC_start_routine (arg=0x806cd80) at linux_threads.c:1663
#17 0x401f10fc in pthread_start_thread (arg=0xbf5ffbe0) at manager.c:291
#18 0x401f1149 in pthread_start_thread_event () at manager.c:315
(gdb) list
3767    mono_image_module_basic_init (MonoReflectionModuleBuilder *moduleb)
3768    {
3769            MonoDynamicImage *image = moduleb->dynamic_image;
3770            MonoReflectionAssemblyBuilder *ab = moduleb->assemblyb;
3771            if (!image) {
3772                    if (!ab->modules) {
3773                            /* a MonoImage was already created in mono_image_basic_init () */
3774                            image = (MonoDynamicImage*)ab->dynamic_assembly->assembly.image;
3775                    } else {
3776                            image = create_dynamic_mono_image (mono_string_to_utf8 (ab->name), mono_string_to_utf8 (moduleb->module.name));
(gdb) 




More information about the Mono-devel-list mailing list