Comments (3)
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.
from dropbear.
Yeah I may try Musl, thanks for suggestion.
from dropbear.
Related Issues (20)
- Feature request: Add support for /etc/nologin
- OpenSSH Client(but not dbclient) connection times out HOT 6
- Building with glibc-1.31+ HOT 4
- cant use -i options!! HOT 1
- build error when SK_KEYS is set and only one of ECDSA or ED25519 HOT 4
- configure --disable-plugin will actually enable it
- musl build fails with --disable-pututline HOT 4
- error: 'struct AuthState' has no member named 'pubkey_options' HOT 1
- Dropear on musl uses utmp/wtmp invalidated paths from paths.h HOT 1
- Request: disable weak and suspect crypto HOT 3
- Does it support Windows? HOT 1
- compression issue
- Noob question: I want to change host key on my Remarkable 2 tablet HOT 2
- Feature request: Certificate-based SSH logins HOT 1
- ssh-audit result for dropbear 2022.83 HOT 2
- curve255.19.c:91:12: runtime error: left shift of negative value -329 HOT 1
- Feature request: options to penalize undesirable behavior HOT 2
- dropbear starts despite NO_START=1 HOT 2
- Does Dropbear support specifying non system usernames in the configuration file? HOT 1
- build with old GNU Make (3.79.1) causes error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dropbear.