Message353906
Ran into Segfaults while trying to use pysnmp with 3.8.0rc1.
The code is running fine on 3.8.0b04.
$ python3.8
Python 3.8.0rc1 (default, Oct 2 2019, 14:15:18)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ctypes
>>> class in6_addr_U(ctypes.Union):
... _fields_ = [
... ('__u6_addr8', ctypes.c_uint8 * 16),
... ('__u6_addr16', ctypes.c_uint16 * 8),
... ('__u6_addr32', ctypes.c_uint32 * 4),
... ]
...
Segmentation fault
$ docker run -it python:3.8.0rc1-slim
Python 3.8.0rc1 (default, Oct 2 2019, 23:38:42)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ctypes
>>> class in6_addr_U(ctypes.Union):
... _fields_ = [
... ('__u6_addr8', ctypes.c_uint8 * 16),
... ('__u6_addr16', ctypes.c_uint16 * 8),
... ('__u6_addr32', ctypes.c_uint32 * 4),
... ]
...
$
The code is from here: https://github.com/etingof/pysnmp/blob/master/pysnmp/carrier/sockmsg.py#L47-L52 |
|
Date |
User |
Action |
Args |
2019-10-04 08:36:01 | oriordan | set | recipients:
+ oriordan |
2019-10-04 08:36:01 | oriordan | set | messageid: <1570178161.94.0.1951756088.issue38368@roundup.psfhosted.org> |
2019-10-04 08:36:01 | oriordan | link | issue38368 messages |
2019-10-04 08:36:01 | oriordan | create | |
|