Re: refdbd maintenance mode fails

Markus Hoenicka <[email protected]> Thu, 12 Oct 2006 14:24:23 +0200
Newsgroups gmane.text.refdb.devel
Message-ID <[email protected]>
David Nebauer <[email protected]> was heard to say:

> After upgrading to svn revision 193 I now get an error when running the
> command
>
>     refdbd -a -D "sqlite" -i "/var/lib/refdb/db"
>
> as part of the debian package install.  It announces the error
>
>     '(null)' cannot be resolved as a hostname
>
> and exits with a non-zero return value.
>

That's not good. However, I can't reproduce the problem on my Windows/Cygwin box
at work (using sqlite3 as I don't have sqlite 2.x installed). On your box refdbd
claims that ip_or_path is NULL, although it is an initialized stack variable. It
would take a pretty gross memory error to achieve this, but valgrind tells me
there is nothing wrong.

I'm afraid you'd have to look at refdbd with a debugger in order to see what's
wrong. Are you familiar with gdb? I'd set a breakpoint after the getopt loop
and check the values every couple of lines to see where the values get lost. If
this is above your head, I'll run these tests on the weekend on a Debian box,
provided I can reproduce the problem.

regards,
Markus


-- 
Markus Hoenicka
[email protected]
(Spam-protected email: replace the quadrupeds with "mhoenicka")
http://www.mhoenicka.de


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642