Bug#643866: electric-fence: FTBFS on GNU/kFreeBSD

2011-10-05 Thread peter green

found 643866 2.1.16
thanks

I have just tested and the version in testing also FTBFS on kfreebsd



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#643866: electric-fence: FTBFS on GNU/kFreeBSD

2011-10-05 Thread Matthew Vernon

Hi,


I have just tested and the version in testing also FTBFS on kfreebsd


OOI, what's the failure mode?

Thanks,

Matthew



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#643866: electric-fence: FTBFS on GNU/kFreeBSD

2011-10-05 Thread peter green

Matthew Vernon wrote:

Hi,


I have just tested and the version in testing also FTBFS on kfreebsd

OOI, what's the failure mode?

Program terminated with a Segfault during the self test.



Thanks,

Matthew






--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#643866: electric-fence: FTBFS on GNU/kFreeBSD

2011-09-30 Thread Petr Salinger

Package: electric-fence
Version: 2.1.18
Severity: serious
Tags: patch

Hi.

Please apply the patch bellow to handle both SIGBUS and SIGSEGV faults 
simultaneously on FreeBSD based architectures.

You might consider to catch both SIGBUS and SIGSEGV on all architectures.

Petr

--- a/eftest.c
+++ b/eftest.c
@@ -12,11 +12,10 @@
  */

 #ifndefPAGE_PROTECTION_VIOLATED_SIGNAL
-#ifdef __FreeBSD_kernel__
-#definePAGE_PROTECTION_VIOLATED_SIGNAL SIGBUS
-#else
-#definePAGE_PROTECTION_VIOLATED_SIGNAL SIGSEGV
+#if defined(__FreeBSD_kernel__) || defined(__FreeBSD__)
+#define EXTRA_PAGE_PROTECTION_VIOLATED_SIGNAL SIGBUS
 #endif
+#definePAGE_PROTECTION_VIOLATED_SIGNAL SIGSEGV
 #endif

 struct diagnostic {
@@ -44,6 +43,9 @@
 )
  {
signal(PAGE_PROTECTION_VIOLATED_SIGNAL, SIG_DFL);
+#ifdef EXTRA_PAGE_PROTECTION_VIOLATED_SIGNAL
+   signal(EXTRA_PAGE_PROTECTION_VIOLATED_SIGNAL, SIG_DFL);
+#endif
siglongjmp(env, 1);
 }

@@ -53,10 +55,16 @@
if ( sigsetjmp(env,1) == 0 ) {
int status;

-   signal(PAGE_PROTECTION_VIOLATED_SIGNAL
-   ,segmentationFaultHandler);
+   signal(PAGE_PROTECTION_VIOLATED_SIGNAL, 
segmentationFaultHandler);
+#ifdef EXTRA_PAGE_PROTECTION_VIOLATED_SIGNAL
+signal(EXTRA_PAGE_PROTECTION_VIOLATED_SIGNAL, 
segmentationFaultHandler);
+#endif
+
status = (*test)();
signal(PAGE_PROTECTION_VIOLATED_SIGNAL, SIG_DFL);
+#ifdef EXTRA_PAGE_PROTECTION_VIOLATED_SIGNAL
+   signal(EXTRA_PAGE_PROTECTION_VIOLATED_SIGNAL, SIG_DFL);
+#endif
return status;
}
else




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org