|
From: Matthias G. <m_g...@wi...> - 2025-11-27 11:13:28
|
Hi, I came across a segfault in the python bindings for GPIB. This is with the bitbang kernel module on a Raspberry Pi 4 running raspbian trixie and the python3-gpib package installed from Debian unstable. This can be reproduced like this: <http://intraserv.common.wiwa.loc/gitlab/><http://intraserv.common.wiwa.loc/gitlab/><http://intraserv.common.wiwa.loc/gitlab/><http://intraserv.common.wiwa.loc/gitlab/> <http://intraserv.common.wiwa.loc/gitlab/> sudo modprobe gpib_bitbang sudo /sbin/gpib_config export DEBUGINFOD_URLS="https://debuginfod.debian.net" gdb --args python3 -i (gdb) run (gdb) >>> import gpib (gdb) >>> dev = gpib.dev(0, 9) (gdb) >>> gpib.write(dev, ":ID?") (gdb) 8448 (gdb) >>> gpib.read(dev, 9999) (gdb) b'HP3488A\r\n (gdb) >>> gpib.read(9999, dev) libgpib: invalid descriptor Segmentation fault (gdb) bt Trying to read the wrong way should result in type error from python. I attached the backtrace; let me know if you need any additional info. -- Freundliche Grüsse / Best regards Matthias Geiger __________________________________________________________________ Matthias Geiger Werkstudent Forschung & Entwicklung/Research & Development Phone : +49-6441-609-3004 Email : m_g...@wi... URL : www.wiwa.de WIWA Wilhelm Wagner GmbH & Co. KG Gewerbestrasse 1-3, 35633 Lahnau, Germany Besucheranschrift/visitor address: Georg-Ohm-Strasse 12, 35633 Lahnau, Germany AG WETZLAR HRA 3223, Komplementär : Wagner GmbH (AG Wetzlar HRB 363) UST-ID Nr: / VAT-No: DE113745802 Geschäftsführer: Dipl.-Ing. (FH) Peter Turczak, Dipl.-Wirt.-Ing. Malte Weber |