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

occasional scheduler segfault #629

Open
jimis opened this issue Mar 13, 2024 · 0 comments
Open

occasional scheduler segfault #629

jimis opened this issue Mar 13, 2024 · 0 comments

Comments

@jimis
Copy link

jimis commented Mar 13, 2024

It happens rarely. Stacktrace:

(gdb) bt
#0  0x00007fbe862d3d54 in std::_Rb_tree_increment(std::_Rb_tree_node_base const*) () from /lib64/libstdc++.so.6
#1  0x00005651c2ff858d in std::_Rb_tree_const_iterator<std::pair<int const, CompileServer*> >::operator++ (this=<synthetic pointer>)
    at /usr/include/c++/13/bits/stl_tree.h:366
#2  main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/icecc-1.4.0/scheduler/scheduler.cpp:2384

Source code:

#2  main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/icecc-1.4.0/scheduler/scheduler.cpp:2384
2384                ++it;
(gdb) l
2379                int i = it->first;
2380                CompileServer *cs = it->second;
2381                /* handle_activity can delete the channel from the fd2cs list,
2382                   hence advance the iterator right now, so it doesn't become
2383                   invalid.  */
2384                ++it;
2385
2386                if (pollfd_is_set(pollfds, i, POLLIN)) {
2387                    while (!cs->read_a_bit() || cs->has_msg()) {
2388                        if (!handle_activity(cs)) {

Version:

$ rpm -qf /usr/sbin/icecc-scheduler 
icecream-1.4.0-2.7.x86_64

OS is OpenSUSE-Tumbleweed.

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