Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault on missing action parameters #120

Closed
ngsrinivas opened this issue Oct 26, 2016 · 0 comments
Closed

Segfault on missing action parameters #120

ngsrinivas opened this issue Oct 26, 2016 · 0 comments
Assignees
Labels
fixed This topic is considered to be fixed.

Comments

@ngsrinivas
Copy link

Hi,

In the attached source file, when I call the action set_nhop from an apply block without arguments, I get a segfault from the compiler. The compiler should instead complain about missing action parameters.

[flow:p4c]$  ./build/p4test problematic.p4 
libc++abi.dylib: terminating with uncaught exception of type Util::CompilerBug: COMPILER BUG: ../lib/crash.cpp:226
Exiting with SIGSEGV

When I change the apply block in the ingress control to include a parameter for set_nhop, i.e.,

    apply {
        r1_filter();
        set_nhop(8w3);
    }
}

the file validates correctly.

problematic.txt

ChrisDodd pushed a commit that referenced this issue Oct 28, 2016
@ChrisDodd ChrisDodd added the fixed This topic is considered to be fixed. label Dec 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed This topic is considered to be fixed.
Projects
None yet
Development

No branches or pull requests

2 participants