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

spdemo: fails on MacOS using clang #46

Closed
dennisguse opened this issue Apr 5, 2017 · 7 comments
Closed

spdemo: fails on MacOS using clang #46

dennisguse opened this issue Apr 5, 2017 · 7 comments
Labels
Milestone

Comments

@dennisguse
Copy link
Member

dennisguse commented Apr 5, 2017

Executing spdemo results in "Abort trap: 6".

The issue seems to be a result of:
FIND_PAR_S (9, "_Left of right adjusted? ..... ", just, just);
https://github.com/dennisguse/stl2009/blob/master/src/utl/spdemo.c#L538

Something goes wrong in this macro.

Issue #42 is related.

@dennisguse dennisguse added the bug label Apr 5, 2017
@dennisguse dennisguse added this to the STL2018 milestone Sep 25, 2018
@ludomal
Copy link
Member

ludomal commented Oct 31, 2018

I have stumbled on the same issue while reviewing #107 and I have not realized that there was a bug report already created for this issue.

spdemo expects 9 parameters to be passed as command line and only 8 are passed in the regression tests, thus the error.

There are two sections in spdemo that parse the command line parameters and one of them (lines 530 to 538) looks outdated.

This needs to be reviewed as I am not sure spdemo operates correctly as is. @simaocampos, do you have any insights?

@simaocampos
Copy link
Member

simaocampos commented Oct 31, 2018 via email

@dennisguse
Copy link
Member Author

I would furthermore like to replace the macros GET_PAR_X and FIND_PAR_X using regular functions.
Actually a simple task, but will be very helpful for debugging (and using macros here is not really beneficial anyhow).

@simaocampos
Copy link
Member

simaocampos commented Nov 13, 2018 via email

@dennisguse
Copy link
Member Author

@simaocampos what do you mean by weak compiler?

Would it be problematic to implement these as functions (even inline would be possible)?
I don't see why this might be problematic for newer compilers.

@simaocampos
Copy link
Member

simaocampos commented Nov 13, 2018 via email

@ludomal
Copy link
Member

ludomal commented Nov 28, 2018

Now solved with #116

@ludomal ludomal closed this as completed Nov 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants