Giter Club home page Giter Club logo

Comments (3)

vt-alt avatar vt-alt commented on August 23, 2024

After recompile with -static (not -static-pie as above) it still crashes:

(gdb) bt
#0  setxid_mark_thread (t=t@entry=0xfffffffffffffd40, cmdp=<optimized out>) at nptl_setxid.c:102
#1  0x00007ffff7e7ff32 in __nptl_setxid (cmdp=0x7fffffffc1e0) at nptl_setxid.c:195
#2  0x00007ffff7ecb971 in __GI_setgroups (groups=<optimized out>, n=<optimized out>) at ../sysdeps/unix/sysv/linux/setgroups.c:33
#3  __GI_setgroups (n=<optimized out>, groups=<optimized out>) at ../sysdeps/unix/sysv/linux/setgroups.c:28
#4  0x00007ffff7fe0683 in tcb_drop_priv_r (p=0x7fffffffc300, name=0x59e400 "root") at libtcb.c:218
#5  tcb_drop_priv_r (name=name@entry=0x59e400 "root", p=p@entry=0x7fffffffc300) at libtcb.c:181
#6  0x00007ffff7fe6281 in tcb_safe_open (file=0x7ffff7cc32a0 "/etc/tcb/root/shadow", name=name@entry=0x59e400 "root") at nss.c:37
#7  0x00007ffff7fe63e6 in _nss_tcb_getspnam_r (name=0x59e400 "root", __result_buf=0x5955e0 <resbuf>, __buffer=0x5a0310 " eX", __buflen=1024,
    __result=0x597370) at nss.c:69
#8  0x0000000000496843 in __getspnam_r (name=name@entry=0x59e400 "root", resbuf=resbuf@entry=0x5955e0 <resbuf>, buffer=<optimized out>,
    buflen=buflen@entry=1024, result=result@entry=0x7fffffffd440) at ../nss/getXXbyYY_r.c:273
#9  0x0000000000496670 in getspnam (name=0x59e400 "root") at ../nss/getXXbyYY.c:140
#10 0x0000000000410eea in fill_passwd (username=0x59e970 "root") at /usr/src/debug/dropbear-2022.83/common-session.c:643
#11 checkusername (userlen=<optimized out>, username=0x59e970 "root") at /usr/src/debug/dropbear-2022.83/svr-auth.c:248
#12 recv_msg_userauth_request () at /usr/src/debug/dropbear-2022.83/svr-auth.c:117
#13 0x0000000000434bcf in process_packet () at /usr/src/debug/dropbear-2022.83/process-packet.c:146
#14 session_loop.constprop.0 (loophandler=<optimized out>) at /usr/src/debug/dropbear-2022.83/common-session.c:254
#15 0x0000000000416d12 in svr_session (sock=sock@entry=0, childpipe=<optimized out>) at /usr/src/debug/dropbear-2022.83/svr-session.c:205
#16 0x000000000041742a in main_inetd () at /usr/src/debug/dropbear-2022.83/svr-main.c:119
#17 0x000000000040234d in main (argc=6, argv=0x7fffffffe1a8) at /usr/src/debug/dropbear-2022.83/svr-main.c:81

(Here also added some -debuginfo packages for better bt output). Maybe this is not even dropbear's issue but libtcb's or even glibc's or maybe I just built something incorrectly.

[00:00:14] ld: /usr/src/tmp/cc0bviw5.ltrans1.ltrans.o:/usr/src/RPM/BUILD/dropbear-2022.83/common-session.c:643:(.text.startup+0xcf3): warning: Using 'getspnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking

from dropbear.

mkj avatar mkj commented on August 23, 2024

from dropbear.

vt-alt avatar vt-alt commented on August 23, 2024

Yeah I may try Musl, thanks for suggestion.

from dropbear.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.