From nobody Wed Jan 22 06:03:24 2025 X-Original-To: ports-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 4YdD5m4y9Mz5kxhH for ; Wed, 22 Jan 2025 06:03:24 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YdD5m2PjNz41Pq for ; Wed, 22 Jan 2025 06:03:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737525804; 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=T5tE5Fcm8eb28Hys9vmlRexd3X6T0agc+6fGTnnqHrY=; b=RbjPMcZXmrHyFqp/2CpsKZJ41Nt2Or2QIZFuFy2xn2ajCOfR3BpcbMbHFfcHdOouxgndVZ w7xuWMznwOXPVRValbQNtBo1HVzDAAVUnAQGWmFKhPGk0mLfPpoCGpjBaJsR8euBEsBSx3 S225Y12gkvJXO3K4nF2A5DqWZZ2V5PlmauPrsTPxIK8/aFF+n5W2MsUcl0d7PQqgvzhgYj 4kd7Z2fXghRJ37MgGd4Gu6/6SAVcl+6whLXKYjN7xjFP7ps02WYK4PtDM6N4SpA9QxdUpJ Zm4lFlRArb91mW2Ris1wK+LiiaaZGNFFRJBy1qufnRs7svxp2iqZrfbHpaZWvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737525804; 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=T5tE5Fcm8eb28Hys9vmlRexd3X6T0agc+6fGTnnqHrY=; b=fvM4jsid9FX80l2RtRKRgLVSYoURnO8Pb04eQ+nl1b5wVqwSG5DI9rA6+Fg5t9Ax2eRHB0 38kLYeNtdFSyMqA4I88atsDXWQaRRS4kyEBBvhKqY8jsHv1E7xYTsIbBGXvYVbX9xZyNKE rNSWEU4B/J8BR3elqb/w50vCltIK79kCr2nH14eGvpsHzFzMK/lCBI+KAMe7xK3cJndB+r dHwMjpm9hjqx3ekmlmnL2HW9emGiV50pkZrcvEXt7t8yZoqfrNiCxbbv+IXznT/4WWjD9z yOadaAdxqpooMKIz2+fh06EJ7tkiKA2IUi3Q2r230K46U3CYbbI5pMn14HNbYw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1737525804; a=rsa-sha256; cv=none; b=VgigUqfMM2Qu094z4Vb2XcOxuWs7Lhn9zE8KZbQabjOELLWyi8cyV3htPBB1/rpEybJcm5 oaSg/VU0BcuWQAawrpO3pjlR4WJQhs/UycDkrFnsMfYnvKq3/r50edp4CNlw3BXQ/zE3TZ +lTY4K098kyliwi+Twp5eha1yiKiKNzNMm1AKtZY6DM/BpRs3DyUbLEEhWKvlTgiMhDHfh aDAlDS24KnnEDGSHOpxGVW/Tk1yFLNoTYmNVct2z6j51BS5GvKPornw3HundtgylLkfJzx d39R1N9L3Wwa8iUhg6sLSgRMdReih6Tvs6cfsqId8HIFhU61+rwS1W5P+aaldQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4YdD5m1wzfzgw0 for ; Wed, 22 Jan 2025 06:03:24 +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 50M63OTm040517 for ; Wed, 22 Jan 2025 06:03:24 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 50M63O3b040516 for ports-bugs@FreeBSD.org; Wed, 22 Jan 2025 06:03:24 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: ports-bugs@FreeBSD.org Subject: [Bug 284250] sysutils/bacula15-server: segfault on large backup job Date: Wed, 22 Jan 2025 06:03:24 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: joerg@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dvl@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name 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: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D284250 Bug ID: 284250 Summary: sysutils/bacula15-server: segfault on large backup job Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: dvl@FreeBSD.org Reporter: joerg@FreeBSD.org Flags: maintainer-feedback?(dvl@FreeBSD.org) Assignee: dvl@FreeBSD.org bacula-fd repeatedly crashes on backing up large jobs. This is triggered by (e.g.) the following job description: FileSet { Name =3D "Bhyve-W10" Include { Options { signature =3D SHA1 } Plugin =3D "bpipe:/var/bacula/w10.fifo:/usr/local/sbin/send-zfs-snapshot zjail/bhyve/w10/disk0:/usr/local/sbin/bacula-restore-zvol zjail/bhyve/w10/d= isk0 %r '%w'" } } (which eventually performs a "zfs send" of a snapshot of a bhyve disk) The crash appears to be caused a double free: root@uriah:/ # lldb /usr/local/sbin/bacula-fd (lldb) target create "/usr/local/sbin/bacula-fd" Current executable set to '/usr/local/sbin/bacula-fd' (x86_64). (lldb) run -f -s Process 57439 launched: '/usr/local/sbin/bacula-fd' (x86_64) uriah.heep.sax.de-fd: ABORTING via segfault due to ERROR in smartall.c:201 in-use bit not set: double free from bsys.c:405 22-Jan 06:49 uriah.heep.sax.de-fd: ABORTING via segfault due to ERROR in smartall.c:201 in-use bit not set: double free from bsys.c:405 Process 57439 stopped * thread #5, name =3D 'bacula-fd', stop reason =3D signal SIGSEGV: address = not mapped to object (fault address: 0x8) frame #0: 0x00000008245c753e libbac-15.0.2.so`sm_free(char const*, int, void*) + 286 libbac-15.0.2.so`sm_free: -> 0x8245c753e <+286>: cmpq %r12, 0x8(%rax) 0x8245c7542 <+290>: je 0x8245c7586 ; <+358> 0x8245c7544 <+292>: leaq 0x3252d(%rip), %rdi ; mutex 0x8245c754b <+299>: callq 0x8245f37d0 ; symbol stub for: lmgr_v(pthread_mutex**) (lldb) bt * thread #5, name =3D 'bacula-fd', stop reason =3D signal SIGSEGV: address = not mapped to object (fault address: 0x8) * frame #0: 0x00000008245c753e libbac-15.0.2.so`sm_free(char const*, int, void*) + 286 frame #1: 0x0000000831410fdd bpipe-fd.so`freePlugin(bpContext*) + 45 frame #2: 0x00000000002254ca bacula-fd`free_plugins(JCR*) + 138 frame #3: 0x0000000000230217 bacula-fd`filed_free_jcr(JCR*) + 215 frame #4: 0x00000008245a0f2f libbac-15.0.2.so`b_free_jcr(char const*, i= nt, JCR*) + 1039 frame #5: 0x0000000000230d90 bacula-fd`handle_connection_request(void*)= + 2720 frame #6: 0x00000008245d23cc libbac-15.0.2.so`workq_server + 556 frame #7: 0x00000008245db5f8 libbac-15.0.2.so`lmgr_thread_launcher + 88 frame #8: 0x0000000824e039c5 libthr.so.3`thread_start(curthread=3D0x000000082da44500) at thr_create.c:28= 9:16 The same job description did work in bacula 12. --=20 You are receiving this mail because: You are the assignee for the bug.=