Bug 3697 - gdb cannot read part of fcore core files (can read notes)
Summary: gdb cannot read part of fcore core files (can read notes)
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Phil Muldoon
URL:
Keywords:
Depends on:
Blocks: 2243
  Show dependency treegraph
 
Reported: 2006-12-11 18:42 UTC by Phil Muldoon
Modified: 2006-12-11 23:00 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
fcore elf section dump (1.74 KB, text/plain)
2006-12-11 18:43 UTC, Phil Muldoon
Details
gcore section dump (1.75 KB, text/plain)
2006-12-11 18:44 UTC, Phil Muldoon
Details
cat of /proc/maps (442 bytes, text/plain)
2006-12-11 18:45 UTC, Phil Muldoon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Phil Muldoon 2006-12-11 18:42:21 UTC
[pmuldoon@localhost frysk_bin]$ ~/frysk_bin/frysk-core/frysk/bindir/fcore 3109
&& gcore 3109 && cat /proc/3109/maps >& bash_maps

[pmuldoon@localhost frysk_bin]$ eu-readelf -a core.3109 > gcore_elf
[pmuldoon@localhost frysk_bin]$ eu-readelf -a fcore.3109 > fcore_elf

(will add these files as attachments, in further comments)
Comment 1 Phil Muldoon 2006-12-11 18:43:52 UTC
Created attachment 1452 [details]
fcore elf section dump
Comment 2 Phil Muldoon 2006-12-11 18:44:29 UTC
Created attachment 1453 [details]
gcore section dump
Comment 3 Phil Muldoon 2006-12-11 18:45:12 UTC
Created attachment 1454 [details]
cat of /proc/maps
Comment 4 Phil Muldoon 2006-12-11 18:46:23 UTC
Output from loading in a gcore core file:

[pmuldoon@localhost frysk_bin]$ gdb
GNU gdb Red Hat Linux (6.5-13.fc6rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu".
(gdb) set debug target 1
(gdb) core-file core.3109 
core:target_xfer_partial (4, (null), 0x8a0c720,  0x0,  0x0, 512) = 144, bytes =
 20 00 00 00 00 14 ef 00 21 00 00 00 00 10 ef 00 ...
core:target_xfer_partial (2, (null), 0xbf8cead4,  0x0,  0xef1000, 52) = 52,
bytes = 7f 45 4c 46 01 01 01 00 00 00 00 00 ...
core:target_xfer_partial (2, (null), 0x8a0c868,  0x0,  0xef1034, 128) = 128,
bytes = 01 00 00 00 00 00 00 00 ...
core:target_xfer_partial (2, (null), 0x8a0c970,  0x0,  0xef1000, 2192) = 2192,
bytes =
 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 ...
(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
Core was generated by `/bin/bash'.
target_fetch_registers (-1)
#0  0x00ef1402 in __kernel_vsyscall ()
Comment 5 Phil Muldoon 2006-12-11 18:47:39 UTC
Output from reading in a fcore file.

[pmuldoon@localhost frysk_bin]$ gdb
GNU gdb Red Hat Linux (6.5-13.fc6rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu".
(gdb) set debug target 1
(gdb) core-file fcore.3109 
core:target_xfer_partial (4, (null), 0x90aa6b8,  0x0,  0x0, 512) = 144, bytes =
20 00 00 00 00 14 ef 00 ...
core:target_xfer_partial (2, (null), 0xbfd4bf44,  0x0,  0xef1000, 52) = 52,
bytes = 7f 45 4c 46 00 00 00 00 00 00 00 00 ...
target_terminal_ours ()
Failed to read a valid object file image from memory.
Core was generated by `bash'.
target_fetch_registers (-1)
core:target_xfer_partial (2, (null), 0xbfd4bef0,  0x0,  0xef1402, 8) = 8, bytes =
 00 00 00 00 00 00 00 00
core:target_xfer_partial (2, (null), 0xbfd4bef1,  0x0,  0xef1402, 7) = 7, bytes
= 00 00 00 00 00 00 00
#0  0x00ef1402 in ?? ()
Comment 6 Phil Muldoon 2006-12-11 22:59:19 UTC
Caused by incomplete memory transger via PtraceByteBuffer.get()

2006-12-11  Phil Muldoon  <pmuldoon@redhat.com>

	* eio/ByteBuffer.java (get): Change to use peekFully over peek.
Comment 7 Phil Muldoon 2006-12-11 23:00:15 UTC
Closed, as upstream bug closed.