Bug 315417 (MONO61243) - [amd64][mint] Segmentation Fault instead of NullReferenceException
Summary: [amd64][mint] Segmentation Fault instead of NullReferenceException
Status: RESOLVED FIXED
Alias: MONO61243
Product: Mono: Runtime
Classification: Mono
Component: misc (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-07 17:37 UTC by Matthijs ter Woord
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
sample app showing bug, it's lgpl (30.73 KB, application/x-bzip2)
2004-07-08 10:20 UTC, Thomas Wiest
Details
new test app, again lgpl (39.82 KB, application/zip)
2004-07-08 10:35 UTC, Thomas Wiest
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 18:46:07 UTC


---- Reported by meddochat@zonnet.nl 2004-07-07 10:37:43 MST ----

When running my app on mono 1.0 i get a segmentation fault. when then 
running with --verbose, i get a call stack with at the end 
NullReferenceException.ctor. the clue is now, shouldn't the 
NullReferenceException get handled like in MS.NET?

Matthijs ter Woord



---- Additional Comments From meddochat@zonnet.nl 2004-07-08 03:20:50 MST ----

Created an attachment (id=166426)
sample app showing bug, it's lgpl




---- Additional Comments From meddochat@zonnet.nl 2004-07-08 03:34:27 MST ----

the first attachment contains a weird tarball. don't use it. i'll 
post a new one




---- Additional Comments From meddochat@zonnet.nl 2004-07-08 03:35:42 MST ----

Created an attachment (id=166427)
new test app, again lgpl




---- Additional Comments From meddochat@zonnet.nl 2004-07-08 08:17:14 MST ----

when running using mint, it looks like it has to do something with 
Char.ToString(). details from mint:

Unhandled Exception: System.TypeInitializationException: An exception 
was thrown by the type initializer for System.IO.Path ---> 
System.NullReferenceException: Null Reference (SIGSEGV)
#0: 0x00000            in System.Char:ToString () ()
#1: 0x00016 call       in System.IO.Path:.cctor () ()
#2: 0x00013 ldsfld.o   in System.IO.File:Exists (string) 
([0x8957ec0] )
#3: 0x0000e call       in System.Configuration.ConfigurationData:Load 
(string) (0x89b6fe0 [0x8957ec0] )
#4: 0x00014 callvirt   in System.Configuration.DefaultConfig:Init () 
()
#5: 0x00003 vcallvirt  in 
System.Configuration.DefaultConfig:GetConfig (string) (0x8956c30 
[0x8957f40] )
#6: 0x00025 callvirt   in 
System.Configuration.ConfigurationSettings:GetConfig (string) 
([0x8957f40] )
#7: 0x00003 call       in 
TerWoord.Frameworks.GUI.ConfigurationFactory:.cctor () ()
#8: 0x00004 ldsfld.o   in 
TerWoord.Frameworks.GUI.Application:Initialize () ()
#9: 0x00002 vcall      in 
TerWoord.Frameworks.GUI.Application:GetBackEndControlForBaseControl 
(TerWoord.Frameworks.GUI.BaseControl) ([0x8957f80] )
#10: 0x00009 call       in TerWoord.Frameworks.GUI.BaseControl:.ctor 
() ()
#11: 0x00005 vcall      in TerWoord.Frameworks.GUI.Control:.ctor () ()
#12: 0x00001 vcall      in 
TerWoord.Frameworks.GUI.ContainerControl:.ctor () ()
#13: 0x00001 vcall      in TerWoord.Frameworks.GUI.Window:.ctor () ()
#14: 0x00001 vcall      in TerWoord.Frameworks.GUI.XmlWindow:.ctor () 
()
#15: 0x00001 vcall      in ProefWindow:.ctor () ()
#16: 0x0000c newobj     in proef1:Main (string[]) ([0x894a8e0] )
--- End of inner exception stack trace ---

#0: 0x00013 ldsfld.o   in System.IO.File:Exists (string) 
([0x8957ec0] )
#1: 0x0000e call       in System.Configuration.ConfigurationData:Load 
(string) (0x89b6fe0 [0x8957ec0] )
#2: 0x00014 callvirt   in System.Configuration.DefaultConfig:Init () 
()
#3: 0x00003 vcallvirt  in 
System.Configuration.DefaultConfig:GetConfig (string) (0x8956c30 
[0x8957f40] )
#4: 0x00025 callvirt   in 
System.Configuration.ConfigurationSettings:GetConfig (string) 
([0x8957f40] )
#5: 0x00003 call       in 
TerWoord.Frameworks.GUI.ConfigurationFactory:.cctor () ()
#6: 0x00004 ldsfld.o   in 
TerWoord.Frameworks.GUI.Application:Initialize () ()
#7: 0x00002 vcall      in 
TerWoord.Frameworks.GUI.Application:GetBackEndControlForBaseControl 
(TerWoord.Frameworks.GUI.BaseControl) ([0x8957f80] )
#8: 0x00009 call       in TerWoord.Frameworks.GUI.BaseControl:.ctor 
() ()
#9: 0x00005 vcall      in TerWoord.Frameworks.GUI.Control:.ctor () ()
#10: 0x00001 vcall      in 
TerWoord.Frameworks.GUI.ContainerControl:.ctor () ()
#11: 0x00001 vcall      in TerWoord.Frameworks.GUI.Window:.ctor () ()
#12: 0x00001 vcall      in TerWoord.Frameworks.GUI.XmlWindow:.ctor () 
()
#13: 0x00001 vcall      in ProefWindow:.ctor () ()
#14: 0x0000c newobj     in proef1:Main (string[]) ([0x894a8e0] )
  



---- Additional Comments From medvitz@medvitz.net 2004-07-16 15:02:34 MST ----


I found this while searching for a problim that I am having installing
mono 1.0 on an AMD64 machine.  Everything compiles, then whine I do a
make install, the gacutil.exe fails with a similar message.  See below

make[1]: Entering directory
`/home/medvitz/Development/Mono/mono-1.0/runtime/net_1_1'
make[1]: Nothing to be done for `install-exec-am'.
/bin/sh ../../mkinstalldirs /usr/local/lib
 /usr/bin/install -c -m 644 mscorlib.dll /usr/local/lib/mscorlib.dll
MONO_PATH=. ../../mono/interpreter/mint --config ../../data/config
./../gacutil.exe /i ./Accessibility.dll /f /package 1.0 /gacdir
/usr/local/lib /root /usr/local/lib
 
Unhandled Exception: System.TypeInitializationException: An exception
was thrown by the type initializer for System.IO.Path --->
System.NullReferenceException: Null Reference (SIGSEGV)
#0: 0x00000            in System.Char:ToString () ()
#1: 0x00016 call       in System.IO.Path:.cctor () ()
#2: 0x0000b ldsfld.o   in System.IO.FileSystemInfo:CheckPath (string)
(0x5cad20 [0x5cbf18] )
#3: 0x00008 vcallvirt  in System.IO.DirectoryInfo:.ctor (string)
(0x5cad20 [0x5cbf18] )
#4: 0x00005 newobj     in Mono.Tools.Driver:EnsureLib (string)
([0x5cbf18] )
#5: 0x00197 call       in Mono.Tools.Driver:Main (string[]) ([0x5d4ee0] )
--- End of inner exception stack trace ---
 
#0: 0x0000b ldsfld.o   in System.IO.FileSystemInfo:CheckPath (string)
(0x5cad20 [0x5cbf18] )
#1: 0x00008 vcallvirt  in System.IO.DirectoryInfo:.ctor (string)
(0x5cad20 [0x5cbf18] )
#2: 0x00005 newobj     in Mono.Tools.Driver:EnsureLib (string)
([0x5cbf18] )
#3: 0x00197 call       in Mono.Tools.Driver:Main (string[]) ([0x5d4ee0] )
 
make[1]: *** [install-data-local] Error 1
make[1]: Leaving directory
`/home/medvitz/Development/Mono/mono-1.0/runtime/net_1_1'



If this is actually a separate issue, let me know and I will create a
new item.



---- Additional Comments From vargaz@freemail.hu 2004-09-25 18:18:49 MST ----

This is fixed in the new mono unstable release.

Imported an attachment (id=166426)
Imported an attachment (id=166427)

Unknown bug field "cf_op_sys_details" encountered while moving bug
   <cf_op_sys_details>Fedora Core 2</cf_op_sys_details>
Unknown operating system unknown. Setting to default OS "Other".