Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
-
Linux x86-32 running Ubuntu 10.04
-
Patch Available
-
Moderate
Description
I see a glibc running the org.apache.harmony.luni.tests.java.lang.RuntimeTest on Ubuntu 10.04:
-
-
- glibc detected *** /federatedBuild/target/hdk/jdk/jre/bin/java: munmap_chunk(): invalid pointer: 0x00feb3de ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(+0x6b591)[0x753591]
/lib/tls/i686/cmov/libc.so.6(+0x6c80e)[0x75480e]
/federatedBuild/target/hdk/jdk/jre/bin/default/libharmonyvm.so(Java_java_lang_Runtime_00024SubProcess_createProcess0+0x7f2)[0xfeb2a2]
[0x434368e]
[0x0]
======= Memory map: ========
...
- glibc detected *** /federatedBuild/target/hdk/jdk/jre/bin/java: munmap_chunk(): invalid pointer: 0x00feb3de ***
-
The problem is occurring when freeing a string array, which is being initialised using:
char *newArgv[lenargv+2];
newArgv[lenargv+1] = (char *)0;
the free throws a glibc when freeing the null string in the array.