Sunday, April 05, 2026

pledge and changes to getpwuid

G'day,

A standard tclsh built on a patched version of 7.8 dies as it calls getpwuid_r 
with SIGSYS which seems very odd, since no pledge calls have been made. 
The #0 line indicates Bad System Call rather which seems very odd.
Any pointers noting I'm happy to chase this done and report back and have
various sysupgrade/syspatch things with no luck.

Program received signal SIGSYS, Bad system call.
_thread_sys___pledge_open () at /tmp/-:2
warning: 2      /tmp/-: No such file or directory
(gdb) where
#0  _thread_sys___pledge_open () at /tmp/-:2
#1  0x102fed0e6c9a040a in ?? ()
#2  0x00000971176adaa5 in __initdb (shadow=<optimized out>) at /usr/src/lib/libc/gen/getpwent.c:971
#3  0x00000971176aead7 in getpwuid_internal (uid=1000, pw=0x9712cddf010, buf=0x9712cde0010 "", buflen=1024, pwretp=0x70a2dad12c48, shadow=<optimized out>,
    reentrant=<optimized out>) at /usr/src/lib/libc/gen/getpwent.c:834
#4  0x00000971176aea25 in _libc_getpwuid_r (uid=392734072, pw=0x10000, buf=0x9712cde0010 "", buflen=10381328986587, pwretp=0x70a2dad12c48)
    at /usr/src/lib/libc/gen/getpwent.c:873
#5  0x0000097111c6b5b5 in TclpGetPwUid (uid=1000) at /home/pjm/as/a-blt/tcl/unix/tclUnixCompat.c:288
#6  0x0000097111c6a558 in TclpSetVariables (interp=0x97130dae010) at /home/pjm/as/a-blt/tcl/unix/tclUnixInit.c:966
#7  0x0000097111ada4c3 in Tcl_CreateInterp () at /home/pjm/as/a-blt/tcl/generic/tclBasic.c:1003
#8  0x0000096e742b2c3a in main (argc=1, argv=0x70a2dad13528) at /home/pjm/as/a-blt/tcl/unix/tclAppInit.c:91
(gdb) quit
--
phone: +61 (0) 439 223 469 TZ +9h30m
ALT: remote email: <philmakerphone@gmail.com>

No comments:

Post a Comment