From nobody Tue Apr 7 18:21:17 2026 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4fqvf56lMBz6YhJ5 for ; Tue, 07 Apr 2026 18:21:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fqvf52VfQz3QTh for ; Tue, 07 Apr 2026 18:21:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1775586077; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KN7m1+WOJ2bc7G8YD038PVAUCIn+LyIfigCO9GjKA2k=; b=S4+j+EZvV0dtZci0CjjvN3SNEzbXxWIz74VDTSgR+SNR80OCWSeBriLsdA05zsgga6g/w9 Ocm7m8NkzGG8uFXr/O58dEh9MsON7ButaVpR3JPp1w1Di57HKqlrY/Z8amABxWEkUmpx5T sHGJLGs0FK/oxoHoGea9BGyWgnqV8+vkWfAmDjXmKPWwxoRdaUWtDMeaNS4P2rLhfxXSCb xVzFeHLkaab5NuXC0sYzDRhmQmfbsCMZ3NuD/2nZ9/TSb5pWo/tgiX/FOE1/FBAmjy9ckJ ULci25ZmfXnlJjZ++ovpLn+1dL9pCHPjyB8E+eBZRImhFtoVPB7dG0f2s3ANew== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1775586077; a=rsa-sha256; cv=none; b=lFjlpuNDVhrpimOqpG/CkhSCeVepk95uti2GCVZjM2JkdJkHWgJ/6EQRiwgwbKvqJGYYJt NHwt+urduzaM5Se8Z+DwG1SSSAKTLMoYzW0L/ezYxPAahnuX6qXwY9iBDQcSRKQs2hfYem 0gtLpHr9/DEe3dlhw67YJD40xwmfrDmrLNDb+6hyf0rmZUgG6xA3hnGLzv0zIQv4QvlRt7 PJ22BDgFLPdGd0mgPmTR8UGFoJijIxYYKha2EYhwVBHjvhm5uMl+rVBI7A9fJWknpF+FZU ZpHxImHPywDbiiq6R1jAsL6Wu0xFHo83Ot9qs1PEgA3LCzmGbvl+izl5t3+hyw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1775586077; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KN7m1+WOJ2bc7G8YD038PVAUCIn+LyIfigCO9GjKA2k=; b=bvNCPc1Bd3C9R8eNB9ka1H5fT3mN62Ojzd4DHt9cAt9q22TqLFID2DGmgpYdGbLyO/uHjj gb1twSsJe9u2QNnolRLjsE5HxyOb2l4KxARTb1JnlHWg0Brr/wDSXPfZnTc1oeyFUt3q4D gRLfjuGFYh56wkVTufuSYR5pxTxfRZPOdbKA3tVNl5Z7L+1FcRyweyG1Ufke/MXHETUOwI RO0qdReDVI+7GCa7S2zqetpu7ISQINMw7vc8gGpl8sB1RUw+8WCjj5grksWnaV//dVNT8+ lHVsYbLmME8pUHV4HuPtBBFvqnkzPA03/GdjjjooGAyboWnbZkvrwshXBwM6Fg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4fqvf5223bzrTw for ; Tue, 07 Apr 2026 18:21:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 637ILHmL008005 for ; Tue, 7 Apr 2026 18:21:17 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 637ILHAa008004 for bugs@FreeBSD.org; Tue, 7 Apr 2026 18:21:17 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 294310] syslogd crashes on startup parsing configfile Date: Tue, 07 Apr 2026 18:21:17 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 15.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dinoex@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D294310 Bug ID: 294310 Summary: syslogd crashes on startup parsing configfile Product: Base System Version: 15.0-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: dinoex@FreeBSD.org How to Reproduce: Environment: 15.0-RELEASE-p5 host 15.0-RELEASE-p5 jail Clean jail create an new file: /etc/syslog.d/named.conf: named.info\t\t\t\t\t/var/log/named /etc/rc.d/syslogd restart watch "/var/log/all.log" on the host or check with "dmesg" kernel: pid 17810 (syslogd), jid 11, uid 0: exited on signal 11 (core dumpe= d) Diagnostics 1: truss -f -o syslogd.truss /usr/sbin/syslogd -ss 26846: open("/etc/syslog.d/named.conf",O_RDONLY,0666) =3D 13 (0xd) 26846: fstat(13,{ mode=3D-rw-r--r-- ,inode=3D104202,size=3D105,blksize=3D40= 96 }) =3D 0 (0x0) 26846: read(13,"# 2026-04-07\n# (syslogd), jid 1"...,4096) =3D 105 (0x69) 26846: SIGNAL 11 (SIGSEGV) code=3DSEGV_MAPERR trapno=3D12 addr=3D0x0 Diagnostics 2: /usr/sbin/syslogd -ss -d -v -F [...] reading /etc/syslog.d/named.conf cfline("named.info /var/log/named", f, "*", "*", "*") Failed to xfer configuration nvlist: Socket is not connected logmsg: pri 53, flags 0, from bamd14, msg Failed to xfer configuration nvli= st: Socket is not connected Logging to CONSOLE /dev/console Diagnostics 3: lldb /usr/sbin/syslogd --core syslogd.core (lldb) target create "/usr/sbin/syslogd" --core "syslogd.core" Core file '/syslogd.core' (x86_64) was loaded. (lldb) thread backtrace all * thread #1, name =3D 'syslogd', stop reason =3D signal SIGSEGV * frame #0: 0x00003061815358b3 syslogd`cfline(nvl=3D0x00005206da609140, line=3D"named.info\t\t\t\t\t/var/log/named", prog=3D"*", host=3D"*", pfilte= r=3D"*") at syslogd.c:3279:17 frame #1: 0x0000306181535477 syslogd`parseconfigfile(cf=3D0x00003069a5a= e41a8, allow_includes=3Dfalse, nvl_conf=3D0x00005206da609140) at syslogd.c:2448:3 frame #2: 0x000030618153561a syslogd`parseconfigfile(cf=3D0x00003069a5a= e4070, allow_includes=3Dtrue, nvl_conf=3D0x00005206da609140) at syslogd.c:2378:5 frame #3: 0x0000306181534f0e syslogd`readconfigfile(path=3D"/etc/syslog.conf") at syslogd.c:2468:14 frame #4: 0x000030618153accd syslogd`casper_readconfigfile(nvlin=3D0x00005206da6090c0, nvlout=3D0x00005206da609100) at syslogd_cap_config.c:292:13 frame #5: 0x00003069a45b6ffb libcasper.so.1`service_message(service=3D0x00005206da609040, sconn=3D0x00005206da662000) at service.c:319:11 frame #6: 0x00003069a45b75e5 libcasper.so.1`service_start(service=3D0x00005206da609040, sock=3D14, procf= d=3D10) at service.c:461:5 frame #7: 0x00003069a45b64d7 libcasper.so.1`service_execute(chanfd=3D14= ) at libcasper_service.c:159:2 frame #8: 0x00003069a45b7a68 libcasper.so.1`zygote_main(sockp=3D0x00003069a17809bc) at zygote.c:162:4 frame #9: 0x00003069a45b78b9 libcasper.so.1`zygote_init at zygote.c:209= :3 frame #10: 0x00003069a45b650b libcasper.so.1`casper_main_loop(fd=3D) at libcasper_service.c:= 230:6 frame #11: 0x00003069a45b59ad libcasper.so.1`cap_init at libcasper.c:10= 2:3 frame #12: 0x00003061815337ef syslogd`init [inlined] syslogd_cap_enter = at syslogd.c:2566:15 frame #13: 0x00003061815337ea syslogd`init(reload=3Dfalse) at syslogd.c:2648:3 frame #14: 0x0000306181532adf syslogd`main(argc=3D, argv=3D0x00003069a17831d8) at syslogd.c:780:2 frame #15: 0x00003069a597037f libc.so.7`__libc_start1(argc=3D2, argv=3D0x00003069a17831d8, env=3D0x00003069a17831f0, cleanup=3D, mainX=3D(syslogd`main at syslogd.c:512)) at libc_start1.c:180:7 frame #16: 0x0000306181531ce1 syslogd`_start at crt1_s.S:80 (lldb) p line (const char *) 0x00003069a177e200 "named.info\t\t\t\t\t/var/log/named" (lldb) p host (const char *) 0x00003069a177e100 "*" (lldb) p prog (const char *) 0x00003069a177d900 "*" (lldb) p p (const char *) 0x0000000000000000 Source: vim /usr/src/usr.sbin/syslogd/syslogd.c function cfline() 3277=20 3278 /* scan through the list of selectors */ 3279 for (p =3D line; *p !=3D '\0' && *p !=3D '\t' && *p !=3D ' ';) 3280 p =3D parse_selector(p, &f); 3281=20 function parse_selector() 2953 pri =3D decode(buf, prioritynames); 2954 if (pri < 0) { 2955 dprintf("unknown priority name \"%s\"", buf); 2956 return (NULL); 2957 } 2976 i =3D decode(buf, facilitynames); 2977 if (i < 0) { 2978 dprintf("unknown facility name \"%s\"", buf); 2979 return (NULL); 2980 } I assume parse_selector() is returning "NULL", causing *p in the loop to crash. Caveat: But I don't see the dprintf() lines in the output, nor do I see the dprintf() output with truss. The crash is reproduceable in the FreeBSD base system as well. --=20 You are receiving this mail because: You are the assignee for the bug.=