Re: [redsocks] Bugs in redsocks ?
- Leonid Evdokimov
- 2015-09-07 @ 11:06
On Thu, Aug 27, 2015 at 10:52 AM, Paul Courbis <email@example.com> wrote:
> 1/ Sometimes the process uses 100 % of the CPU. The only solution I found is
> to kill/restart the process
There are two things you can do to help debugging the issue:
*) run `strace -ttt -p $(pidof redsocks) |& tee strace.log` for 5-10
seconds and ^C that afterwards
*) run `gdb --batch --ex 'set pagination 0' --ex 'thread apply all bt
full' --pid $(pidof redsocks) |& tee gdb.bt.$(date +%s.%N)` for 5-10
And fill bug at https://github.com/darkk/redsocks/issues with these
> 2/ The process sometimes vanishes. I sometimes get memory-related errors
> such as:
Is your installation traffic-heavy? Can you try to run redsocks under
`valgrind` profiling tool to catch memory errors?
> I had a look to the log files but didn't noticed usefull information.
> LogLevel is log_info. Would it help to switch to log_debug ?
Not much. `debug` may be useful to debug protocol
> I use the latest revision of redsocks compiled from sources
In this case it's really useful to send SHA-1 of last commit.
`redsocks -v` should tell it.
redsocks was forked several times, so I can't tell what is the
__latest__ revision: https://github.com/darkk/redsocks/network
You may also want to try redsocks2 that is major rewrite of redsocks
code by Zhuofei Wang: https://github.com/semigodking/redsocks
I'm not heavy redsocks user myself nowadays, that's why development is
> One again, let me tell you how much I *do* apreciate Redsocks !
Thank you for warm words :-)
WBRBW, Leonid Evdokimov
xmpp:firstname.lastname@example.org && http://darkk.net.ru && tel:+79816800702