public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/12241] New: execve() doesn't return with errono=ENOENT for executable w/o required shared libs.
@ 2010-11-19 14:17 pluto at agmk dot net
2010-11-19 14:37 ` [Bug libc/12241] " drepper.fsp at gmail dot com
2014-06-13 10:43 ` fweimer at redhat dot com
0 siblings, 2 replies; 3+ messages in thread
From: pluto at agmk dot net @ 2010-11-19 14:17 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=12241
Summary: execve() doesn't return with errono=ENOENT for
executable w/o required shared libs.
Product: glibc
Version: 2.12
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper.fsp@gmail.com
ReportedBy: pluto@agmk.net
Host: x86_64-gnu-linux
Target: x86_64-gnu-linux
Build: x86_64-gnu-linux
Created attachment 5130
--> http://sourceware.org/bugzilla/attachment.cgi?id=5130
testcase
hi,
on execve() man page:
http://www.kernel.org/doc/man-pages/online/pages/man2/execve.2.html
we can read:
(...)
RETURN VALUE
On success, execve() does not return, on error -1 is returned,
and errno is set appropriately.
(...)
ENOENT
The file filename or a script or ELF interpreter does not exist,
or a shared library needed for file or interpreter cannot be found.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^
but in the real world the execve() doesn't return if i accidentaly
try to run a child process w/o required shared libs on search path.
$ make
gcc -Wall -g2 parent.c -o parent
gcc -Wall -g2 hello.c -shared -fpic -o libhello.so
gcc -Wall -g2 child.c -o child ./libhello.so
rm libhello.so
./parent
<program name unknown>: error while loading shared libraries:
./libhello.so: cannot open shared object file: No such file or directory
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libc/12241] execve() doesn't return with errono=ENOENT for executable w/o required shared libs.
2010-11-19 14:17 [Bug libc/12241] New: execve() doesn't return with errono=ENOENT for executable w/o required shared libs pluto at agmk dot net
@ 2010-11-19 14:37 ` drepper.fsp at gmail dot com
2014-06-13 10:43 ` fweimer at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: drepper.fsp at gmail dot com @ 2010-11-19 14:37 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=12241
Ulrich Drepper <drepper.fsp at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
--- Comment #1 from Ulrich Drepper <drepper.fsp at gmail dot com> 2010-11-19 14:37:09 UTC ---
Then get the man page changed. It has to follow the implementation and not the
other way round.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libc/12241] execve() doesn't return with errono=ENOENT for executable w/o required shared libs.
2010-11-19 14:17 [Bug libc/12241] New: execve() doesn't return with errono=ENOENT for executable w/o required shared libs pluto at agmk dot net
2010-11-19 14:37 ` [Bug libc/12241] " drepper.fsp at gmail dot com
@ 2014-06-13 10:43 ` fweimer at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: fweimer at redhat dot com @ 2014-06-13 10:43 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=12241
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Flags| |security-
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-06-13 10:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-19 14:17 [Bug libc/12241] New: execve() doesn't return with errono=ENOENT for executable w/o required shared libs pluto at agmk dot net
2010-11-19 14:37 ` [Bug libc/12241] " drepper.fsp at gmail dot com
2014-06-13 10:43 ` fweimer at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).