#96: augparse segmentation fault for empty file
--------------------+-------------------------------------------------------
Reporter: till | Owner: lutter
Type: defect | Status: new
Priority: major | Milestone: next
Component: Augeas | Version: 0.5.3
Keywords: |
--------------------+-------------------------------------------------------
When I run augparse 0.5.3 from F10 on an empty file, there is an
segmentation fault:
{{{
Starting program: /usr/bin/augparse debctrl.aug
Program received signal SIGSEGV, Segmentation fault.
0xb7fc6e4c in augl_error (locp=0xbfffef78, term=0xbffff0f8,
scanner=0x804db80, s=0xbfffef98 "syntax error, unexpected $end, expecting
KW_MODULE") at parser.y:511
511 info.filename->str = locp->filename->str;
(gdb) bt
#0 0xb7fc6e4c in augl_error (locp=0xbfffef78, term=0xbffff0f8,
scanner=0x804db80, s=0xbfffef98 "syntax error, unexpected $end, expecting
KW_MODULE") at parser.y:511
#1 0xb7fc81fc in augl_parse (term=0xbffff0f8, scanner=0x804db80) at
parser.c:2096
#2 0xb7fc8bf6 in augl_parse_file (name=0xbffff405 "debctrl.aug",
term=0xbffff0f8) at parser.y:327
#3 0xb7fc48e6 in __aug_load_module_file (aug=0x804b5b8,
filename=0xbffff405 "debctrl.aug") at syntax.c:1889
#4 0x08048a04 in main (argc=2, argv=0xbffff254) at augparse.c:125
}}}
--
Ticket URL: <https://fedorahosted.org/augeas/ticket/96>
Augeas <http://augeas.net/>
a configuration API
_______________________________________________
augeas-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/augeas-devel