ldc-developers/ldc — Issue #52: "signal" C function makes ldc crash
Author: pompei2
Created: 2011-12-17 20:28:04+00:00
State: open

The following minimal codesample makes ldc2 (latest master, i.e. b41688a) plain crash (SIGSEGV):

import core.stdc.signal;

extern(C) private void exitSignalHandler(int) { }

void main()
{
signal(SIGINT, &exitSignalHandler);
}

it compiles well using dmd 2.057 frop d-p-l.org.