Skip to content

[OMP_OFFLOAD_LLVM] Crash due to gbl.ompaccfile is NULL #1398

@dmikushin

Description

@dmikushin

In tools/flang2/flang2exe/llutil.cpp:1707:

1705	#ifdef OMP_OFFLOAD_LLVM
1706	  if(flg.omptarget)
1707	    ll_write_module_header(gbl.ompaccfile, gpu_llvm_module);
1708	#endif

The gbl.ompaccfile value is uninitialized

(gdb) p gbl.ompaccfile
$4 = (FILE *) 0x0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions