-
Notifications
You must be signed in to change notification settings - Fork 6
Conversation
I am quite confused as to why some checks are failing. I rebased and added an additional test. Maybe an issue with the build agent? Could someone trigger a re-check? |
I triggered a re-check, but the problems/segfaults are remaining. Looks code/PR related. |
Thank you @sreimers. As a sanity check I ran retest off of main branch (and re main branch) and I am seeing the same issues. Are you able to reproduce that? |
To be sure, I restarted a old check from main and no problems. Locally with your PR branches I can reproduce the segfault with:
|
I can not reproduce this so far. But thanks for the call stack. Maybe it has something to do with the last TLS changes. I try to analyze this. Edit: with branch |
The |
In this PR branch got this memory leak warnings in
|
Thanks for the feedback, there must have been an issue on my side (and I ran |
Maybe the |
try adding I tested locally and the tests -r -i -o are working. -t with valgrind fails:
when running under valgrind, the execution is slower. This can be similar hence there might a timing problem or race condition. You can also try helgrind to get hints about threads/mutex errors. |
struct test { | ||
struct sip *sip; | ||
struct sipsess_sock *sock; | ||
struct sipsess *a; | ||
struct sipsess *b; | ||
struct tmr ans_tmr; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this timer started and stopped properly ?
all timers must call tmr_cancel
when the test is finished.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! I added tmr_cancel
at the end of tests that use the timer.
Thank you for the feedback! @alfredh Unfortunately, helgrind didn't show anything related to the 100rel tests. I don't know for certain what exactly is happening here, but I am quite confident that it is an issue with retest and not re. For the PRACK/100rel tests, the issue is most likely due to the fact that I don't have the callbacks necessary to confirm all SIP messages that have been sent. The last callback that is called is usually the |
can you please rebase your patch on top of git main HEAD ? both re and retest has to be rebased |
Refactoring of PRACK related tests to only call
re_cancel()
once per test and remove code duplication.