From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21049 invoked by alias); 1 Nov 2004 17:21:06 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org Received: (qmail 21027 invoked by uid 48); 1 Nov 2004 17:21:06 -0000 Date: Mon, 01 Nov 2004 17:21:00 -0000 From: "ovidr at users dot sourceforge dot net" To: java-prs@gcc.gnu.org Message-ID: <20041101172052.18266.ovidr@users.sourceforge.net> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug libgcj/18266] New: SIGSEGV in GC_register_finalizer_inner () X-Bugzilla-Reason: CC X-SW-Source: 2004-q4/txt/msg00288.txt.bz2 List-Id: gcc version 4.0.0 20041014 (experimental) When I leave my gcj (4.0.0 20041014 - linux) app running for a few days, it eventually crashes/locks up in what looks like an infinite loop of SIGSEGVs (I did an strace on one process that was hung). I then ran the app under gdb twice (and waited 2 days each time) and the cause was the same each time. Original post: http://gcc.gnu.org/ml/java/2004-10/msg00134.html Response: http://gcc.gnu.org/ml/java/2004-10/msg00142.html Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1116179376 (LWP 22238)] 0x40523321 in GC_register_finalizer_inner () from ./lib/libgcj.so.6 (gdb) bt #0 0x40523321 in GC_register_finalizer_inner () from ./lib/libgcj.so.6 #1 0x40523513 in GC_register_finalizer_no_order () from ./lib/libgcj.so.6 #2 0x403acf0d in _Jv_MonitorExit () from ./lib/libgcj.so.6 #3 0x081d1d4c in org::eclipse::swt::widgets::Synchronizer::syncExec () #4 0x081c4790 in org::eclipse::swt::widgets::Display::syncExec () #5 0x080b608a in sancho::view::transfer::downloads::DownloadTableTreeContentProvider::update () #6 0x4041d761 in java::util::Observable::notifyObservers () from ./lib/libgcj.so.6 #7 0x4041d627 in java::util::Observable::notifyObservers () from ./lib/libgcj.so.6 #8 0x080ec02e in sancho::model::mldonkey::FileCollection::sendUpdate () #9 0x08108aae in sancho::core::MLDonkeyCore$1::run () #10 0x404288ed in java::util::Timer$Scheduler::run () from ./lib/libgcj.so.6 #11 0x403d7855 in java::lang::Thread::run () from ./lib/libgcj.so.6 #12 0x403b1c3b in _Jv_ThreadRun () from ./lib/libgcj.so.6 #13 0x40511f50 in _Jv_ThreadRegister () from ./lib/libgcj.so.6 #14 0x4052f418 in GC_start_routine () from ./lib/libgcj.so.6 #15 0x435f979c in start_thread () from /lib/tls/libpthread.so.0 #16 0x433daf2a in clone () from /lib/tls/libc.so.6 (gdb) disas 0x40523281 0x40523391 Dump of assembler code from 0x40523281 to 0x40523391: 0x40523281 : mov %eax,(%esp) 0x40523284 : call 0x4036cecc <_init+18776> 0x40523289 : mov 0x55d8(%ebx),%eax 0x4052328f : mov (%eax),%eax 0x40523291 : test %eax,%eax 0x40523293 : jne 0x40523365 0x40523299 : mov 0xffffe9a0(%ebx),%esi 0x4052329f : jmp 0x405231b3 0x405232a4 : mov 0x14(%ebp),%eax 0x405232a7 : test %eax,%eax 0x405232a9 : je 0x405232b4 0x405232ab : mov 0x14(%ebp),%edx 0x405232ae : movl $0x0,(%edx) 0x405232b4 : mov 0x18(%ebp),%esi 0x405232b7 : test %esi,%esi 0x405232b9 : je 0x405232c4 0x405232bb : mov 0x18(%ebp),%ecx 0x405232be : movl $0x0,(%ecx) 0x405232c4 : mov 0xc(%ebp),%ecx 0x405232c7 : test %ecx,%ecx 0x405232c9 : je 0x4052325b 0x405232cb : mov 0x4380(%ebx),%eax 0x405232d1 : mov %edi,%edx 0x405232d3 : shr $0x16,%edx 0x405232d6 : mov 0xb074(%eax,%edx,4),%edx 0x405232dd : mov %edi,%eax 0x405232df : shr $0xc,%eax 0x405232e2 : and $0x3ff,%eax 0x405232e7 : mov (%edx,%eax,4),%eax 0x405232ea : test %eax,%eax 0x405232ec : mov %eax,0xfffffff0(%ebp) 0x405232ef : je 0x4052325b 0x405232f5 : mov $0x1,%edx 0x405232fa : mov %edx,0x4(%esp) 0x405232fe : movl $0x18,(%esp) 0x40523305 : call 0x4037563c <_init+53448> 0x4052330a : test %eax,%eax 0x4052330c : mov %eax,%esi 0x4052330e : je 0x405233d1 0x40523314 : mov 0xfffffff0(%ebp),%edx 0x40523317 : not %edi 0x40523319 : mov %edi,(%esi) 0x4052331b : mov 0xc(%ebp),%ecx 0x4052331e : mov 0x10(%ebp),%edi 0x40523321 : mov (%edx),%eax 0x40523323 : mov 0xffffffec(%ebp),%edx 0x40523326 : mov %ecx,0x8(%esi) ---Type to continue, or q to quit--- 0x40523329 : mov 0x1c(%ebp),%ecx 0x4052332c : mov %edi,0xc(%esi) 0x4052332f : mov %eax,0x10(%esi) 0x40523332 : mov 0x166d4(%ebx),%eax 0x40523338 : mov %ecx,0x14(%esi) 0x4052333b : add %eax,%edx 0x4052333d : mov (%edx),%eax 0x4052333f : mov %esi,(%edx) 0x40523341 : mov %eax,0x4(%esi) 0x40523344 : mov 0x5598(%ebx),%eax 0x4052334a : incl (%eax) 0x4052334c : jmp 0x4052325b 0x40523351 : call 0x403697ac <_init+4664> 0x40523356 : jmp 0x4052318d 0x4052335b : xor %ecx,%ecx 0x4052335d : lea 0x0(%esi),%esi 0x40523360 : jmp 0x40523207 0x40523365 : xor %ecx,%ecx 0x40523367 : xor %eax,%eax 0x40523369 : mov %ecx,0x10(%esp) 0x4052336d : mov 0xffffe9a0(%ebx),%ecx 0x40523373 : xor %esi,%esi 0x40523375 : mov %eax,0x18(%esp) 0x40523379 : xor %eax,%eax 0x4052337b : xor %edx,%edx 0x4052337d : mov %eax,0x8(%esp) 0x40523381 : mov $0x1,%eax 0x40523386 : mov %esi,0x14(%esp) 0x4052338a : shl %cl,%eax 0x4052338c : mov %eax,0x4(%esp) 0x40523390 : lea 0xffed22fb(%ebx),%eax End of assembler dump. (gdb) info registers eax 0x8dc2270 148644464 ecx 0x405104e0 1079051488 edx 0x1 1 ebx 0x406ecc6c 1081003116 esp 0x42878818 0x42878818 ebp 0x42878850 0x42878850 esi 0x8dc2270 148644464 edi 0x403b27c0 1077618624 eip 0x40523321 0x40523321 eflags 0x10202 66050 cs 0x23 35 ss 0x2b 43 ds 0x2b 43 es 0x2b 43 fs 0x0 0 gs 0x33 51 -- Summary: SIGSEGV in GC_register_finalizer_inner () Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: libgcj AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ovidr at users dot sourceforge dot net CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18266