Date: Sat, 08 Feb 2003 19:05:44 +0900 (JST) From: Munehiro Matsuda <haro@h4.dion.ne.jp> To: hwh@gddsn.org.cn Cc: java@FreeBSD.ORG, java@jp.freebsd.org Subject: Re: JDK 1.4.1 patchset 2 Message-ID: <20030208.190544.74756564.haro@h4.dion.ne.jp> In-Reply-To: <3E436383.4080708@gddsn.org.cn> References: <3E436383.4080708@gddsn.org.cn>
next in thread | previous in thread | raw e-mail | index | archive | help
----Next_Part(Sat_Feb__8_19:05:44_2003_364)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello FreeBSD-java users, From: Huang wen hui <hwh@gddsn.org.cn> Date: Fri, 07 Feb 2003 15:42:59 +0800 ::The last problem is about jdk under chinese locale. it does not occur ::under -STABLE. jdk1.4.0-p1 and jdk1.3.1-p7 ::also have this problem. I use zh_CN.EUC locale+ XIM server(chinput), ::each GUI app will coredump: :: ::An unexpected exception has been detected in native code outside the VM. ::Unexpected Signal : 10 occurred at PC=0x2B01C09D ::Function=XtWidgetToApplicationContext+0x1D ::Library=/usr/X11R6/lib/libXt.so.6 :: ::Current Java thread: ::at sun.awt.motif.MToolkit.loadSystemColors(Native Method) ::at java.awt.SystemColor.updateSystemColors(SystemColor.java:417) <snip> I also get the same error when using: jdk1.3.1-p7 + XIM(kinput2) + 5-current + ja_JP.SJIS locale Same error happens wether I use classicVM/green_thread or hotspot. It seems that, error is related with XIM. FYI, I have attached a trace output with gdb. From the look of it, free()'ed memory does not get null-cleared and being tried to get deallocated again. ::If I do this patch, I know it should not, but the problem is gone. As a work around, I set my /etc/malloc.conf to 'aj', that does make the error go away. hope this helps, Haro =------------------------------------------------------------------------------ _ _ Munehiro (haro) Matsuda -|- /_\ |_|_| Business Incubation Dept., Kubota Corp. /|\ |_| |_|_| 1-3 Nihonbashi-Muromachi 3-Chome Chuo-ku Tokyo 103-8310, Japan Tel: +81-3-3245-3318 Fax: +81-3-3245-3315 Email: haro@kgt.co.jp ----Next_Part(Sat_Feb__8_19:05:44_2003_364)-- Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline; filename="gdb_java_typescript" GNU gdb 5.2.1 (FreeBSD) Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and yo= u are welcome to change it and/or distribute copies of it under certain condi= tions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for deta= ils. This GDB was configured as "i386-undermydesk-freebsd"... Core was generated by `java_g'. Program terminated with signal 6, Aborted. Reading symbols from /usr/local/jdk1.3.1/jre/lib/i386/native_threads/li= bhpi_g.so...done. Loaded symbols for /usr/local/jdk1.3.1/jre/lib/i386/native_threads/libh= pi_g.so Reading symbols from /usr/lib/libc_r.so.5...done. Loaded symbols for /usr/lib/libc_r.so.5 Reading symbols from /usr/lib/libc.so.5...done. Loaded symbols for /usr/lib/libc.so.5 Reading symbols from /usr/lib/libm.so.2...done. Loaded symbols for /usr/lib/libm.so.2 Reading symbols from /usr/local/jdk1.3.1/jre/lib/i386/hotspot/libjvm_g.= so... done. Loaded symbols for /usr/local/jdk1.3.1/jre/lib/i386/hotspot/libjvm_g.so= Reading symbols from /usr/lib/libstdc++.so.4...done. Loaded symbols for /usr/lib/libstdc++.so.4 Reading symbols from /usr/local/jdk1.3.1/jre/lib/i386/libverify_g.so...= done. Loaded symbols for /usr/local/jdk1.3.1/jre/lib/i386/libverify_g.so Reading symbols from /usr/local/jdk1.3.1/jre/lib/i386/libjava_g.so...do= ne. Loaded symbols for /usr/local/jdk1.3.1/jre/lib/i386/libjava_g.so Reading symbols from /usr/local/jdk1.3.1/jre/lib/i386/libzip_g.so...don= e. Loaded symbols for /usr/local/jdk1.3.1/jre/lib/i386/libzip_g.so Reading symbols from /usr/local/jdk1.3.1/jre/lib/i386/libawt_g.so...don= e. Loaded symbols for /usr/local/jdk1.3.1/jre/lib/i386/libawt_g.so Reading symbols from /usr/local/jdk1.3.1/jre/lib/i386/libmlib_image_g.s= o... done. Loaded symbols for /usr/local/jdk1.3.1/jre/lib/i386/libmlib_image_g.so Reading symbols from /usr/X11R6/lib/libXm.so.3...done. Loaded symbols for /usr/X11R6/lib/libXm.so.3 Reading symbols from /usr/X11R6/lib/libXp.so.6...done. Loaded symbols for /usr/X11R6/lib/libXp.so.6 Reading symbols from /usr/X11R6/lib/libXt.so.6...done. Loaded symbols for /usr/X11R6/lib/libXt.so.6 Reading symbols from /usr/X11R6/lib/libXext.so.6...done. Loaded symbols for /usr/X11R6/lib/libXext.so.6 Reading symbols from /usr/X11R6/lib/libSM.so.6...done. Loaded symbols for /usr/X11R6/lib/libSM.so.6 Reading symbols from /usr/X11R6/lib/libICE.so.6...done. Loaded symbols for /usr/X11R6/lib/libICE.so.6 Reading symbols from /usr/X11R6/lib/libXtst.so.6...done. Loaded symbols for /usr/X11R6/lib/libXtst.so.6 Reading symbols from /usr/X11R6/lib/libX11.so.6...done. Loaded symbols for /usr/X11R6/lib/libX11.so.6 Reading symbols from /usr/local/jdk1.3.1/jre/lib/i386/libfontmanager_g.= so... done. Loaded symbols for /usr/local/jdk1.3.1/jre/lib/i386/libfontmanager_g.so= Reading symbols from /usr/X11R6/lib/X11/locale/common/xlocale.so.2...do= ne. Loaded symbols for /usr/X11R6/lib/X11/locale/common/xlocale.so.2 Reading symbols from /usr/X11R6/lib/X11/locale/common/xlibi18n.so.2...d= one. Loaded symbols for /usr/X11R6/lib/X11/locale/common/xlibi18n.so.2 Reading symbols from /usr/X11R6/lib/X11/locale/common/xomGeneric.so.2..= .done. Loaded symbols for /usr/X11R6/lib/X11/locale/common/xomGeneric.so.2 Reading symbols from /usr/X11R6/lib/X11/locale/common/ximcp.so.2...done= .= Loaded symbols for /usr/X11R6/lib/X11/locale/common/ximcp.so.2 Reading symbols from /usr/libexec/ld-elf.so.1...done. Loaded symbols for /usr/libexec/ld-elf.so.1 #0 0x280e2663 in kill () from /usr/lib/libc.so.5 Breakpoint 1 at 0x2a0db8fe: file ../../../src/solaris/native/sun/awt/aw= t_MToolkit.c, line 1787. Breakpoint 2 at 0x2a4c5b14: file Destroy.c, line 333. Breakpoint 3 at 0x2a4c546d: file Destroy.c, line 99. Breakpoint 4 at 0x2a4c5564: file Destroy.c, line 130. Breakpoint 5 at 0x2a4c5744: file Destroy.c, line 192. Breakpoint 6 at 0x2a4c5a88: file Destroy.c, line 306. Breakpoint 7 at 0x2a4bcf97: file Callback.c, line 654. Breakpoint 8 at 0x2a39b954: file XmIm.c, line 842. Breakpoint 9 at 0x2a4e247a: file Shell.c, line 1674. (gdb) where #0 0x280e2663 in kill () from /usr/lib/libc.so.5 #1 0x281459dc in abort () from /usr/lib/libc.so.5 #2 0x283f429c in os::abort(long) (dump_core=3D1) at /home/tmp/usr/ports/java/jdk13.patched/work/hotspot1.3.1/src/os/= linux/vm/os_linux.cpp:1094 #3 0x283f0dcc in os::handle_unexpected_exception(Thread*, int, unsigne= d char*, void*) (thread=3D0x805e418, sig=3D10, = pc=3D0x2a4c712d "\017=B6@\024$\004\204=C0t\t\213FX=EB$\215t&", = extra_info=3D0xbfbfd7b0) at /home/tmp/usr/ports/java/jdk13.patched/work/hotspot1.3.1/src/sha= re/vm/runtime/os.cpp:829 #4 0x283f9567 in JVM_handle_solaris_signal (sig=3D10, info=3D0xbfbfd7b= 0, = ucVoid=3D0xbfbfd4f0, abort_if_unrecognized=3D1) at /home/tmp/usr/ports/java/jdk13.patched/work/hotspot1.3.1/src/os_= cpu/linux_i486/vm/os_linux_i486.cpp:730 #5 0x283f6455 in signalHandler (sig=3D0, info=3D0x0, ucVoid=3D0x0) at /home/tmp/usr/ports/java/jdk13.patched/work/hotspot1.3.1/src/os/= linux/vm/os_linux.cpp:2032 #6 0x28082ae1 in _thread_sig_handler () from /usr/lib/libc_r.so.5 #7 0x28082947 in _thread_sig_handler () from /usr/lib/libc_r.so.5 #8 <signal handler called> #9 0x2a4c712d in XtWidgetToApplicationContext (w=3D0x84da700) at Displ= ay.c:754 #10 0x2a4c5b1f in XtDestroyWidget (widget=3D0x84da700) at Destroy.c:333= #11 0x2a39b9b1 in _XmImFreeShellData (widget=3D0x84d4a00, data=3D0x84d1= cb8) at XmIm.c:865 #12 0x2a3a5261 in Destroy (wid=3D0x84d4a00) at VendorS.c:2728 #13 0x2a4c5669 in Phase2Destroy (widget=3D0x84d4a00) at Destroy.c:159 #14 0x2a4c543a in Recursive (widget=3D0x84d4a00, proc=3D0x2a4c5550 <Pha= se2Destroy>) at Destroy.c:93 #15 0x2a4c59ea in XtPhase2Destroy (widget=3D0x84d4a00) at Destroy.c:273= #16 0x2a4c5aec in _XtDoPhase2Destroy (app=3D0x83dd200, dispatch_level=3D= 0) at Destroy.c:320 #17 0x2a4c5c4f in XtDestroyWidget (widget=3D0x84d4a00) at Destroy.c:376= #18 0x2a0dbf49 in Java_sun_awt_motif_MToolkit_loadSystemColors (env=3D0= x805e4b0, = this=3D0xbfbfdb68, systemColors=3D0xbfbfdb64) at ../../../src/solaris/native/sun/awt/awt_MToolkit.c:1947 #19 0x080e01ac in ?? () #20 0x080dc519 in ?? () #21 0x080dc519 in ?? () #22 0x287145bd in StubRoutines::_code1 () from /usr/local/jdk1.3.1/jre/lib/i386/hotspot/libjvm_g.so #23 0x28301121 in JavaCalls::call_helper(JavaValue*, methodHandle*, Jav= aCallArguments*, Thread*) (result=3D0xbfbfdcd0, m=3D0x0, args=3D0xbfbfd= ce0, = __the_thread__=3D0x805e418) at stubRoutines.hpp:119 #24 0x28300b4d in JavaCalls::call(JavaValue*, methodHandle, JavaCallArg= uments*, Thread*) (result=3D0xbfbfdcd0, method=3D {<Handle> =3D {_handle =3D 0x8073a54}, <No data fields>}, args=3D= 0xbfbfdce0, = __the_thread__=3D0x805e418) at /home/tmp/usr/ports/java/jdk13.patched/work/hotspot1.3.1/src/sha= re/vm/runtime/javaCalls.cpp:287 #25 0x282d1679 in instanceKlass::call_class_initializer_impl(instanceKl= assHandle, Thread*) (this_oop=3D {<KlassHandle> =3D {<Handle> =3D {_handle =3D 0x8073a44}, <No= data fields>}, <No data fields>}, __the_thread__=3D0x805e418) at /home/tmp/usr/ports/java/jdk13.patched/work/hotspot1.3.1/src/sha= re/vm/oops/instanceKlass.cpp:514 #26 0x282d129d in instanceKlass::call_class_initializer(Thread*) ( this=3D0x47413128, __the_thread__=3D0x0) at handles.hpp:192 #27 0x282cf2c5 in instanceKlass::initialize_impl(instanceKlassHandle, T= hread*) (this_oop=3D {<KlassHandle> =3D {<Handle> =3D {_handle =3D 0x8073880}, <No= data fields>}, <No data fields>}, __the_thread__=3D0x805e418) at handl= es.hpp:192 #28 0x282ccbd8 in instanceKlass::initialize(Thread*) (this=3D0x8073880,= = __the_thread__=3D0x805e418) at /home/tmp/usr/ports/java/jdk13.patched/work/hotspot1.3.1/src/sha= re/vm/oops/instanceKlass.cpp:81 #29 0x283c1244 in LinkResolver::resolve_field(FieldAccessInfo&, constan= tPoolHandle, int, Bytecodes::Code, long, long, Thread*) (result=3D@0x0,= pool=3D {<Handle> =3D {_handle =3D 0x8073830}, <No data fields>}, index= =3D9984, = byte=3D-1077944296, check_only=3D0, update_pool=3D1, __the_thread__= =3D0x805e418) at handles.hpp:126 #30 0x283c092a in LinkResolver::resolve_field(FieldAccessInfo&, constan= tPoolHandle, int, Bytecodes::Code, long, Thread*) (result=3D@0x0, pool=3D= {<Handle> =3D {_handle =3D 0x0}, <No data fields>}, index=3D0, = byte=3D_nop, = check_only=3D0, __the_thread__=3D0x0) at /home/tmp/usr/ports/java/jdk13.patched/work/hotspot1.3.1/src/sha= re/vm/interpreter/linkResolver.cpp:264 #31 0x282ea798 in InterpreterRuntime::resolve_get_put(JavaThread*, Byte= codes::Code) (thread=3D0x805e418, bytecode=3D178) at interpreterRuntime= .hpp:34 #32 0x080e5ddb in ?? () #33 0x080dc519 in ?? () #34 0x080dc519 in ?? () #35 0x080dc56d in ?? () #36 0x080dc519 in ?? () #37 0x080dc519 in ?? () #38 0x080dc519 in ?? () #39 0x080dc519 in ?? () #40 0x080dc519 in ?? () #41 0x080dc519 in ?? () #42 0x080dc519 in ?? () #43 0x080dc519 in ?? () #44 0x080dc519 in ?? () #45 0x080dc519 in ?? () #46 0x080dc519 in ?? () #47 0x080dc519 in ?? () #48 0x080dc519 in ?? () #49 0x080dc56d in ?? () #50 0x080dc519 in ?? () #51 0x080dc519 in ?? () #52 0x080dc519 in ?? () #53 0x080dc519 in ?? () #54 0x287145bd in StubRoutines::_code1 () from /usr/local/jdk1.3.1/jre/lib/i386/hotspot/libjvm_g.so #55 0x28301121 in JavaCalls::call_helper(JavaValue*, methodHandle*, Jav= aCallArguments*, Thread*) (result=3D0xbfbfe810, m=3D0x0, args=3D0xbfbfe= 710, = __the_thread__=3D0x805e418) at stubRoutines.hpp:119 #56 0x28300b4d in JavaCalls::call(JavaValue*, methodHandle, JavaCallArg= uments*, Thread*) (result=3D0xbfbfe810, method=3D {<Handle> =3D {_handle =3D 0x8073828}, <No data fields>}, args=3D= 0xbfbfe710, = __the_thread__=3D0x805e418) at /home/tmp/usr/ports/java/jdk13.patched/work/hotspot1.3.1/src/sha= re/vm/runtime/javaCalls.cpp:287 #57 0x28310bb0 in jni_invoke (env=3D0x805e4b0, result=3D0xbfbfe810, rec= eiver=3D0x0, = call_type=3DJNI_STATIC, methodID=3D0x8206098, args=3D0xbfbfe7e0, = __the_thread__=3D0x805e418) at /home/tmp/usr/ports/java/jdk13.patched/work/hotspot1.3.1/src/sha= re/vm/prims/jni.cpp:601 #58 0x283250fc in jni_CallStaticVoidMethod (env=3D0x805e4b0, cls=3D0x80= 5d180, = methodID=3D0x8206098) at /home/tmp/usr/ports/java/jdk13.patched/work/hotspot1.3.1/src/sha= re/vm/prims/jni.cpp:938 #59 0x08049356 in main (argc=3D0, argv=3D0xbfbff130) at ../../../../src/share/bin/java.c:323 #60 0x08048bc5 in _start () (gdb) = (gdb) up 9 #9 0x2a4c712d in XtWidgetToApplicationContext (w=3D0x84da700) at Displ= ay.c:754 754 retval =3D _XtGetPerDisplay(XtDisplayOfObject(w))->appContext; (gdb) list 749 XtAppContext XtWidgetToApplicationContext(w) 750 Widget w; 751 { 752 XtAppContext retval; 753 = 754 retval =3D _XtGetPerDisplay(XtDisplayOfObject(w))->appContext; 755 return retval; 756 } 757 = 758 = (gdb) print w $2 =3D (struct _WidgetRec *) 0x84da700 (gdb) print *w $1 =3D {core =3D {self =3D 0xd0d0d0d0, widget_class =3D 0xd0d0d0d0, = parent =3D 0xd0d0d0d0, xrm_name =3D -791621424, being_destroyed =3D= -48 '=D0', = destroy_callbacks =3D 0xd0d0d0d0, constraints =3D 0xd0d0d0d0, x =3D= -12080, = y =3D -12080, width =3D 53456, height =3D 53456, border_width =3D 5= 3456, = managed =3D -48 '=D0', sensitive =3D -48 '=D0', ancestor_sensitive = =3D -48 '=D0', = event_table =3D 0xd0d0d0d0, tm =3D {translations =3D 0xd0d0d0d0, = proc_table =3D 0xd0d0d0d0, current_state =3D 0xd0d0d0d0, = lastEventTime =3D 3503345872}, accelerators =3D 0xd0d0d0d0, = border_pixel =3D 3503345872, border_pixmap =3D 3503345872, = popup_list =3D 0xd0d0d0d0, num_popups =3D 3503345872, = name =3D 0xd0d0d0d0 <Address 0xd0d0d0d0 out of bounds>, screen =3D = 0xd0d0d0d0, = colormap =3D 3503345872, window =3D 3503345872, depth =3D 350334587= 2, = background_pixel =3D 3503345872, background_pixmap =3D 3503345872, = visible =3D -48 '=D0', mapped_when_managed =3D -48 '=D0'}} (gdb) q ----Next_Part(Sat_Feb__8_19:05:44_2003_364)---- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030208.190544.74756564.haro>