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

From:
Omar Polo <op@omarpolo.com>
Subject:
Re: Unable to run gotwebd with CF malloc flags
To:
Timo Myyrä <timo.myyra@bittivirhe.fi>
Cc:
gameoftrees@openbsd.org
Date:
Sun, 20 Oct 2024 10:53:23 +0200

Download raw body.

Thread
Hello,

On 2024/10/19 09:07:44 +0300, Timo Myyrä <timo.myyra@bittivirhe.fi> wrote:
> Hi,
> 
> I'm trying to setup gotwebd hosting on 7.6 release.
> The gotwebd crashes on startup when I have the malloc options 'CF'
> enabled.
> 
> mars# sysctl vm.malloc_conf=CF
> vm.malloc_conf:  -> CF
> mars# gotwebd -d -vvv          
> gotwebd: gotwebd startup
> gotwebd: sockets_privinit: initializing unix socket /var/www/run/gotweb.sock
> gotwebd: config_setfd: Allocating 77 file descriptors
> sockets: sockets_rlimit: max open files 1024
> sockets: sockets_rlimit: max open files 1024
> sockets: config_getserver: server=Gotweb
> sockets: config_getsock: id=1 af_type=unix socket_path=/var/www/run/gotweb.sock
> sockets: config_getfd: assigning priv_fd 7
> sockets: config_getfd: assigning priv_fd 8
> sockets: config_getserver: server=Gotweb
> sockets: config_getsock: id=1 af_type=unix socket_path=/var/www/run/gotweb.sock
> sockets: config_getfd: assigning priv_fd 8
> sockets: config_getfd: assigning priv_fd 9
> sockets: config_getfd: assigning priv_fd 10
> sockets: config_getfd: assigning priv_fd 11
> sockets: config_getfd: assigning priv_fd 12
> sockets: sockets_rlimit: max open files 1024
> sockets: config_getserver: server=Gotweb
> sockets: config_getsock: id=1 af_type=unix socket_path=/var/www/run/gotweb.sock
> sockets: config_getfd: assigning priv_fd 9
> sockets: config_getfd: assigning priv_fd 10
> sockets: config_getfd: assigning priv_fd 11
> sockets: config_getfd: assigning priv_fd 12
> sockets: config_getfd: assigning priv_fd 13
> gotwebd: imsg_flush: Broken pipe
> mars#
> 
> If I remove the malloc flags gotwebd starts as expected.

Can you please tell us more about your installation?  I tried to
replicate here but it still seems to work for me.  What version are you
using?

Also, if you run

	# mkdir -m 700 /var/crash/gotwebd
	# sysctl kern.nosuidcoredump=3

(or just kern.nosuidcoredump=2), can you get a backtrace out of it?


Thanks,
Omar Polo