-
Type: Bug
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: 1.11.0
-
Component/s: None
-
None
-
Not Needed
Fix alignment errors caused by dynamically allocating over-aligned types. Some types inherit libbson's over-alignment of bson_t and bson_iter_t.
Original report: Build failing for EPEL-10 (segfault in tests)
Probably only for your information, seems very strange
Only on x86_64 and only in EPEL-10
The following tests FAILED:
1 - mongocrypt (SEGFAULT)
6 - example-state-machine (SEGFAULT)
7 - example-state-machine-static (SEGFAULT)
From GDB
$ gdb ./redhat-linux-build/example-state-machine-static
(gdb) run
0x0000555555558e5d in mongocrypt_ctx_encrypt_init (db=0x5555555aa441 "test", db_len=-1, ctx=0x55555569fc30, cmd=0x5555556a0500)
at /home/remi/rpmbuild/BUILD/libmongocrypt-1.11.0/src/mongocrypt-ctx-encrypt.c:2893
2893 ctx->vtable.mongo_db_collinfo = _mongo_db_collinfo;
(gdb) bt
#0 0x0000555555558e5d in mongocrypt_ctx_encrypt_init (db=0x5555555aa441 "test", db_len=-1, ctx=0x55555569fc30, cmd=0x5555556a0500)
at /home/remi/rpmbuild/BUILD/libmongocrypt-1.11.0/src/mongocrypt-ctx-encrypt.c:2893
#1 main () at /home/remi/rpmbuild/BUILD/libmongocrypt-1.11.0/test/example-state-machine.c:273
I don't see anything wrong in source
So looks like a build chain issue, will try to dig on this
- is related to
-
CDRIVER-4434 Reducing Warnings of Misaligned Address of Over-Aligned Types
- Closed