public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug server/16193] New: gdbserver aborts
@ 2013-11-20 14:10 qiyao at gcc dot gnu.org
  2013-11-20 14:11 ` [Bug server/16193] " qiyao at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: qiyao at gcc dot gnu.org @ 2013-11-20 14:10 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 16193
           Summary: gdbserver aborts
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: server
          Assignee: unassigned at sourceware dot org
          Reporter: qiyao at gcc dot gnu.org

start gdbserver:
  ./gdbserver/gdbserver :1234 ./1.exe

and start gdb,
  ./gdb ./1.exe
  (gdb) target remote :1234
  (gdb) b main
  (gdb) c

then GDBserver aborts with the following error message:
memory clobbered past end of allocated block
Aborted

The stack backtrace is like:

(gdb) bt 20
#0  0xb7fff424 in __kernel_vsyscall ()
#1  0x4ce9f98f in raise () from /lib/libc.so.6
#2  0x4cea12d5 in abort () from /lib/libc.so.6
#3  0x4cee1b0a in __libc_message () from /lib/libc.so.6
#4  0x4cee1c34 in __libc_fatal () from /lib/libc.so.6
#5  0x4ceef130 in mabort () from /lib/libc.so.6
#6  0x4ceef23d in freehook () from /lib/libc.so.6
#7  0x4ceed47b in free () from /lib/libc.so.6
#8  0x0806751a in regsets_store_inferior_registers (regsets_info=0x8090fe4,
regcache=0x8099440) at ../../../../git/gdb/gdbserver/linux-low.c:4155
#9  0x0806d69a in linux_store_registers (regcache=0x8099440, regno=-1) at
../../../../git/gdb/gdbserver/linux-low.c:4391
#10 0x0804d76c in regcache_invalidate_thread (thread=0x80993e8) at
../../../../git/gdb/gdbserver/regcache.c:82
#11 0x0806890e in linux_resume_one_lwp (info=0x0, signal=0, step=0,
lwp=0x8099318) at ../../../../git/gdb/gdbserver/linux-low.c:3267
#12 linux_resume_one_lwp (lwp=0x8099318, step=0, signal=<optimized out>,
info=0x0) at ../../../../git/gdb/gdbserver/linux-low.c:3096
#13 0x080692b0 in linux_resume_one_thread (entry=0x80993e8, arg=0xbfffecdc) at
../../../../git/gdb/gdbserver/linux-low.c:3722
#14 0x0804d3ca in find_inferior (list=0x8093f24, func=0x8069210
<linux_resume_one_thread>, arg=0xbfffecdc) at
../../../../git/gdb/gdbserver/inferiors.c:185
#15 0x08069154 in linux_resume (resume_info=0x8099930, n=1) at
../../../../git/gdb/gdbserver/linux-low.c:3803
#16 0x0805455d in handle_v_cont (own_buf=0x80951c8 "vCont;c") at
../../../../git/gdb/gdbserver/server.c:2134
#17 0x0805505f in process_serial_event () at
../../../../git/gdb/gdbserver/server.c:3529
#18 handle_serial_event (err=0, client_data=0x0) at
../../../../git/gdb/gdbserver/server.c:3577
#19 0x0805a698 in handle_file_event (event_file_desc=8) at
../../../../git/gdb/gdbserver/event-loop.c:434

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


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

* [Bug server/16193] gdbserver aborts
  2013-11-20 14:10 [Bug server/16193] New: gdbserver aborts qiyao at gcc dot gnu.org
@ 2013-11-20 14:11 ` qiyao at gcc dot gnu.org
  2013-11-21 19:52 ` palves at redhat dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: qiyao at gcc dot gnu.org @ 2013-11-20 14:11 UTC (permalink / raw)
  To: gdb-prs

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

Yao Qi <qiyao at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |i686-pc-linux-gnu
               Host|                            |i686-pc-linux-gnu
              Build|                            |i686-pc-linux-gnu

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


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

* [Bug server/16193] gdbserver aborts
  2013-11-20 14:10 [Bug server/16193] New: gdbserver aborts qiyao at gcc dot gnu.org
  2013-11-20 14:11 ` [Bug server/16193] " qiyao at gcc dot gnu.org
@ 2013-11-21 19:52 ` palves at redhat dot com
  2013-11-22  0:41 ` qiyao at gcc dot gnu.org
  2013-11-30  3:28 ` qiyao at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: palves at redhat dot com @ 2013-11-21 19:52 UTC (permalink / raw)
  To: gdb-prs

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

Pedro Alves <palves at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |palves at redhat dot com

--- Comment #1 from Pedro Alves <palves at redhat dot com> ---
https://sourceware.org/ml/gdb-patches/2013-11/msg00655.html

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


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

* [Bug server/16193] gdbserver aborts
  2013-11-20 14:10 [Bug server/16193] New: gdbserver aborts qiyao at gcc dot gnu.org
  2013-11-20 14:11 ` [Bug server/16193] " qiyao at gcc dot gnu.org
  2013-11-21 19:52 ` palves at redhat dot com
@ 2013-11-22  0:41 ` qiyao at gcc dot gnu.org
  2013-11-30  3:28 ` qiyao at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: qiyao at gcc dot gnu.org @ 2013-11-22  0:41 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #2 from Yao Qi <qiyao at gcc dot gnu.org> ---
(In reply to Pedro Alves from comment #1)
> https://sourceware.org/ml/gdb-patches/2013-11/msg00655.html

This abort appears after MPX patches are committed.  If I back out the whole
MPX series, GDBserver works fine.

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


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

* [Bug server/16193] gdbserver aborts
  2013-11-20 14:10 [Bug server/16193] New: gdbserver aborts qiyao at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2013-11-22  0:41 ` qiyao at gcc dot gnu.org
@ 2013-11-30  3:28 ` qiyao at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: qiyao at gcc dot gnu.org @ 2013-11-30  3:28 UTC (permalink / raw)
  To: gdb-prs

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

Yao Qi <qiyao at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Yao Qi <qiyao at gcc dot gnu.org> ---
This bug was fixed by this commit
https://sourceware.org/ml/gdb-cvs/2013-11/msg00083.html and the patch can be
found https://sourceware.org/ml/gdb-patches/2013-11/msg00799.html

Close it.

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


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

end of thread, other threads:[~2013-11-30  3:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-20 14:10 [Bug server/16193] New: gdbserver aborts qiyao at gcc dot gnu.org
2013-11-20 14:11 ` [Bug server/16193] " qiyao at gcc dot gnu.org
2013-11-21 19:52 ` palves at redhat dot com
2013-11-22  0:41 ` qiyao at gcc dot gnu.org
2013-11-30  3:28 ` qiyao at gcc dot gnu.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).