Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running the tests causes a core dump #121

Open
wluker opened this issue Apr 18, 2018 · 3 comments
Open

running the tests causes a core dump #121

wluker opened this issue Apr 18, 2018 · 3 comments

Comments

@wluker
Copy link

wluker commented Apr 18, 2018

I cloned ceu and followed the instructions given in README.md:

$ cd tst/
$ ./run.lua

and it errored out with

sh: line 1:  1180 Aborted                 (core dumped) /tmp/tmp.exe 2>&1
lua5.3: ./run.lua:364: >>> ERROR : run : expected "Aborted" : got ""
stack traceback:
	[C]: in function 'assert'
	./run.lua:364: in function 'Test'
	tests.lua:442: in main chunk
	[C]: in function 'dofile'
	./run.lua:572: in main chunk
	[C]: in ?

I'm running this on archlinux with lua-5.3.4-2. Is this version of lua too new?

@fsantanna
Copy link
Collaborator

The lua version is probably ok.
The tests should generate a /tmp/tmp.exe executable.
What do you get when you run it from the command line?

$ /tmp/tmp.exe 
Aborted (core dumped)    # <--- I get this string, which is the expected behavior

@wluker
Copy link
Author

wluker commented Apr 18, 2018

I also get the string

Aborted (core dumped)

I didn't understand that was the expected output. Sorry for the misleading title. Is this a shell script issue?

@fsantanna
Copy link
Collaborator

The run.lua executes a series of tests programs in tests.lua.
The first test is an empty program in tests.lua:442.
The empty program should fail because it terminates without a return value to the environment.
(The message is a "core dumped" because the trace option is turned off for this particular test case.)
I just don't understand why the run.lua is terminating if the result you get is exactly the expected result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants