Skip to content

Unexpected getrandom error due to Linux kernel bug on QNAP #52609

Closed

Description

Hi,

Rust code panics on linux 3.10:

[admin@lcstr-qnap lanlord]# uname -a
Linux lcstr-qnap 3.10.20-al-2.5.3 #39 SMP PREEMPT Tue Jul 10 04:05:13 CST 2018 armv7l unknown

Panic message:

thread 'main' panicked at 'unexpected getrandom error: 14', libstd/sys/unix/rand.rs:56:21

Rustc from rustup, version 1.27.0
The code is running on Qnap NAS

Rust core library relies on SYS_getrandom which was introduced only in kernel version 3.4.17.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.O-ArmTarget: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 stateO-linuxOperating system: LinuxT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions