#687 Problems using libevent on OpenBSD, no rfork()

Reporter Nulani t'Acraya
Owner Nobody
Created
Updated
Stars ★ (1)
Tags
  • OpSys-OpenBSD
  • Status-Blocked
  • Type-Defect
  • Priority-Medium
  1. Nulani t'Acraya on

    OS: OpenBSD 5.9 (or any OpenBSD from 5.2) Packages: prosody-0.10beta261 lua-5.1.5p5 luabitop-1.0.2p0 luadbi-0.5p0 luaevent-0.2.1p2 luaexpat-1.3.0p0 luafs-1.6.3p0 luasec-0.5p1 luasocket-3.0rc1p0 luazlib-20100731p2 In prosody.cfg.lua: use_libevent = true; Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio > require "luaevent" > $ ldd /usr/local/lib/lua/5.1/luaevent/core.so Start End Type Open Ref GrpRef Name 000013f3b1cff000 000013f3b2105000 dlib 1 0 0 /usr/local/lib/lua/5.1/luaevent/core.so 000013f3b2426000 000013f3b2852000 rlib 0 1 0 /usr/local/lib/liblua5.1.so.5.1 000013f40b920000 000013f40bd2b000 rlib 0 1 0 /usr/lib/libevent.so.4.1 000013f3beafb000 000013f3bef23000 rlib 0 1 0 /usr/lib/libm.so.9.0 ====== Prosody fails to start, exhibiting the same issue as in #412. I.e. starting and then immediately exiting. Jun 08 19:58:37 general info Hello and welcome to Prosody version 0.10 nightly build 261 (2016-05-30, 6943b1dd4e3d) Jun 08 19:58:37 general info Prosody is using the kqueue backend for connection handling Jun 08 19:58:37 portmanager info Activated service 'console' on [127.0.0.1]:5582, [::1]:5582 Jun 08 19:58:37 portmanager info Activated service 'c2s' on [::]:5222, [*]:5222 Jun 08 19:58:37 portmanager info Activated service 'legacy_ssl' on no ports Jun 08 19:58:37 portmanager info Activated service 's2s' on [::]:5269, [*]:5269 Jun 08 19:58:37 portmanager info Activated service 'http' on [::]:5280, [*]:5280 Jun 08 19:58:37 portmanager info Activated service 'https' on [::]:5281, [*]:5281 Jun 08 19:58:37 mod_posix info Prosody is about to detach from the console, disabling further console output Jun 08 19:58:37 mod_posix info Successfully daemonized to PID 31829 Jun 08 19:58:37 general info Shutting down... Jun 08 19:58:37 general info Shutdown status: Cleaning up Jun 08 19:58:37 general info Shutdown complete ====== rfork() was removed from OpenBSD back in 2012: http://marc.info/?l=openbsd-cvs&m=133423411732387&w=2 pthreads(3) <http://man.openbsd.org/OpenBSD-current/man3/pthreads.3> and __tfork(3) <http://man.openbsd.org/OpenBSD-current/man3/__tfork_thread.3> appears to be the alternatives.

  2. Zash on

    Changes
    • tags OpSys-OpenBSD Milestone-0.10 Status-Accepted
  3. Zash on

    I'm not sure we can fix this without a major refactoring of the startup sequence.

    Changes
    • tags Milestone-0.10 Status-Blocked

New comment

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