Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using Pwngdb in ubuntu 19.04 with libc 2.29 #35

Open
sunichi opened this issue May 11, 2019 · 5 comments
Open

Error when using Pwngdb in ubuntu 19.04 with libc 2.29 #35

sunichi opened this issue May 11, 2019 · 5 comments

Comments

@sunichi
Copy link

sunichi commented May 11, 2019

Ctrl + C cannot stop the gdb.
Using ubuntu:19.04 Docker with pwntools and tmux.

@scwuaptx
Copy link
Owner

Can you give me your Dockerfile and tmux config ?
I can not reproduce the problem :(

@sunichi
Copy link
Author

sunichi commented May 14, 2019

It's my fault that I forget to say that I run/use gdb in pwntools. All config is default. Pwngdb work perfectly with pwntools in Docker under ubuntu:16.04 and ubuntu:18.04. Here is my dockerfile, exp.py and some operations/outputs in gdb.

From ubuntu:19.04
RUN sed -i "s/http:\/\/archive.ubuntu.com/http:\/\/mirrors.tuna.tsinghua.edu.cn/g" /etc/apt/sources.list 
RUN apt update && apt-get -y dist-upgrade
RUN apt install -y tmux gcc g++ cmake gdb git vim
RUN git clone https://github.com/longld/peda /root/peda
RUN git clone https://github.com/scwuaptx/Pwngdb /root/Pwngdb
RUN cp /root/Pwngdb/.gdbinit /root/
RUN apt-get install -y python2.7 python-pip python-dev git libssl-dev libffi-dev build-essential
RUN pip install --upgrade pip
RUN pip install --upgrade pwntools
from pwn import *
p = process('bin_path')

context.terminal = ['tmux', 'split', '-h']

gdb.attach(p)

p.interactive()
p.close()
gdb-peda$ c
Continuing.
^C^C^C^C # when I send Ctrl + c to gdb, I cannot stop it.
Program terminated with signal SIGKILL, Killed. # here I terminated the executable in another screen.
The program no longer exists.
Warning: Got Ctrl+C / SIGINT!
Error while running hook_stop:
Quit
gdb-peda$

@david942j
Copy link

Did you confirm that there's no bug when you disable Pwngdb?

@sunichi
Copy link
Author

sunichi commented May 14, 2019

Did you confirm that there's no bug when you disable Pwngdb?

You're right. I forget peda. After testing I find that it's peda's fault.

@david942j
Copy link

Actually I think it's a bug introduced in GDB 8.2: https://sourceware.org/bugzilla/show_bug.cgi?id=18772#c2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants