public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "curty at ieee dot org" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug server/13984] New: gdb stops controlling a thread after "Remote 'g' packet reply is too long: ..." error message Date: Mon, 16 Apr 2012 02:34:00 -0000 [thread overview] Message-ID: <bug-13984-4717@http.sourceware.org/bugzilla/> (raw) http://sourceware.org/bugzilla/show_bug.cgi?id=13984 Bug #: 13984 Summary: gdb stops controlling a thread after "Remote 'g' packet reply is too long: ..." error message Product: gdb Version: 7.4 Status: NEW Severity: critical Priority: P2 Component: server AssignedTo: unassigned@sourceware.org ReportedBy: curty@ieee.org Classification: Unclassified Linux Kernel debugging running gdbserver at Eclipse causes gdbserver stop receiving thread commands after "Remote 'g' packet reply is too long: ..." error message. This message arrives after hit a tbreak at start_kernel() function. The state is "Thread [1] (Suspended)" but when I try to control this thread (eg. execute, suspend, etc), a "Cannot execute this command while the selected thread is running" message returns and it is not possible to continue debuging. > QEMU Guest (Intel i7) command: # /home/curtyc/000_HPC/usr/local/packages/qemu-devel/bin/qemu-system-x86_64 -smp 1 -kernel '/home/curtyc/Linux_kernel_source/linux-3.3/arch/x86_64/boot/vmlinux' /home/curtyc/QEMU/images/Fedora-x86_64-linux-3.3.0.raw -S -gdb tcp::1234 > GDB console at Eclipse: ------ cut here ------- .gdbinit: No such file or directory. Reading symbols from /home/curtyc/Linux_kernel_source/linux-3.3/vmlinux...done. 866-gdb-set confirm off 866^done (gdb) 867-gdb-set width 0 867^done (gdb) 868-gdb-set height 0 868^done (gdb) 869-interpreter-exec console echo 869^done (gdb) 870-gdb-show prompt 870^done,value="(gdb) " (gdb) 871-gdb-set auto-solib-add off 871^done (gdb) 872-gdb-set stop-on-solib-events 0 872^done (gdb) 873-target-select remote localhost:1234 =thread-group-started,id="i1",pid="42000" =thread-created,id="1",group-id="i1" *stopped,frame={addr="0x0000000000000000",func="irq_stack_union",args=[]},thread-id="1",stopped-threads="all" 873^connected (gdb) 874 info proc &"info proc\n" &"Can't determine the current process's PID: you must name one.\n" 874^error,msg="Can't determine the current process's PID: you must name one." (gdb) 875-environment-cd /home/curtyc/Linux_kernel_source/linux-3.3 875^done (gdb) 876 info program &"info program\n" ~"Debugging a target over a serial line.\n" ~"Program stopped at 0x0.\n" ~"It stopped with signal SIGTRAP, Trace/breakpoint trap.\n" 876^done (gdb) 877 info threads &"info threads\n" ~" Id Target Id Frame \n" ~"* 1 Thread 1 (CPU#0 [running]) 0x0000000000000000 in irq_stack_union ()\n" 877^done (gdb) 878-stack-info-depth 878^done,depth="2" (gdb) 879-stack-list-frames 0 2 879^done,stack=[frame={level="0",addr="0x0000000000000000",func="irq_stack_union"},frame={level="1",addr="0x0000000000000000",func="??"}] (gdb) 880-data-list-changed-registers 880^done,changed-registers=["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","73","74","75","76","77","78","79","80","81","82","83","84","85","86","87","88","89","90","91","92","93","94","95","96","97","98","99","100","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125"] (gdb) 881 info sharedlibrary &"info sharedlibrary\n" ~"No shared libraries loaded at this time.\n" 881^done (gdb) 882-environment-directory ... <many_directory_paths_excluded_without_problem_for_understanding> ... (gdb) 883-data-list-register-names 883^done,register-names=["rax","rbx","rcx","rdx","rsi","rdi","rbp","rsp","r8","r9","r10","r11","r12","r13","r14","r15","rip","eflags","cs","ss","ds","es","fs","gs","st0","st1","st2","st3","st4","st5","st6","st7","fctrl","fstat","ftag","fiseg","fioff","foseg","fooff","fop","xmm0","xmm1","xmm2","xmm3","xmm4","xmm5","xmm6","xmm7","xmm8","xmm9","xmm10","xmm11","xmm12","xmm13","xmm14","xmm15","mxcsr","","","","","","","","","","","","","","","","","orig_rax","al","bl","cl","dl","sil","dil","bpl","spl","r8l","r9l","r10l","r11l","r12l","r13l","r14l","r15l","ah","bh","ch","dh","ax","bx","cx","dx","si","di","bp","","r8w","r9w","r10w","r11w","r12w","r13w","r14w","r15w","eax","ebx","ecx","edx","esi","edi","ebp","esp","r8d","r9d","r10d","r11d","r12d","r13d","r14d","r15d"] (gdb) 884-break-insert -t init/main.c:start_kernel 884^done,bkpt={number="1",type="breakpoint",disp="del",enabled="y",addr="0xffffffff81cf083e",func="start_kernel",file="init/main.c",fullname="/home/curtyc/Linux_kernel_source/linux-3.3/init/main.c",line="464",times="0",original-location="init/main.c:start_kernel"} (gdb) 885-exec-continue 885^running *running,thread-id="all" (gdb) 885^error,msg="Remote 'g' packet reply is too long: 00000000000000000090f700000000000090f70100000000020000000000000080dfd781ffffffffb0dfd781ffffffff781fc081ffffffff601fc081ffffffff0090f7000000000000000001000000000090f700000000000000000100000000200000000000000000f0dd81ffffffffa81fc081ffffffff00c00800000000003e08cf81ffffffff9600000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007f0300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000801f0000" (gdb) 886 info threads &"info threads\n" ~" Id Target Id Frame \n" ~"* 1 Thread 1 (CPU#0 [running]) (running)\n" 886^done (gdb) 887-stack-info-depth 887^error,msg="Target is executing." (gdb) 888-stack-info-depth 888^error,msg="Target is executing." (gdb) 889-stack-list-frames 0 1 889^error,msg="Target is executing." (gdb) 890-data-list-changed-registers 890^error,msg="Target is executing." (gdb) ------ cut here ------- Thanks in advance for your attention. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
next reply other threads:[~2012-04-16 2:34 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-04-16 2:34 curty at ieee dot org [this message] 2015-08-12 11:47 ` [Bug server/13984] " sarikayameh at gmail dot com 2015-08-12 11:49 ` sarikayameh at gmail dot com 2015-08-12 11:50 ` sarikayameh at gmail dot com 2015-08-12 12:55 ` ciro.santilli at gmail dot com 2015-08-12 12:57 ` ciro.santilli at gmail dot com 2015-08-12 13:07 ` ciro.santilli at gmail dot com 2015-08-12 17:08 ` sarikayameh at gmail dot com 2015-08-12 17:09 ` sarikayameh at gmail dot com 2015-08-12 21:01 ` ciro.santilli at gmail dot com 2015-08-13 10:37 ` sarikayameh at gmail dot com 2015-08-13 10:39 ` ciro.santilli at gmail dot com 2023-09-12 14:49 ` konsolebox at gmail dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-13984-4717@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).