Issue 134853
Summary [compiler-rt] hwasan_symbolize Windows bug
Labels new issue
Assignees
Reporter automatedbugreportingfacility
    https://github.com/llvm/llvm-project/blob/008c875be85732f72c4df4671167f5be79f449eb/compiler-rt/lib/hwasan/scripts/hwasan_symbolize#L423

On Windows, `os.getcwd()` can return something like "C:\sdk\llvm\...". The string with unescaped backslashes is then fed into `re.sub()`:

https://github.com/llvm/llvm-project/blob/008c875be85732f72c4df4671167f5be79f449eb/compiler-rt/lib/hwasan/scripts/hwasan_symbolize#L176

which results in an error:

`re.error: bad escape \l at position 31`

My workaround:

```
    paths_to_cut.append(os.getcwd().replace("\\", "/") + '/')
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to