Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 40933 invoked from network); 17 Jul 2009 13:46:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Jul 2009 13:46:32 -0000 Received: (qmail 31578 invoked by uid 500); 17 Jul 2009 13:47:38 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 31552 invoked by uid 500); 17 Jul 2009 13:47:38 -0000 Mailing-List: contact commits-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 commits@harmony.apache.org Received: (qmail 31479 invoked by uid 99); 17 Jul 2009 13:47:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jul 2009 13:47:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jul 2009 13:47:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CBC65234C044 for ; Fri, 17 Jul 2009 06:47:14 -0700 (PDT) Message-ID: <2053515734.1247838434820.JavaMail.jira@brutus> Date: Fri, 17 Jul 2009 06:47:14 -0700 (PDT) From: "Oliver Deakin (JIRA)" To: commits@harmony.apache.org Subject: [jira] Created: (HARMONY-6275) [jdwp][java6] Crash during shutdown on Linux MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [jdwp][java6] Crash during shutdown on Linux -------------------------------------------- Key: HARMONY-6275 URL: https://issues.apache.org/jira/browse/HARMONY-6275 Project: Harmony Issue Type: Bug Components: JDK Reporter: Oliver Deakin Executing a command such as "java -Xrunjdwp:transport=3Ddt_socket,server=3D= y,suspend=3Dn HelloWorld" results in a crash during shutdown: Listening for transport dt_socket at address: 59572 HelloWorld Signal reported: GENERAL_PROTECTION_FAULT Registers: EAX: 0x00000000, EBX: 0xb7f3011c, ECX: 0xb7f1632c, EDX: 0x00000000 ESI: 0x00000000, EDI: 0x0860c9f0, ESP: 0x95cc4f40, EBP: 0x95cc4f68 EIP: 0xb7f266bc Command line: target/hdk/jdk/jre/bin/java -Xrunjdwp:transport=3Ddt_socket,server=3Dy,susp= end=3Dn HelloWorld Working directory: /home/odeakin/svn-checkouts/fed6 Environment variables: TERM=3Dxterm SHELL=3D/bin/bash SSH_CLIENT=3D9.20.183.162 4743 22 CVSROOT=3D:pserver:odeakin@clear.hursley.ibm.com:/home/cvs/clear SSH_TTY=3D/dev/pts/1 USER=3Dodeakin LS_COLORS=3Dno=3D00:fi=3D00:di=3D01;34:ln=3D01;36:pi=3D40;33:so=3D01;35:do= =3D01;35:bd=3D40;33;01:cd=3D40;33;01:or=3D40;31;01:su=3D37;41:sg=3D30;43:tw= =3D30;42:ow=3D34;42:st=3D37;44:ex=3D01;32:*.tar=3D01;31:*.tgz=3D01;31:*.svg= z=3D01;31:*.arj=3D01;31:*.taz=3D01;31:*.lzh=3D01;31:*.lzma=3D01;31:*.zip=3D= 01;31:*.z=3D01;31:*.Z=3D01;31:*.dz=3D01;31:*.gz=3D01;31:*.bz2=3D01;31:*.bz= =3D01;31:*.tbz2=3D01;31:*.tz=3D01;31:*.deb=3D01;31:*.rpm=3D01;31:*.jar=3D01= ;31:*.rar=3D01;31:*.ace=3D01;31:*.zoo=3D01;31:*.cpio=3D01;31:*.7z=3D01;31:*= .rz=3D01;31:*.jpg=3D01;35:*.jpeg=3D01;35:*.gif=3D01;35:*.bmp=3D01;35:*.pbm= =3D01;35:*.pgm=3D01;35:*.ppm=3D01;35:*.tga=3D01;35:*.xbm=3D01;35:*.xpm=3D01= ;35:*.tif=3D01;35:*.tiff=3D01;35:*.png=3D01;35:*.svg=3D01;35:*.mng=3D01;35:= *.pcx=3D01;35:*.mov=3D01;35:*.mpg=3D01;35:*.mpeg=3D01;35:*.m2v=3D01;35:*.mk= v=3D01;35:*.ogm=3D01;35:*.mp4=3D01;35:*.m4v=3D01;35:*.mp4v=3D01;35:*.vob=3D= 01;35:*.qt=3D01;35:*.nuv=3D01;35:*.wmv=3D01;35:*.asf=3D01;35:*.rm=3D01;35:*= .rmvb=3D01;35:*.flc=3D01;35:*.avi=3D01;35:*.fli=3D01;35:*.gl=3D01;35:*.dl= =3D01;35:*.xcf=3D01;35:*.xwd=3D01;35:*.yuv=3D01;35:*.aac=3D00;36:*.au=3D00;= 36:*.flac=3D00;36:*.mid=3D00;36:*.midi=3D00;36:*.mka=3D00;36:*.mp3=3D00;36:= *.mpc=3D00;36:*.ogg=3D00;36:*.ra=3D00;36:*.wav=3D00;36: MAIL=3D/var/mail/odeakin PATH=3D/home/odeakin/apache-ant-1.6.5/bin:/usr/lib/ccache:/usr/local/bin:/u= sr/bin:/bin:/usr/bin/X11:/usr/games:/opt/j950/bin PWD=3D/home/odeakin/svn-checkouts/fed6 JAVA_HOME=3D/opt/j950 EDITOR=3Dvi LANG=3DC SHLVL=3D1 HOME=3D/home/odeakin LANGUAGE=3Den_GB:en_US:en_GB:en LOGNAME=3Dodeakin SSH_CONNECTION=3D9.20.183.162 4743 9.20.181.102 22 DISPLAY=3D:0 _=3Dtarget/hdk/jdk/jre/bin/java OLDPWD=3D/home/odeakin/svn-checkouts/fed6/working_classlib LD_LIBRARY_PATH=3D/home/odeakin/svn-checkouts/fed6/target/hdk/jdk/jre/bin/d= efault:/home/odeakin/svn-checkouts/fed6/target/hdk/jdk/jre/bin/: Loaded modules: /home/odeakin/svn-checkouts/fed6/target/hdk/jdk/jre/bin/java: 0x08048000:0x0804d000 0x0804d000:0x0804e000 [heap]: 0x0804e000:0x0862b000 /home/odeakin/svn-checkouts/fed6/target/hdk/jdk/jre/bin/libdt_socket.so: 0x95d46000:0x95d4a000 0x95d4a000:0x95d4b000 /home/odeakin/svn-checkouts/fed6/target/hdk/jdk/jre/bin/libhyniochar.so: 0x9600d000:0x96161000 0x96161000:0x96189000 /home/odeakin/svn-checkouts/fed6/target/hdk/jdk/jre/bin/libhyarchive.so: 0x96189000:0x96195000 0x96195000:0x96196000 /home/odeakin/svn-checkouts/fed6/target/hdk/jdk/jre/bin/libhyluni.so: 0x96196000:0x961cb000 0x961cb000:0x961cc000 /home/odeakin/svn-checkouts/fed6/target/hdk/jdk/jre/bin/libhyzlib.so: 0x961cc000:0x961de000 0x961de000:0x961df000 /home/odeakin/svn-checkouts/fed6/target/hdk/jdk/jre/bin/libjdwp.so: 0x962df000:0x96336000 0x96336000:0x96338000 /home/odeakin/svn-checkouts/fed6/target/hdk/jdk/jre/bin/default/libgc_gen_u= ncomp.so: 0xb6642000:0xb668d000 0xb668d000:0xb668f000 /home/odeakin/svn-checkouts/fed6/target/hdk/jdk/jre/bin/default/libjitrino.= so: 0xb6690000:0xb68d5000 0xb68d5000:0xb68e2000 /home/odeakin/svn-checkouts/fed6/target/hdk/jdk/jre/bin/default/libem.so: 0xb6945000:0xb696d000 0xb696d000:0xb696e000 /lib/libnss_files-2.7.so: 0xb69ee000:0xb69f7000 0xb69f7000:0xb69f9000 /lib/libnss_nis-2.7.so: 0xb69f9000:0xb6a01000 0xb6a01000:0xb6a03000 /lib/libnsl-2.7.so: 0xb6a03000:0xb6a16000 0xb6a16000:0xb6a18000 /lib/libnss_compat-2.7.so: 0xb6a1a000:0xb6a21000 0xb6a21000:0xb6a23000 /home/odeakin/svn-checkouts/fed6/target/hdk/jdk/jre/bin/libhynio.so: 0xb6a26000:0xb6a28000 0xb6a28000:0xb6a29000 /home/odeakin/svn-checkouts/fed6/target/hdk/jdk/jre/bin/default/libicudata.= so.34: 0xb6b4d000:0xb73c1000 0xb73c1000:0xb73c2000 /usr/lib/libxml2.so.2.6.32: 0xb73c2000:0xb74f5000 0xb74f5000:0xb74fa000 /usr/lib/libz.so.1.2.3.3: 0xb74fb000:0xb750f000 0xb750f000:0xb7510000 /home/odeakin/svn-checkouts/fed6/target/hdk/jdk/jre/bin/default/libicuuc.so= .34: 0xb7510000:0xb7611000 0xb7611000:0xb7619000 /home/odeakin/svn-checkouts/fed6/target/hdk/jdk/jre/bin/default/libharmonyv= m.so: 0xb7619000:0xb7757000 0xb7757000:0xb77b7000 /home/odeakin/svn-checkouts/fed6/target/hdk/jdk/jre/bin/default/libch.so: 0xb79ed000:0xb79f9000 0xb79f9000:0xb7a57000 /lib/libgcc_s.so.1: 0xb7c8d000:0xb7c99000 0xb7c99000:0xb7c9a000 /lib/libpthread-2.7.so: 0xb7c9b000:0xb7caf000 0xb7caf000:0xb7cb1000 /lib/librt-2.7.so: 0xb7cb3000:0xb7cba000 0xb7cba000:0xb7cbc000 /usr/lib/libstdc++.so.6.0.10: 0xb7cbc000:0xb7d9f000 0xb7d9f000:0xb7da2000 0xb7da2000:0xb7da4000 /lib/libdl-2.7.so: 0xb7daa000:0xb7dac000 0xb7dac000:0xb7dae000 /lib/libm-2.7.so: 0xb7dae000:0xb7dd2000 0xb7dd2000:0xb7dd4000 /lib/libc-2.7.so: 0xb7dd4000:0xb7f0c000 0xb7f0c000:0xb7f0d000 0xb7f0d000:0xb7f0f000 /home/odeakin/svn-checkouts/fed6/target/hdk/jdk/jre/bin/default/libvmi.so: 0xb7f12000:0xb7f16000 0xb7f16000:0xb7f17000 /home/odeakin/svn-checkouts/fed6/target/hdk/jdk/jre/bin/libhyprt.so: 0xb7f18000:0xb7f30000 0xb7f30000:0xb7f34000 /home/odeakin/svn-checkouts/fed6/target/hdk/jdk/jre/bin/libhythr.so: 0xb7f35000:0xb7f50000 0xb7f50000:0xb7f51000 /lib/ld-2.7.so: 0xb7f83000:0xb7f9d000 0xb7f9d000:0xb7f9f000 [stack]: 0xbfa9c000:0xbfa9f000 [vdso]: 0xffffe000:0xfffff000 Stack trace: 0: 0xb7f266bc hysock_set_nonblocking (hysock.c:2723) 1: 0x95d470fb SetSocketBlockingMode(_jdwpTransportEnv*, hysocket_struct*= , bool) (SocketTransport.cpp:-1) 2: 0x95d479f5 TCPIPSocketTran_Accept(_jdwpTransportEnv*, long long, long= long) (SocketTransport.cpp:-1) 3: 0x963287b0 jdwp::TransportManager::Connect() (TransportManager_pd.cpp= :-1) 4: 0x9630f7ee jdwp::PacketDispatcher::Run(JNIEnv_External*) (TransportMa= nager_pd.cpp:-1) 5: 0x963110a6 jdwp::PacketDispatcher::StartFunction(jvmtiEnv_struct*, JN= IEnv_External*, void*) (TransportManager_pd.cpp:-1) 6: 0xb7704846 jthread_wrapper_start_proc(void*) (thread_java_basic.cpp:1= 67) 7: 0xb7f414b8 thread_start_func (thread_os.c:106) 8: 0xb7ca0f3b start_thread (??:-1) 9: 0xb7e9ebee __clone (??:-1) Crashed module: /home/odeakin/svn-checkouts/fed6/target/hdk/jdk/jre/bin/libhyprt.so (JNI native library) VM attached threads: --->[0x95cc5b90] '_jdwp_PacketDispatcher' [0x95d45b90] '_jdwp_EventDispatcher' [0xb7c8c8e0] 'destroy' Segmentation fault A bit of debugging shows that we're getting into the hysock calls with a nu= ll pointer for the socket struct, which probably means that it's been freed= as part of the JDWP shutdown phase before we've finished using it. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.