I wrote my own reference counted memory manager c++ (for fun) and I\'m sure it isn\'t perfect ;) . And now when I\'m trying to use it I got random SIGTRAP signals. If I comm
I'd throw in a guess that you might be calling mismatched new/delete or malloc/free implementations - So something was allocated by your memory manager but when the memory is released you end up with the default delete/free implementation.
Set a breakpoint on the signal and see whether there is free() or operator delete on the stack and whether that is the implementation of said function which you would expect.