Skip to content

Asan: Disable for CentOS7 because LD_PRELOAD issue. #3347

@winlinvip

Description

@winlinvip

Description

For CentOS7, we got error as bellow, see google/sanitizers#796 for detail:

==48458==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD.
  1. SRS Version: 5.0.119

  2. SRS Log:

==48458==ASan runtime does not come first in initial library list; you should either link 
runtime to your application or manually preload it with LD_PRELOAD.
  1. SRS Config:
./objs/srs -c conf/srs.conf

Replay

CentOS 7.

Step 1: Link asan by shared library.

./configure --sanitizer=on --sanitizer-static=off && make

Step 2: Run SRS

./objs/srs -c conf/srs.conf

#==48458==ASan runtime does not come first in initial library list; you should either link 
# runtime to your application or manually preload it with LD_PRELOAD.

There is a workaround:

env LD_PRELOAD=/lib64/libasan.so.5 ./objs/srs -c conf/srs.conf

Metadata

Metadata

Assignees

Labels

EnglishNativeThis issue is conveyed exclusively in English.EnhancementImprovement or enhancement.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions