From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28978 invoked by alias); 3 Nov 2014 14:35:29 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 28944 invoked by uid 48); 3 Nov 2014 14:35:28 -0000 From: "st21net at mail dot ru" To: gdb-prs@sourceware.org Subject: [Bug gdb/17535] New: gdb get top Date: Mon, 03 Nov 2014 14:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 7.8 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: st21net at mail dot ru X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-q4/txt/msg00171.txt.bz2 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 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: . Find the GDB manual and other documentation resources online at: . 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=, count=) at ../../bfd/libbfd.c:884 #5 0x00000000005e3249 in section_table_xfer_memory_partial (readbuf=0x7fffb46afb60 "", writebuf=0x0, offset=, len=2304, xfered_len=0x7fffb46afac8, sections=, sections_end=0x1d322c0, section_name=0x0) at ../../gdb/exec.c:766 #6 0x000000000054c957 in core_xfer_partial (ops=, object=, annex=, 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 , 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=, writebuf=0x0, readbuf=0x7fffb46afb60 "", object=TARGET_OBJECT_MEMORY, ops=0xcf5020 ) at ../../gdb/target.c:1206 #9 target_xfer_partial (ops=0xcf5020 , object=TARGET_OBJECT_MEMORY, annex=0x0, readbuf=0x7fffb46afb60 "", writebuf=0x0, offset=, 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 ) at ../../gdb/target.c:1529 #11 target_read (ops=0xcf5020 , object=TARGET_OBJECT_MEMORY, annex=0x0, buf=0x7fffb46afb60 "", offset=139641522955904, len=2304) at ../../gdb/target.c:1560 #12 0x00000000005d7d10 in target_read_memory (memaddr=, myaddr=, 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=) 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=, args=0x7fffb46b07f0) at ../../gdb/observer.c:167 #25 0x00000000005e8366 in observer_notify_new_objfile (objfile=) at ./observer.inc:582 #26 0x00000000005829ff in symbol_file_add_with_addrs (abfd=, name=, add_flags=8, addrs=, flags=, parent=0x845820 ) 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=, readsyms=1) at ../../gdb/solib.c:965 #29 0x0000000000592def in post_create_inferior (target=0xcf5020 , from_tty=1) at ../../gdb/infcmd.c:462 #30 0x000000000054d526 in core_open (filename=, from_tty=1) at ../../gdb/corelow.c:472 #31 0x00000000005ad235 in catch_command_errors (command=0x6229c0 , arg=0x7fffb46b28fc "popd.mpop.20148.8.core", from_tty=1, mask=) at ../../gdb/main.c:356 #32 0x00000000005aded0 in captured_main (data=) at ../../gdb/main.c:1156 #33 0x00000000005aa45b in catch_errors (func=0x5ad6f0 , func_args=0x7fffb46b0b50, errstring=0x80baad "", mask=RETURN_MASK_ALL) at ../../gdb/exceptions.c:506 #34 0x00000000005ad0db in gdb_main (args=) at ../../gdb/main.c:1266 #35 0x0000000000406d75 in main (argc=, argv=) at ../../gdb/gdb.c:33 (gdb) strace: fseeko64(0x2cf7760, 0x1283680, 0, 0x9c0c00, 2304) = 0 fread(0x7fff31d929c0, 1, 2304, 0x2cf7760) = 2304 free(0x2ba9f70) = free(0x2cf79a0) = malloc(24) = 0x2ba9f70 malloc(32) = 0x2cf79a0 fseeko64(0x2cf7760, 0x1283680, 0, 0x9c0c00, 2304) = 0 fread(0x7fff31d91e40, 1, 2304, 0x2cf7760) = 2304 free(0x2ba9f70) = free(0x2cf79a0) = malloc(24) = 0x2ba9f70 malloc(32) = 0x2cf79a0 -- You are receiving this mail because: You are on the CC list for the bug.