Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7084560

Crash in net.dll

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 7
    • core-libs
    • None
    • b06
    • unknown
    • windows_2008

        Hello everybody,

        I got one crash issue on OpenJDK7 windows build.

        I captured the stack trace of such a crash, which happens intermittently on my 64bit Windows 2008 server. But unfortunately I have no simple test case to reproduce this problem.

        RtlInterlockedFlushSList+0x2ea (0x779F2A7F [ntdll+0x32a7f])
        RtlInterlockedFlushSList+0x572 (0x779F2D07 [ntdll+0x32d07])
        RtlInterlockedFlushSList+0x45d (0x779F2BF2 [ntdll+0x32bf2])
        HeapFree+0x14 (0x755A14D1 [kernel32+0x114d1])
        free+0x1c (0x7284016A [msvcr100+0x1016a])
        free_netaddr+0x11 (networkinterface.c:107, 0x725A12AC [net+0x12ac])
        getAllInterfacesAndAddresses+0xb6 (networkinterface_winxp.c:199, 0x725AB4C8 [net+0xb4c8])
        Java_java_net_NetworkInterface_getAll_XP+0x12 (networkinterface_winxp.c:693, 0x725AB7AB [net+0xb7ab])

        From the code at src/windows/native/java/net/NetworkInterface_winXP.c:195, I believe it is the dangling pointers that caused this problem. The uninitialized pointer netaddrP is exceptionally freed if the call to Windows API "GetIpAddrTable()" fails.

              michaelm Michael McMahon
              michaelm Michael McMahon
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: