Mercury Bugs - mercury | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0000263 | mercury | Bug | public | 2012-08-29 18:53 | 2013-05-17 16:16 |
Reporter | lpimmes | ||||
---|---|---|---|---|---|
Assigned To | juliensf | ||||
Priority | normal | Severity | crash | Reproducibility | always |
Status | resolved | Resolution | no change required | ||
Platform | OS | OS Version | |||
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0000263: Segmentation fault: not enough memory when invoking solutions/2 | ||||
Description | Working with mercury language is quiet rewarding. But running into a memory problem of some kind, as expected with Traveling salesman problem. % Using generator length of 7 (see code): [2, 3, 4, 5, 6, 7, 8] % tsp2 501>MERCURY_OPTIONS=--solutions-heap-size-kwords=1024000 % tsp2 501>echo $MERCURY_OPTIONS % --solutions-heap-size-kwords=1024000 % tsp2 501>./tsp2 % Segmentation fault: 11 % tsp2 501> See attached tsp2.m file. (shows gcc and mmc, darwin versions) Any help would be appreciated, thanks. | ||||
Steps To Reproduce | Compile, then run uploaded file(tsp2.m). tsp2 493>cat tsp2.bash #/bin/bash mmc --make --fully-strict -E -v -O 0 --use-subdirs tsp2 | ||||
Additional Information | gcc 4.2 mmc 11.7 Aside: When analyzing mercury programs asymptotically, we can sometimes determine implicit for-loops, i.e., O(n), O(n^2), and so on, even n! if using solutions/2. But, I am not so sure if this is sufficient for 'Analysis of Algorithms graduate course'. Unification takes time, and so does resolution theorem proving. In other words, more computations are taking place 'behind the mercury code' so to speak. Any ideas, heuristics or suggestions (sites)? | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | tsp2.m (14,014) 2012-08-29 18:53 https://bugs.mercurylang.org/file_download.php?file_id=159&type=bug tsp2upd.m (15,136) 2012-09-12 01:12 https://bugs.mercurylang.org/file_download.php?file_id=160&type=bug |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
Issue History | |||||
Date Modified | Username | Field | Change | ||
---|---|---|---|---|---|
2012-08-29 18:53 | lpimmes | New Issue | |||
2012-08-29 18:53 | lpimmes | File Added: tsp2.m | |||
2012-09-10 01:13 | juliensf | Note Added: 0000478 | |||
2012-09-10 01:13 | juliensf | Assigned To | => juliensf | ||
2012-09-10 01:13 | juliensf | Status | new => feedback | ||
2012-09-12 00:40 | lpimmes | Note Added: 0000479 | |||
2012-09-12 00:40 | lpimmes | Status | feedback => assigned | ||
2012-09-12 00:59 | lpimmes | Note Edited: 0000479 | bug_revision_view_page.php?bugnote_id=479#r4 | ||
2012-09-12 01:06 | lpimmes | Note Edited: 0000479 | bug_revision_view_page.php?bugnote_id=479#r5 | ||
2012-09-12 01:12 | lpimmes | File Added: tsp2upd.m | |||
2012-09-12 01:13 | lpimmes | Note Edited: 0000479 | bug_revision_view_page.php?bugnote_id=479#r6 | ||
2012-09-12 01:51 | lpimmes | Note Edited: 0000479 | bug_revision_view_page.php?bugnote_id=479#r7 | ||
2013-05-17 16:16 | juliensf | Note Added: 0000513 | |||
2013-05-17 16:16 | juliensf | Status | assigned => resolved | ||
2013-05-17 16:16 | juliensf | Resolution | open => no change required |