Closed Bug 1884255 Opened 11 months ago Closed 11 months ago

call to function initAliasData(UErrorCode&) through pointer to incorrect function type 'void (*)(UErrorCode &)'

Categories

(Core :: Internationalization, defect)

ARM64
macOS
defect

Tracking

()

RESOLVED DUPLICATE of bug 1874251
Tracking Status
firefox125 --- affected

People

(Reporter: truber, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fuzzblocker])

The following crash occurs on startup in m-c 20240307-aded201f11ec in fuzzing asan builds on M1 macOS.

/builds/worker/checkouts/gecko/intl/icu/source/common/umutex.h:171:9: runtime error: call to function initAliasData(UErrorCode&) through pointer to incorrect function type 'void (*)(UErrorCode &)'
(/Users/truber/builds/m-c-20240307095557-fuzzing-asan-opt/Nightly.app/Contents/MacOS/XUL:arm64+0x132ea54): note: initAliasData(UErrorCode&) defined here
    #0 0x12f89026c in icu_73::umtx_initOnce(icu_73::UInitOnce&, void (*)(UErrorCode&), UErrorCode&) (/Users/truber/builds/m-c-20240307095557-fuzzing-asan-opt/Nightly.app/Contents/MacOS/XUL:arm64+0x12ac26c)
    #1 0x12f9129dc in ucnv_io_countKnownConverters_73 (/Users/truber/builds/m-c-20240307095557-fuzzing-asan-opt/Nightly.app/Contents/MacOS/XUL:arm64+0x132e9dc)
    #2 0x12f926948 in u_init_73 (/Users/truber/builds/m-c-20240307095557-fuzzing-asan-opt/Nightly.app/Contents/MacOS/XUL:arm64+0x1342948)
    #3 0x12f3c6958 in mozilla::intl::ICU4CLibrary::Initialize() (/Users/truber/builds/m-c-20240307095557-fuzzing-asan-opt/Nightly.app/Contents/MacOS/XUL:arm64+0xde2958)
    #4 0x13d8ccfec in JS::detail::InitWithFailureDiagnostic(bool, JS::detail::FrontendOnly) (/Users/truber/builds/m-c-20240307095557-fuzzing-asan-opt/Nightly.app/Contents/MacOS/XUL:arm64+0xf2e8fec)
    #5 0x12f237a84 in NS_InitXPCOM (/Users/truber/builds/m-c-20240307095557-fuzzing-asan-opt/Nightly.app/Contents/MacOS/XUL:arm64+0xc53a84)
    #6 0x13d336310 in ScopedXPCOMStartup::Initialize(bool) (/Users/truber/builds/m-c-20240307095557-fuzzing-asan-opt/Nightly.app/Contents/MacOS/XUL:arm64+0xed52310)
    #7 0x13d34ac58 in XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) (/Users/truber/builds/m-c-20240307095557-fuzzing-asan-opt/Nightly.app/Contents/MacOS/XUL:arm64+0xed66c58)
    #8 0x13d34bde4 in XRE_main(int, char**, mozilla::BootstrapConfig const&) (/Users/truber/builds/m-c-20240307095557-fuzzing-asan-opt/Nightly.app/Contents/MacOS/XUL:arm64+0xed67de4)
    #9 0x1024d53b4 in main (/Users/truber/builds/m-c-20240307095557-fuzzing-asan-opt/Nightly.app/Contents/MacOS/firefox:arm64+0x1000013b4)
    #10 0x1ac75fe4c  (<unknown module>)
    #11 0xcc767ffffffffffc  (<unknown module>)

SUMMARY: UndefinedBehaviorSanitizer: function-type-mismatch /builds/worker/checkouts/gecko/intl/icu/source/common/umutex.h:171:9 in
Whiteboard: [fuzzblocker]

This is the same issue as bug 1874251 manifested at runtime (because fxci is cross-compiled), rather than at build time for a native build.

Status: NEW → RESOLVED
Closed: 11 months ago
Duplicate of bug: 1874251
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.