public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/18274] New: gdb crashed when I move my mouse point to a const string
@ 2015-04-17 12:24 305128674 at qq dot com
  2015-04-17 12:28 ` [Bug gdb/18274] " 305128674 at qq dot com
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: 305128674 at qq dot com @ 2015-04-17 12:24 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 18274
           Summary: gdb crashed when I move my mouse point to a const
                    string
           Product: gdb
           Version: 7.8
            Status: NEW
          Severity: critical
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: 305128674 at qq dot com

Hello, I'm debugging remote program with eclipse and gdb. when i move my mouse
pointer on an const string like "hello world"(some thing like char a[]="hello
world"), then gdb crashed.

the gdb i used is compiler by myself. here is the version infomation:
C:\Users\Administrator>arm-sylixos-eabi-gdb --version
GNU gdb (SylixOS Toolchain for ARM Embedded Processors) 7.8.0.20150304-cvs
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 "--host=i686-w64-mingw32 --target=arm-sylixos-eabi".
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".

gdb error is:
/home/user/toolchain/gcc-arm-sylixos-eabi-4_9-2015q2-20150411/src/gdb/gdb/infrun.c:6229:
internal-error: normal_stop: Assertion `get_frame_type (frame) == 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]
/home/user/toolchain/gcc-arm-sylixos-eabi-4_9-2015q2-20150411/src/gdb/gdb/infrun.c:6229:
internal-error: normal_stop: Assertion `get_frame_type (frame) == DUMMY_FRAME'
failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.


I open the remote debug log, it output:
Sending packet: $Pe=748201c0#bb...Ack
Packet received: 
Packet P (set-register) is NOT supported
Sending packet:
$G0100000014706b24707908c0748201c0a84f03c0c0e0d62050a702c010736b240100000058e1d62048736b2464e0d620e44f03c058e0d620748201c0888201c053000020#cc...Ack
Packet received: OK
Sending packet:
$G0e00000014706b24707908c0748201c0a84f03c0c0e0d62050a702c010736b240100000058e1d62048736b2464e0d620e44f03c058e0d620748201c0888201c053000020#00...Ack
Packet received: OK
Sending packet:
$G0e00000014706b24707908c0748201c0a84f03c0c0e0d62050a702c010736b240100000058e1d62048736b2464e0d620e44f03c050e0d620748201c0888201c053000020#f8...Ack
Packet received: OK
Sending packet:
$G0e00000014706b24707908c0748201c0a84f03c0c0e0d62050a702c010736b240100000058e1d62048736b2464e0d620e44f03c050e0d620748201c050bc02c053000020#49...Ack
Packet received: OK
Sending packet: $Z0,c0018274,4#df...Ack
Packet received: OK
Sending packet: $vCont;c#a8...Ack
Packet received: T05thread:4010023;
Sending packet: $g#67...Ack
Packet received:
787a08c00e000000008008c0787a08c0a84f03c0c0e0d62050a702c010736b240100000058e1d62048736b2464e0d6200400000058e0d620748201c0748201c053000020
Sending packet: $mc0018274,4#96...Ack
Packet received: fedeffe7
Sending packet: $z0,c0018274,4#ff...Ack
Packet received: 

This is a bug, please report it.  For instructions, see:
<http://www.gnu.org/software/gdb/bugs/>.


/home/user/toolchain/gcc-arm-sylixos-eabi-4_9-2015q2-20150411/src/gdb/gdb/infrun.c:6229:
internal-error: normal_stop: Assertion `get_frame_type (frame) == 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]
/home/user/toolchain/gcc-arm-sylixos-eabi-4_9-2015q2-20150411/src/gdb/gdb/infrun.c:6229:
internal-error: normal_stop: Assertion `get_frame_type (frame) == DUMMY_FRAME'
failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
 I

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


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

* [Bug gdb/18274] gdb crashed when I move my mouse point to a const string
  2015-04-17 12:24 [Bug gdb/18274] New: gdb crashed when I move my mouse point to a const string 305128674 at qq dot com
@ 2015-04-17 12:28 ` 305128674 at qq dot com
  2015-04-17 12:29 ` [Bug gdb/18274] gdb crashed when I move my mouse " 305128674 at qq dot com
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: 305128674 at qq dot com @ 2015-04-17 12:28 UTC (permalink / raw)
  To: gdb-prs

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

jiangtaijin <305128674 at qq dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |305128674 at qq dot com

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


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

* [Bug gdb/18274] gdb crashed when I move my mouse to a const string
  2015-04-17 12:24 [Bug gdb/18274] New: gdb crashed when I move my mouse point to a const string 305128674 at qq dot com
  2015-04-17 12:28 ` [Bug gdb/18274] " 305128674 at qq dot com
@ 2015-04-17 12:29 ` 305128674 at qq dot com
  2015-04-20  8:55 ` palves at redhat dot com
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: 305128674 at qq dot com @ 2015-04-17 12:29 UTC (permalink / raw)
  To: gdb-prs

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

jiangtaijin <305128674 at qq dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|gdb crashed when I move my  |gdb crashed when I move my
                   |mouse point to a const      |mouse to a const string
                   |string                      |

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


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

* [Bug gdb/18274] gdb crashed when I move my mouse to a const string
  2015-04-17 12:24 [Bug gdb/18274] New: gdb crashed when I move my mouse point to a const string 305128674 at qq dot com
  2015-04-17 12:28 ` [Bug gdb/18274] " 305128674 at qq dot com
  2015-04-17 12:29 ` [Bug gdb/18274] gdb crashed when I move my mouse " 305128674 at qq dot com
@ 2015-04-20  8:55 ` palves at redhat dot com
  2015-04-21  5:50 ` 305128674 at qq dot com
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: palves at redhat dot com @ 2015-04-20  8:55 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #1 from Pedro Alves <palves at redhat dot com> ---
On 04/17/2015 01:24 PM, 305128674 at qq dot com wrote:
> 
> the gdb i used is compiler by myself. here is the version infomation:

I believe this has been fixed in more recent versions of gdb.

> C:\Users\Administrator>arm-sylixos-eabi-gdb --version
> GNU gdb (SylixOS Toolchain for ARM Embedded Processors) 7.8.0.20150304-cvs

Could you try the 7.9 branch, and/or master?

> Copyright (C) 2014 Free Software Foundation, Inc.

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


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

* [Bug gdb/18274] gdb crashed when I move my mouse to a const string
  2015-04-17 12:24 [Bug gdb/18274] New: gdb crashed when I move my mouse point to a const string 305128674 at qq dot com
                   ` (2 preceding siblings ...)
  2015-04-20  8:55 ` palves at redhat dot com
@ 2015-04-21  5:50 ` 305128674 at qq dot com
  2015-04-21  9:30 ` 305128674 at qq dot com
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: 305128674 at qq dot com @ 2015-04-21  5:50 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #2 from jiangtaijin <305128674 at qq dot com> ---
(In reply to Pedro Alves from comment #1)
> On 04/17/2015 01:24 PM, 305128674 at qq dot com wrote:
> > 
> > the gdb i used is compiler by myself. here is the version infomation:
> 
> I believe this has been fixed in more recent versions of gdb.
> 
> > C:\Users\Administrator>arm-sylixos-eabi-gdb --version
> > GNU gdb (SylixOS Toolchain for ARM Embedded Processors) 7.8.0.20150304-cvs
> 
> Could you try the 7.9 branch, and/or master?
> 
> > Copyright (C) 2014 Free Software Foundation, Inc.

I tried the gdb verions 7.9, the bug remain。 gdb still crashed。

the new version information is:
D:\qtcreator-gdb-7.9-mingw32_nt-6.1-i686>gdb-arm-sylixosqt-eabi.exe --version
Python Exception <type 'exceptions.ImportError'> No module named gdb:
D:\qtcreator-gdb-7.9-mingw32_nt-6.1-i686\gdb-arm-sylixosqt-eabi.exe: warning:
Could not load the Python gdb module from `d:\usr\local\share\gdb/python'.
Limited Python support is available from the _gdb module.
Suggest passing --data-directory=/path/to/gdb/data-directory.

GNU gdb (GDB) 7.9
Copyright (C) 2015 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 "--host=i686-pc-mingw32
--target=arm-sylixosqt-eabi".
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".

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From gdb-prs-return-17888-listarch-gdb-prs=sources.redhat.com@sourceware.org Tue Apr 21 08:01:08 2015
Return-Path: <gdb-prs-return-17888-listarch-gdb-prs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-gdb-prs@sources.redhat.com
Received: (qmail 115634 invoked by alias); 21 Apr 2015 08:01:08 -0000
Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <gdb-prs.sourceware.org>
List-Subscribe: <mailto:gdb-prs-subscribe@sourceware.org>
List-Archive: <http://sourceware.org/ml/gdb-prs/>
List-Post: <mailto:gdb-prs@sourceware.org>
List-Help: <mailto:gdb-prs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: gdb-prs-owner@sourceware.org
Delivered-To: mailing list gdb-prs@sourceware.org
Received: (qmail 114264 invoked by uid 48); 21 Apr 2015 08:01:07 -0000
From: "palves at redhat dot com" <sourceware-bugzilla@sourceware.org>
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 08:01: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: palves at redhat 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: bug_status cc
Message-ID: <bug-18274-4717-BL7YbITiPz@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-18274-4717@http.sourceware.org/bugzilla/>
References: <bug-18274-4717@http.sourceware.org/bugzilla/>
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/msg00082.txt.bz2
Content-length: 818

https://sourceware.org/bugzilla/show_bug.cgi?id\x18274

Pedro Alves <palves at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING
                 CC|                            |palves at redhat dot com

--- Comment #3 from Pedro Alves <palves at redhat dot com> ---
OK, thanks.

In order to understand what's going on, we'll need:

- "set debug infrun 1 + set debug remote 1" logs (both enabled at the same
time).

- 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.

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


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

* [Bug gdb/18274] gdb crashed when I move my mouse to a const string
  2015-04-17 12:24 [Bug gdb/18274] New: gdb crashed when I move my mouse point to a const string 305128674 at qq dot com
                   ` (3 preceding siblings ...)
  2015-04-21  5:50 ` 305128674 at qq dot com
@ 2015-04-21  9:30 ` 305128674 at qq dot com
  2015-04-21 12:50 ` palves at redhat dot com
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: 305128674 at qq dot com @ 2015-04-21  9:30 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #4 from jiangtaijin <305128674 at qq dot com> ---
(In reply to Pedro Alves from comment #3)
> OK, thanks.
> 
> In order to understand what's going on, we'll need:
> 
> - "set debug infrun 1 + set debug remote 1" logs (both enabled at the same
> time).
> 
> - 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。
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, some command is
not implemented, such as "P". Is this the problem?

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=748200c0#ba...Ack
Packet received: 
Packet P (set-register) is NOT supported
Sending packet:
$G010000002cce6d2460390fc0748200c0384e02c00505050506060606070707070808080809090909101010100455d720744e02c0f854d720748200c0888200c053000020#58...Ack
Packet received: OK
Sending packet:
$G0e0000002cce6d2460390fc0748200c0384e02c00505050506060606070707070808080809090909101010100455d720744e02c0f854d720748200c0888200c053000020#8c...Ack
Packet received: OK
Sending packet:
$G0e0000002cce6d2460390fc0748200c0384e02c00505050506060606070707070808080809090909101010100455d720744e02c0f054d720748200c0888200c053000020#84...Ack
Packet received: OK
infrun: clear_proceed_status_thread (Thread 67174450)
Sending packet:
$G0e0000002cce6d2460390fc0748200c0384e02c00505050506060606070707070808080809090909101010100455d720744e02c0f054d720748200c088ba01c053000020#de...Ack
Packet received: OK
infrun: proceed (addr=0xc001ba88, signal=GDB_SIGNAL_0, step=0)
Sending packet: $Z0,c0008274,4#de...Ack
Packet received: OK
infrun: resume (step=0, signal=GDB_SIGNAL_0), trap_expected=0, current thread
[Thread 67174450] at 0xc001ba88
Sending packet: $vCont;c#a8...Ack
infrun: wait_for_inferior ()
Packet received: T05thread:4010032;
infrun: target_wait (-1, status) =
infrun:   42000 [Thread 67174450],
infrun:   status->kind = stopped, signal = GDB_SIGNAL_TRAP
infrun: TARGET_WAITKIND_STOPPED
Sending packet: $g#67...Ack
Packet received:
683a0fc00e00000000400fc0683a0fc0384e02c00505050506060606070707070808080809090909101010100455d720704f02c0f854d72030ba01c0748200c053000020
infrun: stop_pc = 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: 
d:/MinGW/msys/1.0/home/Administrator/staging/gdb-7.9/gdb/infrun.c:6577:
internal-error: normal_stop: Assertion `get_frame_type (frame) == 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:
<http://www.gnu.org/software/gdb/bugs/>.


This application has requested the Runtime to terminate it in an unusual way.
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) == 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="\"Hello World!\\n\""
988,270 (gdb) 
988,317 40-var-create --thread 1 --frame 0 - * "\"Hello World!\\n\""
988,332 40^done,name="var3",numchild="14",value="[14]",type="char
[14]",has_more="0"
988,332 (gdb) 
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=748200c0#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=0xc001ba88, signal=GDB_SIGNAL_0, step=0)\n"
988,348 &"Sending packet: $Z0,c0008274,4#de..."
988,348 &"Ack\n"
988,348 &"Packet received: OK\n"
988,348 &"infrun: resume (step=0, signal=GDB_SIGNAL_0), trap_expected=0,
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) =\ninfrun:   42000 [Thread
67174450],\ninfrun:   status->\
kind = stopped, signal = 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 = 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) == 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<http://www.gnu.org/software/gdb/bugs/>."
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) == 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"

-- 
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: <gdb-prs-return-17890-listarch-gdb-prs=sources.redhat.com@sourceware.org>
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: <gdb-prs.sourceware.org>
List-Subscribe: <mailto:gdb-prs-subscribe@sourceware.org>
List-Archive: <http://sourceware.org/ml/gdb-prs/>
List-Post: <mailto:gdb-prs@sourceware.org>
List-Help: <mailto:gdb-prs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
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" <sourceware-bugzilla@sourceware.org>
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: <bug-17529-4717-Aq8dBv1oYY@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-17529-4717@http.sourceware.org/bugzilla/>
References: <bug-17529-4717@http.sourceware.org/bugzilla/>
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\x17529

--- Comment #4 from David Docteur <david.docteur at intel dot com> ---
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.


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

* [Bug gdb/18274] gdb crashed when I move my mouse to a const string
  2015-04-17 12:24 [Bug gdb/18274] New: gdb crashed when I move my mouse point to a const string 305128674 at qq dot com
                   ` (4 preceding siblings ...)
  2015-04-21  9:30 ` 305128674 at qq dot com
@ 2015-04-21 12:50 ` palves at redhat dot com
  2015-04-21 14:48 ` 305128674 at qq dot com
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: palves at redhat dot com @ 2015-04-21 12:50 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #5 from Pedro Alves <palves at redhat dot com> ---
> I cann't andstand the rsp command "P, G, cont:c",why gdb send this when my
> mouse move to a const string.

I suspect GDB is evaluating an expression that requires allocating memory
in the inferior's address space for the const string in question, and thus
GDB is calling "malloc" in the inferior.

> the gdbstub is write by my self, some command is
> not implemented, such as "P". Is this the problem?

Not sure.

> 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):

Thanks.  I'm not seeing anything obviously wrong though.  I think you'll
need to debug gdb and try to figure out what is going wrong.  I'd
really try to cut Eclipse out of the equation.  Likely you can
reproduce this with the "print/call" commands.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From gdb-prs-return-17892-listarch-gdb-prs=sources.redhat.com@sourceware.org Tue Apr 21 12:58:26 2015
Return-Path: <gdb-prs-return-17892-listarch-gdb-prs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-gdb-prs@sources.redhat.com
Received: (qmail 105157 invoked by alias); 21 Apr 2015 12:58:25 -0000
Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <gdb-prs.sourceware.org>
List-Subscribe: <mailto:gdb-prs-subscribe@sourceware.org>
List-Archive: <http://sourceware.org/ml/gdb-prs/>
List-Post: <mailto:gdb-prs@sourceware.org>
List-Help: <mailto:gdb-prs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: gdb-prs-owner@sourceware.org
Delivered-To: mailing list gdb-prs@sourceware.org
Received: (qmail 105132 invoked by uid 48); 21 Apr 2015 12:58:25 -0000
From: "david.docteur at intel dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug mi/18282] Pretty Printers - unable to create variable object
 (string value from children())
Date: Tue, 21 Apr 2015 12:58:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gdb
X-Bugzilla-Component: mi
X-Bugzilla-Version: 7.3
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: <bug-18282-4717-s42MlNkIul@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-18282-4717@http.sourceware.org/bugzilla/>
References: <bug-18282-4717@http.sourceware.org/bugzilla/>
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/msg00086.txt.bz2
Content-length: 555

https://sourceware.org/bugzilla/show_bug.cgi?id\x18282

--- Comment #2 from David Docteur <david.docteur at intel dot com> ---
Thanks for your answer.

I just read what you wrote:
"Eclipse is taking "name" and assuming it's a class member."

The MI errors were due to the fact that I was using different names in my
pretty printer than the ones in my class.

Now, I can see the "char[N]" in the 'Type' column and the address of the object
in the 'Value' column within Eclipse.

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


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

* [Bug gdb/18274] gdb crashed when I move my mouse to a const string
  2015-04-17 12:24 [Bug gdb/18274] New: gdb crashed when I move my mouse point to a const string 305128674 at qq dot com
                   ` (5 preceding siblings ...)
  2015-04-21 12:50 ` palves at redhat dot com
@ 2015-04-21 14:48 ` 305128674 at qq dot com
  2015-04-22  7:25 ` 305128674 at qq dot com
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: 305128674 at qq dot com @ 2015-04-21 14:48 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #6 from jiangtaijin <305128674 at qq dot com> ---
(In reply to Pedro Alves from comment #5)
> > I cann't andstand the rsp command "P, G, cont:c",why gdb send this when my
> > mouse move to a const string.
> 
> I suspect GDB is evaluating an expression that requires allocating memory
> in the inferior's address space for the const string in question, and thus
> GDB is calling "malloc" in the inferior.
> 
> > the gdbstub is write by my self, some command is
> > not implemented, such as "P". Is this the problem?
> 
> Not sure.
> 
> > 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):
> 
> Thanks.  I'm not seeing anything obviously wrong though.  I think you'll
> need to debug gdb and try to figure out what is going wrong.  I'd
> really try to cut Eclipse out of the equation.  Likely you can
> reproduce this with the "print/call" commands.

ok, I will try to run gdb alone. 
but i don't kown what command to you use to simulate the mouse move to a const
string. 
print is ok.
i use --interpretor mi to send the same cmd as eclipse, it show error also.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From gdb-prs-return-17895-listarch-gdb-prs=sources.redhat.com@sourceware.org Tue Apr 21 15:28:37 2015
Return-Path: <gdb-prs-return-17895-listarch-gdb-prs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-gdb-prs@sources.redhat.com
Received: (qmail 96791 invoked by alias); 21 Apr 2015 15:28:37 -0000
Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <gdb-prs.sourceware.org>
List-Subscribe: <mailto:gdb-prs-subscribe@sourceware.org>
List-Archive: <http://sourceware.org/ml/gdb-prs/>
List-Post: <mailto:gdb-prs@sourceware.org>
List-Help: <mailto:gdb-prs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: gdb-prs-owner@sourceware.org
Delivered-To: mailing list gdb-prs@sourceware.org
Received: (qmail 96762 invoked by uid 55); 21 Apr 2015 15:28:36 -0000
From: "palves at redhat dot com" <sourceware-bugzilla@sourceware.org>
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 15:28: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: palves at redhat 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: <bug-18274-4717-mqRSxu4fvF@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-18274-4717@http.sourceware.org/bugzilla/>
References: <bug-18274-4717@http.sourceware.org/bugzilla/>
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/msg00089.txt.bz2
Content-length: 935

https://sourceware.org/bugzilla/show_bug.cgi?id\x18274

--- Comment #7 from Pedro Alves <palves at redhat dot com> ---
> ok, I will try to run gdb alone.
> but i don't kown what command to you use to simulate the mouse move to a const
> string.
> print is ok.
> i use --interpretor mi to send the same cmd as eclipse, it show error also.

I'd debug gdb, and put a breakpoint in call_function_by_hand.  Then in the
inferior gdb, issue the MI commands that trigger the bug.  You'll probably
find the backtrace shows value_allocate_space_in_inferior.  I suspect that
something around:

 (gdb) print "foo" + 1

triggers the issue too.  I'd try explict inferior function calls too:

 (gdb) print foo()

And there's the possibility that bug really is MI varobj specific too.

I'd run gdb under valgrind as well, in case this is caused by gdb memory
corruption.

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


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

* [Bug gdb/18274] gdb crashed when I move my mouse to a const string
  2015-04-17 12:24 [Bug gdb/18274] New: gdb crashed when I move my mouse point to a const string 305128674 at qq dot com
                   ` (6 preceding siblings ...)
  2015-04-21 14:48 ` 305128674 at qq dot com
@ 2015-04-22  7:25 ` 305128674 at qq dot com
  2015-04-22 10:38 ` palves at redhat dot com
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: 305128674 at qq dot com @ 2015-04-22  7:25 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #8 from jiangtaijin <305128674 at qq dot com> ---
(In reply to Pedro Alves from comment #7)
> > ok, I will try to run gdb alone. 
> > but i don't kown what command to you use to simulate the mouse move to a const
> > string. 
> > print is ok.
> > i use --interpretor mi to send the same cmd as eclipse, it show error also.
> 
> I'd debug gdb, and put a breakpoint in call_function_by_hand.  Then in the
> inferior gdb, issue the MI commands that trigger the bug.  You'll probably
> find the backtrace shows value_allocate_space_in_inferior.  I suspect that
> something around:
> 
>  (gdb) print "foo" + 1
> 
> triggers the issue too.  I'd try explict inferior function calls too:
> 
>  (gdb) print foo()
> 
> And there's the possibility that bug really is MI varobj specific too.
> 
> I'd run gdb under valgrind as well, in case this is caused by gdb memory
> corruption.

So, do you have some idea to avoid this issue, or i need to wait for a newer
gdb version?
i need to use gdb with eclipse.

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


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

* [Bug gdb/18274] gdb crashed when I move my mouse to a const string
  2015-04-17 12:24 [Bug gdb/18274] New: gdb crashed when I move my mouse point to a const string 305128674 at qq dot com
                   ` (7 preceding siblings ...)
  2015-04-22  7:25 ` 305128674 at qq dot com
@ 2015-04-22 10:38 ` palves at redhat dot com
  2015-04-25  5:22 ` 305128674 at qq dot com
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: palves at redhat dot com @ 2015-04-22 10:38 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #9 from Pedro Alves <palves at redhat dot com> ---
I have no idea how to avoid/workaround this issue.  I gave suggestions for how
to debug it, and zone in on the root issue.  In order for someone else to debug
it (other than you), we'd need get a minimal, self-contained and complete
reproducer, that can be run without Eclipse.  The sequence of commands used to
trigger the bug can be based on MI commands.  If we have that, and the bug can
only be triggered against your stub, it may still be reproduciable with
gdbreplay, if you give us a "set remotelogfile" log file.  (See "Using
GDBreplay" in gdb/gdbserver/README.  Make sure to try yourself against
gdbreplay before sending us the log.)

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


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

* [Bug gdb/18274] gdb crashed when I move my mouse to a const string
  2015-04-17 12:24 [Bug gdb/18274] New: gdb crashed when I move my mouse point to a const string 305128674 at qq dot com
                   ` (8 preceding siblings ...)
  2015-04-22 10:38 ` palves at redhat dot com
@ 2015-04-25  5:22 ` 305128674 at qq dot com
  2015-04-25  5:24 ` 305128674 at qq dot com
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: 305128674 at qq dot com @ 2015-04-25  5:22 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #10 from jiangtaijin <305128674 at qq dot com> ---
Created attachment 8268
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8268&action=edit
mi commant list

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


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

* [Bug gdb/18274] gdb crashed when I move my mouse to a const string
  2015-04-17 12:24 [Bug gdb/18274] New: gdb crashed when I move my mouse point to a const string 305128674 at qq dot com
                   ` (10 preceding siblings ...)
  2015-04-25  5:24 ` 305128674 at qq dot com
@ 2015-04-25  5:24 ` 305128674 at qq dot com
  2015-04-25  5:34 ` 305128674 at qq dot com
  12 siblings, 0 replies; 14+ messages in thread
From: 305128674 at qq dot com @ 2015-04-25  5:24 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #11 from jiangtaijin <305128674 at qq dot com> ---
Created attachment 8269
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8269&action=edit
debug remote log file

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


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

* [Bug gdb/18274] gdb crashed when I move my mouse to a const string
  2015-04-17 12:24 [Bug gdb/18274] New: gdb crashed when I move my mouse point to a const string 305128674 at qq dot com
                   ` (9 preceding siblings ...)
  2015-04-25  5:22 ` 305128674 at qq dot com
@ 2015-04-25  5:24 ` 305128674 at qq dot com
  2015-04-25  5:24 ` 305128674 at qq dot com
  2015-04-25  5:34 ` 305128674 at qq dot com
  12 siblings, 0 replies; 14+ messages in thread
From: 305128674 at qq dot com @ 2015-04-25  5:24 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #12 from jiangtaijin <305128674 at qq dot com> ---
Created attachment 8270
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8270&action=edit
cmd error out put

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


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

* [Bug gdb/18274] gdb crashed when I move my mouse to a const string
  2015-04-17 12:24 [Bug gdb/18274] New: gdb crashed when I move my mouse point to a const string 305128674 at qq dot com
                   ` (11 preceding siblings ...)
  2015-04-25  5:24 ` 305128674 at qq dot com
@ 2015-04-25  5:34 ` 305128674 at qq dot com
  12 siblings, 0 replies; 14+ messages in thread
From: 305128674 at qq dot com @ 2015-04-25  5:34 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #13 from jiangtaijin <305128674 at qq dot com> ---
(In reply to Pedro Alves from comment #9)
> I have no idea how to avoid/workaround this issue.  I gave suggestions for
> how to debug it, and zone in on the root issue.  In order for someone else
> to debug it (other than you), we'd need get a minimal, self-contained and
> complete reproducer, that can be run without Eclipse.  The sequence of
> commands used to trigger the bug can be based on MI commands.  If we have
> that, and the bug can only be triggered against your stub, it may still be
> reproduciable with gdbreplay, if you give us a "set remotelogfile" log file.
> (See "Using GDBreplay" in gdb/gdbserver/README.  Make sure to try yourself
> against gdbreplay before sending us the log.)

I have uploaded the mi-command file and remote log file, error happens at mi
command "41-var-create --thread 1 --frame 0 - * "&(\"Hello World!\\n\")". but i
can't reproducer this issue on every pc, a other pc sends diffrent rsp commands
sequence when i use the same mi-commond sequence.

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


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

end of thread, other threads:[~2015-04-25  5:34 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-17 12:24 [Bug gdb/18274] New: gdb crashed when I move my mouse point to a const string 305128674 at qq dot com
2015-04-17 12:28 ` [Bug gdb/18274] " 305128674 at qq dot com
2015-04-17 12:29 ` [Bug gdb/18274] gdb crashed when I move my mouse " 305128674 at qq dot com
2015-04-20  8:55 ` palves at redhat dot com
2015-04-21  5:50 ` 305128674 at qq dot com
2015-04-21  9:30 ` 305128674 at qq dot com
2015-04-21 12:50 ` palves at redhat dot com
2015-04-21 14:48 ` 305128674 at qq dot com
2015-04-22  7:25 ` 305128674 at qq dot com
2015-04-22 10:38 ` palves at redhat dot com
2015-04-25  5:22 ` 305128674 at qq dot com
2015-04-25  5:24 ` 305128674 at qq dot com
2015-04-25  5:24 ` 305128674 at qq dot com
2015-04-25  5:34 ` 305128674 at qq dot com

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).