Skip to content

glibc occasionally aborts with lots of memory allocation #141

@rm5248

Description

@rm5248

I'm currently updating dbus-java to support passing of FileDescriptors(see issue here), and one thing that I've encountered is that during the StressTest of dbus-java, the JVM will crash very consistently during this test due to glibc getting an error. It will abort with the following:

malloc(): unsorted double linked list corrupted

I've created a similar test on my fork here, but it doesn't happen as regularly, but it will still occasionally fail with the same error from malloc. When I've encountered this error before(in C/C++ programs), it has been because of a lot of memory allocation/deallocation happening very fast, which seems to be the case here. Is there something that can be done to fix this or is this a bug with JNR?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions