Project

General

Profile

Actions

Bug #42018

closed

core in CryptoRandom::get_bytes(char*, int)

Added by Chang Liu over 4 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
mimic, nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

```
/root/workspace/ceph/build/bin/ceph-authtool --create-keyring --gen-key --name=mon. /root/workspace/ceph/build/keyring --cap mon 'allow *'
creating /root/workspace/ceph/build/keyring
terminate called after throwing an instance of 'std::system_error'
what(): Function not implemented
```

the reason is that we use `check_symbol_exists(getentropy "unistd.h" HAVE_GETENTROPY)` to check whether kernel supports `getentropy` function.
actually in some case, `getentropy` function is declared in unistd.h but not implemented!


Related issues 2 (0 open2 closed)

Copied to Ceph - Backport #42134: nautilus: core in CryptoRandom::get_bytes(char*, int)ResolvedNathan CutlerActions
Copied to Ceph - Backport #42135: mimic: core in CryptoRandom::get_bytes(char*, int)RejectedActions
Actions

Also available in: Atom PDF