Skip to content

Commit 000c31c

Browse files
committed
ci: Install rpyc from pip instead of apt
The apt package appears outdated and incompatible with the latest version on pypi. >>> ValueError: invalid message type: 18
1 parent 197f008 commit 000c31c

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/ci.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ jobs:
1919
git fetch origin
2020
git log --oneline --graph -10
2121
22+
- name: Install RPyC for gdb
23+
run: |
24+
# The version packaged in python3-rpyc is too old on Ubuntu 22.04
25+
sudo apt-get update && sudo apt-get install -y python3-pip gdb gdbserver
26+
/usr/bin/python -m pip install rpyc
27+
gdb --batch --quiet --nx --nh --ex 'py import rpyc; print(rpyc.version.version)'
28+
2229
- name: Cache for pip
2330
uses: actions/cache@v4
2431
id: cache-pip
@@ -62,7 +69,6 @@ jobs:
6269
sudo apt-get update
6370
sudo apt-get install -y --no-install-recommends -o Acquire::Retries=3 \
6471
ash bash-static dash ksh mksh zsh \
65-
python3-rpyc \
6672
gdb gdbserver socat \
6773
binutils-multiarch qemu-user-static \
6874
binutils-aarch64-linux-gnu \

pwnlib/gdb.py

+2
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,7 @@ def debug(args, gdbscript=None, exe=None, ssh=None, env=None, sysroot=None, api=
526526
>>> io = gdb.debug(["grep", "local-libc.so", "/proc/self/maps"], gdbscript="continue", env={"LD_PRELOAD": "./local-libc.so"})
527527
>>> io.recvline().split()[-1] # doctest: +ELLIPSIS
528528
b'.../local-libc.so'
529+
>>> io.close()
529530
>>> os.remove("./local-libc.so") # cleanup
530531
531532
@@ -555,6 +556,7 @@ def debug(args, gdbscript=None, exe=None, ssh=None, env=None, sysroot=None, api=
555556
>>> io.gdb.continue_nowait()
556557
>>> io.recvline()
557558
b'foo\n'
559+
>>> io.close()
558560
559561
560562
Using SSH:

0 commit comments

Comments
 (0)