jawr / ebftpd

ebftpd - The secure, OpenSource FTP Daemon.
Other
21 stars 17 forks source link

index segfault #16

Open k-nine opened 11 years ago

k-nine commented 11 years ago

on FreeBSD:

(gdb) run -c etc/ebftpd.nochroot.conf Starting program: /opt/ebftpd/bin/index -c etc/ebftpd.nochroot.conf [New LWP 100957] [New Thread 804e041c0 (LWP 100957 initial thread)] [New Thread 804e7d140 (LWP 101250)] [Thread 804e7d140 (LWP 101250) exited]

Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 804e041c0 (LWP 100957 initial thread)] 0x000000080140e710 in std::__shared_ptr<util::path::DirIterator, (__gnu_cxx::_Lock_policy)2>::operator* (this=0x48) at /usr/local/lib/gcc47/include/c++/bits/shared_ptr_base.h:948 948 return *_M_ptr; (gdb) bt

0 0x000000080140e710 in std::__shared_ptr<util::path::DirIterator, (__gnu_cxx::_Lock_policy)2>::operator* (this=0x48)

at /usr/local/lib/gcc47/include/c++/bits/shared_ptr_base.h:948

1 0x000000080140da08 in util::path::GlobIterator::SubIterator::operator== (this=0x0, rhs=...)

at /opt/ebftpd/sources/ebftpd/util/util/path/globiterator.cpp:186

2 0x00000000004321ab in util::path::GlobIterator::operator!= (this=this@entry=0x7fffffffe500, rhs=...)

at /opt/ebftpd/sources/ebftpd/tools/index/../../util/util/path/globiterator.hpp:97

3 0x000000000043183c in AddPath (path=...) at /opt/ebftpd/sources/ebftpd/tools/index/index.cpp:123

4 0x000000000043194d in for_each<__gnu_cxx::normal_iteratorstd::basicstring<char const, std::vectorstd::basicstring >, void ()(std::basic_string const&)> (f=0x43160d <AddPath(std::string const&)>, __last=...,

__first=...) at /usr/local/lib/gcc47/include/c++/bits/stl_algo.h:4442

5 AddPaths (paths=...) at /opt/ebftpd/sources/ebftpd/tools/index/index.cpp:138

6 0x00000000004305c3 in main (argc=, argv=)

at /opt/ebftpd/sources/ebftpd/tools/index/index.cpp:260
bioboy commented 11 years ago

This is possibly fixed with commit #2f02c18. The offending class has been completely recoded. Don't suppose you were able to replicate the error k-nine?