-
Notifications
You must be signed in to change notification settings - Fork 137
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
[OMP_OFFLOAD_LLVM] Crash due to gbl.ompaccfile is NULL #1398
Comments
My usecase is:
And it crashes because This path is obviously invalid, and has been created due to wrong handling of multiple offload targets. |
Here is when the invalid path is being filled into the variable: Old value = 0x0
New value = 0x7ffcde22b8d1 "/tmp/example-9be20d-x86_64.ll/tmp/example-9be20d-nvptx64-nvidia-cuda.ll"
parse_arguments (parser=0x5595877f4c90, argc=159, argv=0x7ffcde22a718) at tools/flang2/flang2exe/arg_parser.cpp:382
382 tools/flang2/flang2exe/arg_parser.cpp: No such file or directory.
(gdb) up
#1 0x0000559585d71954 in init (argc=159, argv=0x7ffcde22a718) at /classic-flang/src/classic-flang/tools/flang2/flang2exe/main.cpp:663
663 parse_arguments(arg_parser, argc, argv); |
There is a |
@shivaramaarao Can you comment on this? |
In tools/flang2/flang2exe/llutil.cpp:1707:
The
gbl.ompaccfile
value is uninitializedThe text was updated successfully, but these errors were encountered: