Hello Daniel,
Regarding your question, I think only the avp(msg) should be destroyed as others avp's
can be used elsewhere in the script.
I tried the lastest git master and when restarting kamailio I got a segmentation fault:
Jul 18 21:17:16 labcom070 systemd[1]: Started Kamailio - the Open Source SIP Server.
Jul 18 21:17:17 labcom070 kernel: kamailio[2285]: segfault at 0 ip 00000000007eb66a sp
00007ffd7f80cc00 error 6 in kamailio[400000+533000]
Jul 18 21:17:17 labcom070 kernel: Code: 41 56 41 55 41 54 53 48 81 ec c8 00 00 00 48 89 bd
48 ff ff ff 48 89 b5 40 ff ff ff 48 89 95 38 ff ff ff 48 8b 85 48 ff ff ff <48> c7
00 00 00 00 00 48 8b 85 48 ff ff ff c7 40 08 00 00 00 00 48
Jul 18 21:17:17 labcom 070 systemd[1]: Started Process Core Dump (PID 2286/UID 0).
Jul 18 21:17:18 labcom070 systemd-coredump[2287]: Resource limits disable core dumping for
process 2285 (kamailio).
Jul 18 21:17:18 labcom070 systemd-coredump[2287]: Process 2285 (kamailio) of user 993
dumped core.
Jul 18 21:17:18 labcom070 systemd[1]: kamailio.service: Main process exited, code=dumped,
status=11/SEGV
Jul 18 21:17:18 labcom070 systemd[1]: kamailio.service: Failed with result
'core-dump'.
Jul 18 21:17:18 labcom070 systemd[1]: systemd-coredump(a)6-2286-0.service: Succeeded.
Jul 18 21:17:18 labcom070 systemd[1]: kamailio.service: Service RestartSec=100ms expired,
scheduling restart.
Jul 18 21:17:18 labcom070 systemd[1]: kamailio.service: Scheduled restart job, restart
counter is at 1.
Jul 18 21:17:18 labcom070 systemd[1]: Stopped Kamailio - the Open Source SIP Server.
Jul 18 21:17:18 labcom070 kernel: kamailio[2298]: segfault at 0 ip 00000000007eb66a sp
00007ffcd101c240 error 6 in kamailio[400000+533000]
Jul 18 21:17:18 labcom070 kernel: Code: 41 56 41 55 41 54 53 48 81 ec c8 00 00 00 48 89 bd
48 ff ff ff 48 89 b5 40 ff ff ff 48 89 95 38 ff ff ff 48 8b 85 48 ff ff ff <48> c7
00 00 00 00 00 48 8b 85 48 ff ff ff c7 40 08 00 00 00 00 48
Regards,
Vanderlei
________________________________
De: Daniel-Constantin Mierla <miconda(a)gmail.com>
Enviado: quinta-feira, 18 de julho de 2024 02:51
Para: Vanderlei Torres Batistela <v.batistela(a)hotmail.com>om>; Kamailio (SER) - Users
Mailing List <sr-users(a)lists.kamailio.org>
Assunto: Re: [SR-Users] Possible Kamailio memmory leak - version 5.8.2
Hello,
indeed the previous commit was destroying a single avp, I pushed a new one to destroy all
of them with that name. I am wondering if all avps, no matter the name should be
destroyed.
Anyhow, could you fetch the latest git master version and try your scenario again?
Cheers,
Daniel