Skip to content

Fix ASan runtime ordering in test harness - #1785

Open
chipitsine wants to merge 1 commit into
OpenPrinting:masterfrom
chipitsine:264f5d7a-d03d-413f-ad45-60bf05bba5a1
Open

chipitsine wants to merge 1 commit into
OpenPrinting:masterfrom
chipitsine:264f5d7a-d03d-413f-ad45-60bf05bba5a1

Conversation

@chipitsine

Copy link
Copy Markdown

No description provided.

@michaelrsweet michaelrsweet left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs work...

Comment thread test/run-stp-tests.sh
fi

LD_PRELOAD="$root/cups/libcups.so.2:$root/cups/libcupsimage.so.2"
if ldd "$root/cups/libcups.so.2" | $GREP -q asan; then

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not portable... You need to confirm the existence of the ldd program first.

Also, you need LD_PRELOAD in order to override a system-installed shared library.

Finally, if you want this to work within ASAN you need to set the ASAN_OPTIONS environment variable to "leak_check_at_exit=false" and include a PassEnv directive for it as well...

@michaelrsweet michaelrsweet self-assigned this Oct 24, 2026
@michaelrsweet michaelrsweet added investigating Investigating the issue platform issue Issue is specific to an OS or desktop labels Oct 24, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

investigating Investigating the issue platform issue Issue is specific to an OS or desktop

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants