Closed
Bug 1143592
Opened 11 years ago
Closed 11 years ago
Failure when using run-gdb.sh on emulator-x86-kk
Categories
(Firefox OS Graveyard :: Emulator, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: swu, Assigned: seinlin)
References
Details
Attachments
(1 file, 1 external file)
|
436.93 KB,
application/x-executable
|
Details |
On emulator-x86-kk, run-gdb.sh fails with the error below:
===================================================================
sywu@sywu-pc:~/work/B2G-emulator-x86-kk$ ./run-gdb.sh attach
B2G_DIR = /home/sywu/work/B2G-emulator-x86-kk
GECKO_PATH = /home/sywu/work/mozilla-central
ENABLE_MARIONETTE = 1
B2G_DEBUG = 0
B2G_NOOPT = 0
B2G_PROFILING = 0
GECKO_OBJDIR = /home/sywu/work/mozilla-central/objdir-gonk-emulator-x86-kk
ADB Location: adb
Attached; pid = 2007
Listening on port 11000
prebuilts/gcc/linux-x86/x86/i686-linux-android-4.7/bin/i686-linux-android-gdb -x /tmp/b2g.gdbinit.sywu.23072 /home/sywu/work/mozilla-central/objdir-gonk-emulator-x86-kk/dist/bin/b2g
GNU gdb (GDB) 7.3.1-gg2
Copyright (C) 2011 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=x86_64-linux-gnu --target=i686-pc-linux-android".
For bug reporting instructions, please see:
<http://source.android.com/source/report-bugs.html>...
Reading symbols from /home/sywu/work/mozilla-central/objdir-gonk-emulator-x86-kk/dist/bin/b2g...done.
Remote debugging from host 127.0.0.1
gdb: Unable to get location for thread creation breakpoint: requested event is not supported
epoll_wait () at bionic/libc/arch-x86/syscalls/epoll_wait.S:17
17 cmpl $-MAX_ERRNO, %eax
(gdb) c
Continuing.
thread getmsg err: no event message for getmsg
Remote connection closed
(gdb)
===================================================================
The problem disappears if I change the gdbserver binary from current version 6.6 to 7.6(the gdbserver 7.6 prebuilt binary is available in emulator-x86-l).
Should we upgrade the gdbserver for emulator-x86-kk?
| Reporter | ||
Updated•11 years ago
|
Flags: needinfo?(mwu)
| Reporter | ||
Updated•11 years ago
|
Blocks: b2g-emulator-x86-KK
| Reporter | ||
Comment 2•11 years ago
|
||
(In reply to Thomas Zimmermann [:tzimmermann] [:tdz] from comment #1)
> Do you already have the pull request of bug 1135201?
Yes, the pull request of bug 1135201 is included.
Flags: needinfo?(swu)
| Reporter | ||
Comment 4•11 years ago
|
||
@seinlin, would you help to upgrade the gdbserver for emulator-x86-kk?
Flags: needinfo?(kli)
| Assignee | ||
Comment 5•11 years ago
|
||
Micheal, pick this commit from upstream can fix the problem. Could review this PR? Thanks!
Flags: needinfo?(kli)
Attachment #8595287 -
Flags: review?(mwu)
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → kli
Updated•11 years ago
|
Attachment #8595287 -
Flags: review?(mwu) → review?(cyu)
Comment 6•11 years ago
|
||
Don't we have the same FD leak if you run 'run-gdb.sh' to start b2g from scratch?
Flags: needinfo?(kli)
| Assignee | ||
Comment 7•11 years ago
|
||
gdbserver 7.6 can only solve the attach issue in comment 0. The FD leak error when start b2g from scratch still exists.
Flags: needinfo?(kli)
Comment 8•11 years ago
|
||
Comment on attachment 8595287 [details] [review]
Update android-x86/gdbserver/gdbserver to 7.6
Remove the review flag since we need gdbserver 7.7 for emulator x86.
Attachment #8595287 -
Flags: review?(cyu)
| Assignee | ||
Comment 9•11 years ago
|
||
I compiled gdbserver 7.7 with the following steps, but when I try to run ./run-gdb.sh there will be an error, and './run-gdb.sh attach' works fine.
1. clone source from
https://android.googlesource.com/toolchain/gdb.git
2. configure with android toolchain
CFLAGS="--sysroot=$B2G_PATH/prebuilts/ndk/8/platforms/android-14/arch-x86" ./configure --host=i686-linux-android
3. copy the following files from prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/
platforms/android-14/arch-x86/usr/include/bits/wordsize.h
8/platforms/android-14/arch-x86/usr/include/sys/procfs.h
8/platforms/android-14/arch-x86/usr/include/sys/reg.h
8/platforms/android-14/arch-x86/usr/include/sys/user.h
4. Disable Werr in Makefile
5. make
| Assignee | ||
Comment 10•11 years ago
|
||
Cyu, Can we review and land 7.6 for debug purpose? We can try to update it to 7.7 when we get a working one.
Flags: needinfo?(cyu)
Comment 11•11 years ago
|
||
Sure. We can upgrade gdb host/server to 7.6 and then have a followup for upgrading server to 7.7 to fix the FD leak.
Flags: needinfo?(cyu)
Comment 12•11 years ago
|
||
Comment on attachment 8595287 [details] [review]
Update android-x86/gdbserver/gdbserver to 7.6
r+ this change since we need gdbserver 7.6 to make attaching work before we have gdbserver 7.7 ready.
Attachment #8595287 -
Flags: review+
| Assignee | ||
Comment 13•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Blocks: Emulator_L_Local
Updated•11 years ago
|
No longer blocks: Emulator_L_Local
You need to log in
before you can comment on or make changes to this bug.
Description
•