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

wdToPath crashes #90

Open
belousotroll opened this issue Jan 25, 2023 · 1 comment
Open

wdToPath crashes #90

belousotroll opened this issue Jan 25, 2023 · 1 comment

Comments

@belousotroll
Copy link

#0 0x0000000000585cc4 in boost::exception_detail::clone_impl<boost::exception_detail::error_info_injectorstd::out_of_range >::clone_impl(boost::exception_detail::error_info_injectorstd::out_of_range const&) ()
#1 0x00000000005847bb in boost::wrapexceptstd::out_of_range::wrapexcept(boost::exception_detail::error_info_injectorstd::out_of_range const&) ()
#2 0x0000000000582d91 in boost::wrapexcept<boost::exception_detail::remove_error_info_injectorstd::out_of_range::type> boost::exception_detail::enable_bothstd::out_of_range(std::out_of_range const&) ()
#3 0x0000000000580f9f in void boost::throw_exceptionstd::out_of_range(std::out_of_range const&) ()
#4 0x000000000057f50b in std::filesystem::cxx11::path const& boost::bimaps::detail::non_mutable_data_unique_map_view_access<boost::bimaps::views::map_view<boost::bimaps::relation::member_at::left, boost::bimaps::detail::bimap_core<int, std::filesystem::cxx11::path, mpl::na, mpl::na, mpl::na> >, boost::bimaps::relation::member_at::left, boost::bimaps::detail::bimap_core<int, std::filesystem::cxx11::path, mpl::na, mpl::na, mpl::na> >::at(int const&) const ()
#5 0x000000000057d2e5 in inotify::Inotify::wdToPathabi:cxx11 ()
#6 0x000000000057da2d in inotify::Inotify::readEventsFromBuffer(unsigned char*, int, std::vector<inotify::FileSystemEvent, std::allocatorinotify::FileSystemEvent >&) ()
#7 0x000000000057d457 in inotify::Inotify::getNextEvent() ()
#8 0x0000000000577ac3 in inotify::NotifierBuilder::runOnce() ()

Something went wrong in that area.

@belousotroll
Copy link
Author

belousotroll commented Jan 25, 2023

I don't understand C++ and Linux well enough, so it's hard for me to find the cause of the crash. As I understand it, the reason is that event->wd passes an invalid file descriptor, but I don't understand how.

Maybe you can help me to figure out this issue. It happens once per 2-3 months, hard to detect/reproduce.

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

No branches or pull requests

1 participant