[augeas-devel] [Augeas] #136: Segfault with regular recursive lens

Augeas trac at fedorahosted.org
Fri Aug 13 18:06:57 UTC 2010


#136: Segfault with regular recursive lens
---------------------------------+------------------------------------------
 Reporter:  fgiraldeau           |       Owner:  fgiraldeau
     Type:  defect               |      Status:  new       
 Priority:  major                |   Milestone:  next      
Component:  Augeas               |     Version:  0.7.0     
 Keywords:  recursive, segfault  |  
---------------------------------+------------------------------------------
 Here is a recursive lens used for a regular language.

 {{{
 let input = "1zz1aa22zzz22aaa333zzzz333aaaa"
 let rec idr = [ key /[0-9]+/ . del /[z]+/ "z" . store /[0-9]+/ . del
 /[a]+/ "a" ] . idr?
 test idr get input = ?
 }}}

 A segfault occur while parsing the input string.

 {{{
 Program received signal SIGSEGV, Segmentation fault.
 0x00157b8b in visit_exit (lens=0x806b6f8, start=30, end=30,
 data=0xbfffed74) at get.c:951
 951             uint n = (top_frame(rec_state)->lens == lens->child) ? 1 :
 0;
 }}}

-- 
Ticket URL: <https://fedorahosted.org/augeas/ticket/136>
Augeas <http://augeas.net/>
a configuration API




More information about the augeas-devel mailing list