Runs fine if compiled with pure-c.
Sorry - the pure-c-version also crashes, so it seems it's not gemlib. -Helmut