Stream: helpdesk (published)

Topic: How to use --bug-report=rr


view this post on Zulip Lasse Peters (Aug 16 2021 at 20:00):

When trying out any example from the README of https://github.com/ksil/LFPSQP.jl I am getting segfaults. Thus, I wanted to record the segfault with --debug-report==rr but the debug process itself reports an error:

julia> using LFPSQP
[ Info: Precompiling LFPSQP [213b899a-c0a5-4fcf-934b-81c0c35eb21a]

julia> f = x -> (1 - x[1])^2 + 100*(x[2] - x[1]^2)^2
#1 (generic function with 1 method)

julia> x0 = [0.0, 0.0]
2-element Vector{Float64}:
 0.0
 0.0

julia> x, obj_values, λ_kkt, term_info = optimize(f, x0)

signal (11): Segmentation fault
...
 Error: Debugged process failed
   exitcode = 0
   termsignal = 11
 @ BugReporting ~/.julia/packages/BugReporting/AZD4C/src/BugReporting.jl:191
[1]    2555288 segmentation fault (core dumped)  julia --bug-report=rr

view this post on Zulip Fredrik Ekre (Aug 17 2021 at 10:11):

I have had that happen too, but then I managed to record with rr directly (rr record julia ...). Does that work?


Last updated: Nov 06 2024 at 04:40 UTC