You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
srs/trunk/3rdparty
Winlin 8f48a0e2d1
ASAN: Support coroutine context switching and stack tracing (#4153)
For coroutine, we should use `__sanitizer_start_switch_fiber` which
similar to`VALGRIND_STACK_REGISTER`, see
https://github.com/google/sanitizers/issues/189#issuecomment-1346243598
for details. If not fix this, asan will output warning:

```
==72269==WARNING: ASan is ignoring requested __asan_handle_no_return: stack type: default top: 0x00016f638000; bottom 0x000106bec000; size: 0x000068a4c000 (1755627520)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
```

It will cause asan failed to get the stack, see
`research/st/asan-switch.cpp` for example:

```
==71611==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x000103600733 at pc 0x0001009d3d7c bp 0x000100b4bd40 sp 0x000100b4bd38
WRITE of size 1 at 0x000103600733 thread T0
    #0 0x1009d3d78 in foo(void*) asan-switch.cpp:13
```

After fix this issue, it should provide the full stack when crashing:

```
==73437==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x000103300733 at pc 0x000100693d7c bp 0x00016f76f550 sp 0x00016f76f548
WRITE of size 1 at 0x000103300733 thread T0
    #0 0x100693d78 in foo(void*) asan-switch.cpp:13
    #1 0x100693df4 in main asan-switch.cpp:23
    #2 0x195aa20dc  (<unknown module>)
```

For primordial coroutine, if not set the stack by
`st_set_primordial_stack`, then the stack is NULL and asan can't get the
stack tracing. Note that it's optional and only make it fail to display
the stack information, no other errors.

---

Co-authored-by: john <hondaxiao@tencent.com>
6 months ago
..
ffmpeg-4-fit SRS5: MP3: Support decode mp3 by FFmpeg natively. (#296) (#3340) 2 years ago
gperftools-2-fit Squash: Fix bugs 3 years ago
gprof Compress repository, remove gprof files. 5 years ago
gtest-fit UTest: Upgrade gtest to 1.11 and support clion. (#2970) 3 years ago
httpx-static Support SRS Stack token for authentication. v6.0.74 (#3794) 1 year ago
libsrtp-2-fit RISCV: Patch ST and libsrtp. #3115 3 years ago
openssl-1.1-fit AppleM1: Update openssl to v1.1.1l 3 years ago
patches SRT: Log level to debug when no socket to accept. v5.0.180 v6.0.78 (#3696) 1 year ago
signaling Upgrade jquery from 1.10.2 to 1.12.2 (#3571) 2 years ago
srs-bench SmartPtr: Fix SRT source memory leaking. v6.0.134 (#4106) 7 months ago
srt-1-fit Upgrade libsrt to v1.5.3. v5.0.183 v6.0.81 (#3808) 1 year ago
st-srs ASAN: Support coroutine context switching and stack tracing (#4153) 6 months ago
README.md Upgrade libsrt to v1.5.3. v5.0.183 v6.0.81 (#3808) 1 year ago
openssl-OpenSSL_1_0_2u.tar.gz Revert part of 01d5e4da, to keep both openssl 1.0 and 1.1, because SRTP depends on 1.0 5 years ago
opus-1.3.1.tar.gz For #1659, #307, add opus codec library 5 years ago

README.md

http-parser-2.1.zip

nginx-1.5.7.zip

srt-1-fit srt-1.5.3.tar.gz

openssl-1.1-fit openssl-1.1.1l.tar.gz

openssl-1.1.0e.zip openssl-OpenSSL_1_0_2u.tar.gz

libsrtp-2.3.0.tar.gz

ffmpeg-4.2.tar.gz opus-1.3.1.tar.gz

gtest-fit

gperftools-2-fit

st-srs st-1.9.zip state-threads state-threads-1.9.1.tar.gz

JSON

USRSCTP

links: