Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asan #1817

Closed
wants to merge 5 commits into from
Closed

Asan #1817

wants to merge 5 commits into from

Conversation

christopherlam
Copy link
Contributor

@christopherlam christopherlam commented Nov 6, 2023

(just to take advantage of github ci)

Uses generator statements instead of CMAKE_<TYPE>_FLAGS_ASAN to support multiconfig generators like Xcode.
xaccSplitComputeCapGains creates gains_split pointers in both the Cap Gains Split and its Income split to the original split, but the original's gains_split pointer can point to only one of them, the Cap Gains split. When the original split is freed both the Cap Gains split's and its Income split need their gains_split pointers NULLed or when it's the Income split's turn to be freed it will try to deref the dangling pointer.
Every test was rebuilding it except for gnc-backend-xml.cpp from
scratch, no point in that plus the Address Sanitizer needs the
definition of GncBackendXml.
@christopherlam
Copy link
Contributor Author

will ci in own branch

@jralls
Copy link
Member

jralls commented Nov 6, 2023

WTF?

@christopherlam
Copy link
Contributor Author

It's to get github ci asan logfiles easily! I'll check on my own branch christopherlam#10 instead of here.

@jralls
Copy link
Member

jralls commented Nov 7, 2023

You don't need CI to run asan, just tell cmake -DCMAKE_BUILD_TYPE=Asan. Then you can run and work on a single test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants