Repository navigation
protobuf*: Fix tests on big-endian again - #513793
Conversation
|
|
||
| # Fix BoolKeys test on big-endian | ||
| # https://github.com/protocolbuffers/protobuf/pull/25862 | ||
| ./fix-BoolKeys-test-on-be.patch |
There was a problem hiding this comment.
| ./fix-BoolKeys-test-on-be.patch | |
| ./fix-BoolKeys-test-on-be.patch | |
| (fetchpatch { | |
| name = "fix-BoolKeys-test-on-be"; | |
| url = "https://github.com/linux-on-ibm-z/protobuf/commit/02774a2aea957c552383cc6cae43076f5436d867.patch"; | |
| hash = "..."; | |
| }) |
Let's directly fetch the patch from your branch.
There was a problem hiding this comment.
It's not my branch, and last I checked, fetching patches from branches for PRs/MRs, or the PRs/MRs directly, is not allowed (or at least discouraged) due to them having a non-zero chance of disappearing in the future (branch gets deleted and GitHub eventually cleans up unreferenced refs, PR/MR creator deletes fork, etc). Hence the vendoring.
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
Patch isn't in 35.x, still needed there.
5175237 to
654698b
Compare
|
Checking completed. Fixes both @GaetanLepage Do you have the time to give this another look please? It's been 2 months since my reply to your review. |
|
Given the lack of a response from the maintainer, I'll take that… |
|
Sorry! All good! |
|
Not 100% sure, whether it is since this PR, but the $ while nix-build --check --keep-failed -A pkgsStatic.protobuf; do :; done # repeat until fail
$ cd /nix/var/nix/builds/nix-453838-2094392646/build/source/build
$ gdb --args ./upb-test --gtest_filter=ArenaTest.FuzzRefArenaRace
(gdb) break exit
(gdb) commands
># repeat until fail
>run
>end
(gdb) run
Thread 6 "upb-test" received signal SIGSEGV, Segmentation fault.
[Switching to LWP 608036]
0x00000000007972b4 in upb_global_allocfunc (alloc=<optimized out>,
ptr=0x7fffef760dc0, oldsize=352, size=0, actual_size=0x0)
at /build/source/upb/mem/alloc.c:21
⚠️ warning: 21 /build/source/upb/mem/alloc.c: No such file or directory
=> 0x00000000007972b4 <upb_global_allocfunc+20>: e8 1c 6a 1b 00 call 0x94dcd5 <free>
(gdb) run
Thread 9 "upb-test" received signal SIGSEGV, Segmentation fault.
[Switching to LWP 608815]
0x0000000000797754 in upb_Arena_Free (a=0x7ffff5477b20) at /build/source/upb/mem/arena.c:137
⚠️ warning: 137 /build/source/upb/mem/arena.c: No such file or directory
0x0000000000797750 <upb_Arena_Free+0>: 55 push rbp
0x0000000000797751 <upb_Arena_Free+1>: 48 89 e5 mov rbp,rsp
=> 0x0000000000797754 <upb_Arena_Free+4>: 41 57 push r15
0x0000000000797756 <upb_Arena_Free+6>: 41 56 push r14
0x0000000000797758 <upb_Arena_Free+8>: 41 55 push r13 |
First commit fixes
protobuf_34on big-endian. Second commit fixesprotobuf_35on big-endian.Applies Fix BoolKeys test to use integer-to-bool cast protocolbuffers/protobuf#25862 to fix
protobuf_34'sBoolToKeystest on big-endian archs. Branch name indicates that this might also affect 33.4+, but at least 33.5 builds fine as-is on my machine… 🤷♀️protobuf_35init excluded thefix-upb-packed-enum-be.patchfrom being applied to the new version, but it's still needed there and applies without issues. Pull it into a separate condition - it's part of the 36.0 RC, soversion < 36seems like the correct upper limit.Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.