lftp 3.5.2 bug
Ian Gulliver <[email protected]> Thu, 3 Aug 2006 16:08:44 -0400
| Newsgroups | gmane.network.lftp.devel |
|---|---|
| Message-ID | <[email protected]> |
3.5.2 official source segfaults (sometimes) after switching queue items
during upload. When compiled with --with-debug and run under gdb, it
outputs:
....' at 0 (0%) [Waiting for response...]
Program received signal SIGSEGV, Segmentation fault.
0x0809002b in time_tuple::lt (this=0x55432e31, o=@0x814a39c) at TimeDate.h:49
49 bool lt(const time_tuple &o) const { return sec<o.sec || (sec==o.sec && msec<o.msec); }
(gdb) print o
$1 = (const time_tuple &) @0x814a39c: {sec = 1154618674, msec = 83}
(gdb) bt
#0 0x0809002b in time_tuple::lt (this=0x55432e31, o=@0x814a39c) at TimeDate.h:49
#1 0x0809007c in Time::operator< (this=0x55432e31, o=@0x814a39c) at TimeDate.h:71
#2 0x080a2c94 in Timer::re_sort (this=0x814a394) at Timer.cc:171
#3 0x080a2e12 in Timer::Reset (this=0x814a394, t=@0x8120600) at Timer.cc:66
#4 0x0806a375 in Timer::Reset (this=0x814a394) at Timer.h:59
#5 0x080a3298 in Timer::SetResource (this=0x814a394, r=0x810e473 "cmd:status-interval", c=0x0) at Timer.cc:83
#6 0x08099f62 in StatusLine::update (this=0x814a358, newstr=0xbfa39b70, newstr_height=1) at StatusLine.cc:259
#7 0x0809a0d9 in StatusLine::ShowN (this=0x814a358, newstr=0xbfa39b70, n=1) at StatusLine.cc:132
#8 0x0809a2c9 in StatusLine::Show (this=0x814a358, f=0x810aab6 "%s") at StatusLine.cc:114
#9 0x080708da in CopyJob::ShowRunStatus (this=0x8391240, s=0x814a358) at CopyJob.cc:102
#10 0x08051de9 in Job::ShowRunStatus (this=0x815afa8, sl=0x814a358) at Job.cc:523
#11 0x080789e3 in MirrorJob::ShowRunStatus (this=0x815afa8, s=0x814a358) at MirrorJob.cc:135
#12 0x08051de9 in Job::ShowRunStatus (this=0x83659d0, sl=0x814a358) at Job.cc:523
#13 0x08055d00 in CmdExec::ShowRunStatus (this=0x83659d0, s=0x814a358) at CmdExec.cc:718
#14 0x08051de9 in Job::ShowRunStatus (this=0x8128b78, sl=0x814a358) at Job.cc:523
#15 0x08055d00 in CmdExec::ShowRunStatus (this=0x8128b78, s=0x814a358) at CmdExec.cc:718
#16 0x08057297 in CmdExec::Do (this=0x8128b78) at CmdExec.cc:592
#17 0x0807d5b4 in SMTask::Schedule () at SMTask.cc:234
#18 0x08051d19 in Job::WaitDone (this=0x8128b78) at Job.cc:556
#19 0x0804d85d in main (argc=2, argv=0xbfa39f44) at lftp.cc:489
(gdb) print sec
Cannot access memory at address 0x55432e31
(gdb) print &sec
$2 = (time_t *) 0x55432e31
(gdb) print this
$3 = (const time_tuple * const) 0x55432e31
(gdb) print *this
Cannot access memory at address 0x55432e31
(gdb) ret
Make time_tuple::lt(time_tuple const&) const return now? (y or n) y
#0 0x0809007c in Time::operator< (this=0x55432e31, o=@0x814a39c) at TimeDate.h:71
71 bool operator<(const Time &o) const { return this->lt(o); }
(gdb) print this
$4 = (const Time * const) 0x55432e31
(gdb) print *this
Cannot access memory at address 0x55432e31
(gdb) ret
Make Time::operator<(Time const&) const return now? (y or n) y
#0 0x080a2c94 in Timer::re_sort (this=0x814a394) at Timer.cc:171
171 while(new_next && new_next->stop<stop)
(gdb) print new_next->stop
Cannot access memory at address 0x55432e31
--
Ian Gulliver
Penguin Hosting
"Failure is not an option; it comes bundled with your Microsoft products."
signature.asc
(application/pgp-signature, 191 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFE0lfKnZmbT4bNjboRArooAJ9yTpSQi6pLUy8o8xPObTAmTVg6/QCgxkgK 7YL2lGMYnQS3xOyPKK7oiO0= =QoIW -----END PGP SIGNATURE-----