SchrodingerZhu / snmalloc-rs

rust bindings of snmalloc
MIT License
122 stars 16 forks source link

Segmentation fault EXC_BAD_ACCESS #154

Closed zhang2014 closed 1 year ago

zhang2014 commented 3 years ago
* thread #32, name = 'tokio-runtime-worker', stop reason = EXC_BAD_ACCESS (code=1, address=0x40)
  * frame #0: 0x000000010105353e fuse-query`::rust_alloc(size_t, size_t) [inlined] snmalloc::EncodeFreeObjectReference::read(this=0x0000000000000040, entropy=0x0000000210022150) at freelist.h:122:32 [opt]
    frame #1: 0x000000010105353e fuse-query`::rust_alloc(size_t, size_t) [inlined] snmalloc::FreeObject::read_next(this=0x0000000000000040, entropy=0x0000000210022150) at freelist.h:158 [opt]
    frame #2: 0x000000010105353e fuse-query`::rust_alloc(size_t, size_t) [inlined] snmalloc::FreeListIter::take(this=<unavailable>, entropy=0x0000000210022150) at freelist.h:244 [opt]
mjp41 commented 3 years ago

Hi @zhang2014, sorry you have run into a problem. I am confused by the crash as it seems to be attemping to allocate null, but the out of memory check earlier should have caught that.

Could you provide a few more details of what happens? What platform are you running on? Is this at the start of a test or part way through? What compiler and version are you using? Can you provide steps to reproduce, so I can see what is happening?

Is it possible to run a debug version of snmalloc, and see if that provides a more detailed stack trace.

SchrodingerZhu commented 3 years ago

@zhang2014 would you mind check whether it is possible to make up a minimal reproducible example?

mjp41 commented 1 year ago

No follow up for almost two years, so closing.