Port, board and/or hardware
unix
MicroPython version
MicroPython v1.28.0-preview.174.ga8b71559cf on 2026-02-16; linux [GCC 15.2.0] version
Reproduction
Expected behaviour
ValueError: negative argument not allowed
Observed behaviour
AddressSanitizer:DEADLYSIGNAL
=================================================================
==29603==ERROR: AddressSanitizer: SEGV on unknown address 0x7ffa15c00000 (pc 0x7ffa165194ab bp 0x7ffc170fef90 sp 0x7ffc170fef30 T0)
==29603==The signal is caused by a WRITE memory access.
#0 0x7ffa165194ab (linux-vdso.so.1+0x14ab) (BuildId: 9b63024b6069edc1f3baef9d1ce5d39a51e32768)
#1 0x7ffa1564df0e in getrandom_vdso ../sysdeps/unix/sysv/linux/getrandom.c:211
==29603==Register values:
rax = 0x0000000000000000 rbx = 0x000000007ffff000 rcx = 0x0000000001ffa00f rdx = 0x00007ffc170fef60
rdi = 0x00007ffa15bfffe0 rsi = 0x00007ffa1637cf60 rbp = 0x00007ffc170fef90 rsp = 0x00007ffc170fef30
r8 = 0x000000007ffff000 r9 = 0xffffffffffffffff r10 = 0x00007ffa1637cf00 r11 = 0x0000000000000246
r12 = 0x00007ffa15a813a0 r13 = 0xffffffffffffffff r14 = 0x00007ffa1637cf00 r15 = 0x0000000001ffffc0
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (linux-vdso.so.1+0x14ab) (BuildId: 9b63024b6069edc1f3baef9d1ce5d39a51e32768)
==29603==ABORTING
Additional Information
No, I've provided everything above.
Credit: Yuan (@Reset816) and me.
Code of Conduct
Yes, I agree
Port, board and/or hardware
unix
MicroPython version
MicroPython v1.28.0-preview.174.ga8b71559cf on 2026-02-16; linux [GCC 15.2.0] version
Reproduction
Expected behaviour
ValueError: negative argument not allowed
Observed behaviour
Additional Information
No, I've provided everything above.
Credit: Yuan (@Reset816) and me.
Code of Conduct
Yes, I agree