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

Crash on any input in --debug mode #2711

Open
nurmukhametov opened this issue Nov 29, 2023 · 2 comments · May be fixed by #2716
Open

Crash on any input in --debug mode #2711

nurmukhametov opened this issue Nov 29, 2023 · 2 comments · May be fixed by #2716
Labels
Crash All compiler crashes

Comments

@nurmukhametov
Copy link
Collaborator

On any input with --stdlib and --debug, ISPC crashes:

$  ispc --debug t.ispc -o t.ll -O2

stdlib.ispc:2146:20: Error: Unable to find any matching overload for call to function "atomic_swap_global".
        Passed types: (/*unbound*/ int64 * uniform, varying int64)

/localdisk2/anurmukh/applications.compilers.ispc.core/src/main.cpp(404): FATAL ERROR: Unhandled signal sent to process; terminating.
***
@nurmukhametov nurmukhametov added the Crash All compiler crashes label Nov 29, 2023
@nurmukhametov
Copy link
Collaborator Author

The smaller reproducer is:

void foo(void *uniform dst, void *uniform src, uniform int32 count) {
    __memcpy32((int8 * uniform) dst, (int8 * uniform) src, count);
}

to reproduce:

$ ispc t.ispc -o t.o -O2 --target=avx2-i32x8 --debug --nostdlib
Initial AST
`-Function <t2.ispc:2.5 - 2.67>  "foo"
  `-(body) StmtList <t2.ispc:2.5 - 2.67>
    `-ExprStmt <t2.ispc:2.5 - 2.66>
t2.ispc:2:5: Error: Unable to find any matching overload for call to function "__memcpy32" only considering exact matches.
        Passed types: (/*unbound*/ int8 * uniform, /*unbound*/ int8 * uniform, uniform int32)

    __memcpy32((int8 * uniform) dst, (int8 * uniform) src, count);
    ^^^^^^^^^^

@nurmukhametov nurmukhametov linked a pull request Dec 15, 2023 that will close this issue
@pbrubaker
Copy link
Collaborator

Is this fixed now by #2716 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Crash All compiler crashes
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants