Re: [Sablevm-developer] Runaway memory usage
Brought to you by:
egagnon
From: Archie C. <ar...@de...> - 2002-12-14 01:15:07
|
Archie Cobbs wrote: > > Note the absurd 'frame_size=178286532' value being passed to > > _svmf_ensure_stack_capacity() (because of the first bug, it actually > > tries to allocate that much memory, but nevermind that for a minute)... > > This value results from a corrupted 'method' structure. It appears > > that the 'method->frame_info' pointer is bogus: > > Further progress report on this... Now I've gotten this: $ sablevm Foo Test Transforming Test... assertion "_svmf_is_assignable_from (env, instance->vtable->type, _svmf_cast_type_class (method->class_info))" failed: file "instructions_preparation_direct_threaded.c", line 17953 Abort(core dumped) Wondering if this is a FreeBSD problem, I tried running on Linux: $ cat > .gdbinit file /usr/local/bin/sablevm-debug set args --verbose-gc soot.Main --jimple Test run break _svmf_error_OutOfMemoryError break _svmf_error_OutOfMemoryError_msg $ gdb GNU gdb 5.0rh-5 Red Hat Linux 7.1 Copyright 2001 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux". No ssh-agent found. [New Thread 1024 (LWP 2869)] [verbose gc: allocating fixed size heap (2 * 16777216 bytes)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1024 (LWP 2869)] 0x400351e2 in _svmf_invoke_native_nonstatic (env=0x804e2a0) at native.c:1293 1293 params[0].reference = *obj; Breakpoint 1 at 0x4001e622: file error_throwing.c, line 2501. Breakpoint 2 at 0x4001e75a: file error_throwing.c, line 2566. (gdb) c Continuing. Cannot find user-level thread for LWP 2869: generic error (gdb) c Continuing. Cannot find thread 1024: generic error $ sablevm-debug --verbose-gc soot.Main --jimple Test [verbose gc: allocating fixed size heap (2 * 16777216 bytes)] Segmentation fault $ uname -a Linux foobar5.packetdesign.com 2.4.18 #4 SMP Mon Oct 7 09:52:52 PDT 2002 i686 unknown Note: this is a 2-CPU machine. -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com |