[sr-dev] Re: [kamailio/kamailio] Kamailio 5.8 core dumps with regex module (Issue #3812)

2024-05-31 Thread David Villasmil via sr-dev
Thanks @linuxmaniac! do you know when this will be officially out? i.e. 5.8.2?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3812#issuecomment-2142680828
You are receiving this because you are subscribed to this thread.

Message ID: ___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] Re: [kamailio/kamailio] Kamailio 5.8 core dumps with regex module (Issue #3812)

2024-05-31 Thread David Villasmil via sr-dev
@miconda @linuxmaniac i'm having the sane problem when upgrading from 5.5:
```
#^.*friendly-scanner.*$
#^.*sundayddr.*$
#^.*sipcli.*$
#^.*eyeBeam.*$
#^.*Asterisk.*$
#^.*asterisk.*$
```
the crash:
``` 0(890199) INFO: regex [regex_mod.c:419]: load_pcres(): 
((^.*friendly-scanner.*$)|(^.*sundayddr.*$)|(^.*sipcli.*$)|(^.*eyeBeam.*$)|(^.*Asterisk.*$)|(^.*asterisk.*$))
 (size = 109)
Segmentation fault (core dumped)
```
core bt
```
Core was generated by `/usr/sbin/kamailio -f /etc/kamailio/main.cfg -DD -EE 
--atexit=no'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x7f99dfa605c4 in ?? () from 
/usr/lib/x86_64-linux-gnu/kamailio/modules/regex.so
(gdb) bt full
#0  0x7f99dfa605c4 in ?? () from 
/usr/lib/x86_64-linux-gnu/kamailio/modules/regex.so
No symbol table info available.
#1  0x7f99dfa61b23 in ?? () from 
/usr/lib/x86_64-linux-gnu/kamailio/modules/regex.so
No symbol table info available.
#2  0x557a5fcda1b4 in ?? ()
No symbol table info available.
#3  0x557a5fcda18f in ?? ()
No symbol table info available.
#4  0x557a5fcda18f in ?? ()
No symbol table info available.
#5  0x557a5fcdffb5 in init_modules ()
No symbol table info available.
#6  0x557a5fb254fc in main ()
No symbol table info available.
```

Does this mean regex is currently unusable?

Thanks!

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3812#issuecomment-2142670285
You are receiving this because you are subscribed to this thread.

Message ID: ___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] Re: [kamailio/kamailio] Kamailio 5.8 core dumps with regex module (Issue #3812)

2024-05-31 Thread Victor Seva via sr-dev
Please check master 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3812#issuecomment-2142672102
You are receiving this because you are subscribed to this thread.

Message ID: ___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] Re: [kamailio/kamailio] Kamailio 5.8 core dumps with regex module (Issue #3812)

2024-05-30 Thread Victor Seva via sr-dev
@dkovik can you please confirm that the fix works for you?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3812#issuecomment-2139750253
You are receiving this because you are subscribed to this thread.

Message ID: ___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] Re: [kamailio/kamailio] Kamailio 5.8 core dumps with regex module (Issue #3812)

2024-05-30 Thread Victor Seva via sr-dev
Closed #3812 as completed via d89333748662c0e7c72e3579d41fd14ef05c0fee.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3812#event-12987174905
You are receiving this because you are subscribed to this thread.

Message ID: ___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] Re: [kamailio/kamailio] Kamailio 5.8 core dumps with regex module (Issue #3812)

2024-05-30 Thread Victor Seva via sr-dev
> On the other hand, I am not sure if it is enough, I guess the compiled regex 
> has to be stored in shared memory and I cannot say it is done. Maybe 
> @linuxmaniac can have more insights on it.

Sorry for the delay. Yes, I think that coping the pointers to shm was not 
properly done in the migration

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3812#issuecomment-2139701519
You are receiving this because you are subscribed to this thread.

Message ID: ___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] Re: [kamailio/kamailio] Kamailio 5.8 core dumps with regex module (Issue #3812)

2024-04-23 Thread Victor Seva via sr-dev
Yes, I have this issue in my TODO list. Hopefully I will get to it this week.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3812#issuecomment-2071941995
You are receiving this because you are subscribed to this thread.

Message ID: ___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] Re: [kamailio/kamailio] Kamailio 5.8 core dumps with regex module (Issue #3812)

2024-04-23 Thread Daniel-Constantin Mierla via sr-dev
Looked a bot over it and the `pcres` global was not allocated, by an assign to 
`*pcres` was done.

On the other hand, I am not sure if it is enough, I guess the compiled regex 
has to be stored in shared memory and I cannot say it is done. Maybe 
@linuxmaniac can have more insights on it.

With pcre3 library, there was a function from the lib that returned a 
contiguous block for the compiled regex that was then copied to shm.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3812#issuecomment-2071938830
You are receiving this because you are subscribed to this thread.

Message ID: ___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org