[Mono-bugs] [Bug 411397] New: Segmentation fault when using TcpClient.Connect()
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Jul 22 17:12:38 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=411397
Summary: Segmentation fault when using TcpClient.Connect()
Product: Mono: Class Libraries
Version: 1.2.5
Platform: i686
OS/Version: Linux
Status: NEW
Severity: Critical
Priority: P5 - None
Component: System
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: mikko.sivulainen at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Description of Problem:
Mono randomly segfaults when trying to use TcpClient.Connect("localhost") (or
any other address)
The program creates 1-10 threads which all use TcpClient to connect to a
backend service. Segfault happens when the first thread tries to connect.
Lately i have very rarely (about 1% of the time) seen that first thread
repeatedly fails with exception
"An exception was thrown by the type initializer for System.Net.Dns" but other
threads succeed.
This bug has been around in every Gentoo installation (and mono version) i've
had for the past two years. I have not seen this issue occuring on other than
gentoo installations.
How often does this happen?
Actually randomly means about 90% of the time.
Additional Information:
Stacktrace:
at (wrapper managed-to-native) System.String.InternalIsInterned (string)
<0x00004>
at (wrapper managed-to-native) System.String.InternalIsInterned (string)
<0xffffffff>
at System.String.IsInterned (string) [0x00011] in
/var/tmp/portage/dev-lang/mono-1.2.5.1-r1/work/mono-1.2.5.1/mcs/class/corlib/System/String.cs:1822
at System.Configuration.ExeConfigurationHost.GetStreamName (string) [0x00000]
in
/var/tmp/portage/dev-lang/mono-1.2.5.1-r1/work/mono-1.2.5.1/mcs/class/System.Configuration/System.Configuration/InternalConfigurationHost.cs:264
at System.Configuration.Configuration.Init
(System.Configuration.Internal.IConfigSystem,string,System.Configuration.Configuration)
[0x0000e] in
/var/tmp/portage/dev-lang/mono-1.2.5.1-r1/work/mono-1.2.5.1/mcs/class/System.Configuration/System.Configuration/Configuration.cs:107
at System.Configuration.Configuration..ctor
(System.Configuration.InternalConfigurationSystem,string) [0x0005c] in
/var/tmp/portage/dev-lang/mono-1.2.5.1-r1/work/mono-1.2.5.1/mcs/class/System.Configuration/System.Configuration/Configuration.cs:79
at System.Configuration.Configuration..ctor
(System.Configuration.InternalConfigurationSystem,string) [0x0003b] in
/var/tmp/portage/dev-lang/mono-1.2.5.1-r1/work/mono-1.2.5.1/mcs/class/System.Configuration/System.Configuration/Configuration.cs:74
at System.Configuration.Configuration..ctor
(System.Configuration.InternalConfigurationSystem,string) [0x0003b] in
/var/tmp/portage/dev-lang/mono-1.2.5.1-r1/work/mono-1.2.5.1/mcs/class/System.Configuration/System.Configuration/Configuration.cs:74
at System.Configuration.InternalConfigurationFactory.Create
(System.Type,object[]) [0x0000e] in
/var/tmp/portage/dev-lang/mono-1.2.5.1-r1/work/mono-1.2.5.1/mcs/class/System.Configuration/System.Configuration/InternalConfigurationFactory.cs:42
at System.Configuration.ConfigurationManager.OpenExeConfigurationInternal
(System.Configuration.ConfigurationUserLevel,System.Reflection.Assembly,string)
[0x00109] in
/var/tmp/portage/dev-lang/mono-1.2.5.1-r1/work/mono-1.2.5.1/mcs/class/System.Configuration/System.Configuration/ConfigurationManager.cs:121
at
System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection
(string) [0x00029] in
/var/tmp/portage/dev-lang/mono-1.2.5.1-r1/work/mono-1.2.5.1/mcs/class/System.Configuration/System.Configuration/ClientConfigurationSystem.cs:47
at System.Configuration.ConfigurationManager.GetSection (string) [0x00000] in
/var/tmp/portage/dev-lang/mono-1.2.5.1-r1/work/mono-1.2.5.1/mcs/class/System.Configuration/System.Configuration/ConfigurationManager.cs:164
at System.Net.Sockets.Socket.CheckProtocolSupport () [0x0003c] in
/var/tmp/portage/dev-lang/mono-1.2.5.1-r1/work/mono-1.2.5.1/mcs/class/System/System.Net.Sockets/Socket.cs:1278
at System.Net.Dns..cctor () [0x00000] in
/var/tmp/portage/dev-lang/mono-1.2.5.1-r1/work/mono-1.2.5.1/mcs/class/System/System.Net/Dns.cs:48
at (wrapper runtime-invoke)
System.Text.RegularExpressions.Regex.runtime_invoke_void
(object,intptr,intptr,intptr) <0xffffffff>
at System.Net.Sockets.TcpClient.Connect (string,int) [0x00014] in
/var/tmp/portage/dev-lang/mono-1.2.5.1-r1/work/mono-1.2.5.1/mcs/class/System/System.Net.Sockets/TcpClient.cs:317
at System.Net.Sockets.TcpClient.Connect (string,int) [0x00000] in
/var/tmp/portage/dev-lang/mono-1.2.5.1-r1/work/mono-1.2.5.1/mcs/class/System/System.Net.Sockets/TcpClient.cs:314
at System.Net.Sockets.TcpClient..ctor (string,int) [0x00006] in
/var/tmp/portage/dev-lang/mono-1.2.5.1-r1/work/mono-1.2.5.1/mcs/class/System/System.Net.Sockets/TcpClient.cs:99
at PMS.Core.NetworkServiceTcp.Connect (string) <0x0010b>
at Daemon.Daemon.run (object) [0x000d2] in
/home/pms/pms/trunk/frontend/daemon/Daemon.cs:562
at (wrapper delegate-invoke) System.MulticastDelegate.invoke_void_object
(object) <0xffffffff>
at (wrapper runtime-invoke)
System.Threading.ParameterizedThreadStart.runtime_invoke_void_object
(object,intptr,intptr,intptr) <0xffffffff>
Native stacktrace:
mono [0x81686f6]
mono [0x8133e98]
[0xffffe40c]
mono [0x8096bef]
[0xb559ebaf]
[0xb559eb3a]
[0xb52d0fc1]
[0xb52d0ef5]
[0xb52d0a3a]
[0xb52d0a12]
[0xb52d0a12]
[0xb52ccb56]
[0xb52cc8f0]
[0xb52cc1f1]
[0xb52cbfb4]
[0xb482c090]
[0xb4879ff8]
[0xb558b326]
mono(mono_runtime_class_init+0x1e0) [0x8099fe0]
mono [0x8156045]
mono [0x807e75a]
[0xb7c8903e]
[0xb4879ea1]
[0xb4876f3c]
[0xb4985ddc]
[0xb49852bf]
[0xb49851be]
mono(mono_runtime_delegate_invoke+0x36) [0x80960f6]
mono [0x80d1087]
mono [0x811aa82]
mono [0x8130f23]
/lib/libpthread.so.0 [0xb7e06013]
/lib/libc.so.6(clone+0x5e) [0xb7d6b48e]
--
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