Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Segmentation fault (core dumped) if set max-socks 11 #791
There are some problems with max-socks setting.
The bug was introduced when max-socks (and max_dcc) was introduced with commit 12cff44
So, eggdrop versions affected: ~eggdrop 1.6.21 until current git 304a31c (Dec 4)
If i change position of "loadmodule dns" in eggdrop conf and place it one positon down, right after "loadmodule channel", i still get am error with dns mod but a slightly changed one:
It has something todo with the call to new_dcc(). If i return NULL before the call to new_dcc() in line https://github.com/eggheads/eggdrop/blob/develop/src/mod/dns.mod/dns.c#L300 it doesn't crash. If i return NULL right after the call to new_dcc() it crashes.
Eggdrop crashes also when
Eggdrop dosn't crash, if "loadmodule dns" is commented out in eggdrop config and after
OK, it does crash... only... much later... see the following log, for which i inserted some DEBUG prints to see when new_dcc() is called and which values it returns: