United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6453229 REGRESSION: SIGSEGV while setting MulticastSocket option
JDK-6453229 : REGRESSION: SIGSEGV while setting MulticastSocket option

Details
Type:
Bug
Submit Date:
2006-07-26
Status:
Resolved
Updated Date:
2010-08-05
Project Name:
JDK
Resolved Date:
2006-08-23
Component:
core-libs
OS:
linux_suse_sles_9,linux_2.6
Sub-Component:
java.net
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports
Duplicate:

Sub Tasks

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.
                                     
2006-08-04



Hardware and Software, Engineered to Work Together