# Calling Julia from C++ -- Compatibility with AddressSanitizer

**URL:** https://discourse.julialang.org/t/calling-julia-from-c-compatibility-with-addresssanitizer/6517
**Category:** New to Julia
**Tags:** c
**Created:** [October 18, 2017, 4:08am UTC](https://discourse.julialang.org/t/calling-julia-from-c-compatibility-with-addresssanitizer/6517 "2017-10-18T04:08:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jinliangwei](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jinliangwei/32/1929_2.png) [@jinliangwei](https://discourse.julialang.org/u/jinliangwei)
#### Post date: [October 18, 2017, 4:08am UTC](https://discourse.julialang.org/t/calling-julia-from-c-compatibility-with-addresssanitizer/6517/1 "2017-10-18T04:08:55Z")

</div>

I have a C++ program that calls Julia functions. In some cases, those Julia functions are dynamically generated and JIT-compiled. I tried to use AddressSanitizer (libasan) to check for memory errors in my program, but it fails when executing some (not all) JIT-compiled Julia functions. The error is always stack buffer underflow. I know it’s a false positive but is there anything I can do to avoid such errors being thrown and still use AddressSanitizer to check the rest of my program?
