#1734 prosody fails to start on Linux < 3.17

Reporter Zash
Owner Zash
Stars ★ (1)
  • Status-Fixed
  • Milestone-0.12
  • Priority-Medium
  • OpSys-Debian
  • Type-Defect
  1. Zash on

    What steps will reproduce the problem? 1. load util.random with util.crand available on Linux before version 3.17 2. call util.random.bytes() What is the expected output? The call should work, util.crand should not work if it is configured to use the getrandom() system call. What do you see instead? lua: Function not implemented stack traceback: [C]: in function 'random_bytes' /usr/share/lua/5.2/prosody/util/id.lua:16: in function </usr/share/lua/5.2/prosody/util/id.lua:15> (...tail calls...) /usr/share/lua/5.2/prosody/util/async.lua:158: in function 'runner' /usr/bin/prosody:53: in main chunk [C]: in ? What version of the product are you using? On what operating system? Reported by user on Debian buster with some armhf architecture running Linux kernel 3.10.99

  2. Zash on

    Reported by fabiobassa in the chat. Patch tested and committed as I'm typing these words.

    • owner Zash
    • tags
  3. Zash on

    Fixed in https://hg.prosody.im/trunk/rev/e54b8a5e35ad

    • tags Status-Fixed

New comment

Not published. Used for spam prevention and optional update notifications.