[Mono-bugs] [Bug 661106] New: Calling System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces() results in a crash.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Dec 22 16:35:19 EST 2010


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

https://bugzilla.novell.com/show_bug.cgi?id=661106#c0


           Summary: Calling
                    System.Net.NetworkInformation.NetworkInterface.GetAllN
                    etworkInterfaces() results in a crash.
    Classification: Mono
           Product: MonoDroid
           Version: unspecified
          Platform: x86-64
        OS/Version: Windows 7
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Runtime
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: saml at itrgroupinc.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Description of Problem:
When I call NetworkInterface.GetAllNetworkInterfaces(), I get a crash.

Steps to reproduce the problem:
Try to call
System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces() from a
MDr project.

Actual Results:
Have a logcat output:
12-22 14:45:59.528: ERROR/mono(252): [0xafe42a98:] EXCEPTION handling:
System.EntryPointNotFoundException: getifaddrs
12-22 14:45:59.528: ERROR/mono(252): [0xafe42a98:] EXCEPTION handling:
System.EntryPointNotFoundException: getifaddrs
12-22 14:45:59.858: INFO/MonoDroid(252): UNHANDLED EXCEPTION:
System.EntryPointNotFoundException: getifaddrs
12-22 14:45:59.858: INFO/MonoDroid(252):   at (wrapper managed-to-native)
System.Net.NetworkInformation.LinuxNetworkInterface:getifaddrs (intptr&)
12-22 14:45:59.858: INFO/MonoDroid(252):   at
System.Net.NetworkInformation.LinuxNetworkInterface.ImplGetAllNetworkInterfaces
() [0x00000] in <filename unknown>:0 
12-22 14:45:59.858: INFO/MonoDroid(252):   at
System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces ()
[0x00000] in <filename unknown>:0 
12-22 14:45:59.968: DEBUG/dalvikvm(252): GC freed 96 objects / 5120 bytes in
68ms
12-22 14:46:00.338: ERROR/mono(252): [0xafe42a98:] EXCEPTION handling:
System.EntryPointNotFoundException: getifaddrs
12-22 14:46:00.349: ERROR/mono(252): Unhandled Exception:
System.EntryPointNotFoundException: getifaddrs
12-22 14:46:00.349: ERROR/mono(252):   at (wrapper managed-to-native)
System.Net.NetworkInformation.LinuxNetworkInterface:getifaddrs (intptr&)
12-22 14:46:00.349: ERROR/mono(252):   at
System.Net.NetworkInformation.LinuxNetworkInterface.ImplGetAllNetworkInterfaces
() [0x00000] in <filename unknown>:0 
12-22 14:46:00.349: ERROR/mono(252):   at
System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces ()
[0x00000] in <filename unknown>:0 
12-22 14:46:00.419: DEBUG/Zygote(30): Process 252 exited cleanly (1)
12-22 14:46:00.449: INFO/ActivityManager(53): Process net.net (pid 252) has
died.

Expected Results:
An array of NetworkInterfaces to be returned

How often does this happen? 
Every time

Additional Information:
Repro: http://pastebin.com/Pyipejhw

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