Bug 2056842

Summary: julia build segfaults starting 2b3dd01b779e4eff623a735792a915cde914b74a
Product: [Fedora] Fedora Reporter: Mamoru TASAKA <mtasaka>
Component: juliaAssignee: Milan Bouchet-Valat <nalimilan>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: chris, kdudka, msekleta, nalimilan, paul, svashisht
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: julia-1.7.2-3.fc37 julia-1.7.3-1.fc37 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-04-07 17:29:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2045732    
Attachments:
Description Flags
gdb backtrace none

Description Mamoru TASAKA 2022-02-22 07:51:23 UTC
Created attachment 1862510 [details]
gdb backtrace

Description of problem:

Currently I am trying to fix julia build failure on rawhide/f36:

https://src.fedoraproject.org/rpms/julia
https://koji.fedoraproject.org/koji/taskinfo?taskID=83111742

and during %build, julia process segfaults.
git bisect shows that https://github.com/curl/curl/commit/2b3dd01b779e4eff623a735792a915cde914b74a is the first bad commit.

For now I am going to provide gdb backtrace.

The problem here is that some julia sources are written not in C, and
(probably) julia is reading such "text" sources and calling curl related
functions using libffi, and currently I am unable to write minimal
source code to reproduce the issue I see...


Version-Release number of selected component (if applicable):
julia 1.7.2
curl 7.80 ok, 7.81 not okay

Comment 1 Kamil Dudka 2022-02-22 08:44:48 UTC
Thank you for bisecting it!  Based on the commit message, it sounds like julia is surprised by a transfer being killed unexpectedly in the new version of libcurl.  This does not look like an obvious bug in libcurl at first glance.

Comment 2 Milan Bouchet-Valat 2022-02-22 09:40:22 UTC
Thanks, that's very interesting. Apparently this has also been spotted upstream: https://github.com/JuliaLang/julia/issues/43703. We could try backporting that patch, or maybe even upgrading to Julia 1.8.0-beta which should be released in the coming days.

However, fixing CURL is not enough to get Julia to build on rawhide unfortunately. I had also observed that building Julia with USE_SYSTEM_CURL=0 and providing the sources fixes the build failure, but then I hit issues mentioned at https://bugzilla.redhat.com/show_bug.cgi?id=2044284#c4.

Comment 3 Fedora Update System 2022-04-07 17:25:20 UTC
FEDORA-2022-559a87e02f has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-559a87e02f

Comment 4 Fedora Update System 2022-04-07 17:29:00 UTC
FEDORA-2022-559a87e02f has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 5 Fedora Update System 2022-05-28 23:23:02 UTC
FEDORA-2022-c98ae07157 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-c98ae07157

Comment 6 Fedora Update System 2022-05-28 23:24:14 UTC
FEDORA-2022-c98ae07157 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.