
|
If you were logged in you would be able to see more operations.
|
|
|
|
Original Estimate:
|
Unknown
|
Remaining Estimate:
|
Unknown
|
Time Spent:
|
Unknown
|
|
File Attachments:
|
1.
foo.c (0.6 kb)
|
|
|
pack-sdf:
opt/bin/pack-sdf -i TIL.sdf -o TIL.def --dep TIL.dep
including ./TIL.sdf
[ pack-sdf | warning ] process signaled: USR1 (10): User-defined signal 1
parse-stratego has same problem:
minipowerrrr:~/tmp/strategoxt-0.17M1pre15325 martin$ /opt/bin/parse-stratego -i foo.str
[ parse-stratego | warning ] process signaled: USR1 (10): User-defined signal 1
Strange enough, parse-stratego fails, but sglri succeeds. Investigating this issue.
|
|
Description
|
pack-sdf:
opt/bin/pack-sdf -i TIL.sdf -o TIL.def --dep TIL.dep
including ./TIL.sdf
[ pack-sdf | warning ] process signaled: USR1 (10): User-defined signal 1
parse-stratego has same problem:
minipowerrrr:~/tmp/strategoxt-0.17M1pre15325 martin$ /opt/bin/parse-stratego -i foo.str
[ parse-stratego | warning ] process signaled: USR1 (10): User-defined signal 1
Strange enough, parse-stratego fails, but sglri succeeds. Investigating this issue.
|
Show » |
|
|
It's not yet clear if this is a problem with recent GCC's on all platforms. At least it is not Apple GCC 4.0.1 specific: FSF GCC 4.0.3 produces the same problem on i686-apple-darwin.
The test program:
--------------------------------------------------
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/wait.h>
void f(int x);
void g(int arg(int));
void h(int arg(int));
int main(int argc, char* argv[])
{
f(2);
return 0;
}
void f(int x)
{
auto int nested(int y);
int nested(int y)
{
return x + y;
}
g(nested);
}
void g(int arg(int))
{
pid_t pid = fork();
if(pid == 0)
{
int x = arg(3);
fprintf(stderr, "x = %d \n", x);
exit(0);
}
else
{
int status;
waitpid(pid, &status, 0);
fprintf(stderr, "exit? %d \n", WIFEXITED(status) ? WEXITSTATUS(status) : -1);
fprintf(stderr, "signal? %d \n", WIFSIGNALED(status) ? WTERMSIG(status) : -1);
}
}
-------------------------------
This should print:
exit? 0
signal? -1
But on the Mac/Intel it prints:
exit? -1
signal? 10