View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0000283 | mercury | Bug | public | 2013-05-09 14:23 | 2022-02-05 15:10 | ||||
Reporter | juliensf | ||||||||
Assigned To | juliensf | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | no change required | ||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0000283: Crash in erlang grade with io.call_system_return_signal | ||||||||
Description | When the test program for the JSON library at <https://github.com/juliensf/mercury-json> is built in the erlang grade and run (i.e by doing make runtests), it results in the following abort: {"init terminating in do_boot",{{badmatch,{"-n 0","\n"}},[{mercury__io,'-call_system_return_signal_4_p_0/1-fun-0-',1,[{file,"Mercury/erls/mercury__io.erl"},{line,5792}]},{mercury__io,call_system_return_signal_4_p_0,1,[{file,"Mercury/erls/mercury__io.erl"},{line,5778}]},{mercury__io,call_system_4_p_0,1,[{file,"Mercury/erls/mercury__io.erl"},{line,5749}]},{test_json,run_test_3_p_0,1,[{file,"Mercury/erls/test_json.erl"},{line,285}]},{test_json,'-main_2_p_0/0-fun-5-',2,[{file,"Mercury/erls/test_json.erl"},{line,190}]},{mercury__list,foldl_4_p_2,5,[{file,"Mercury/erls/mercury__list.erl"},{line,5455}]},{test_json,main_2_p_0,0,[{file,"Mercury/erls/test_json.erl"},{line,195}]},{test_json,mercury__main_wrapper,0,[{file,"Mercury/erls/test_json.erl"},{line,58}]}]}} | ||||||||
Steps To Reproduce | This is using OTP-R16B on Mac OS 10.8.3. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files |
|
Notes | |
wangp (developer) 2013-05-10 10:46 |
Adjust the hacky shell code on io.m:9742. The -n in "echo -n $?" is being printed literally. |
juliensf (administrator) 2013-05-10 13:39 |
It doesn't seem trivial to make it not print it literally :-( I'll leave this until after the 13.05 release -- the existing code is not very portable anyway. |
wangp (developer) 2013-05-10 16:29 |
Looks like you want to use open_port instead, e.g. http://comments.gmane.org/gmane.comp.lang.erlang.general/20007 |
juliensf (administrator) 2013-05-10 16:30 |
Yes, I also saw that thread. |
juliensf (administrator) 2022-02-05 15:10 |
The Erlang backend has been deleted. |
Issue History | |||
Date Modified | Username | Field | Change |
---|---|---|---|
2013-05-09 14:23 | juliensf | New Issue | |
2013-05-10 10:46 | wangp | Note Added: 0000509 | |
2013-05-10 13:39 | juliensf | Note Added: 0000510 | |
2013-05-10 16:29 | wangp | Note Added: 0000511 | |
2013-05-10 16:30 | juliensf | Note Added: 0000512 | |
2022-02-05 15:10 | juliensf | Assigned To | => juliensf |
2022-02-05 15:10 | juliensf | Status | new => closed |
2022-02-05 15:10 | juliensf | Resolution | open => no change required |
2022-02-05 15:10 | juliensf | Note Added: 0001164 |