[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 98966] New: valgrinding the JVM fails with a sanity check
From:       Tom Hughes <thh () cyberscience ! com>
Date:       2005-02-09 20:01:23
Message-ID: 20050209210118.98966.thh () cyberscience ! com
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
http://bugs.kde.org/show_bug.cgi?id=98966         
           Summary: valgrinding the JVM fails with a sanity check assertion
           Product: valgrind
           Version: 2.3 CVS
          Platform: Unlisted Binaries
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: jseward acm org
        ReportedBy: thh cyberscience com


Running the JVM under valgrind fails with a sanity check assertion. The command
used was:

  valgrind --tool=memcheck --trace-children=yes /usr/java/jdk1.5.0/bin/java

the output produced is:

==8143== Memcheck, a memory error detector for x86-linux.
==8143== Copyright (C) 2002-2004, and GNU GPL'd, by Julian Seward et al.
==8143== Using valgrind-2.3.0.CVS, a program supervision framework for x86-linux.
==8143== Copyright (C) 2000-2004, and GNU GPL'd, by Julian Seward et al.
==8143== For more details, rerun with: -v
==8143== 
==8143== Memcheck, a memory error detector for x86-linux.
==8143== Copyright (C) 2002-2004, and GNU GPL'd, by Julian Seward et al.
==8143== Using valgrind-2.3.0.CVS, a program supervision framework for x86-linux.
==8143== Copyright (C) 2000-2004, and GNU GPL'd, by Julian Seward et al.
==8143== For more details, rerun with: -v
==8143== 
==8143== Invalid write of size 1
==8143==    at 0x1BDC19BA: _expand_stack_to(unsigned char*) (in
/usr/java/jdk1.5.0/jre/lib/i386/client/libjvm.so)
==8143==    by 0x1BDBD99A: os::Linux::manually_expand_stack(JavaThread*,
unsigned char*) (in /usr/java/jdk1.5.0/jre/lib/i386/client/libjvm.so)
==8143==    by 0x1BDBDDCA: os::create_attached_thread(Thread*) (in
/usr/java/jdk1.5.0/jre/lib/i386/client/libjvm.so)
==8143==    by 0x1BDBDC7B: os::create_main_thread(Thread*) (in
/usr/java/jdk1.5.0/jre/lib/i386/client/libjvm.so)
==8143==  Address 0x52A02FF0 is on thread 1's stack
==8143== Warning: set address range perms: large range 134217728, a 0, v 0
==8143== Warning: set address range perms: large range 134217728, a 1, v 1
==8143== Warning: set address range perms: large range 134283264, a 0, v 0
INV 2 FAILED: seg 0x21199000-0x21219000 crosses boundaries of mapping
0x21199000-0x2119A000
INV 1 FAILED: seg -0x21199000 does not end at mapping 0x21219000-0x21199000 end
INV 1 FAILED: mapping 0x2119A000-0x21219000 (prot=rwx file=(null)) is before
0x21220000-0x21860000
INV 2 FAILED: seg 0x21220000-0x21860000 crosses boundaries of mapping
0x21220000-0x212C0000
INV 1 FAILED: seg -0x21220000 does not end at mapping 0x21860000-0x21220000 end
INV 1 FAILED: mapping 0x212C0000-0x21700000 (prot=rwx file=(null)) is before
0x21860000-0x25A20000
INV 1 FAILED: mapping 0x21700000-0x21860000 (prot=rwx file=(null)) is before
0x21860000-0x25A20000
INV 2 FAILED: seg 0x21860000-0x25A20000 crosses boundaries of mapping
0x21860000-0x25220000
INV 1 FAILED: seg -0x21860000 does not end at mapping 0x25A20000-0x21860000 end
INV 1 FAILED: mapping 0x25220000-0x25A20000 (prot=rwx file=(null)) is before
0x25A20000-0x29220000
INV 2 FAILED: seg 0x29221000-0x29225000 crosses boundaries of mapping
0x29221000-0x29222000
INV 1 FAILED: seg -0x29221000 does not end at mapping 0x29225000-0x29221000 end
INV 1 FAILED: mapping 0x29222000-0x29223000 (prot=rwx file=(null)) is before
0x29225000-0x29245000
INV 1 FAILED: mapping 0x29223000-0x29225000 (prot=rwx file=(null)) is before
0x29225000-0x29245000
INV 2 FAILED: seg 0x29225000-0x29245000 crosses boundaries of mapping
0x29225000-0x29241000
INV 1 FAILED: seg -0x29225000 does not end at mapping 0x29245000-0x29225000 end
INV 1 FAILED: mapping 0x29241000-0x29245000 (prot=rwx file=(null)) is before
0x29245000-0x29262000
INV 2 FAILED: seg 0x29245000-0x29262000 crosses boundaries of mapping
0x29245000-0x29261000
INV 1 FAILED: seg -0x29245000 does not end at mapping 0x29262000-0x29245000 end
INV 1 FAILED: mapping 0x29261000-0x29262000 (prot=rwx file=(null)) is before
0x29263000-0x29281000
INV 2 FAILED: seg 0x29263000-0x29281000 crosses boundaries of mapping
0x29263000-0x29264000
INV 1 FAILED: seg -0x29263000 does not end at mapping 0x29281000-0x29263000 end
INV 1 FAILED: mapping 0x29264000-0x29281000 (prot=rwx file=(null)) is before
0x29282000-0x292A3000
INV 2 FAILED: seg 0x29282000-0x292A3000 crosses boundaries of mapping
0x29282000-0x29287000
INV 1 FAILED: seg -0x29282000 does not end at mapping 0x292A3000-0x29282000 end
INV 1 FAILED: mapping 0x29287000-0x292A3000 (prot=rwx file=(null)) is before
0x529FF000-0x52A02000

valgrind: vg_main.c:2248 (vgPlain_sanity_check_general): Assertion
`vgPlain_sanity_check_memory()' failed.
==8143==    at 0xB003523F: vgPlain_skin_assert_fail (vg_mylibc.c:1168)
==8143==    by 0xB003523E: assert_fail (vg_mylibc.c:1164)
==8143==    by 0xB0035299: vgPlain_core_assert_fail (vg_mylibc.c:1175)
==8143==    by 0xB002EA69: vgPlain_sanity_check_general (vg_main.c:2248)

sched status:
  running_tid=1

Thread 1: status = VgTs_Runnable
==8143==    at 0x1B905304: strlen (mac_replace_strmem.c:189)
==8143==    by 0x1BC58ABC: ClassLoader::load_classfile(symbolHandle, Thread*)
(in /usr/java/jdk1.5.0/jre/lib/i386/client/libjvm.so)
==8143==    by 0x1BE0044E: SystemDictionary::load_instance_class(symbolHandle,
Handle, Thread*) (in /usr/java/jdk1.5.0/jre/lib/i386/client/libjvm.so)
==8143==    by 0x1BDFF60A:
SystemDictionary::resolve_instance_class_or_null(symbolHandle, Handle, Handle,
Thread*) (in /usr/java/jdk1.5.0/jre/lib/i386/client/libjvm.so)


Note: see also the FAQ.txt in the source distribution.
It contains workarounds to several common problems.

If that doesn't help, please report this bug to: valgrind.kde.org

In the bug report, send all the above text, the valgrind
version, and what Linux distro you are using.  Thanks.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic