Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 71937 invoked from network); 24 Nov 2006 16:18:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Nov 2006 16:18:03 -0000 Received: (qmail 94820 invoked by uid 500); 24 Nov 2006 16:18:11 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 94467 invoked by uid 500); 24 Nov 2006 16:18:09 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 94458 invoked by uid 99); 24 Nov 2006 16:18:09 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Nov 2006 08:18:09 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of t.p.ellison@gmail.com designates 66.249.92.173 as permitted sender) Received: from [66.249.92.173] (HELO ug-out-1314.google.com) (66.249.92.173) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Nov 2006 08:17:56 -0800 Received: by ug-out-1314.google.com with SMTP id z36so540376uge for ; Fri, 24 Nov 2006 08:17:34 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; b=VUoEuziLGMtmsH7mVQBUO8pEgy2z4TJ97btWChrmEczbgYVzUFzg612EpeT9jol+QTLBCKnmgCSAIUzVzIwv8aWaz0XyYIAtkDsRiqLveKcZ1Al0D450xgD3MEa2GQ02zfv7brNXG3AgLL5DFSAssH+2MQAkph9XAMvWLRlP5zw= Received: by 10.67.117.2 with SMTP id u2mr7198305ugm.1164385054698; Fri, 24 Nov 2006 08:17:34 -0800 (PST) Received: from ?192.168.0.6? ( [86.111.176.100]) by mx.google.com with ESMTP id 72sm13715072ugb.2006.11.24.08.17.33; Fri, 24 Nov 2006 08:17:34 -0800 (PST) Message-ID: <45671B19.8090104@gmail.com> Date: Fri, 24 Nov 2006 16:17:29 +0000 From: Tim Ellison User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: dev@harmony.apache.org Subject: Re: [classlib][awt] Test failure References: <4565DB0D.6050602@gmail.com> <26c14c2a0611240727v26026917wf0bbae5e3455432a@mail.gmail.com> In-Reply-To: <26c14c2a0611240727v26026917wf0bbae5e3455432a@mail.gmail.com> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Oleg Khaschansky wrote: > I'd suggest to install libxmu. Surely we can do better than GPF in such circumstances :-) Where should I modify the code to return gracefully from the native if the function is not found (bearing in mind the warning in the source file). Regards, Tim > On 11/23/06, Tim Ellison wrote: >> It looks like the following code (taken from [1]) doesn't allow for a >> function address not being found. >> >> int (* p_nbridge_XmuLookupStandardColormap) (void *, int, long, int, >> long, int, int) = NULL; >> >> JNIEXPORT jint JNICALL >> Java_org_apache_harmony_awt_nativebridge_linux_X11_XmuLookupStandardColormap( >> >> JNIEnv *env, jobject self, jlong dpy, jint screen, jlong visualid, jint >> depth, jlong property, jint replace, jint retain) { >> if (p_nbridge_XmuLookupStandardColormap == NULL) { >> p_nbridge_XmuLookupStandardColormap = (int (*) (void *, int, >> long, int, long, int, int)) FindFunction(libXmu, >> "XmuLookupStandardColormap"); >> } >> return (jint) (* p_nbridge_XmuLookupStandardColormap)((void *) dpy, >> (int) screen, (long) visualid, (int) depth, (long) property, (int) >> replace, (int) retain); >> } >> >> >> which I'm guessing is the cause of the recurrent build failure on the >> build machine (latest classlib + IBM VM) ... >> >> >> > [exec] [junit] Type=Segmentation error vmState=0x00040000 >> > [exec] [junit] J9Generic_Signal_Number=00000004 >> Signal_Number=0000000b Error_Value=00000000 Signal_Code=00000001 >> > [exec] [junit] Handler1=402504A4 Handler2=401FD343 >> InaccessibleAddress=00000000 >> > [exec] [junit] EDI=0816DA90 ESI=0000001B EAX=BB501CA4 >> EBX=BB501B38 >> > [exec] [junit] ECX=00000000 EDX=081C4C18 >> > [exec] [junit] EIP=00000000 ES=0000007B DS=C010007B >> ESP=BFFFD538 >> > [exec] [junit] EFlags=00010282 CS=00000073 SS=0000007B >> EBP=BFFFD584 >> > [exec] [junit] Target=2_30_20060727_07300_lHdSMR (Linux >> 2.6.8-3-686-smp) >> > [exec] [junit] CPU=x86 (8 logical CPUs) (0xdcc94000 RAM) >> >> >> >> > [exec] [junit] Thread: main (priority 5) (LOCATION OF ERROR) >> > [exec] [junit] NATIVE >> org/apache/harmony/awt/nativebridge/linux/X11.XmuLookupStandardColormap(JIJIJII)I >> >> > [exec] [junit] 00000080 >> org/apache/harmony/awt/gl/linux/XGraphicsConfiguration.obtainRGBColorMap()J >> >> > [exec] [junit] 00000015 >> org/apache/harmony/awt/gl/linux/XGraphicsConfiguration.(Lorg/apache/harmony/awt/gl/linux/XGraphicsDevice;Lorg/apache/harmony/awt/nativebridge/linux/X11$XVisualInfo;)V >> >> > [exec] [junit] 000000a5 >> org/apache/harmony/awt/gl/linux/XGraphicsDevice.createConfigs()V >> > [exec] [junit] 00000008 >> org/apache/harmony/awt/gl/linux/XGraphicsDevice.getConfigs()[Lorg/apache/harmony/awt/gl/linux/XGraphicsConfiguration; >> >> > [exec] [junit] 00000001 >> org/apache/harmony/awt/gl/linux/XGraphicsDevice.getDefaultConfiguration()Ljava/awt/GraphicsConfiguration; >> >> > [exec] [junit] 0000000f >> java/awt/Window.getGraphicsConfiguration(Ljava/awt/GraphicsConfiguration;)Ljava/awt/GraphicsConfiguration; >> >> > [exec] [junit] 0000007a >> java/awt/Window.(Ljava/awt/Window;Ljava/awt/GraphicsConfiguration;)V >> >> > [exec] [junit] 00000003 >> java/awt/Frame.(Ljava/lang/String;Ljava/awt/GraphicsConfiguration;)V >> >> > [exec] [junit] 00000003 >> java/awt/Frame.(Ljava/lang/String;)V >> > [exec] [junit] 00000003 java/awt/Frame.()V >> > [exec] [junit] 00000009 java/awt/Graphics2DTest.setUp()V >> >> >> Not sure what has changed to cause this failure. The file [1] says >> /* DO NOT EDIT THIS FILE - it is based on X11 headers and was >> autogenerated by nativebridge tool */ >> >> so I'm guessing I can't fix it up there. suggestions? >> >> >> [1] >> http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/x11wrapper/linux/org_apache_harmony_awt_nativebridge_linux_X11.cpp?revision=476395&view=markup >> >> >> Regards, >> Tim >> >> -- >> >> Tim Ellison (t.p.ellison@gmail.com) >> IBM Java technology centre, UK. >> > -- Tim Ellison (t.p.ellison@gmail.com) IBM Java technology centre, UK.