From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 112055 invoked by alias); 21 Apr 2015 09:30:15 -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 112022 invoked by uid 48); 21 Apr 2015 09:30:15 -0000 From: "305128674 at qq dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/18274] gdb crashed when I move my mouse to a const string Date: Tue, 21 Apr 2015 09:30:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 7.8 X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: 305128674 at qq dot com X-Bugzilla-Status: WAITING X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-q2/txt/msg00083.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D18274 --- Comment #4 from jiangtaijin <305128674 at qq dot com> --- (In reply to Pedro Alves from comment #3) > OK, thanks. >=20 > In order to understand what's going on, we'll need: >=20 > - "set debug infrun 1 + set debug remote 1" logs (both enabled at the same > time). >=20 > - ideally, get eclipse out of the equation, and to reproduce this with gdb > alone. Enable Eclipse gdb logging, to find the MI traffic between Eclipse > and gdb. Thanks for your help I enable "set debug infrun 1 + set debug remote 1" when gdb start and catch= the logs. it's diffrent from what i used catched=E3=80=82 I cann't andstand the rsp command "P, G, cont:c",why gdb send this when my mouse move to a const string. the gdbstub is write by my self=EF=BC=8C some= command is not implemented, such as "P". Is this the problem=EF=BC=9F here is the log(I have clear logs before my mouse move to the const string,= so this is the logs relate to the problem): Sending packet: $Pe=3D748200c0#ba...Ack Packet received:=20 Packet P (set-register) is NOT supported Sending packet: $G010000002cce6d2460390fc0748200c0384e02c0050505050606060607070707080808080= 9090909101010100455d720744e02c0f854d720748200c0888200c053000020#58...Ack Packet received: OK Sending packet: $G0e0000002cce6d2460390fc0748200c0384e02c0050505050606060607070707080808080= 9090909101010100455d720744e02c0f854d720748200c0888200c053000020#8c...Ack Packet received: OK Sending packet: $G0e0000002cce6d2460390fc0748200c0384e02c0050505050606060607070707080808080= 9090909101010100455d720744e02c0f054d720748200c0888200c053000020#84...Ack Packet received: OK infrun: clear_proceed_status_thread (Thread 67174450) Sending packet: $G0e0000002cce6d2460390fc0748200c0384e02c0050505050606060607070707080808080= 9090909101010100455d720744e02c0f054d720748200c088ba01c053000020#de...Ack Packet received: OK infrun: proceed (addr=3D0xc001ba88, signal=3DGDB_SIGNAL_0, step=3D0) Sending packet: $Z0,c0008274,4#de...Ack Packet received: OK infrun: resume (step=3D0, signal=3DGDB_SIGNAL_0), trap_expected=3D0, curren= t thread [Thread 67174450] at 0xc001ba88 Sending packet: $vCont;c#a8...Ack infrun: wait_for_inferior () Packet received: T05thread:4010032; infrun: target_wait (-1, status) =3D infrun: 42000 [Thread 67174450], infrun: status->kind =3D stopped, signal =3D GDB_SIGNAL_TRAP infrun: TARGET_WAITKIND_STOPPED Sending packet: $g#67...Ack Packet received: 683a0fc00e00000000400fc0683a0fc0384e02c005050505060606060707070708080808090= 90909101010100455d720704f02c0f854d72030ba01c0748200c053000020 infrun: stop_pc =3D 0xc0008274 Sending packet: $mc0008274,4#95...Ack Packet received: fedeffe7 infrun: BPSTAT_WHAT_STOP_SILENT infrun: stop_waiting Sending packet: $qfThreadInfo#bb...Ack Packet received: m4010032 Sending packet: $qsThreadInfo#c8...Ack Packet received: l Sending packet: $z0,c0008274,4#fe...Ack Packet received:=20 d:/MinGW/msys/1.0/home/Administrator/staging/gdb-7.9/gdb/infrun.c:6577: internal-error: normal_stop: Assertion `get_frame_type (frame) =3D=3D DUMMY= _FRAME' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session? (y or n) [answered Y; input not from terminal] This is a bug, please report it. For instructions, see: . This application has requested the Runtime to terminate it in an unusual wa= y. Please contact the application's support team for more information. d:/MinGW/msys/1.0/home/Administrator/staging/gdb-7.9/gdb/infrun.c:6577: internal-error: normal_stop: Assertion `get_frame_type (frame) =3D=3D DUMMY= _FRAME' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Create a core file of GDB? (y or n) [answered Y; input not from terminal] Follw is eclipse gdb trace output: 988,254 39-data-evaluate-expression --thread 1 --frame 0 "\"Hello World!\\n= \"" 988,270 39^done,value=3D"\"Hello World!\\n\"" 988,270 (gdb)=20 988,317 40-var-create --thread 1 --frame 0 - * "\"Hello World!\\n\"" 988,332 40^done,name=3D"var3",numchild=3D"14",value=3D"[14]",type=3D"char [14]",has_more=3D"0" 988,332 (gdb)=20 988,332 41-var-create --thread 1 --frame 0 - * "&(\"Hello World!\\n\")" 988,348 42-var-create --thread 1 --frame 0 - * "\"Hello World!\\n\"[0]" 988,348 43-var-create --thread 1 --frame 0 - * "\"Hello World!\\n\"[1]" 988,348 44-var-create --thread 1 --frame 0 - * "\"Hello World!\\n\"[2]" 988,348 &"Sending packet: $Pe=3D748200c0#ba..." 988,348 &"Ack\n" 988,348 &"Packet received: \n" 988,348 &"Packet P (set-register) is NOT supported\n" 988,348 &"Sending packet: $G010000002cce6d2460390fc0748200c0384e02c005050505060606060707070708080808\ 09090909101010100455d720744e02c0f854d720748200c0888200c053000020#58..." 988,348 &"Ack\n" 988,348 &"Packet received: OK\n" 988,348 &"Sending packet: $G0e0000002cce6d2460390fc0748200c0384e02c005050505060606060707070708080808\ 09090909101010100455d720744e02c0f854d720748200c0888200c053000020#8c..." 988,348 &"Ack\n" 988,348 &"Packet received: OK\n" 988,348 &"Sending packet: $G0e0000002cce6d2460390fc0748200c0384e02c005050505060606060707070708080808\ 09090909101010100455d720744e02c0f054d720748200c0888200c053000020#84..." 988,348 &"Ack\n" 988,348 &"Packet received: OK\n" 988,348 &"infrun: clear_proceed_status_thread (Thread 67174450)\n" 988,348 &"Sending packet: $G0e0000002cce6d2460390fc0748200c0384e02c005050505060606060707070708080808\ 09090909101010100455d720744e02c0f054d720748200c088ba01c053000020#de..." 988,348 &"Ack\n" 988,348 &"Packet received: OK\n" 988,348 &"infrun: proceed (addr=3D0xc001ba88, signal=3DGDB_SIGNAL_0, step= =3D0)\n" 988,348 &"Sending packet: $Z0,c0008274,4#de..." 988,348 &"Ack\n" 988,348 &"Packet received: OK\n" 988,348 &"infrun: resume (step=3D0, signal=3DGDB_SIGNAL_0), trap_expected= =3D0, current thread [Thread 6717\ 4450] at 0xc001ba88\n" 988,348 &"Sending packet: $vCont;c#a8..." 988,363 &"Ack\n" 988,363 &"infrun: wait_for_inferior ()\n" 988,363 &"Packet received: T05thread:4010032;\n" 988,363 &"infrun: target_wait (-1, status) =3D\ninfrun: 42000 [Thread 67174450],\ninfrun: status->\ kind =3D stopped, signal =3D GDB_SIGNAL_TRAP\n" 988,363 &"infrun: TARGET_WAITKIND_STOPPED\n" 988,363 &"Sending packet: $g#67..." 988,363 &"Ack\n" 988,363 &"Packet received: 683a0fc00e00000000400fc0683a0fc0384e02c0050505050606060607070707080808080\ 9090909101010100455d720704f02c0f854d72030ba01c0748200c053000020\n" 988,363 &"infrun: stop_pc =3D 0xc0008274\n" 988,363 &"Sending packet: $mc0008274,4#95..." 988,363 &"Ack\n" 988,363 &"Packet received: fedeffe7\n" 988,363 &"infrun: BPSTAT_WHAT_STOP_SILENT\n" 988,363 &"infrun: stop_waiting\n" 988,363 &"Sending packet: $qfThreadInfo#bb..." 988,363 &"Ack\n" 988,363 &"Packet received: m4010032\n" 988,363 &"Sending packet: $qsThreadInfo#c8..." 988,363 &"Ack\n" 988,363 &"Packet received: l\n" 988,363 &"Sending packet: $z0,c0008274,4#fe..." 988,363 &"Ack\n" 988,363 &"Packet received: \n" 988,363 ~"d:/MinGW/msys/1.0/home/Administrator/staging/gdb-7.9/gdb/infrun.c:6577: internal-error: no\ rmal_stop: Assertion `get_frame_type (frame) =3D=3D DUMMY_FRAME' failed.\nA= problem internal to GDB has \ been detected,\nfurther debugging may prove unreliable.\nQuit this debugging session? " 988,363 ~"(y or n) [answered Y; input not from terminal]\n" 988,363 &"\nThis is a bug, please report it." 988,363 &" For instructions, see:\n= ." 988,363 &"\n\n" 988,363 ~"d:/MinGW/msys/1.0/home/Administrator/staging/gdb-7.9/gdb/infrun.c:6577: internal-error: no\ rmal_stop: Assertion `get_frame_type (frame) =3D=3D DUMMY_FRAME' failed.\nA= problem internal to GDB has \ been detected,\nfurther debugging may prove unreliable.\nCreate a core file= of GDB? " 988,363 ~"(y or n) [answered Y; input not from terminal]\n" --=20 You are receiving this mail because: You are on the CC list for the bug. >>From gdb-prs-return-17890-listarch-gdb-prs=sources.redhat.com@sourceware.org Tue Apr 21 12:41:25 2015 Return-Path: Delivered-To: listarch-gdb-prs@sources.redhat.com Received: (qmail 54534 invoked by alias); 21 Apr 2015 12:41:24 -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 Delivered-To: mailing list gdb-prs@sourceware.org Received: (qmail 54501 invoked by uid 48); 21 Apr 2015 12:41:23 -0000 From: "david.docteur at intel dot com" To: gdb-prs@sourceware.org Subject: [Bug python/17529] Need to better specify contract between MI and pretty-printers Date: Tue, 21 Apr 2015 12:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: python X-Bugzilla-Version: 7.8 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: david.docteur at intel dot com 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: Message-ID: In-Reply-To: References: 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: 2015-q2/txt/msg00084.txt.bz2 Content-length: 490 https://sourceware.org/bugzilla/show_bug.cgi?id=17529 --- Comment #4 from David Docteur --- Hi Doug, I have noticed that you wrote: "The contract between pretty-printers and MI is underspecified" Is there a way to "define"/"customize" some rules for that ? Can we explicitly ask pretty printers to return a string value instead of an array of chars ? Thank you very much ! -- You are receiving this mail because: You are on the CC list for the bug.