This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/10104] New: gcore fails on app w/ more than a page of DL symbols to load


As an example use the Counter.java and CounterTest.java from
http://www.isr.umd.edu/~austin/ence489c.d/threads.d/Making_A_Thread_Subclass/

o change the new Counter instantiation to use about 40 instead of 5 in
JavaTest.java.
o compile with "javac Counter.java CounterTest.java".
o run "java CounterTest" 
o attempt gcore with "gcore -o core <pid of java CounterTest>" )  

Results include:

(no debugging symbols found)
...
---Type <return> to continue, or q <return> to quit---
(no debugging symbols found)
...
gcore: failed to create core.31783

A fix for http://sourceware.org/bugzilla/show_bug.cgi?id=9591 would likely
resolve this issue.  But a simple workaround for the gcore script resolves the
issue for the gcore case:

diff -up gdb-6.8/gdb/gdb_gcore.sh.nopagination gdb-6.8/gdb/gdb_gcore.sh
--- gdb-6.8/gdb/gdb_gcore.sh.nopagination       2009-04-24 15:24:06.000000000 -0700
+++ gdb-6.8/gdb/gdb_gcore.sh    2009-04-24 15:24:20.000000000 -0700
@@ -63,6 +63,7 @@ for pid in $*
 do
        # Write gdb script for pid $pid.  
        cat >>$tmpfile <<EOF
+set pagination off
 attach $pid
 gcore $name.$pid
 detach

-- 
           Summary: gcore fails on app w/ more than a page of DL symbols to
                    load
           Product: gdb
           Version: 6.8
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: gdb
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: cjt at us dot ibm dot com
                CC: gdb-prs at sourceware dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=10104

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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