Issue 107662
Summary [feature-request] [llvm-symbolizer] Implement symbolizing ASAN logs written with `log_path=/tmp/file.log,symbolize=0`.
Labels new issue
Assignees
Reporter shamefulCake1
    When I compile my code with a sanitizer, and set `ASAN_OPTIONS=log_path=/tmp/file.log,symbolize=0`, the resulting log file looks like this:

```
==1429==ERROR: LeakSanitizer: detected memory leaks 
 
Direct leak of 72 byte(s) in 1 object(s) allocated from: 
    #0 0x56387d58b50f (/usr/bin/daemon+0x11f50f) 
    #1 0x56387d612a43  (/usr/bin/daemon+0x1a6a43) 
 #2 0x56387d5dbc69  (/usr/bin/daemon+0x16fc69) 
    #3 0x56387d5da673  (/usr/bin/daemon+0x16e673) 
    #4 0x56387d638de8  (/usr/bin/daemon+0x1ccde8) 
    #5 0x56387d62f56d  (/usr/bin/daemon+0x1c356d) 
    #6 0x56387d62edc0  (/usr/bin/daemon+0x1c2dc0)
 #7 0x56387d5c9400  (/usr/bin/daemon+0x15d400)
    #8 0x56387d5c90bb (/usr/bin/daemon+0x15d0bb)
    #9 0x7f965d32b03c (/lib64/libc.so.6+0x2403c)
```

When I set `symbolize=1`, the stack traces have line number and function info, but that `daemon` program actively manipulates its children, so when `llvm-symbolizer` becomes its child, it misbehaves.
Nevertheless, I can symbolize this output by running `llvm-symbolizer /usr/bin/daemon 0x15d0bb`, but it's annoying to do it manually for each line.

May I ask that a standard filter be added, so that I could just run:  `llvm-symbolizer /tmp/file.log > file.symbolized.log`?

_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to