The following patch installs a signal handler to try to catch the core
dumps that can follow from Configure's attempts to perform unaligned
access.
diff -r -u parrot-orig/config/auto/alignptrs/test_c.in parrot-andy/config/auto/alignptrs/test_c.in
--- parrot-orig/config/auto/alignptrs/test_c.in Thu Jul 18 19:58:02 2002
+++ parrot-andy/config/auto/alignptrs/test_c.in Thu Sep 12 12:06:04 2002
@@ -6,6 +6,12 @@
*/
#include <stdio.h>
+#include <sys/types.h>
+#include <signal.h>
+/* Try to catch bus errors */
+#ifdef SIGBUS
+void bletch(s) int s; { exit(1); }
+#endif
int main(int argc, char **argv) {
@@ -16,6 +22,9 @@
void **ptr;
int align = 0;
+#ifdef SIGBUS
+ signal(SIGBUS, bletch);
+#endif
for (i = 0; i < 32; i ++) space[i] = 0;
--
Andy Dougherty doug...@lafayette.edu
Applied, thanks.
--
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
d...@sidhe.org have teddy bears and even
teddy bears get drunk