[Bug 276786] dnsdist 1.8.3 on stable/14-n266631-0dd45fdb747 with clang version 17.0.6 (https://github.com/llvm/llvm-project.git llvmorg-17.0.6-0-g6009708b4367)

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 02 Feb 2024 19:36:37 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276786

            Bug ID: 276786
           Summary: dnsdist 1.8.3 on stable/14-n266631-0dd45fdb747 with
                    clang version 17.0.6
                    (https://github.com/llvm/llvm-project.git
                    llvmorg-17.0.6-0-g6009708b4367)
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: jordan@ostreff.info

After building the dns/dnsdist 1.8.3 from ports or dnsdist 1.9.0-rc1 it
constantly crashes with SIGBUS. 

https://pastebin.com/GHkLiuwp

(lldb) bt all
* thread #1, name = 'dnsdist', stop reason = signal SIGBUS
  * frame #0: 0x000035144c07ac36
dnsdist`ServerPolicy::ServerPolicy(ServerPolicy const&) [inlined]
std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char>>::basic_string(this=Summary Unavailable,
__str="firstAvailable") at string:899:20
    frame #1: 0x000035144c07ac24
dnsdist`ServerPolicy::ServerPolicy(this=0x00003af67aa62038,
(null)=0x0000351c6c797900) at dnsdist-lbpolicies.hh:32:7
    frame #2: 0x000035144c07aa43 dnsdist`LuaContext::PushedObject
LuaContext::Pusher<ServerPolicy,
void>::push<ServerPolicy&>(state=0x00003af67aa12708, value=0x0000351c6c797900)
at LuaContext.hpp:1647:37
    frame #3: 0x000035144c07a8f5 dnsdist`void
LuaContext::setTable<ServerPolicy, std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char>>&,
ServerPolicy&>(state=0x00003af67aa12708, (null)=Globals,
index="firstAvailable", data=0x0000351c6c797900) at LuaContext.hpp:1004:23
    frame #4: 0x000035144bfd4a19 dnsdist`setupLuaBindings(LuaContext&, bool,
bool) [inlined] void LuaContext::writeVariable<std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char>>&,
ServerPolicy&>(this=<unavailable>, data=<unavailable>, data=<unavailable>) at
LuaContext.hpp:737:9
    frame #5: 0x000035144bfd4a05 dnsdist`setupLuaBindings(luaCtx=<unavailable>,
client=<unavailable>, configCheck=<unavailable>) at
dnsdist-lua-bindings.cc:90:12
    frame #6: 0x000035144c1d5423 dnsdist`setupLua(luaCtx=0x000035144c38cee8,
client=<unavailable>, configCheck=true, config="/usr/local/etc/dnsdist.conf")
at dnsdist-lua.cc:3399:3
    frame #7: 0x000035144c2f1a08 dnsdist`main(argc=5, argv=0x0000351c6c798488)
at dnsdist.cc:3257:7
    frame #8: 0x0000351c948f18ca libc.so.7`__libc_start1(argc=5,
argv=0x0000351c6c798488, env=0x0000351c6c7984b8, cleanup=<unavailable>,
mainX=(dnsdist`main at dnsdist.cc:3181)) at libc_start1.c:157:7
    frame #9: 0x000035144bd5a38d dnsdist`_start at crt1_s.S:83

-- 
You are receiving this mail because:
You are the assignee for the bug.