"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Omar Polo <op@omarpolo.com>
Subject:
Re: gotd (-portable)-- chroot: Operation not permitted
To:
Kyle Ackerman <kack@kyleackerman.net>
Cc:
"gameoftrees@openbsd.org" <gameoftrees@openbsd.org>
Date:
Fri, 28 Mar 2025 23:06:22 +0100

Download raw body.

Thread
Kyle Ackerman <kack@kyleackerman.net> wrote:
> parent: socket: /var/run/gotd.sock
> parent: user: _gotd
> [warn] event_del_: event has no event_base set.

just wanted to comment on this one: this is an event struct that we've
forgot to event_set() for; yet, we tried to event_del() it.

it's fairly common since on openbsd' libevent (ie 1.x) it is safe to
call event_del() on a zero-initialized struct event, while libevent 2.x
that you'll now find commonly everywhere (and also on OpenBSD; just not
in base) it's no longer allowed.

Depending on the compiler optimization this might also turn into a
segfault on libevent 2.0 -- been there, done it.

(currently ENOTIME to search for the cause, just wanted to highlight this
and not have it lost by the chroot part of the issue)


Thanks!

Omar Polo