On Mon, 20 Jan 2014 20:39:15 +0100 (CET)
[email protected] wrote:

> Try to increase the stack size (using --stack-size=32K or even
> --stack-size=1M). If that works, you need to modify
> grt/config/linux.c for FreeBSD.
> 

Nice! This runs on FreeBSD-9.2(x86_64) with no core dump:

$ ./dlx_test_behaviour --stack-size=32k --assert-level=note


After this patch:

--- linux.c.orig        2014-01-20 14:53:35.000000000 -0500
+++ linux.c     2014-01-20 15:12:03.000000000 -0500
@@ -37,6 +37,11 @@
 #define EXTEND_STACK 1
 #define STACK_SIGNAL SIGSEGV
 #endif
+#ifdef __FreeBSD__
+/* If set, SIGSEGV is caught in order to automatically grow the
stacks.  */ 
+#define EXTEND_STACK 1
+#define STACK_SIGNAL SIGSEGV
+#endif
 #ifdef __APPLE__
 /* If set, SIGSEGV is caught in order to automatically grow the
stacks.  */
 #define EXTEND_STACK 1


This now runs with no core dump:

$ ./dlx_test_behaviour --assert-level=note

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to