JDK-6453229 : REGRESSION: SIGSEGV while setting MulticastSocket option
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 6
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux_2.6,linux_suse_sles_9
  • CPU: x86
  • Submitted: 2006-07-26
  • Updated: 2010-08-05
  • Resolved: 2006-08-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b97Fixed
Related Reports
Duplicate :  
Description
Using JBoss' TreeCache and its clustering technology, that uses TCP, UDP and Multicast sockets. Mustang crashes with a SIGSEGV on a SLES 9/64bit machine.

The same code
- works fine with Java 1.5.0_07(64bit) but
- fails with SIGSEGV using Mustang/64bit (b83, b90 and b92) and
   stderr:
   *** glibc detected *** free(): invalid pointer: 0x0000002b005e4ab0 ***
   (core dumps here..)
- gives glibc warnings with Mustang/32bit (b92):
   stderr:
   *** glibc detected *** double free or corruption (fasttop): 0x08812ab0 ***
   *** glibc detected *** free(): invalid pointer: 0x08812b38 ***
   *** glibc detected *** double free or corruption (fasttop): 0x08812a90 ***
   *** glibc detected *** free(): invalid pointer: 0x08812a40 ***
   *** glibc detected *** double free or corruption (fasttop): 0x0877b580 ***
   *** glibc detected *** free(): invalid pointer: 0x08812a88 ***
   *** glibc detected *** double free or corruption (fasttop): 0x086cf040 ***
   *** glibc detected *** free(): invalid pointer: 0x08813860 ***
   *** glibc detected *** double free or corruption (fasttop): 0x08812a48 ***
   *** glibc detected *** double free or corruption (fasttop): 0x0877bf20 ***

Attached the hs_err*.pid file from Mustang-b92/64bit to this email.

Had tried several JVM options (-server / -client / -Xms/mx / -Xint / -XX:+UseParallelGC ) but all resulted in the same SIGSEGV.

Full OS-Version:
Linux xxxxxxx 2.6.5-7.244-smp #1 SMP Mon Dec 12 18:32:25 UTC 2005 x86_64 x86_64 x86_64 GNU/Linux


Output of rpm -qa |grep libc :
glibc-2.3.3-98.61
glibc-32bit-9-200512100800
glibc-locale-2.3.3-98.61
glibc-devel-2.3.3-98.61
glibc-i18ndata-2.3.3-98.61
glibc-locale-32bit-9-200512100801

Comments
EVALUATION It is a bug in NetworkInterface.c. If one NIC has 2 or more sub-interfaces, the code which frees netif data structures trys to free one memory block twice. Will fix for Mustang.
04-08-2006