[augeas-devel] [Augeas] #113: Empty alteration in regex make augparse dump core

Augeas trac at fedorahosted.org
Wed Mar 3 15:24:15 UTC 2010


#113: Empty alteration in regex make augparse dump core
------------------------+---------------------------------------------------
 Reporter:  dmichelsen  |       Owner:  lutter
     Type:  defect      |      Status:  new   
 Priority:  major       |   Milestone:  next  
Component:  Augeas      |     Version:  0.7.0 
 Keywords:              |  
------------------------+---------------------------------------------------
 Having an empty alteration like
 {{{
 let value_to_eol = store /([^ \t\n].*[^ \t\n]|[^ \t\n]|)/
 }}}
 (note that there is nothing between the last '|' and the ')') makes
 augparse dump core. The stacktrace looks like this:
 {{{
 build8st% pstack core
 core 'core' of 21650:   augparse -I . test_pkgconfig.aug
  ff0332cc strlen   (2b848, 2c, 0, 0, 65000000, 65000000) + 80
  ff1beae8 lns_make_prim (2b, 2b868, 2b848, 0, 656f6c00, 23278) + 324
  ff1aeebc native_call (2b868, 24408, ffbff5fc, 656f6c00, 81010100, ff00) +
 e8
  ff1b45c0 compile_exp (232b8, 23900, ffbff5fc, ff1df904, 2206c, ff1b3d80)
 + e54
  ff1b3c70 compile_exp (0, 2ac30, ffbff6a0, 0, 2206c, ff1b1c48) + 504
  ff1b1d68 load_module_file (237d8, 31c, 328, 324, 320, 1a8) + 7ac
  ff1b22b8 load_module (ffffffff, 24260, 53, 0, 506b6743, 54657374) + 10c
  ff1b25a8 lookup_internal (237d8, 25160, 25190, ffbff8a4, 70726566,
 506b6743) + d4
  ff1b2764 ctx_lookup_bnd (0, ffbffac0, 25190, 10, 2206c, ff041cb4) + b4
  ff1b2b34 check_exp (240a8, ffbffac0, 2bb88, 6c790000, 6c79, ff00) + 36c
  ff1b2b88 check_exp (24120, ffbffac0, 0, ff0bc000, 22094, ff042b34) + 3c0
  ff1b2b78 check_exp (24148, ffbffac0, ff1df8f4, 0, 2206c, ff1b16cc) + 3b0
  ff1b1888 load_module_file (237d8, 2aa78, 2fc, 19c, 18c, 310) + 2cc
  ff1a6da0 __aug_load_module_file (237d8, ffbffd8a, 44, a4, ff1e0c18, a0) +
 10
  00010f60 main     (4, ffbffc94, ffbffca8, 22bbc, 7d8, 22a6c) + 14c
  00010c04 _start   (0, ffbffc94, ff3ee81c, 0, 1, ff3ee000) + 5c
 }}}
 It should either throw an error or be allowed.

 The full code is attached.

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




More information about the augeas-devel mailing list