I was able to reproduce this error on centos 6.5, when having a 24 MB
/etc/sysconfig/nfs configuration file, any tool using augeas-libs just
broke with segmentation fault.
Using augeas-libs-1.0.0-5.el6_5.1.x86_64
Fixed just trimming down the faulty configuration file as a workaround.
Reproduced easily just appending data into the file until it's big
enough (17 MB was enough for me). It does not matter if you add real
configuration entries or just comments.
This is what I used to test it:
for i in $(seq 100); do echo #WHATEVER=NOTHIG /etc/sysconfig/nfs;
done
After that running augtool:
# augtool
Segmentation fault
With gdb:
# gdb augtool
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6_4.1)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type show copying
and show warranty for details.
This GDB was configured as x86_64-redhat-linux-gnu.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /usr/bin/augtool...(no debugging symbols found)...done.
Missing separate debuginfos, use: debuginfo-install
augeas-1.0.0-5.el6_5.1.x86_64
(gdb) run
Starting program: /usr/bin/augtool
Program received signal SIGSEGV, Segmentation fault.
0x77bbe2a1 in ?? () from /usr/lib64/libaugeas.so.0
(gdb)
And attached an strace of the run (don't get scared by the strange config files
please :) ).
** Attachment added: strace log
https://bugs.launchpad.net/ubuntu/+source/augeas/+bug/814569/+attachment/4100598/+files/strace.log
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to augeas in Ubuntu.
https://bugs.launchpad.net/bugs/814569
Title:
Segmentation fault in augtool and augeas.rb
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/augeas/+bug/814569/+subscriptions
--
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs