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

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Classlib
    • Labels:
      None
    • Environment:
      Linux x86-32 running Ubuntu 10.04
    • Patch Info:
      Patch Available
    • Estimated Complexity:
      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

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

              Dates

              • Created:
                Updated: