From harrisonpincket at gmail.com Sat Nov 2 17:01:05 2019 From: harrisonpincket at gmail.com (Harrison Pincket) Date: Sat, 02 Nov 2019 02:01:05 -0400 Subject: [m-users.] Problem with my installation Message-ID: <8a57179ec31aa6bd0f1ae3041c77361d79a5746a.camel@gmail.com> Hello, For a while now I have had trouble running mercury programs compiled with ROTD on my thinkpad. I was using the stable 14.01 release, but would rather be on the latest, hince this email. Compiling mercury seems to work fine. ``` ./configure --disable-most-grades make sudo make install ``` When I go to compile my programs this also work as expected. ``` mmc --make hello ``` But when I run them I get the following error: ``` ~/code/mercury-hello-world$ ./hello *** Mercury runtime: caught segmentation violation *** cause: address not mapped to object address involved: 0x4 This may have been caused by a stack overflow, due to unbounded recursion. exiting from signal handler Segmentation fault ``` I don't know if this is useful, but here are the shared libraries: ``` ~/code/mercury-hello-world$ ldd hello linux-gate.so.1 (0xb7fa6000) libmer_std.so => /usr/local/mercury-rotd-2019-10- 26/lib/mercury/lib/asm_fast.gc/libmer_std.so (0xb7746000) libmer_rt.so => /usr/local/mercury-rotd-2019-10- 26/lib/mercury/lib/asm_fast.gc/libmer_rt.so (0xb76f1000) libgc.so => /usr/local/mercury-rotd-2019-10- 26/lib/mercury/lib/libgc.so (0xb7686000) libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb7492000) libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb738e000) /lib/ld-linux.so.2 (0xb7fa7000) ``` Perhaps there's some issue with my system. Any thoughts? Happy to provide more information, I just don't know will be useful. Thanks, Harrison From jfischer at opturion.com Sat Nov 2 18:03:44 2019 From: jfischer at opturion.com (Julien Fischer) Date: Sat, 2 Nov 2019 18:03:44 +1100 (AEDT) Subject: [m-users.] Problem with my installation In-Reply-To: <8a57179ec31aa6bd0f1ae3041c77361d79a5746a.camel@gmail.com> References: <8a57179ec31aa6bd0f1ae3041c77361d79a5746a.camel@gmail.com> Message-ID: Hi Harrison, On Sat, 2 Nov 2019, Harrison Pincket wrote: > But when I run them I get the following error: > ``` > ~/code/mercury-hello-world$ ./hello > > *** Mercury runtime: caught segmentation violation *** > cause: address not mapped to object > address involved: 0x4 > This may have been caused by a stack overflow, due to unbounded > recursion. > exiting from signal handler > Segmentation fault > ``` It may be related to this issue: Does compiling hello world in grade hlc.gc work? Or compiling with --mercury-linkage static? Julien.