bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Debugging execve problems


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

Attachment: test_execve.c
Description: Text Data

Attachment: a.out
Description: application/executable

Attachment: iconx
Description: application/executable

Attachment: hello.icn
Description: Text document

Attachment: hello
Description: application/shellscript

Attachment: debugging_execve
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]