public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/17535] New: gdb get top
@ 2014-11-03 14:35 st21net at mail dot ru
  2014-11-03 17:50 ` [Bug gdb/17535] " schwab@linux-m68k.org
  0 siblings, 1 reply; 2+ messages in thread
From: st21net at mail dot ru @ 2014-11-03 14:35 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=17535

            Bug ID: 17535
           Summary: gdb get top
           Product: gdb
           Version: 7.8
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: st21net at mail dot ru

on some core files gdb get top

top:
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND            
 9018 root      20   0  186m  17m 7136 R 100.0  0.5   0:24.17 gdb               
 9027 root      20   0 15080 1268  956 R  0.3  0.0   0:00.01 top   

out:
[root@localhost ~]# gdb -c core.core /usr/local/bin/core
GNU gdb (GDB) Red Hat Enterprise Linux 7.8.1-30.an.el6
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
/etc/gdbinit:9: Error in sourced command file:
Scripting in the "Python" language is not supported in this copy of GDB.
Reading symbols from /usr/local/bin/core...done.
[New LWP 20148]

warning: .dynamic section for "/lib64/libpthread.so.0" is not at the expected
address (wrong library or version mismatch?)

warning: .dynamic section for "/usr/local/rb2/lib/librbclnt.so.3" is not at the
expected address (wrong library or version mismatch?)

warning: .dynamic section for "/lib64/libpcre.so.0" is not at the expected
address (wrong library or version mismatch?)

warning: .dynamic section for "/usr/lib64/libxml2.so.2" is not at the expected
address (wrong library or version mismatch?)

warning: .dynamic section for "/lib64/libm.so.6" is not at the expected address
(wrong library or version mismatch?)

warning: .dynamic section for "/lib64/libdb-4.7.so" is not at the expected
address (wrong library or version mismatch?)

warning: .dynamic section for "/lib64/libgcc_s.so.1" is not at the expected
address (wrong library or version mismatch?)

warning: .dynamic section for "/lib64/libgssapi_krb5.so.2" is not at the
expected address (wrong library or version mismatch?)

warning: .dynamic section for "/lib64/libkrb5.so.3" is not at the expected
address (wrong library or version mismatch?)

warning: .dynamic section for "/lib64/libk5crypto.so.3" is not at the expected
address (wrong library or version mismatch?)

warning: .dynamic section for "/lib64/libfreebl3.so" is not at the expected
address (wrong library or version mismatch?)


bt:
#0  0x00007fb4f4763740 in __lseek_nocancel () from /lib64/libc.so.6
#1  0x00007fb4f46ef255 in _IO_new_file_seekoff () from /lib64/libc.so.6
#2  0x00007fb4f46ecd9a in fseeko64 () from /lib64/libc.so.6
#3  0x00000000006edc2d in bfd_seek (abfd=0x1c1f540, position=19412608,
direction=0) at ../../bfd/bfdio.c:325
#4  0x00000000006f35a9 in _bfd_generic_get_section_contents (abfd=0x1c1f540,
section=0x1d2d0c8, location=0x7fffb46afb60, 
    offset=<optimized out>, count=<optimized out>) at ../../bfd/libbfd.c:884
#5  0x00000000005e3249 in section_table_xfer_memory_partial
(readbuf=0x7fffb46afb60 "", writebuf=0x0, offset=<optimized out>, len=2304, 
    xfered_len=0x7fffb46afac8, sections=<optimized out>,
sections_end=0x1d322c0, section_name=0x0) at ../../gdb/exec.c:766
#6  0x000000000054c957 in core_xfer_partial (ops=<optimized out>,
object=<optimized out>, annex=<optimized out>, readbuf=0x7fffb46afb60 "", 
    writebuf=0x0, offset=139641522955904, len=2304, xfered_len=0x7fffb46afac8)
at ../../gdb/corelow.c:744
#7  0x00000000005d6b0c in raw_memory_xfer_partial (ops=0xcf5020 <core_ops>,
readbuf=0x7fffb46afb60 "", writebuf=0x0, 
    memaddr=139641522955904, len=2304, xfered_len=0x7fffb46afac8) at
../../gdb/target.c:1024
#8  0x00000000005d70ec in memory_xfer_partial (xfered_len=0x7fffb46afac8,
len=2304, memaddr=<optimized out>, writebuf=0x0, 
    readbuf=0x7fffb46afb60 "", object=TARGET_OBJECT_MEMORY, ops=0xcf5020
<core_ops>) at ../../gdb/target.c:1206
#9  target_xfer_partial (ops=0xcf5020 <core_ops>, object=TARGET_OBJECT_MEMORY,
annex=0x0, readbuf=0x7fffb46afb60 "", writebuf=0x0, 
    offset=<optimized out>, len=2304, xfered_len=0x7fffb46afac8) at
../../gdb/target.c:1282
#10 0x00000000005d7889 in target_read_partial (xfered_len=0x7fffb46afac8,
len=2304, offset=139641522955904, buf=0x7fffb46afb60 "", 
    annex=0x0, object=TARGET_OBJECT_MEMORY, ops=0xcf5020 <core_ops>) at
../../gdb/target.c:1529
#11 target_read (ops=0xcf5020 <core_ops>, object=TARGET_OBJECT_MEMORY,
annex=0x0, buf=0x7fffb46afb60 "", offset=139641522955904, len=2304)
    at ../../gdb/target.c:1560
#12 0x00000000005d7d10 in target_read_memory (memaddr=<optimized out>,
myaddr=<optimized out>, len=2304) at ../../gdb/target.c:1364
#13 0x00000000004b47a1 in ps_xfer_memory (ph=0x21f7a70, addr=0x7f00d35f2680,
buf=0x7fffb46afb60 "", len=2304, write=0)
    at ../../gdb/proc-service.c:100
#14 0x00007fb4eae3dfa3 in iterate_thread_list () from /lib64/libthread_db.so.1
#15 0x00007fb4eae3e1d9 in td_ta_thr_iter () from /lib64/libthread_db.so.1
#16 0x00000000004b4e01 in find_new_threads_once (info=0x21f7a50, iteration=0,
errp=0x7fffb46b066c) at ../../gdb/linux-thread-db.c:1648
#17 0x00000000004b510c in thread_db_find_new_threads_2 (ptid=...,
until_no_new=1) at ../../gdb/linux-thread-db.c:1696
#18 0x00000000004b7519 in thread_db_find_new_threads_silently (ptid=...) at
../../gdb/linux-thread-db.c:671
#19 0x00000000004b79d0 in try_thread_db_load_1 (info=0x21f7a50) at
../../gdb/linux-thread-db.c:808
#20 try_thread_db_load (library=0x809bad "libthread_db.so.1",
check_auto_load_safe=<optimized out>) at ../../gdb/linux-thread-db.c:902
#21 0x00000000004b7f43 in try_thread_db_load_from_sdir () at
../../gdb/linux-thread-db.c:992
#22 thread_db_load_search () at ../../gdb/linux-thread-db.c:1064
#23 thread_db_load () at ../../gdb/linux-thread-db.c:1122
#24 0x00000000005e7985 in generic_observer_notify (subject=<optimized out>,
args=0x7fffb46b07f0) at ../../gdb/observer.c:167
#25 0x00000000005e8366 in observer_notify_new_objfile (objfile=<optimized out>)
at ./observer.inc:582
#26 0x00000000005829ff in symbol_file_add_with_addrs (abfd=<optimized out>,
name=<optimized out>, add_flags=8, addrs=<optimized out>, 
    flags=<optimized out>, parent=0x845820 <sentinel_cleanup>) at
../../gdb/symfile.c:1242
#27 0x000000000068f84d in solib_read_symbols (so=0x1d35c40, flags=8) at
../../gdb/solib.c:640
#28 0x000000000068faeb in solib_add (pattern=0x0, from_tty=0, target=<optimized
out>, readsyms=1) at ../../gdb/solib.c:965
#29 0x0000000000592def in post_create_inferior (target=0xcf5020 <core_ops>,
from_tty=1) at ../../gdb/infcmd.c:462
#30 0x000000000054d526 in core_open (filename=<optimized out>, from_tty=1) at
../../gdb/corelow.c:472
#31 0x00000000005ad235 in catch_command_errors (command=0x6229c0
<core_file_command>, arg=0x7fffb46b28fc "popd.mpop.20148.8.core", 
    from_tty=1, mask=<optimized out>) at ../../gdb/main.c:356
#32 0x00000000005aded0 in captured_main (data=<optimized out>) at
../../gdb/main.c:1156
#33 0x00000000005aa45b in catch_errors (func=0x5ad6f0 <captured_main>,
func_args=0x7fffb46b0b50, errstring=0x80baad "", mask=RETURN_MASK_ALL)
    at ../../gdb/exceptions.c:506
#34 0x00000000005ad0db in gdb_main (args=<optimized out>) at
../../gdb/main.c:1266
#35 0x0000000000406d75 in main (argc=<optimized out>, argv=<optimized out>) at
../../gdb/gdb.c:33
(gdb)

strace:
fseeko64(0x2cf7760, 0x1283680, 0, 0x9c0c00, 2304)                              
       = 0
fread(0x7fff31d929c0, 1, 2304, 0x2cf7760)                                      
       = 2304
free(0x2ba9f70)                                                                
       = <void>
free(0x2cf79a0)                                                                
       = <void>
malloc(24)                                                                     
       = 0x2ba9f70
malloc(32)                                                                     
       = 0x2cf79a0
fseeko64(0x2cf7760, 0x1283680, 0, 0x9c0c00, 2304)                              
       = 0
fread(0x7fff31d91e40, 1, 2304, 0x2cf7760)                                      
       = 2304
free(0x2ba9f70)                                                                
       = <void>
free(0x2cf79a0)                                                                
       = <void>
malloc(24)                                                                     
       = 0x2ba9f70
malloc(32)                                                                     
       = 0x2cf79a0

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug gdb/17535] gdb get top
  2014-11-03 14:35 [Bug gdb/17535] New: gdb get top st21net at mail dot ru
@ 2014-11-03 17:50 ` schwab@linux-m68k.org
  0 siblings, 0 replies; 2+ messages in thread
From: schwab@linux-m68k.org @ 2014-11-03 17:50 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=17535

--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> ---
*** Bug 17536 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-11-03 17:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-03 14:35 [Bug gdb/17535] New: gdb get top st21net at mail dot ru
2014-11-03 17:50 ` [Bug gdb/17535] " schwab@linux-m68k.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).