[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Fwd: Debugging execve problems]
From: |
Svante R Signell |
Subject: |
RE: [Fwd: Debugging execve problems] |
Date: |
Wed, 4 Jan 2012 21:44:37 +0000 |
Samuel,
I'm replying with M$ webmail, therefore the top posting, sorry for that. My
main mailer is currently broken.
Regarding the execve stuff, where can I find the bug and the patch to these
problems?
Thanks!
________________________________________
From: bug-hurd-bounces+srs=kth.se@gnu.org [bug-hurd-bounces+srs=kth.se@gnu.org]
on behalf of Samuel Thibault [samuel.thibault@gnu.org]
Sent: 04 January 2012 18:12
To: Svante Signell
Cc: debian-hurd maillist; Bug hurd mailing list
Subject: Re: [Fwd: Debugging execve problems]
Svante Signell, le Wed 04 Jan 2012 16:44:20 +0100, a écrit :
> #!/bin/sh
> IXBIN=/home/srs/DEBs/icon/debugging_icon/iconx
> IXLCL=`echo $0 | sed 's=[^/]*$=iconx='`
Ah, the executed thing is a shell script, not a binary. Ok, it's really
the same issue as Emilio was fixing some time ago, and reduces to this:
test.c:
int main(int argc, char *argv[]) {
char *t[] = {"test.sh", NULL};
execv("test.sh", t);
perror("execve");
return 0;
}
test.sh:
#!/bin/sh
echo I'm $0
test.sh gets /dev/fd/3, which is not helpful for the IXLCL computation
above.
Samuel
- [Fwd: Debugging execve problems], Svante Signell, 2012/01/04
- Re: [Fwd: Debugging execve problems], Samuel Thibault, 2012/01/04
- RE: [Fwd: Debugging execve problems],
Svante R Signell <=
- RE: [Fwd: Debugging execve problems], Svante Signell, 2012/01/07
- Re: [Fwd: Debugging execve problems], Samuel Thibault, 2012/01/07
- Re: [Fwd: Debugging execve problems], Svante Signell, 2012/01/07
- Re: [Fwd: Debugging execve problems], Samuel Thibault, 2012/01/07
- Re: [Fwd: Debugging execve problems], Svante Signell, 2012/01/07
- Re: [Fwd: Debugging execve problems], Samuel Thibault, 2012/01/07
- Re: [Fwd: Debugging execve problems], Samuel Thibault, 2012/01/07
- Re: [Fwd: Debugging execve problems], Svante Signell, 2012/01/07
- Re: [Fwd: Debugging execve problems], Svante Signell, 2012/01/08
- Re: [Fwd: Debugging execve problems], Samuel Thibault, 2012/01/08