Displaying 20 results from an estimated 445 matches for "execve".
Did you mean:
execvp
2009 Aug 11
5
Failed to retrieve current state of resource: No child processes
...= -1 EBADF (Bad file descriptor)
35 [...]
36 10833 close(253) = -1 EBADF (Bad file descriptor)
37 10833 close(254) = -1 EBADF (Bad file descriptor)
38 10833 close(255) = -1 EBADF (Bad file descriptor)
39 10833 execve("/sbin/ifconfig", ["/sbin/ifconfig", "eth0"], [/* 18 vars */]) = 0
40 10833 brk(0) = 0x8058000
41 10833 uname({sys="Linux", node="beczulka", ...}) = 0
42 [...]
43 10833 write(1, "eth0 Link encap:E...
2023 Mar 22
2
[libnbd PATCH v4 0/2] lib/utils: introduce async-signal-safe execvpe()
...rgv[1], ..., NULL })
In other words, the original argv[0] is not preserved, but is replaced by <shell path>. (Look for _PATH_BSHELL in said historical glibc commit, and also in today's glibc file "posix/execvpe.c".)
This can be demonstrated with:
$ PATH=.:$PATH strace -etrace=execve test-execvp
execve("./test-execvp", ["test-execvp"], 0x7ffc0d1e5248 /* 85 vars */) = 0
execve("./hello.sh", ["foobar"], 0x7ffc528e14a8 /* 85 vars */) = -1 ENOEXEC (Exec format error)
execve("/bin/sh", ["/bin/sh", "./hello.sh"],...
2019 Nov 03
1
Sieve redirect does not collect the sendmail child process correctly (Dovecot 2.3.4.1, Pigeonhole 0.5.4)
...cution of Sieve filters was aborted due to temporary failure\n\0", 67) = 67
22:55:50.335974 close(3) = 0
22:55:50.336006 rt_sigprocmask(SIG_UNBLOCK, [CHLD], NULL, 8) = 0
22:55:50.336034 select(1, [0], NULL, NULL, NULL <detached ...>
qmail-local (PID 6923)
22:55:15.229053 execve("bin/qmail-local", ["bin/qmail-local", "--", "krustev.net", "/home/krustev/mail/domains/krustev.net", "krustev.net-tester", "-", "tester", "krustev.net", "krustev at krustev.net", "./Maildir/&qu...
2008 Oct 21
4
Too many open files
Hi, other error in "open files":
dovecot: Oct 20 10:52:36 Fatal:
execv(/usr/local/sbin/post-login-imap-dovecot) failed: Too many open files
dovecot: Oct 20 10:52:36 Error: child 1038 (imap) returned error 84
(exec() failed)
dovecot: Oct 20 10:55:51 Fatal:
execv(/usr/local/sbin/post-login-imap-dovecot) failed: Too many open files
dovecot: Oct 20 10:55:51 Error: child 4853 (imap)
2010 Jul 14
3
sample sleep command killed
I re-wrote the compile script to build klibc (cleaning up how I do it,
and how to find the source tarballs). It seems to be compiling fine.
I tried several of the commands in usr/utils/static and most one.
However, the sleep command fails in a strange way (EINVAL on execve):
================================================================
faraday/phil /home/phil/klibc-project-0 581> strace -ftt -s 96
klibc-1.5.18/usr/utils/static/true
07:33:08.185542 execve("klibc-1.5.18/usr/utils/static/true",
["klibc-1.5.18/usr/utils/static/true"], [/* 38 va...
2014 May 29
2
[LLVMdev] setrlimit vs ulimt
> execv(argv[0]) is a canonical way to restart the
> process, it's sad that the emulator interferes with that.
We have the option to emulate the instruction set or emulate the OS.
The former is lighter weight and easy to configure. The downside is
that system calls route to the host system. That can be useful if,
for example, the executable invokes llvm-symbolizer.
While
2004 Mar 12
1
bin/64150: [PATCH] ls(1) coredumps when started via execve(2) with no argv.
...rote:
> On Fri, Mar 12, 2004 at 12:49:14PM +0200, Ruslan Ermilov wrote:
> > On Fri, Mar 12, 2004 at 10:22:00AM +0100, Morten Rodal wrote:
> > > >Description:
> > > ls(1) calls the fts(3) functions for traversing a file hierarchy.
> > > If ls(1) is executed via execve(2) system call with a NULL argv
> > > and envp it will make the fts(3) functions core dump with a
> > > SIGBUS.
> > >
> > > If execve(2) is executed with a NULL (I am not sure this is
> > > legal?) argv, the executed program will have an argc value of -...
2014 May 28
2
[LLVMdev] setrlimit vs ulimt
Hi Evgeniy,
This fix causes me trouble in the emulator because of the execv(argv[0]):
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20140217/205359.html
Instead using setrlimit from within the C++ code, can you set the
stack limit using ulimit on the RUN lines? Also, should this test be
moved to the Posix or Linux directory?
Thanks,
Greg
2014 May 29
2
[LLVMdev] setrlimit vs ulimt
> Why does fork-exec for llvm-symbolizer work, but simple exec(self) does not?
Because the llvm-symbolizer the runtime finds is built for the host
architecture. This is weird, yes, but once we integrate the
symbolizer, it goes away.
> Could we write a ulimit-like utility that would do setrlimit and then
> exec the specified binary
> %run %ulimit -s 8192 %t?
I like that idea. How
2010 Sep 18
1
+ init-add-sys-wrapperh.patch added to -mm tree
...much always done direct syscalls in some
places. Originally this was actually going through the user space
syscall entry path which I removed a few years ago for kenrel users.
> IOW, this is a userland code that had been subjected to trivial modifications
> to run in kernel, just before the execve() of init. The only reason why
> we do not simply turn that into a userland binary and execve() that instead
> is that we don't want to complicate kbuild. Perhaps we ought to bite the
> bullet and just copy syscall-calling code from e.g. klibc; that would take
> care of that mess...
2008 Jul 01
3
Processes and mmap
Hello,
For a key exchange algorithm I'm working on, I would like to keep a little bit
of shared state between the main server process and the processes that
clients connect to. So far, I'm considering mmap for the purpose.
But I cannot figure out where I need to put the mmap initialization call,
where it would be called at server startup (before any fork()s/exec()s), and
never again.
2023 Mar 22
3
[libnbd PATCH v4 0/2] lib/utils: introduce async-signal-safe execvpe()
On 3/21/23 18:28, Eric Blake wrote:
> it is indeed a bug in busybox now that POSIX is moving towards
> standardizing realpath, so I've filed it:
> https://bugs.busybox.net/show_bug.cgi?id=15466
I've found another busybox bug.
The "/bin/sh" utility is provided by busybox as well (via the usual symlinking).
Per POSIX, if
execvp(file, { argv[0], argv[1], ..., NULL })
2002 Apr 07
2
Kernel Panic
I have just installed Redhat 7.2 on a P3 with adaptec 2400A IDE RAID. After
many attempts with the partitions, I have finally managed to install but not
get the following error on boot:
creatig root device
mounting root filesystem
error mounting ext3
pivotroot:pivot_root(/sysroot,/sysroot/initrd)failed:2
freeing unused kernel memory :220k freed
kernel panic: no init found. try passing init=option
2003 Mar 31
1
dovecot-0.99.8.1 @ old redhat6.2 box
Hi
I have some odd problem with running dovecot.
Program dies with message in maillog:
Mar 31 21:04:02 test-box dovecot: Dovecot starting up
Mar 31 21:04:04 test-box dovecot: execv(imap-login) failed: Resource temporarily unavailable
Mar 31 21:04:04 test-box dovecot: execv(imap-login) failed: Resource temporarily unavailable
Mar 31 21:04:04 test-box dovecot: Login process died too early -
2019 Nov 02
2
Sieve redirect does not collect the sendmail child process correctly (Dovecot 2.3.4.1, Pigeonhole 0.5.4)
..."sendmail".
The sendmail process executes and returns successfully, the mail is delivered,
however the Sieve code does not wait for the child process correctly and tries
to kill the already exited process after 30 seconds timeout.
Here are the problematic Sieve syscalls:
22:55:15.283482 execve("/usr/lib/dovecot/deliver", ["/usr/lib/dovecot/deliver", "-e", "-a", "tester at krustev.net"], 0x5620b4330c40 /* 61 vars */) = 0
...
22:55:15.286845 pipe([5, 6]) = 0
22:55:15.286870 fcntl(5, F_GETFL) = 0 (flags O_RDONLY)
22:55:15.28...
2010 Sep 20
1
[PATCH] Fix error launching libguestfs when euid != uid
...tfs appliance with
euid:egid = 36:36, which is required to write to an NFS target using
root_squash. Since the update to use an febootstrap cached appliance, this
causes an error on startup as the cached files are owned by root, but the cache
directory is owned by 36:36. The reason for this is that execve() resets euid
and egid to uid and gid respectively, so when febootstrap-supermin-helper is
executed, it runs as root:root. The cache directory, however, is created by
libguestfs directly without exec()ing another program, so it has the correct
ownership.
This patch fixes this issue by setting real...
2010 Dec 13
3
Slow I/O on ocfs2 file system
Hello,
I have found, that ocfs2 is very slow when doing I/O operation without
cache. See a simple test:
ng-vvv1:~# dd if=/data/verejna/dd-1G bs=1k | dd of=/dev/null
1048576+0 records in
1048576+0 records out
1073741824 bytes (1.1 GB) copied, 395.183 s, 2.7 MB/s
2097152+0 records in
2097152+0 records out
1073741824 bytes (1.1 GB) copied, 395.184 s, 2.7 MB/s
The underlying block device is quite
2018 Feb 22
2
Auth SEGV on sparc64, alignment problem?
Fancy, while not fun. :-) But thanks, that does work. Doing that, n?ing over calls to strcmp, it failed:
passdbs_init () at passdb.c:313
313 passdb_register_module(&passdb_ldap);
(gdb)
passdb_register_module (iface=0x280120) at passdb.c:33
33 old_iface = passdb_interface_find(iface->name);
(gdb)
passdb_interface_find (name=0x16fe60 "ldap") at passdb.c:20
20
2005 Dec 02
3
[Bug 1129] sshd hangs for command-only invocations due to fork/child signals
....uk
I've encountered a problem similar (or identical to) 967,
but in a modern version, and with more details.
I found a problem where executing ssh with a command (`ssh host date`
would often hang. Debugging sshd I found that do_exec_no_pty() calls
do_child() after the fork(), and that then execve()s. That
execve doesn't appear to complete, and the parent doesn't
appear to return from the fork. Observe:
Dec 2 03:23:14 yoda sshd[7463]: debug1: calling fork in do_exec_no_pty
Dec 2 03:23:14 yoda sshd[7464]: debug1: permanently_set_uid: 982/100
Dec 2 03:23:14 yoda sshd[7464]: debug3:...
2010 Apr 16
2
klibc-1.5.17 build failure on mips
Hi:
I downloaded klibc-1.5.17 and try to cross-compiled it for MIPS. Got
following errors:
usr/klibc/exit.o: In function `exit':
exit.c:(.text+0x40): undefined reference to `_exit'
usr/klibc/execl.o: In function `execl':
execl.c:(.text+0x80): undefined reference to `execve'
usr/klibc/execle.o: In function `execle':
execle.c:(.text+0x84): undefined reference to `execve
........
I am using gcc-4.4.3 toolchain. for kernel 2.6.31. My build command is:
make CROSS_COMPILE=mipsel-linux- KLIBCARCH=mips KBUILD_VERBOSE=1
Googled around and saying that it might work...