[new in release] Crash in [@ libc.so | <viaduct::Response as uniffi_core::ffi_converter_traits::Lift<UT>>::try_lift]
Categories
(Application Services :: General, defect)
Tracking
(firefox-esr153 unaffected, firefox158 fixed, firefox159 fixed, firefox160 fixed)
| Tracking | Status | |
|---|---|---|
| firefox-esr153 | --- | unaffected |
| firefox158 | --- | fixed |
| firefox159 | --- | fixed |
| firefox160 | --- | fixed |
People
(Reporter: clouseau-bot, Assigned: bdk)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: crash, regression)
Crash Data
Crash report: https://crash-stats.mozilla.org/report/index/0369ba1f-02a8-4867-9fdb-b61570261019
Reports with a different stack in the same spike: https://crash-stats.mozilla.org/report/index/cf4043c5-273e-4a74-9a26-d429e0261014, https://crash-stats.mozilla.org/report/index/d3aea52e-9230-43bc-aa6e-633e60261019
Crash Reason:
SIGABRT / SI_QUEUE at 0x00002861000022ea
Top 10 frames:
0 libc.so
1
2
3 libmegazord.so uniffi_core::ffi_converter_traits::LiftReturn::lift_foreign_return
4 libmegazord.so <viaduct::backend::UniFFICallbackHandlerBackend as viaduct::backend::Backend>::s... components/viaduct/src/backend.rs:13
5 libmegazord.so pollster::block_on
6 libmegazord.so viaduct::Request::send components/viaduct/src/lib.rs:102
7 libmegazord.so remote_settings::client::ViaductApiClient::make_request components/remote_settings/src/client.rs:650
8 libmegazord.so <remote_settings::client::ViaductApiClient as remote_settings::client::ApiClient... components/remote_settings/src/client.rs:695
9 libmegazord.so remote_settings::client::RemoteSettingsClient<C>::perform_sync_operation components/remote_settings/src/client.rs:367
Filed because this signature's crash volume spiked. 212 reports from 162 distinct installations on the release build of 2026-10-07 (buildid 20261007201254); none of the preceding 1 build-day had any, and no build in the 42 days before had any report of it. That is an appearance from zero over the loudest of the preceding build-days and of this signature's builds over the 42 days before (Clouseau's bar is 3x, and the Poisson excess of the day against that baseline is z = 27.92, bar 3.62). This signature is new on release: crash-stats has no report of it there before this build. Its first report anywhere is in build 20260917100302 (2026-09-17), 20 days earlier.
Clouseau analysis (automated -- nothing below was checked by a human; a claim it could not ground is deliberately absent):
The Fenix parent process aborts inside libc (SIGABRT) while Rust lifts the viaduct::Response that the Kotlin HTTP backend hands back through UniFFI's foreign-async callback. The failing call is LiftReturn::lift_foreign_return → <viaduct::Response as Lift>::try_lift in uniffi_core 0.32.1, and it is reached from every viaduct caller: Nimbus, Suggest, FxA, push and ads. This signature first appeared on Nightly in build 20260917100302, two days after the app-services/UniFFI 0.32 update (bug 2068665, cd446226a364) landed. It reached release users with 158.0 (build 20261007201254), and on release it rises in step with the much larger sibling signature libc.so | core::ptr::drop_in_place<T> | core::ptr::drop_in_place<T> | <viaduct::Response as ...FfiConverter<UT>>::try_lift, which is tracked in bug 2073758 (RESOLVED FIXED, regressed by 2068665). Both signatures were still crashing on Nightly up to the 20261012 build, so the next step is for Application Services to confirm whether bug 2073758's fix covers this variant and whether it can be uplifted to 158 release.
Suspected regressor (medium confidence): cd446226a364 (bug 2068665) by :bdk.
This changeset vendors app-services with UniFFI 0.32, and the crashing frame is uniffi_core-0.32.1 lift_foreign_return. The signature's first Nightly build (20260917100302) comes two days after it landed (2026-09-15). Bugzilla records bug 2068665 as the regressor of bug 2073758, which is the sibling try_lift abort. components/viaduct/src/backend.rs was not touched by this change (last modified 2026-08-20), so the suspected defect is in the UniFFI 0.32 foreign-future return or RustBuffer handoff for Response. I did not read the 76-file diff hunk by hunk, so the exact faulty hunk is not identified.
Possible path to the crash:
Mechanism (observed/inferred, medium): the thread receives SIGABRT (SI_QUEUE) in libc.so, three unsymbolized frames above the inlined <viaduct::Response as Lift>::try_lift at uniffi_core-0.32.1/src/ffi_converter_traits.rs:359. The sibling signature has drop_in_place frames on the same lift, which suggests the abort happens while freeing or dropping the lifted buffer or its parts. That would be an allocator abort on an invalid or mismatched buffer (inferred, medium); a lift error reaching abort is not excluded.
Path (observed):
- A Rust component (Nimbus
fetch_experiments, Suggestingest, FxAremote_config, pushverify_connectionor adsrequest_tile_ads) callsviaduct::Request::send, which blocks inpollster::block_on. UniFFICallbackHandlerBackend::send_request(backend.rs:13) awaits the KotlinBackendthroughforeign_async_call.- Kotlin completes with
RustCallStatusCode::Success, solift_foreign_returncallstry_lift_successful_return→Response::try_lifton the returnedRustBuffer. - Inside that lift, the process aborts in libc.
Trigger (unknown): a normal successful HTTP response appears to be enough, because many unrelated callers hit it. Nothing distinguishes the affected responses or devices, beyond the modules being skewed toward newer Android builds.
Checked:
- The representative report is
SIGABRT / SI_QUEUEon thread 149NimbusFetchScop, with frame #3 the inlinedResponse::try_liftinuniffi_core-0.32.1ffi_converter_traits.rs:359and frames #0-#2 unsymbolized inlibc.so.moz_crash_reasonis empty. (crashstats report 0369ba1f-02a8-4867-9fdb-b61570261019) - Line 359 is the
RustCallStatusCode::Success => Self::try_lift_successful_return(ffi_return)arm oflift_foreign_return; a lift error goes tohandle_callback_unexpected_error. (third_party/rust/uniffi_core/src/ffi_converter_traits.rs@eb9a6e3a7368:357-374) - In the last 40 days, 218 of 283 reports are on build 20261007201254 (158.0 release). The rest are Nightly and beta 158–160 builds, starting with 20260917100302. (facets build_id/version, all channels, 40d)
- The sibling signature
libc.so | core::ptr::drop_in_place<T> | core::ptr::drop_in_place<T> | <viaduct::Response as ...FfiConverter<UT>>::try_lifthas 2,204 reports (1,887 on 158.0). It started on Nightly on 2026-09-17 and rose on release on the same days as this signature. (facets version and by_day release_channel, all channels, 60d/40d) - Bug 2073758 (Application Services :: General, RESOLVED FIXED, regression) covers the sibling signature and has regressed_by 2068665. Bug 2068665 also regressed bug 2082369. (bugzilla 2073758, 2068665, 2082369)
cd446226a364(bug 2068665, 2026-09-15) updated vendored app-services to UniFFI 0.32. It did not touchviaduct/src/backend.rs, whose last change was 2026-08-20. (history changeset cd446226a364; file_history third_party/application-services/components/viaduct/src/backend.rs)- Both signatures still appear on Nightly 160.0a1 builds up to at least 20261012185752, so a fix had not reached those builds, or does not cover this variant. [inferred, medium confidence] (facets build_id all channels 40d; by_day release_channel)
- No bug yet references this exact signature. (bugzilla signature_bugs)
Alternatives considered:
- Hardware fault: not supported -- 0% of the 218 reports carry a bit-flip annotation, and the crash spans many devices and callers (brief).
- A single caller (e.g. Nimbus only): disfavored -- the brief's clusters show Nimbus, Suggest, FxA, push and ads callers, all converging on the same
Responselift. - Other changes in the pushlog window (prefs, Gecko features): not supported -- the stack is entirely app-services Rust and UniFFI, and the Nightly debut matches the 2068665 landing.
- A change in
viaduct/src/backend.rsitself: disfavored -- the file was unchanged since 2026-08-20, before the signature first appeared.
Worth checking first:
- Does bug 2073758's fix cover this
try_liftvariant, and is it on the 158 release branch? Check its fix changeset against releasethird_party/application-servicesand against Nightly builds after 20261012. - Which libc call aborts (an allocator invalid free vs
abortfrom a panic)? Symbolize libc frames #0-#2 in a few reports, or look for a scudo or abort message in logcat-bearing reports. - Which part of the UniFFI 0.32 change (foreign-future result struct layout,
RustBufferownership in the generated KotlinResponselowering) causes the mismatch? Read the Kotlin bindings thatc91475ad9618(mach uniffi generate) regenerated, and compare them with theuniffi_core0.32UniffiForeignFutureResultdefinition.
:bdk, can you have a look please?
Filed automatically by Clouseau, which analyses release crashes with an LLM. Nothing above was written or checked by a human. Please close it as INVALID if it is wrong — that is useful feedback, not a nuisance.
This is not an independent Mozilla discovery: the crash is known here only because somebody submitted the crash report linked at the top. If this duplicates an existing report, please resolve THIS bug as the duplicate and leave the credit with the earlier reporter.
Comment 1•1 month ago
|
||
This was mitigated by bug 2081454.
Description
•