Fix #7284 (segfault in jl_demangle)
Merge pull request #7286 from JuliaLang/teh/profilesegv

Fix #7284 (segfault in jl_demangle)