Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-6674

[classlib][luni] glibc running org.apache.harmony.luni.tests.java.lang.RuntimeTest on linux

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Classlib
    • 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: ========
            ...

      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.

      Attachments

        1. 6674.patch
          5 kB
          Catherine Hope

        Activity

          People

            Unassigned Unassigned
            chope Catherine Hope
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: