[augeas-devel] gnulib update for AIX support

David Lutterkort lutter at redhat.com
Thu Mar 10 23:42:28 UTC 2011


On Wed, 2011-03-09 at 10:11 +0000, James Conner wrote:
> On 04/03/2011 18:21, David Lutterkort wrote:
> >  From http://pastebin.com/6DwdmckP it seems like things blow up in
> > argz_add which comes from gnulib; shouldn't be caused by what you did
> > with lexer.c, but I'd rather try that again once you have built
> > successfully.
> >
> > You should also start gdb via libtool, using
> >          libtool --mode=execute gdb ./augtool
> OK - Here is what we get from a fresh complete build with no errors 
> during compilation.
> 
> bash-3.2# libtool --mode=execute gdb src/augtool
> GNU gdb 6.0
> Copyright 2003 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain 
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "powerpc-ibm-aix5.1.0.0"...
> (gdb) run
> Starting program: /home/temp/augeas.git/augeas/src/.libs/lt-augtool
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0xd346e260 in argz_add ()
>     from /home/temp/augeas.git/augeas/src/.libs/libaugeas.a(libaugeas.so.0)
> (gdb) bt
> #0  0xd346e260 in argz_add () from 
> /home/temp/augeas.git/augeas/src/.libs/libaugeas.a(libaugeas.so.0)
> #1  0xd3449740 in aug_init (root=0x200041a8 "/", loadpath=0x0, flags=0) 
> at augeas.c:381
> #2  0x10002cec in main (argc=1, argv=0x2ff22c6c) at augtool.c:1336
> (gdb) quit

Very odd. You could try running under valgrind, and see if it gives you
more information about how the SIGSEGV happened.

I also just pushed a patch that does better error checking from the
return values of the argz_* functions; but I doubt that that is the
issue.

Is that the gnulib argz or a system-supplied argz ? You can check with
'nm gnulib/lib/.libs/libgnu.a | grep argz' - if that shows anything
you're using the gnulib argz (in which case it's strange we don't get a
line number for the SEGV)

David





More information about the augeas-devel mailing list