Conversation
|
Hi @AirisX, have you checked this change with ASAN as well? I'm seeing the following with your patch applied: Trying to figure out what is happening there, my current assumption is that |
|
Further investigation showed that Currently applied the following patch and investigating deeper: |
|
Hi @defanator, just yesterday i found a core-dump originated from the pre-production build with this patch. This dump appeared after the stopping the nginx process. After tracing this dump i got the same you are point on. In my case it was line 94 in modsecurity.cc (I am using slightly modified libmodsecurity). Here is the line itself: But my other experimental build with this patch and without all the extra modules has no this problem. I still do not understand what it depends on. By the way, what libmodsecurity brunch are you using? As for |
|
I think it is necessary explicitly initialize |
|
@AirisX I'm using https://github.com/defanator/modsecurity-performance What "extra" modules you were using? How did you build your nginx with modules - statically ( |
|
@AirisX I have tested your patch with addition from #80 (comment) and all seems to work fine. Full diff was as follows: Could you please add that change to the branch linked with this PR? ( |
|
Hi @defanator, I also have tested patch mentioned in comment #80 (comment) and there are no longer core-dumps. As it turned out, the composition of the modules used doesn't matter, and the fact is that the I added this change to the brunch. |
|
@zimmerle I'm fine with merging this one - would you like to take a look as well? |
|
@zimmerle @victorhora guys, could we finally merge this one? I'm happy to do this myself. I suppose we'd like to keep CHANGES here as well? (this one definitely worth to mention there) |
|
Sorry for the long delay. Thank you @AirisX, @defanator and @victorhora. Merged! |
I compiled the nginx-connector with the flag "-fsanitize=leak" and found that the "ModSecurity" object from the "ngx_http_modsecurity_conf_t" structure is not freed.
I tried to fix it according to the examples.