|
| From: | Svante Signell |
| Subject: | Debugging execve problems |
| Date: | Wed, 04 Jan 2012 11:10:11 +0100 |
Hi,
Attached are test programs and a partial gdb session to hunt down the
problems with execv for the icon package:
Without . in PATH:
==================
./a.out
error in startup code
/dev/fd/3: can't read interpreter file header
With . in PATH:
===============
PATH=.:$PATH; ./a.out
Hello, hello.
Test programs: test_execve.c (parts of src/icont/tunix.c)
gcc -g test_execve.c -> a.out
Icon executable: iconx
icon application program (source): hello.icn
icon application program (executable): hello
gdb session (results up to now, not complete!): debugging_execve
test_execve.c
Description: Text Data
a.out
Description: application/executable
iconx
Description: application/executable
hello.icn
Description: Text document
hello
Description: application/shellscript
debugging_execve
Description: Text document
| [Prev in Thread] | Current Thread | [Next in Thread] |