Skip to content

Weird SIGSEGV from bson library on pg15 #165

Closed
@hari90

Description

@hari90

Describe the bug

After a lot of investigation we found pg_aligned_alloc does not use aligned allocations on pg version below 16 causing all sorts of weird errors when bson lib is allocating memory. The bson lib expects aligned memory allocations but the extension overrides the internal allocator with pg specific ones.

Environment

  • Operating system and version: All
  • PostgreSQL version: 15
  • Architecture: All

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions