2024-10-15 17:27 AEDT

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0000283mercuryBugpublic2022-02-05 15:10
Reporterjuliensf 
Assigned Tojuliensf 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionno change required 
Product Version 
Target VersionFixed in Version 
Summary0000283: Crash in erlang grade with io.call_system_return_signal
DescriptionWhen 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 ReproduceThis is using OTP-R16B on Mac OS 10.8.3.
TagsNo tags attached.
Attached Files

-Relationships
+Relationships

-Notes

~0000509

wangp (developer)

Adjust the hacky shell code on io.m:9742. The -n in "echo -n $?" is being printed literally.

~0000510

juliensf (administrator)

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.

~0000511

wangp (developer)

Looks like you want to use open_port instead, e.g.
http://comments.gmane.org/gmane.comp.lang.erlang.general/20007

~0000512

juliensf (administrator)

Yes, I also saw that thread.

~0001164

juliensf (administrator)

The Erlang backend has been deleted.
+Notes

-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
+Issue History