[m-users.] Problem with my installation

Harrison Pincket harrisonpincket at gmail.com
Sat Nov 2 17:01:05 AEDT 2019


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



More information about the users mailing list