#execve

kxxtkxxt
2025-05-04

Upcoming features for

backtrace and jump to parent

In next release, the will support gathering the exec of any exec event, which will greatly simply debugging experience.

The exec backtrace shows the history of a specific event and indicates any ancestor spawns or directly tears itself down and becomes the new process.

Jump to parent is a lighter alternative to backtrace, where you just press `U` to jump to the parent exec evt.

kxxtkxxt
2025-04-28

tracexec 0.11.0 released with new timestamp feature and O_CLOEXEC file descriptors are now hidden by default.

github.com/kxxt/tracexec/relea

2023-06-06

@cks

Yes, you might find versions of getopt.c around the place that have an

if (argc < 1)

check. Not this one in the current source code for GCC, though:

github.com/gcc-mirror/gcc/blob

#Unix #C #execve #POSIX

2023-06-06

@cks

Psst!

The buggy test program that blocked the EINVAL fix in Linux still has the bug today, two years later.

git.kernel.org/pub/scm/fs/xfs/

Amusingly, the subordinate program is a copy of the same program, and it starts by calling getopt_long_only(), one of whose earliest actions is:

optind = 1; /* Don't scan ARGV[0], the program name. */

followed closely by:

if (optind != argc && !strcmp (argv[optind], "--"))

argc is 0 at this point.

#Unix #C #execve #POSIX

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst