Skip to content

Commit 5f79e1d

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 af6c8c8 commit 5f79e1d

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,7 @@ def debug(args, gdbscript=None, exe=None, ssh=None, env=None, sysroot=None, api=
530530
>>> io = gdb.debug(["grep", "local-libc.so", "/proc/self/maps"], gdbscript="continue", env={"LD_PRELOAD": "./local-libc.so"})
531531
>>> io.recvline().split()[-1] # doctest: +ELLIPSIS
532532
b'.../local-libc.so'
533+
>>> io.close()
533534
>>> os.remove("./local-libc.so") # cleanup
534535
535536
@@ -559,6 +560,7 @@ def debug(args, gdbscript=None, exe=None, ssh=None, env=None, sysroot=None, api=
559560
>>> io.gdb.continue_nowait()
560561
>>> io.recvline()
561562
b'foo\n'
563+
>>> io.close()
562564
563565
564566
Using SSH:

0 commit comments

Comments
 (0)