[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Possible Problem with JavaHL in 1.3.0 RC2

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2005-11-02 17:42:48 CET

Mark Phippard <markp@softlanding.com> writes:

> Stack: [0xaff57000,0xaffd8000), sp=0xaffd61e8, free space=508k
> Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
> C [libsvnjavahl-1.so.0.0.0+0xf2b1] _ZN7JNIUtil21isJavaExceptionThrownEv+0x21
> C [libsvnjavahl-1.so.0.0.0+0x10afc] _ZN7Notify28onNotifyEPK15svn_wc_notify_tP10apr_pool_t+0x32c
> C [libsvnjavahl-1.so.0.0.0+0x107c1] _ZN7Notify26notifyEPvPK15svn_wc_notify_tP10apr_pool_t+0x31

$ echo _ZN7JNIUtil21isJavaExceptionThrownEv | c++filt
JNIUtil::isJavaExceptionThrown()

$ echo _ZN7Notify28onNotifyEPK15svn_wc_notify_tP10apr_pool_t | c++filt
Notify2::onNotify(svn_wc_notify_t const*, apr_pool_t*)

bool JNIUtil::isJavaExceptionThrown()
{
    JNIEnv *env = getEnv();
    if(env->ExceptionCheck())
    {
        // retrieving the exception removes it
        // so we rethrow it here
        jthrowable exp = env->ExceptionOccurred();
        env->ExceptionDescribe();
        env->Throw(exp);
        env->DeleteLocalRef(exp);
        setExceptionThrown();
        return true;
    }
    return false;
}

Perhaps getEnv is returning NULL?

The static bool stuff in JNIUtil::JNIInit looks a bit dodgy.

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Nov 2 17:44:02 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.