On Mon, Feb 09, 2009 at 05:01:01PM -0600, Albert Chin wrote:
> On Mon, Feb 09, 2009 at 11:46:57AM -0700, Rippy wrote:
> > Hello,
> > It appears to be spinning in xstring::vappendf, with "len" at 1GB seeming
> > a bit large:
> > Program received signal SIGINT, Interrupt
> >   si_code: 0 - .
> > 0x7aff2210 in _doprnt+0x48 () from /usr/lib/libc.2
> > (gdb) bt
> > #0  0x7aff2210 in _doprnt+0x48 () from /usr/lib/libc.2
> > #1  0x7b004c4c in vsnprintf+0x54 () from /usr/lib/libc.2
> > #2  0x705d8 in xstring::vappendf (this=<incomplete type>, format=0xe7d5c
> > "`%s' at %lld %s%s%s%s", ap=0x7f7f0e3c)
> >     at xstring.cc:260
> > #3  0x70fd0 in xstring::format (fmt=0xe7d5c "`%s' at %lld %s%s%s%s") at
> > xstring.h:164
> > #4  0x49f80 in CopyJob::Status (this=<incomplete type>, s=0x7b00c10f,
> > base=193) at CopyJob.cc:87
> > #5  0x49fb8 in CopyJob::Fg (this=<incomplete type>) at CopyJob.cc:95
> > #6  0x34298 in Job::ShowRunStatus (this=<incomplete type>, s...@0xe7d5c) at
> > Job.cc:457
> > #7  0x34298 in Job::ShowRunStatus (this=<incomplete type>, s...@0xe7d5c) at
> > Job.cc:457
> > #8  0x36058 in CmdFeeder::~CmdFeeder (this=<incomplete type>) at
> > CmdExec.cc:701
> > #9  0x380b0 in CmdExec::Do (this=<incomplete type>) at CmdExec.cc:571
> > (gdb) b xstring.cc:260
> > Breakpoint 1 at 0x705b8: file xstring.cc, line 260 from
> > /home/georgg/bin/lftp.
> > (gdb) c
> > Continuing.
> 
> I think lib/Makefile.am needs to be updated by adding the vsnprintf and
> vsnprintf-posix modules to solve your problem.

Well, adding vsnprintf and vsnprintf-posix modules will fix your problem
on HP-UX (the vsnprintf module alone won't). But, it will break lftp on
Solaris. No idea why. lftp built with Sun C++ and Solaris vsnprintf
works. But, with gnulib vsnprintf, output is not as it should be.
However, lftp built with GNU C++ and gnulib vsnprintf on Solaris work.

-- 
albert chin ([email protected])

Reply via email to