[m-rev.] Compiler bug found

Volker Wysk post at volker-wysk.de
Sun Oct 19 04:44:55 AEDT 2025


Am Sonntag, dem 19.10.2025 um 04:16 +1100 schrieb Zoltan Somogyi:
> 
> 
> On Sat, 18 Oct 2025 16:40:09 +0200, Volker Wysk <post at volker-wysk.de>
> wrote:
> > I've encountered a compiler bug. The compilation aborts with:
> > 
> > Uncaught Mercury exception:
> > Software Error: predicate `hlds.hlds_module.module_info_pred_info'/3:
> > Unexpected: cannot find predicate number -1
> > Stack dump not available in this grade.
> > ** Error making `Mercury/cs/mass.c'.
> > 
> > Should I provide an example program?
> 
> If you want us to have a chance to fix the issue, we need both
> an example program, and a complete list of the steps needed
> to reproduce the problem.

I know. So this is a "yes".

I've attached an example program. Run "make.sh" to compile it and trigger
the bug. I've included all dependencies.

My System is a normal Linux (OpenSUSE distribution).

Regards,
Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug.tar.gz
Type: application/x-compressed-tar
Size: 20639 bytes
Desc: not available
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20251018/5a8d49e4/attachment-0001.bin>


More information about the reviews mailing list