harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Hindess (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-6309) [classlib][luni] glibc from java.net.NetworkInterface.getNetworkInterfacesImpl() (Java 6 only)
Date Fri, 14 Aug 2009 21:43:14 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-6309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12743459#action_12743459

Mark Hindess commented on HARMONY-6309:

Catherine, thanks for the report and patch.  I am very familiar with linux network configuration
but I am struggling to reproduce the problem on my laptop.  There are essentially two ways
to add aliases - additional ip addresses - to a device on linux:

1) Create an additional interface, for example eth0:1,  on device, eth0 in this example ,
like so:

  ifconfig eth0:1 <ipaddr> netmask <netmask> ...

2) Just add the address to the existing interface, for exmaple eth0, like so:

  ip addr add <ipaddr>/<num-mask-bits> dev eth0

(The latter only appears in  "ip addr show" output and not in  "ifconfig eth0" output and
is less common.)

I tried various things using both of these techniques on lo and eth0 on my laptop but got
no crashes.  It may be that the version of glibc that I am using is not good enough, 2.9-13,
or it may be that I am not creating the aliases correctly.  Either way, it would be helpful
if you could add some more information about the configuration and environment which triggers
this bug so that I can reproduce it and check the fix.

> [classlib][luni] glibc from java.net.NetworkInterface.getNetworkInterfacesImpl() (Java
6 only)
> ----------------------------------------------------------------------------------------------
>                 Key: HARMONY-6309
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6309
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: All unix environments
>            Reporter: Catherine Hope
>            Assignee: Mark Hindess
>         Attachments: 6309-patch.txt
> glibc occurring calling java.net.NetworkInterface.getNetworkInterfacesImpl() on a unix
platform that has multiple aliases for the same adapter.  The org.apache.harmony.luni.tests.java.net.unix.UnixNetworkInterfaceTest
found the problem when run on a platform set up in this way.
> *** glibc detected *** /home/vmfarm/chope/jdk/jre/bin/java: free(): invalid next size
(fast): 0x08385c10 ***
> ======= Backtrace: =========
> /lib/libc.so.6[0xb7e4fab1]
> /lib/libc.so.6(__libc_free+0x84)[0xb7e51184]
> /lib/libc.so.6(fclose+0x152)[0xb7e40de2]
> /home/vmfarm/chope/jdk/jre/bin/libhyluni.so(Java_java_net_NetworkInterface_getNetworkInterfacesImpl+0xf7f)[0x96887887]
> /home/vmfarm/chope/jdk/jre/bin/default/libj9vm26.so[0xb7bc3a73]
> /home/vmfarm/chope/jdk/jre/bin/default/libj9vm26.so[0xb7bbe345]
> /home/vmfarm/chope/jdk/jre/bin/default/libj9vm26.so[0xb7bc02f5]
> /home/vmfarm/chope/jdk/jre/bin/default/libj9prt26.so[0xb7c4fe74]
> /home/vmfarm/chope/jdk/jre/bin/default/libj9vm26.so[0xb7bbe577]
> /home/vmfarm/chope/jdk/jre/bin/default/libj9vm26.so[0xb7bbe9a3]
> /home/vmfarm/chope/jdk/jre/bin/default/libj9vm26.so[0xb7bbd7a5]
> /home/vmfarm/chope/jdk/jre/bin/java[0x804b3a1]
> /home/vmfarm/chope/jdk/jre/bin/java[0x804a057]
> /home/vmfarm/chope/jdk/jre/bin/java[0x80494f5]
> /home/vmfarm/chope/jdk/jre/bin/java[0x804bd2b]
> /lib/libc.so.6(__libc_start_main+0xdc)[0xb7e0189c]
> /home/vmfarm/chope/jdk/jre/bin/java[0x8048b01]

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message