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

Segmentation fault for wrong stat #11

Open
frederic-michaud opened this issue Mar 14, 2018 · 1 comment
Open

Segmentation fault for wrong stat #11

frederic-michaud opened this issue Mar 14, 2018 · 1 comment
Assignees
Labels
Milestone

Comments

@frederic-michaud
Copy link
Collaborator

I just realized that trying to compute a non-existing statistic leads to a segfault, if only one statistic is computed. Though it took me a few seconds to track down the error in my input file, I guess that for new users, it might be difficult to know where the problem comes since there is no indication whatsoever of what is wrong with the input file.
The expected behaviors is probably to just skip the stat, and send a warning.

generations	 	10000	 	
patch_capacity	 	1000	 	
ntrl_loci	 	1	 		
stat	 	{n.adlt.nbAl}	
@frederic-michaud frederic-michaud self-assigned this Mar 14, 2018
@frederic-michaud frederic-michaud added this to the 2.0 milestone Mar 14, 2018
@frederic-michaud
Copy link
Collaborator Author

If only one, misspelled, statistic is given, some pointers are not well defined (e.g. _pStat_db) and lead to segmentation fault at various places. Testing that the pointer exists before calling it (at various places) solves the segmentation but then no Warning is emitted about the misspelling. Still looking for a better way to solve the problem.

frederic-michaud pushed a commit that referenced this issue Mar 19, 2018
… accessing it and commenting out some code that appears to be note very useful. Now we have a warning that the stat does not exist, but no segfault.
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

1 participant