[augeas-devel] [Augeas] #136: Segfault with regular recursive lens
Augeas
trac at fedorahosted.org
Sat Aug 14 03:35:47 UTC 2010
#136: Segfault with regular recursive lens
-------------------------+--------------------------------------------------
Reporter: fgiraldeau | Owner: lutter
Type: defect | Status: new
Priority: major | Milestone: next
Component: Augeas | Version: devel
Resolution: | Keywords: recursive, segfault
-------------------------+--------------------------------------------------
Changes (by fgiraldeau):
* owner: fgiraldeau => lutter
* version: 0.7.0 => devel
Comment:
The bug was occuring because of an empty stack. Only subtree lens are
pushing frames on the stack. With the lens
let rec l = [...] . l?
no subtree is encountered, because the parse is followed backward, and
then the stack is empty when the first visit_exit for maybe lens occurs.
The patch prevent dereferencing empty pointer. All the process after it
works well. The patch include a test for both sides.
All tests ran with this patch. I reassign this bug to commit the patch.
--
Ticket URL: <https://fedorahosted.org/augeas/ticket/136#comment:1>
Augeas <http://augeas.net/>
a configuration API
More information about the augeas-devel
mailing list