Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Aug 2021 11:37:35 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 257829] lldb crashes with asio acceptor::accept
Message-ID:  <bug-257829-227-4iLrBJKDu6@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-257829-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-257829-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257829

Dimitry Andric <dim@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |emaste@freebsd.org

--- Comment #1 from Dimitry Andric <dim@FreeBSD.org> ---
Similar to in bug 253881, somehow this works perfectly fine for me:=20

(lldb) target create "./a.out"
Current executable set to '/share/dim/src/llvm/bugs/bug257829/a.out' (x86_6=
4).
(lldb) r
Process 1220 launched: '/share/dim/src/llvm/bugs/bug257829/a.out' (x86_64)
This version of LLDB has no plugin for the mipsassem language. Inspection of
frame variables will be limited.
Process 1220 stopped
* thread #1, name =3D 'a.out', stop reason =3D signal SIGABRT
    frame #0: 0x0000000800519eea libc.so.7`__sys_thr_kill at thr_kill.S:4
(lldb) bt
* thread #1, name =3D 'a.out', stop reason =3D signal SIGABRT
  * frame #0: 0x0000000800519eea libc.so.7`__sys_thr_kill at thr_kill.S:4
    frame #1: 0x000000080048efc4 libc.so.7`__raise(s=3D6) at raise.c:52:10
    frame #2: 0x00000008005438e9 libc.so.7`abort at abort.c:67:8
    frame #3: 0x0000000800380ae9
libcxxrt.so.1`report_failure(err=3D<unavailable>,
thrown_exception=3D0x0000000800a2d008) at exception.cc:719:5
    frame #4: 0x000000000020ea74 a.out`void
boost::throw_exception<boost::system::system_error>(e=3D0x00007fffffffe268)=
 at
throw_exception.hpp:70:5
    frame #5: 0x000000000020e960
a.out`boost::asio::detail::do_throw_error(err=3D0x00007fffffffe3d8,
location=3D"bind") at throw_error.ipp:38:3
    frame #6: 0x000000000020e8e0
a.out`boost::asio::detail::throw_error(err=3D0x00007fffffffe3d8, location=
=3D"bind")
at throw_error.hpp:42:5
    frame #7: 0x000000000020d07d
a.out`boost::asio::basic_socket_acceptor<boost::asio::ip::tcp,
boost::asio::executor>::basic_socket_acceptor<boost::asio::io_context>(this=
=3D0x00007fffffffe4a0,
context=3D0x00007fffffffe4d0, endpoint=3D0x00007fffffffe480, reuse_addr=3Dt=
rue,
(null)=3D0x0000000000000000) at basic_socket_acceptor.hpp:285:5
    frame #8: 0x000000000020c5e1 a.out`main at asio_accept.cpp:10:19
    frame #9: 0x000000000020c310 a.out`_start(ap=3D<unavailable>,
cleanup=3D<unavailable>) at crt1_c.c:73:7
(lldb) f 7
frame #7: 0x000000000020d07d
a.out`boost::asio::basic_socket_acceptor<boost::asio::ip::tcp,
boost::asio::executor>::basic_socket_acceptor<boost::asio::io_context>(this=
=3D0x00007fffffffe4a0,
context=3D0x00007fffffffe4d0, endpoint=3D0x00007fffffffe480, reuse_addr=3Dt=
rue,
(null)=3D0x0000000000000000) at basic_socket_acceptor.hpp:285:5
   282        boost::asio::detail::throw_error(ec, "set_option");
   283      }
   284      impl_.get_service().bind(impl_.get_implementation(), endpoint, =
ec);
-> 285      boost::asio::detail::throw_error(ec, "bind");
   286      impl_.get_service().listen(impl_.get_implementation(),
   287          socket_base::max_listen_connections, ec);
   288      boost::asio::detail::throw_error(ec, "listen");

I think there must be something different in our environment(s) that causes=
 the
error for you, and not me.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-257829-227-4iLrBJKDu6>