Hi Community,
We recently got a segfault on a deepcopy
of a larger composite Julia object. This is the first of it’s kind in many years of use. We’re tracking that as an issue in the local package, with details and stacktrace via link there:
https://github.com/JuliaRobotics/IncrementalInference.jl/issues/1113#issue-779235362
This occurred on Github Actions during regular package CI testing. This was on Julia 1.4.2, and Ubuntu 18.04. I thought I’d post a notice here in Discourse to help document Segfaults, and in case there were more events known in the wider community. An Internet search did not find anything immediately related. I will post again if we see or learn more.
The stracktrace is quite deep, but near the middle it points to deepcopy.jl
and datatype.c
:
...
jl_isa at /buildworker/worker/package_linux64/build/src/subtype.c:2056
jl_new_structv at /buildworker/worker/package_linux64/build/src/datatype.c:928
deepcopy_internal at ./deepcopy.jl:83
deepcopy at ./deepcopy.jl:26
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2145 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2323
#copyGraph!#46 at /home/runner/.julia/packages/DistributedFactorGraphs/E4dK8/src/services/AbstractDFG.jl:929
...
The top of the stacktrace points to gc.c