significantly fewer crashes on Linux after upgrading

Started by BitSpawn

BitSpawn Lv 1

After upgrading kernel+glibc.
Before that, with kernel 2.6.x (I don't remember the glibc version) lots of bad free and bad malloc.
Impossible to have it running more than 20 minutes with some puzzles.

About free()/delete, an assumption, there is an important change in last glibc:
With old glibc was mandatory to use delete with new and free with malloc. For example,
delete strdup("…")
causes a crash (strdup uses malloc). With new glibc (2.14) it works properly.

Now I have Foldit running more than 40 hours :)

brow42 Lv 1

wow. I'm amazed this ever worked at all, and very sad if some glibc unification of new/malloc data structures is letting this run without crashing. If foldit is mixing new/malloc/delete/delete[]/free, Bad Bad Coders! Code Audit!

BitSpawn Lv 1

I don't know if it is that, or it is in rosetta source, or something else. I saw that 'new' C++ behavior with strdup, and it seems that game_library.so uses it.
In any case the "double free or corruption" has disappeared.