NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lib/55939: arc4random_uniform() broken on arm?

>Number:         55939
>Category:       lib
>Synopsis:       arc4random_uniform() broken on arm?
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 20 13:45:00 +0000 2021
>Originator:     Martin Husemann
>Release:        NetBSD 9.99.78
The NetBSD Foundation, Inc.
System: NetBSD 9.99.78 NetBSD 9.99.78 (GENERIC) #118: Wed Jan 20 12:45:59 CET 2021 evbarm
Architecture: earmv7hfeb
Machine: evbarm

While trying to update a machine to -current it spent ~20 cpu minutes in
extracting xfont.tgz:

# tar xpzf xfont.tgz
[ 6448.3086516] load: 0.99  cmd: tar 2494 [0x6db0dffe/0] 55.91u 1015.38s 99% 3124k

Attaching gdb showed:

[Switching to LWP 2494 of process 2494]
0x6db0dffe in __udivmodsi4 () from /lib/
(gdb) bt
#0  0x6db0dffe in __udivmodsi4 () from /lib/
#1  0x6db0bd50 in __aeabi_uidivmod () from /lib/
#2  0x6db02a08 in _arc4random_uniform (bound=bound@entry=62)
    at /work/src/lib/libc/gen/arc4random.c:642
#3  0x6db01a68 in __gettemp (
    path=path@entry=0x6de16000 "usr/X11R7/lib/X11/fonts/misc/8x13B-ISO8859-9.pcf.gzXXXXXX", doopen=0x7ffa51b4, doopen@entry=0x7ffa51ac, 
    domkdir=domkdir@entry=0, slen=slen@entry=0, oflags=oflags@entry=0)
    at /work/src/lib/libc/stdio/gettemp.c:89
#4  0x6db01910 in _mkstemp (
    path=0x6de16000 "usr/X11R7/lib/X11/fonts/misc/8x13B-ISO8859-9.pcf.gzXXXXXX") at /work/src/lib/libc/stdio/mkstemp.c:55
#5  0x6df2f9c4 in __archive_mktempx (tmpdir=tmpdir@entry=0x0, 
    at /work/src/external/bsd/libarchive/dist/libarchive/archive_util.c:409

Unfortunately gdb died:

--Type <RET> for more, q to quit, c to continue without paging--q
terminate called after throwing an instance of 'gdb_exception_quit'
[ 6695.2111432] sorry, pid 2494 was killed: orphaned traced process
Abort (core dumped)

no idea, apparently happens more or less randomly


Home | Main Index | Thread Index | Old Index