Skip to content

libwhich segfaults when building on macOS 12 #57670

@fingolfin

Description

@fingolfin

So far various reasons I am still using macOS 12. I realize this may not be supported, but still I find it a bit unsettling that when I build Julia these days, I get a couple of segfaults:

...
/Users/mhorn/Projekte/Julia/julia.master/contrib/install.sh 755 /Users/mhorn/Projekte/Julia/julia.master/contrib/juliac-buildscript.jl /Users/mhorn/Projekte/Julia/julia.master/usr/share/julia/
/bin/sh: line 1: 43264 Abort trap: 6           /Users/mhorn/Projekte/Julia/julia.master/usr/tools/libwhich -p libcrypto.dylib 2> /dev/null
/bin/sh: line 1: 43266 Abort trap: 6           /Users/mhorn/Projekte/Julia/julia.master/usr/tools/libwhich -p libssl.dylib 2> /dev/null
    PERL base/pcre_h.jl
    PERL base/errno_h.jl
...

It's not beeng doing that for very long, though, I've not yet tried to bisect it. I may do that later and add the info, but perhaps this error rings a bell for someone?

Here is an excerpt of a crash report log. Note that there is a mention of libssl in there...

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               libwhich [43266]
Path:                  /Users/USER/*/libwhich
Identifier:            libwhich
Version:               ???
Code Type:             ARM-64 (Native)
Parent Process:        Exited process [43265]
Responsible:           iTerm2 [790]
User ID:               502

Date/Time:             2025-03-07 14:11:02.7142 +0100
OS Version:            macOS 12.7.6 (21H1320)
Report Version:        12
Anonymous UUID:        B29F3B3E-49ED-C845-D98D-DA47EEF0BE2C

Sleep/Wake UUID:       AC8BBF08-A1AA-432B-9C21-32BAF96E59E3

Time Awake Since Boot: 760000 seconds
Time Since Wake:       21123 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
abort() called
Invalid dylib load. Clients should not load the unversioned libssl dylib as it does not have a stable ABI.


Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	       0x1a1cf6d38 __pthread_kill + 8
1   libsystem_pthread.dylib       	       0x1a1d2bee0 pthread_kill + 288
2   libsystem_c.dylib             	       0x1a1c66330 abort + 168
3   libssl.dylib                  	       0x2222b6a10 __report_load.cold.1 + 52
4   libssl.dylib                  	       0x2222b66d8 __report_load + 412
5   dyld                          	       0x1006c9f4c invocation function for block in dyld4::Loader::findAndRunAllInitializers(dyld4::RuntimeState&) const + 164
6   dyld                          	       0x1006f3784 invocation function for block in dyld3::MachOAnalyzer::forEachInitializer(Diagnostics&, dyld3::MachOAnalyzer::VMAddrConverter const&, void (unsigned int) block_pointer, void const*) const + 340
7   dyld                          	       0x1006e9ed8 invocation function for block in dyld3::MachOFile::forEachSection(void (dyld3::MachOFile::SectionInfo const&, bool, bool&) block_pointer) const + 528
8   dyld                          	       0x1006b5f98 dyld3::MachOFile::forEachLoadCommand(Diagnostics&, void (load_command const*, bool&) block_pointer) const + 168
9   dyld                          	       0x1006e9c80 dyld3::MachOFile::forEachSection(void (dyld3::MachOFile::SectionInfo const&, bool, bool&) block_pointer) const + 192
10  dyld                          	       0x1006f31d4 dyld3::MachOAnalyzer::forEachInitializer(Diagnostics&, dyld3::MachOAnalyzer::VMAddrConverter const&, void (unsigned int) block_pointer, void const*) const + 516
11  dyld                          	       0x1006c9e8c dyld4::Loader::findAndRunAllInitializers(dyld4::RuntimeState&) const + 172
12  dyld                          	       0x1006d0a4c dyld4::PrebuiltLoader::runInitializers(dyld4::RuntimeState&) const + 44
13  dyld                          	       0x1006ca038 dyld4::Loader::runInitializersBottomUp(dyld4::RuntimeState&, dyld3::Array<dyld4::Loader const*>&) const + 216
14  dyld                          	       0x1006ca104 dyld4::Loader::runInitializersBottomUpPlusUpwardLinks(dyld4::RuntimeState&) const + 124
15  dyld                          	       0x1006d9c64 dyld4::APIs::dlopen_from(char const*, int, void*) + 520
16  libwhich                      	       0x1002bf92c main + 144
17  dyld                          	       0x1006b908c start + 520

Thread 1:
0   libsystem_pthread.dylib       	       0x1a1d27078 start_wqthread + 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildingBuild system, or building Julia or its dependenciessystem:macAffects only macOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions