From nobody Sat Aug 14 05:06:29 2021 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 EA7D3137DA33 for ; Sat, 14 Aug 2021 05:06:28 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GmpLD69pTz4lGN for ; Sat, 14 Aug 2021 05:06:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 BC6701C262 for ; Sat, 14 Aug 2021 05:06:28 +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 17E56SQC069872 for ; Sat, 14 Aug 2021 05:06:28 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 17E56SUl069871 for bugs@FreeBSD.org; Sat, 14 Aug 2021 05:06:28 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 257829] lldb crashes with asio acceptor::accept Date: Sat, 14 Aug 2021 05:06:29 +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: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: ota@j.email.ne.jp 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-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257829 Bug ID: 257829 Summary: lldb crashes with asio acceptor::accept Product: Base System Version: 13.0-RELEASE Hardware: i386 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: ota@j.email.ne.jp lldb crashes with the following program. I have FreeBSD 13.0-RELEASE on i386 so far. I also included gdb101's output for a comparison. Please note that I run the program 2 times and lldb crashes with 2nd time w= hen the port# is already taken by the 1st run. % cat asio_accept.cpp=20 // c++ -g -std=3Dc++03 -I/usr/local/include asio_accept.cpp -L/usr/local/lib -lboost_system -lpthread #include int main() { using boost::asio::ip::tcp; boost::asio::io_service io_service; tcp::acceptor acceptor( io_service, tcp::endpoint( tcp::v4(), 1111 ) ); tcp::socket socket( io_service ); acceptor.accept( socket ); } % c++ -g -std=3Dc++03 -I/usr/local/include asio_accept.cpp -L/usr/local/lib -lboost_system -lpthread % ./a.out & % lldb ./a.out (lldb) target create "./a.out" Current executable set to '/export/home/hiro/a.out' (i386). (lldb) run Process 84554 launching Process 84554 launched: '/export/home/hiro/a.out' (i386) Program aborted due to an unhandled Error: Error value was Success. (Note: Success values must still be checked prior = to being destroyed). PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include = the crash backtrace. #0 0x03874b54 PrintStackTrace /usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:564:13 #1 0x03874f5e /usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:624:3 #2 0x03872e6e RunSignalHandlers /usr/src/contrib/llvm-project/llvm/lib/Support/Signals.cpp:67:5 #3 0x0387508c SignalHandler /usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:0:3 #4 0x24a46319 handle_signal /usr/src/lib/libthr/thread/thr_sig.c:303:3 Abort % gdb101 ./a.out=20 GNU gdb (GDB) 10.1 [GDB v10.1 for FreeBSD] Copyright (C) 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i386-portbld-freebsd13.0". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ./a.out... (gdb) run Starting program: /export/home/hiro/a.out Program received signal SIGABRT, Aborted. thr_kill () at thr_kill.S:4 4 thr_kill.S: No such file or directory. (gdb) bt #0 thr_kill () at thr_kill.S:4 #1 0x20646e1b in __raise (s=3D6) at /usr/src/lib/libc/gen/raise.c:52 #2 0x206f233b in abort () at /usr/src/lib/libc/stdlib/abort.c:67 #3 0x2055ddc6 in std::terminate () at /usr/src/contrib/libcxxrt/exception.cc:1495 #4 0x2055e7ce in report_failure (err=3D, thrown_exception=3Dthrown_exception@entry=3D0x207bd000) at /usr/src/contrib/libcxxrt/exception.cc:719 #5 0x2055e324 in throw_exception (ex=3D0x207bd000) at /usr/src/contrib/libcxxrt/exception.cc:778 #6 __cxa_throw (thrown_exception=3D0x207bd044, tinfo=3D0x402034 >, dest=3D0x40e240 ::~wrapexcept()>) at /usr/src/contrib/libcxxrt/exception.cc:801 #7 0x0040e0c1 in boost::throw_exception (e=3D= ...) at /usr/local/include/boost/throw_exception.hpp:70 #8 0x0040df9c in boost::asio::detail::do_throw_error (err=3D..., location=3D0x401ada "bind") at /usr/local/include/boost/asio/detail/impl/throw_error.ipp:38 #9 0x0040df08 in boost::asio::detail::throw_error (err=3D..., location=3D0x401ada "bind") at /usr/local/include/boost/asio/detail/throw_error.hpp:42 --Type for more, q to quit, c to continue without paging-- #10 0x0040c59a in boost::asio::basic_socket_acceptor::basic_socket_acceptor ( this=3D0xffbfe768, context=3D..., endpoint=3D..., reuse_addr=3Dtrue) at /usr/local/include/boost/asio/basic_socket_acceptor.hpp:285 #11 0x0040baac in main () at asio_accept.cpp:10 --=20 You are receiving this mail because: You are the assignee for the bug.=