#1734 prosody fails to start on Linux < 3.17

Reporter Zash
Owner Zash
Created
Updated
Stars ★ (1)
Tags
  • Priority-Medium
  • Milestone-0.12
  • Type-Defect
  • OpSys-Debian
  • Status-Fixed
  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.

    Changes
    • tags
    • owner Zash
  3. Zash on

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

    Changes
    • tags Status-Fixed

New comment

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