ocserv 0.11.1 can not fork into background on FreeBSD

Carlos J Puga Medina cpm at fbsd.es
Thu Apr 14 12:56:54 PDT 2016


On Tue, 2016-03-08 at 10:39 +0100, Nikos Mavrogiannopoulos wrote:

Hi,
> On Wed, Mar 2, 2016 at 2:32 AM, Carlos J Puga Medina <cpm at fbsd.es>
> wrote:
> > 
> > Hi Nikos,
> > 
> > I've the same issue with ocserv on FreeBSD
> > Mar  1 20:13:29 fc ocserv[41400]: sec-mod: Error in pselect(): Bad
> > file
> > descriptor
> > Mar  1 20:13:29 fc kernel: pid 41399 (ocserv), uid 0: exited on
> > signal
> > 6 (core dumped)
> > Mar  1 20:13:29 fc ocserv[41399]: error connecting to sec-mod
> > socket
> > 'socket.41399': Connection refused
> > Mar  1 20:13:29 fc ocserv[41399]: main: main.c:1152: libev fatal
> > error:
> > (libev) kevent
> > Is someone working to fix this issue?
> Not that I know of. Someone should debug that on freebsd preferrably
> using ocserv's master branch. As it is on startup it looks something
> easy to address once someone takes a look on the invalid descriptor
> and its history.

The problem started when ocserv was converted to use libev.

https://gitlab.com/ocserv/ocserv/commit/0e604b8a9f3eb2421779fe8fa131470
8b4011b78

To debug this issue, I attached the valgrind output.

Please, don't hesitate to ask for more info.

Regards,
-- 
Carlos Jacobo Puga Medina <cpm at fbsd.es>
PGP fingerprint = C60E 9497 5302 793B CC2D  BB89 A1F3 5D66 E6D0 5453
-------------- next part --------------
A non-text attachment was scrubbed...
Name: valgrind-ocserv.log
Type: text/x-log
Size: 11703 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/openconnect-devel/attachments/20160414/6edfc05e/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 603 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/openconnect-devel/attachments/20160414/6edfc05e/attachment.sig>


More information about the openconnect-devel mailing list