dockimbel/Red — Issue #193: Using atexit() binding crashes
Author: Kaj-de-Vos
Created: 2012-01-04 22:42:49+00:00
State: open

Red/System []

#include %../C-library.reds

test: does [print "Exit"]

print on-quit as-integer :test

trueExit
*** Runtime Error 16: invalid virtual address
*** at: B767916Dh

This happens at least on Linux, and on Syllable using __cxa_atexit(). Setting the exit handler is OK, and it executes on quit, but after that it causes the crash.