[Bug 498] New: Shark sigsegv in new exception handler code regression

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Fri May 21 07:43:27 PDT 2010


http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=498

           Summary: Shark sigsegv in new exception handler code regression
           Product: IcedTea
           Version: 6-hg
          Platform: all
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Shark
        AssignedTo: unassigned at icedtea.classpath.org
        ReportedBy: xerxes at zafena.se


testcase:
cd openjdk/jdk/test/java/nio/channels/Selector
javac RegAfterPreClose.java
java RegAfterPreClose

this are a regression introduced with:
http://icedtea.classpath.org/hg/icedtea6/rev/c8cdcd3a1f01

xerxes at xerxes-J464X:~/icedtea6-shark/openjdk/jdk/test/java/nio/channels/Selector$
gdb -args
/home/xerxes/icedtea6-shark/openjdk/build/linux-i586/j2sdk-image/bin/java
RegAfterPreClose
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from
/home/xerxes/icedtea6-shark/openjdk/build/linux-i586/j2sdk-image/bin/java...done.
(gdb) run
Starting program:
/home/xerxes/icedtea6-shark/openjdk/build/linux-i586/j2sdk-image/bin/java
RegAfterPreClose
[Thread debugging using libthread_db enabled]
process 22827 is executing new program:
/home/xerxes/icedtea6-shark/openjdk/build/linux-i586/j2sdk-image/bin/java
[Thread debugging using libthread_db enabled]
[New Thread 0xb7fe5b70 (LWP 23484)]
[New Thread 0x91a2cb70 (LWP 23485)]
[New Thread 0x919abb70 (LWP 23486)]
[New Thread 0x916ffb70 (LWP 23487)]
[New Thread 0x9153fb70 (LWP 23496)]
[New Thread 0x913beb70 (LWP 23497)]
[New Thread 0x9133db70 (LWP 23498)]
[New Thread 0x911bcb70 (LWP 23499)]
[New Thread 0x9113bb70 (LWP 23507)]
[New Thread 0x90fbab70 (LWP 23589)]
[New Thread 0x90e39b70 (LWP 23592)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x913beb70 (LWP 23497)]
SharkTopLevelBlock::handle_exception (this=0x81233b0, exception=0x8474994,
action=<value optimized out>)
    at
/home/xerxes/icedtea6-shark/openjdk/hotspot/src/share/vm/shark/sharkTopLevelBlock.cpp:532
532           builder()->CreateBr(handler->entry_block());
(gdb) bt
#0  SharkTopLevelBlock::handle_exception (this=0x81233b0, exception=0x8474994,
action=<value optimized out>)
    at
/home/xerxes/icedtea6-shark/openjdk/hotspot/src/share/vm/shark/sharkTopLevelBlock.cpp:532
#1  0x005a4cb7 in SharkTopLevelBlock::zero_check_value (this=0x81233b0,
value=0x917117b8, continue_block=0x84c4448)
    at
/home/xerxes/icedtea6-shark/openjdk/hotspot/src/share/vm/shark/sharkTopLevelBlock.cpp:383
#2  0x005a4fa0 in SharkTopLevelBlock::do_zero_check (this=0x81233b0,
value=0x917117b8)
    at
/home/xerxes/icedtea6-shark/openjdk/hotspot/src/share/vm/shark/sharkTopLevelBlock.cpp:309
#3  0x005a94ec in SharkBlock::zero_check (this=0x81233b0)
    at
/home/xerxes/icedtea6-shark/openjdk/hotspot/src/share/vm/shark/sharkBlock.hpp:174
#4  SharkBlock::check_null (this=0x81233b0) at
/home/xerxes/icedtea6-shark/openjdk/hotspot/src/share/vm/shark/sharkBlock.hpp:166
#5  SharkTopLevelBlock::do_call (this=0x81233b0)
    at
/home/xerxes/icedtea6-shark/openjdk/hotspot/src/share/vm/shark/sharkTopLevelBlock.cpp:1260
#6  0x0058146b in SharkBlock::parse_bytecode (this=0x81233b0, start=218,
limit=236)
    at
/home/xerxes/icedtea6-shark/openjdk/hotspot/src/share/vm/shark/sharkBlock.cpp:828
#7  0x005a12f1 in SharkTopLevelBlock::emit_IR (this=0x81233b0)
    at
/home/xerxes/icedtea6-shark/openjdk/hotspot/src/share/vm/shark/sharkTopLevelBlock.cpp:283
#8  0x0058fc6e in SharkFunction::initialize (this=0x913bdcb0, name=0x8107130
"sun.nio.ch.ServerSocketChannelImpl::accept")
    at
/home/xerxes/icedtea6-shark/openjdk/hotspot/src/share/vm/shark/sharkFunction.cpp:122
#9  0x0058c8ff in SharkFunction (this=0x80d5e00, env=0x913bddec,
target=0x810a368, entry_bci=-1)
    at
/home/xerxes/icedtea6-shark/openjdk/hotspot/src/share/vm/shark/sharkFunction.hpp:46
#10 SharkFunction::build (this=0x80d5e00, env=0x913bddec, target=0x810a368,
entry_bci=-1)
    at
/home/xerxes/icedtea6-shark/openjdk/hotspot/src/share/vm/shark/sharkFunction.hpp:37
#11 SharkCompiler::compile_method (this=0x80d5e00, env=0x913bddec,
target=0x810a368, entry_bci=-1)
    at
/home/xerxes/icedtea6-shark/openjdk/hotspot/src/share/vm/shark/sharkCompiler.cpp:166
#12 0x00381797 in CompileBroker::invoke_compiler_on_method (task=0x9170f128)
    at
/home/xerxes/icedtea6-shark/openjdk/hotspot/src/share/vm/compiler/compileBroker.cpp:1551
#13 0x00381e5e in CompileBroker::compiler_thread_loop ()
    at
/home/xerxes/icedtea6-shark/openjdk/hotspot/src/share/vm/compiler/compileBroker.cpp:1397
#14 0x005c9517 in compiler_thread_entry (thread=0x8106ed8,
__the_thread__=0x8106ed8)
    at
/home/xerxes/icedtea6-shark/openjdk/hotspot/src/share/vm/runtime/thread.cpp:2745
#15 0x005ce186 in JavaThread::thread_main_inner (this=0x8106ed8)
    at
/home/xerxes/icedtea6-shark/openjdk/hotspot/src/share/vm/runtime/thread.cpp:1381
#16 0x005ce250 in JavaThread::run (this=0x8106ed8)
    at
/home/xerxes/icedtea6-shark/openjdk/hotspot/src/share/vm/runtime/thread.cpp:1365
#17 0x0052c3af in java_start (thread=0x8106ed8) at
/home/xerxes/icedtea6-shark/openjdk/hotspot/src/os/linux/vm/os_linux.cpp:785
#18 0x0014796e in start_thread (arg=0x913beb70) at pthread_create.c:300
#19 0x00232a0e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
(gdb) 
(gdb) list
527         // Install the catch-all handler, if present
528         if (has_catch_all) {
529           SharkTopLevelBlock* handler = this->exception(num_options);
530           assert(handler != NULL, "catch-all handler cannot be unloaded");
531     
532           builder()->CreateBr(handler->entry_block());
533           handler->add_incoming(current_state());
534           return;
535         }
536       }
(gdb) p handler
$1 = (SharkTopLevelBlock *) 0x0


-- 
Configure bugmail: http://icedtea.classpath.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the distro-pkg-dev mailing list