[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "exec" procedures don't handle the optional parameters unbounded sit
From: |
Ludovic Courtès |
Subject: |
Re: "exec" procedures don't handle the optional parameters unbounded situation? |
Date: |
Thu, 15 Dec 2011 20:19:19 +0100 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux) |
Hi!
Sorry for the late reply.
Nala Ginrut <address@hidden> skribis:
> I found "exec" serial procedures didn't check the unbounded optional
> parameters.
> (execlp "ls") ==> segment fault
What you’re seeing here is SIGABRT, not SIGSEGV, preceded by the message:
A NULL argv[0] was passed through an exec system call.
That message comes from Gnulib’s ‘set_program_name’ [0], which is used
by all GNU Coreutils program, and which aborts when argv[0] is NULL.
Thanks,
Ludo’.
[0] http://git.savannah.gnu.org/cgit/gnulib.git/tree/lib/progname.c#n53
- Re: "exec" procedures don't handle the optional parameters unbounded situation?,
Ludovic Courtès <=