| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
|---|---|---|---|---|---|---|---|---|---|
| 0000369 | mercury | Bug | public | 2014-12-16 03:17 | 2014-12-16 10:18 | ||||
| Reporter | sebgod | ||||||||
| Assigned To | zs | ||||||||
| Priority | normal | Severity | crash | Reproducibility | always | ||||
| Status | resolved | Resolution | fixed | ||||||
| Platform | Windows NT 6.3 x86_64 | OS | Windows | OS Version | 8.1 | ||||
| Product Version | |||||||||
| Target Version | Fixed in Version | ||||||||
| Summary | 0000369: Software Error: hlds.pred_table: predicate `hlds.pred_table.lookup_builtin_pred_proc_id'/8: Unexpected: can't locate put/5 | ||||||||
| Description | Using the latest Mercury compiler (git commit fd822d712a8f1170a9fab3d9a1d05dd5e404106b) Compiling the attached example module yields following exception: Making Mercury\int3s\stream_put5_bug.int3 Making Mercury\ints\stream_put5_bug.int Making Mercury\asm_fast.gc\i686-pc-mingw32\Mercury\cs\stream_put5_bug.c Uncaught Mercury exception: Software Error: hlds.pred_table: predicate `hlds.pred_table.lookup_builtin_pred_proc_id'/8: Unexpected: can't locate stream.put/5 Stack dump not available in this grade. Error: system command received signal 1. ** Error making `Mercury\asm_fast.gc\i686-pc-mingw32\Mercury\cs\stream_put5_bug.c'. | ||||||||
| Steps To Reproduce | mmc -m stream_put5_bug | ||||||||
| Additional Information | Unfortunately I'm not sure when this bug exactly appeared (the program I used to compile was working fine for a while). An educated guess is that this appeared after the string.format changes in the compiler. | ||||||||
| Tags | No tags attached. | ||||||||
| Attached Files |
| ||||||||
Notes |
|
|
sebgod (reporter) 2014-12-16 03:20 Last edited: 2014-12-16 03:21 |
To pinpoint the bug, I've modified the hlds.pred_table.lookup_builtin_pred_proc_id/8 procedure (see attached diff) to also output the module name in the error message, not sure if that is generally useful. Just thought that put/5 was a little bit too generic. |
|
zs (developer) 2014-12-16 10:18 |
Fix add253af9fa0d396034004bef2e36a4512eb8b1a committed 2014 dec 16. |
Issue History |
|||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2014-12-16 03:17 | sebgod | New Issue | |
| 2014-12-16 03:17 | sebgod | File Added: stream_put5_bug.m | |
| 2014-12-16 03:18 | sebgod | File Added: pred_table_fix_lookup_builtin_pred_proc_id.diff | |
| 2014-12-16 03:20 | sebgod | Note Added: 0000799 | |
| 2014-12-16 03:21 | sebgod | Note Edited: 0000799 | View Revisions |
| 2014-12-16 05:28 | zs | Assigned To | => zs |
| 2014-12-16 05:28 | zs | Status | new => assigned |
| 2014-12-16 10:18 | zs | Note Added: 0000800 | |
| 2014-12-16 10:18 | zs | Status | assigned => resolved |
| 2014-12-16 10:18 | zs | Resolution | open => fixed |


