https://bugs.openldap.org/show_bug.cgi?id=10198
--- Comment #5 from Benjamin Koch b.koch@beckhoff.com --- Thanks :-)
Yes, you are right: My test program isn't valid. I was just lucky to reproduce the same crash with that. The compiler was free to rewrite it to anything due to undefined behaviour.