>> What happens if you run "amadmin xx version"?
>...

OK, so at least that works properly (it's basically what amandad is
doing in that loop).

>> and so on until you get to the end of the strings (there should be about
>> 25 of them) or the address is 0x24974 (*vp).
>...

That all looks reasonable.  Unfortunatly, you stopped one short of the
place amandad is failing :-).  What about version_info[21]?

>Not that familiar with it at all, _however_ I'm reading the doc's as we
>type.
>Looks pretty straight forward to me as far as setting breakpoints in gdb.
>
>I'd say it's do-able :)

OK, then try the above first.  If that does not show up as a null
pointer (which it shouldn't since it's what's causing the failure),
set a breakpoint at line 130 (set_pname) and print version_info[21].
If it shows up as a null pointer at that point, step through the code
with "next" and check it after each statement.  When it goes bad, the
previous line is the one that clobbered it.

>-Ben

John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]

Reply via email to