harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gregory Shimansky (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2006) [drlvm + classlib] Wrong exit code in case of uncaught exception
Date Wed, 08 Nov 2006 13:10:52 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-2006?page=comments#action_12448131 ] 
            
Gregory Shimansky commented on HARMONY-2006:
--------------------------------------------

I've reproduced the same hang up on ubuntu. Thread stacks look like this:

  2 Thread -1214694480 (LWP 19327)  0xffffe410 in __kernel_vsyscall ()
  1 Thread -1214690752 (LWP 19322)  0xffffe410 in __kernel_vsyscall ()

THREAD 1:
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7ad7c76 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb7b1abaa in condvar_wait_impl (cond=0x805d0c0, mutex=0x805d090, ms=0, 
    nano=0, interruptable=0)
    at /nfs/ims/proj/drl/mrt1/users/gregory/Harmony/enhanced/drlvm/trunk/vm/thread/src/thread_native_condvar.c:69
#3  0xb7b1b1a3 in monitor_wait_impl (mon_ptr=0x805d058, ms=0, nano=0, 
    interruptable=0)
    at /nfs/ims/proj/drl/mrt1/users/gregory/Harmony/enhanced/drlvm/trunk/vm/thread/src/thread_native_fat_monitor.c:208
#4  0xb7b1b24f in hythread_monitor_wait (mon_ptr=0x805d058)
    at /nfs/ims/proj/drl/mrt1/users/gregory/Harmony/enhanced/drlvm/trunk/vm/thread/src/thread_native_fat_monitor.c:237
#5  0xb7f0de09 in sig_full_shutdown ()
   from /nfs/ims/proj/drl/mrt1/users/gregory/Harmony/enhanced/drlvm/trunk/build/lnx_ia32_gcc_debug/deploy/jre/bin/libhyprt.so
#6  0xb7f0a89d in hyport_shutdown_library ()
   from /nfs/ims/proj/drl/mrt1/users/gregory/Harmony/enhanced/drlvm/trunk/build/lnx_ia32_gcc_debug/deploy/jre/bin/libhyprt.so

THREAD 2:
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7ada2ae in __lll_mutex_lock_wait ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb7ad6fc7 in _L_mutex_lock_159 () from /lib/tls/i686/cmov/libpthread.so.0
#3  0x00000001 in ?? ()
#4  0x00000000 in ?? ()


> [drlvm + classlib] Wrong exit code in case of uncaught exception
> ----------------------------------------------------------------
>
>                 Key: HARMONY-2006
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2006
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: All
>            Reporter: Evgueni Brevnov
>         Assigned To: Gregory Shimansky
>            Priority: Minor
>         Attachments: classlib_exit_code.patch, classlib_exit_code.patch, vm_exit_code.patch
>
>
>   Tony Wu  <wuyuehao@gmail.com> to harmony-dev 
>   More options   10:03 am (9 hours ago) 
> Consider this class,
> public class TestExeReturn {
>    public static void main(String[] args) throws Exception {
>        throw new Exception();
>    }
> }
> when we run "java TestExeReturn" and "echo %errorlevel%", we got 1 of
> RI, -1 of DRLVM and 0 for IBMVM.
> a testcase of apache ant failed for this issue.
> --
> Tony Wu
> China Software Development Lab, IBM
> I've fixed the above problem in DRLVM. That also require fixing classlib's code. Namely,
I have slightly modified the launcher. Two separate patches were created. One for DRLVM another
for classlib. Tests passed on Win2003, SUSE9 with both patches applied.
> Thanks
> Evgueni

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message