[augeas-devel] gnulib update for AIX support

James Conner j.conner at ucl.ac.uk
Fri Mar 11 10:33:04 UTC 2011


On 10/03/2011 23:42, David Lutterkort wrote:
> Very odd. You could try running under valgrind, and see if it gives you
> more information about how the SIGSEGV happened.
I don't think valgrind is an option on AIX - It is not listed on their 
supported platforms and I can't find a ready-made package. I had a quick 
go at compiling valgrind from source, but it told me "configure: error: 
Valgrind is operating system specific. Sorry."
> 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.
Just tried a fresh clone from git this morning. Errors unchanged, but 
the line numbers have changed, so I'm confident that I have your latest 
patch. Here's the stack trace today.

Program received signal SIGSEGV, Segmentation fault.
0xd3582110 in argz_add () from 
/home/temp/augeas.git/augeas/src/.libs/libaugeas.a(libaugeas.so.0)
(gdb) bt
#0  0xd3582110 in argz_add () from 
/home/temp/augeas.git/augeas/src/.libs/libaugeas.a(libaugeas.so.0)
#1  0xd355d2b0 in aug_init (root=0xd3582a34 "/", loadpath=0x0, flags=0) 
at augeas.c:385
#2  0x10002cec in main (argc=1, argv=0x2ff22c24) at augtool.c:1336


> 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)
It looks like we're using argz from gnulib. The output of nm gives me a 
lot of line-noise, but within the random garbage I can see strings for 
the argz stuff...

bash-3.2# nm gnulib/lib/.libs/libgnu.a 2>/dev/null | strings | grep argz
gnulib/lib/.libs/libgnu.a[argz.o]:
argz_extract00`000`000`000|
argz_extract00`000`000`000|
argz_extract00`000`000`000|
argz_extract00`000`000`000|
argz_extract00`000`000`000|
.argz_add            T        2448         124
.argz_add_sep        -         336
.argz_add_sep        T         336         348
.argz_append         -        2240
.argz_append         T        2240         204
.argz_count          T         176         148
.argz_create         T        1584         284
.argz_create_sep     T        1200         380
.argz_delete         T         960         228
.argz_extract        T           0         164
...
...

Cheers,

Jim


> David
>
>




More information about the augeas-devel mailing list