Follow-up Comment #2, bug #25525 (project guile):
The reason is that code assume cpl to be a null terminated list but it's not due to the bug, then a cdr will make the crash. Now this is a symptom and not the cause. But we can avoid a segmentation fault by making sure that we check for a pair although it will slow down the algorithm a little. Checking for a pairs and silently move on if error yield an error in a layout check! Better to fix the cause, right? Well to raise a question. by coding for efficiency and assume that the code will be used correctly we will gain speed. On the other hand this means that any bug will, with maybe to high probability, crash the repl. I would prefere to use fast and unsecure paths only for proven datastructures. Or, next best, use checks that is on only under a debug compile! _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?25525> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/