Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

index segfault #16

Open
k-nine opened this issue Mar 8, 2013 · 1 comment
Open

index segfault #16

k-nine opened this issue Mar 8, 2013 · 1 comment
Labels

Comments

@k-nine
Copy link

k-nine commented Mar 8, 2013

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::basic_string<char const, std::vectorstd::basic_string >, 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
Copy link
Collaborator

bioboy commented May 1, 2013

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants