Hi Martin,

I tried the prebuilt binaries. They do not work on my platform which is an
ARM-11 CPU. Can you send the configure options that you are using for this
build? I presume that you do not see SEGV during exception handling using
them on your platform.

I wrote a very simple 'c' program that uses setjmp and longjmp to see if
there was something fundamentally wrong with those calls on this system and
they work fine there. But my simple program did not try jumping back
through several layers of stack like what happens during a monit exception
in an invalid generic send/expect check.

I have gone back to a version of monit (5.2.5) which does not use
setjmp/longjmp and that is working fine but the code is very old.

Here is my configure line...
configure --host=arm-linux
--libdir=/home/tsd/arm1176/_sysroot/AST2500/usr/lib --prefix=/usr
--sysconfdir=/etc libmonit_cv_setjmp_available=yes --enable-shared=yes
libmonit_cv_vsnprintf_c99_conformant=yes CFLAGS="-g -isystem
/home//arm1176/_sysroot/AST2500/usr/include" CPPFLAGS="-isystem
/home//arm1176/_sysroot/AST2500/usr/include -DOPENSSL_NO_SSL2 -D_GNU_SOURCE
-D__FAVOR_BSD" LDFLAGS="-g -L/home//arm1176/_sysroot/AST2500/usr/lib"

Thanks
Terry


Message: 1
Date: Sat, 10 Oct 2015 13:27:33 +0200
From: Martin Pala <[email protected]>
To: admin-at-extremeshok-dot-com <[email protected]>,       This is the
        general mailing list for monit <[email protected]>
Subject: Re: arm cross compiled monit segv
Message-ID: <[email protected]>
Content-Type: text/plain; charset="windows-1252"

We try to make the pre-compiled binary as universal as possible, so there
can be one build which runs on many platforms. If optimized binary is
necessary, it is better to build it from the source code.


> On 10 Oct 2015, at 13:04, admin-at-extremeshok-dot-com <
[email protected]> wrote:
>
> Please compile an ARMv7 for pi2's, which is also better for most newer
arm devices. (excludes the latest ARMv8 / AARch64 devices.)
>
> ARMv6 needs to be complied with Hard Float support to benefit the rpi1
hardware.
>  __________________________________.    https://eXtremeSHOK.com
<https://extremeshok.com/> <https://extremeshok.com/>
 .__________________________________
>
> On 10-Oct-15 12:56 PM, Martin Pala wrote:
>> It is compile on Raspberry Pi 1 (ARMv6), should run on newer ARM
architectures too (we test the same binary runs on Raspberry Pi 2 too)
>>
>>
>>> On 10 Oct 2015, at 12:52,  <mailto:[email protected]>
[email protected] <mailto:[email protected]> wrote:
>>>
>>> This is compiled for which arm exactly ?
>>>
>>> Sent from my iPhone
>>>
>>>> On 10 Oct 2015, at 12:32 PM, Martin Pala <[email protected]
 <mailto:[email protected]>> wrote:
>>>>
>>>> Please can you test the pre-compiled binary:  <
https://mmonit.com/monit/dist/binary/5.14/monit-5.14-linux-arm.tar.gz>
https://mmonit.com/monit/dist/binary/5.14/monit-5.14-linux-arm.tar.gz <
https://mmonit.com/monit/dist/binary/5.14/monit-5.14-linux-arm.tar.gz>
>>>>
>>>> Regards,
>>>> Martin
>>>>
>>>>
>>>>> On 09 Oct 2015, at 17:50, Terry Duncan <[email protected]
 <mailto:[email protected]>> wrote:
>>>>>
>>>>> I have cross-compiled monit 5.13 for ARM and have it running on my
ARM system. When it hits an exception, I get a SEGV in the longjmp call.
Has anyone seen this problem and have a solution or suggestion?
>>>>>
>>>>> Thanks
>>>>> --
>>>>> To unsubscribe:
>>>>> https://lists.nongnu.org/mailman/listinfo/monit-general <
https://lists.nongnu.org/mailman/listinfo/monit-general>
>>>>
>>>>
>>>> --
>>>> To unsubscribe:
>>>> https://lists.nongnu.org/mailman/listinfo/monit-general <
https://lists.nongnu.org/mailman/listinfo/monit-general>
>>>
>>> --
>>> To unsubscribe:
>>> https://lists.nongnu.org/mailman/listinfo/monit-general <
https://lists.nongnu.org/mailman/listinfo/monit-general>
>>
>>
>>
>> --
>> To unsubscribe:
>> https://lists.nongnu.org/mailman/listinfo/monit-general <
https://lists.nongnu.org/mailman/listinfo/monit-general>
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to