ERROR: Macro recursion limit reached #2417
-
run a simple bpftrace result in a strange error: program.bt:7:6-9: ERROR: Macro recursion limit reached: FOO, "hello world"
@ = FOO
~~~
program.bt:7:6-9: ERROR: syntax error, unexpected end of file
@ = FOO
~~~ the program is as follows: $ cat program.bt
#!/usr/bin/bpftrace
#include <foo.h>
BEGIN
{
@ = FOO
}
END
{
printf("%s from BEGIN.\n", @);
}
$ cat foo.h
#define FOO "hello world" But if I change the definition in
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hmm, this does not reproduce on v0.16 or on master. Can you please include a A couple of other notes:
You can think of it this way, yes. In practice, |
Beta Was this translation helpful? Give feedback.
Hmm, this does not reproduce on v0.16 or on master. Can you please include a
bpftrace --info
like the template suggested?A couple of other notes:
<foo.h>
), do you have afoo.h
installed in a system path? I get this error for a local file with angled brackets: