This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

libgcj/1289: fail to debug HelloWorld program using GDB



>Number:         1289
>Category:       libgcj
>Synopsis:       fail to debug HelloWorld program using GDB
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    tromey
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 20 12:18:42 PST 2000
>Closed-Date:    Fri Jun 30 16:13:00 PDT 2000
>Last-Modified:  Fri Jun 30 16:16:01 PDT 2000
>Originator:     a1tv86@yahoo.com
>Release:        egcs-2000-06-19 with patches & libgcj-snapshot-2000-06-20
>Organization:
>Environment:
Solaris 2.6
>Description:
Get a segmentation fault.
Here is the stack trace:

(gdb) run
Starting program: /export/home/cecilia/TestSuite/HelloWorld 

Program received signal SIGSEGV, Segmentation fault.
0xef74f000 in GC_find_limit (p=0xeffff4dc "", up=1)
    at ../../../../source/libgcj-snapshot-2000-06-20/boehm-gc/os_dep.c:627
(gdb) bt
#0  0xef74f000 in GC_find_limit (p=0xeffff4dc "", up=1)
    at ../../../../source/libgcj-snapshot-2000-06-20/boehm-gc/os_dep.c:627
#1  0xef74f060 in GC_get_stack_base ()
    at ../../../../source/libgcj-snapshot-2000-06-20/boehm-gc/os_dep.c:722
#2  0xef74e16c in GC_init_inner ()
    at ../../../../source/libgcj-snapshot-2000-06-20/boehm-gc/misc.c:473
#3  0xef74acf4 in GC_generic_malloc_inner (lb=10, k=0)
    at ../../../../source/libgcj-snapshot-2000-06-20/boehm-gc/malloc.c:61
#4  0xef74ae74 in GC_generic_malloc (lb=10, k=0)
    at ../../../../source/libgcj-snapshot-2000-06-20/boehm-gc/malloc.c:133
#5  0xef662b78 in _Jv_AllocBytes (size=10)
    at ../../../../source/libgcj-snapshot-2000-06-20/libjava/boehm.cc:320
#6  0xef56edd0 in _Jv_makeUtf8Const (s=0xef6a0f20 "()V", len=3)
    at ../../../../source/libgcj-snapshot-2000-06-20/libjava/prims.cc:247
#7  0xef64c318 in __static_initialization_and_destruction_0 (__initialize_p=1, 
    __priority=65535)
    at ../../../../source/libgcj-snapshot-2000-06-20/libjava/java/lang/natClass.cc:70
#8  0xef64c408 in global constructors keyed to java::lang::Class::forName ()
    at ../../../../source/libgcj-snapshot-2000-06-20/libjava/java/lang/natClass.cc:630
#9  0xef66ba6c in __do_global_ctors_aux ()
    at ../../../source/egcs-20000619/gcc/cp/new.cc:43
#10 0xef56e5ec in _init () from /usr/local/lib/libgcj.so.1
#11 0xef7d959c in ?? ()
#12 0xef7d9454 in ?? ()
#13 0xef7e037c in ?? ()
#14 0xef7d2b00 in ?? ()
>How-To-Repeat:
gcj --main=HelloWorld -o HelloWorld HelloWorld.java
>Fix:

>Release-Note:

>Audit-Trail:

Formerly PR gdb/269


From: Tom Tromey <tromey@cygnus.com>
To: a1tv86@yahoo.com
Cc: java-gnats@sourceware.cygnus.com
Subject: Re: gdb/269: fail to debug HelloWorld program using GDB
Date: Fri, 30 Jun 2000 08:00:49 -0700 (PDT)

 This is a FAQ.
 Type "continue" and you can debug as usual.
 
 Tom
Responsible-Changed-From-To: green->tromey
Responsible-Changed-By: tromey
Responsible-Changed-When: Fri Jun 30 16:13:00 2000
Responsible-Changed-Why:
    I'll handle it.
State-Changed-From-To: open->closed
State-Changed-By: tromey
State-Changed-When: Fri Jun 30 16:13:00 2000
State-Changed-Why:
    I'm closing this PR because I don't think there is a bug here.
    If you disagree, tell me why and I will reopen the PR.
    Thanks.

From: tromey@cygnus.com
To: a1tv86@yahoo.com, green@cygnus.com, java-gnats@sourceware.cygnus.com,
  tromey@cygnus.com
Cc:  
Subject: Re: gdb/269
Date: 30 Jun 2000 23:13:00 -0000

 Synopsis: fail to debug HelloWorld program using GDB
 
 Responsible-Changed-From-To: green->tromey
 Responsible-Changed-By: tromey
 Responsible-Changed-When: Fri Jun 30 16:13:00 2000
 Responsible-Changed-Why:
     I'll handle it.
 State-Changed-From-To: open->closed
 State-Changed-By: tromey
 State-Changed-When: Fri Jun 30 16:13:00 2000
 State-Changed-Why:
     I'm closing this PR because I don't think there is a bug here.
     If you disagree, tell me why and I will reopen the PR.
     Thanks.
 
 http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl?cmd=view&pr=269&database=java
>Unformatted:



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]