Bug 16769 - Assertion `thread->last_status.kind != TARGET_WAITKIND_IGNORE' failed
Summary: Assertion `thread->last_status.kind != TARGET_WAITKIND_IGNORE' failed
Status: NEW
Alias: None
Product: gdb
Classification: Unclassified
Component: gdb (show other bugs)
Version: 7.7
: P2 critical
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-28 19:57 UTC by Joe Liccese
Modified: 2014-07-18 06:07 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
gdb 7.7 log (2.39 KB, text/plain)
2014-03-28 19:57 UTC, Joe Liccese
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Liccese 2014-03-28 19:57:53 UTC
Created attachment 7500 [details]
gdb 7.7 log

Attempting to run Eclipse Kepler Remote App Debug Launcher using gdb 7.7 and gdbserver 7.7.

Running gdbserver on TI DM816x ARM A8:
  => gdbserver :10000 --attach 1011
  Attached; pid = 1011
  Listening on port 10000

Running Eclipse Kepler from Linux 2.6.32-220.el6.x86_64
GDB launches successfuly. Gdbserver reports:
  Remote debugging from host 10.223.1.45

GDB MI commands issued by Eclipse:
-environment-cd /home/jliccese/ws/robocop/src
-gdb-set breakpoint pending on
-gdb-set detach-on-fork on
-enable-pretty-printing
-gdb-set print object on
-gdb-set print sevenbit-strings on
-gdb-set host-charset UTF-8
-gdb-set target-charset US-ASCII
-gdb-set target-wide-charset UTF-32
-gdb-set target-async on
-gdb-set pagination off
-gdb-set non-stop on
-gdb-set auto-solib-add on
-gdb-set solib-search-path /opt/netra-tools/arm_a8_codegen_android-14_plcm7/sysroot/usr/lib
-file-exec-and-symbols --thread-group i1 codec_engine

At this point all is well. The following target-select command is then issued:
  -target-select remote 10.223.73.34:10000
which causes gdbserver to print:
  gdb-7.7/gdb/gdbserver/server.c:2490: A problem internal to GDBserver has been detected.
  queue_stop_reply_callback: Assertion `thread->last_status.kind != TARGET_WAITKIND_IGNORE' failed.
and gdbserver terminates.

I can debug successfully from Eclipse Kepler if I use GDB 7.3 and GDBSERVER 7.3.

gdbserver 7.7 was built with the following cross-compile build command:
  ../gdb-7.7/gdb/gdbserver/configure --host=arm-linux-androideabi CFLAGS="-march=armv7-a -mfloat-abi=softfp -mfpu=neon"

gdb 7.7 was built with the build command:
  ../gdb-7.7/configure --target=arm-linux-androideabi

Both built without error.
Comment 1 egphilippov 2014-07-18 04:23:41 UTC
Same assertion fails with gdb 7.5.1:

# gdbserver --attach 0.0.0.0:10000 `pgrep java`
Attached; pid = 14351
Listening on port 10000
Remote debugging from host 127.0.0.1
server.c:2356: A problem internal to GDBserver has been detected.
queue_stop_reply_callback: Assertion `thread->last_status.kind != TARGET_WAITKIND_IGNORE' failed.
# gdbserver --version|head -n1
GNU gdbserver (GDB) 7.5.1
# gdb --version|head -n1
GNU gdb (GDB) 7.5.1

Eclipse version: eclipse-kepler-SR2-linux-gtk
Comment 2 egphilippov 2014-07-18 04:26:26 UTC
Same assertion fails with gdb 7.8.50.20140715-cvs (weekly):

# gdbserver --attach 0.0.0.0:10000 `pgrep java`
Attached; pid = 14351
Listening on port 10000
Remote debugging from host 127.0.0.1
server.c:2691: A problem internal to GDBserver has been detected.
queue_stop_reply_callback: Assertion `thread->last_status.kind != TARGET_WAITKIND_IGNORE' failed.
# gdb --version|head -n1
GNU gdb (GDB) 7.8.50.20140715-cvs
# gdbserver --version|head -n1
GNU gdbserver (GDB) 7.8.50.20140715-cvs
Comment 3 egphilippov 2014-07-18 04:31:31 UTC
My previous comments were done with:

# uname -a
Linux egp-ssd-ubuntu14-04 3.13.0-30-generic #55-Ubuntu SMP Fri Jul 4 21:43:42 UTC 2014 i686 i686 i686 GNU/Linux
# lsb_release -dc
Description:	Ubuntu 14.04 LTS
Codename:	trusty

Both of gdb versions were built with default parameters:

./configure && make && sudo make install
Comment 4 egphilippov 2014-07-18 06:07:03 UTC
Since gdb 7.3 is not available anymore, I built gdb 7.3.1 with some tweaks to source code, it works with the above Kepler without triggering this assertion.