New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
uac: Segfault on uac_reg_db_to_reg #2076
Comments
Strlen error happens with |
Ok, I think the reg_db_set_attr define was new introduced for this functionality. |
I tried reverting it back to the version before @miconda's commit, but it showed the same behaviour. I mean, I only reverted back reg_db_set_attr and uac_reg_load_db making a slight modification to keep auth_ha1 in. Please note that socket field data is not showing in the coredump. |
Ok, interesting. What kind of DB do you use, maybe it is something about the NULL support inside the DB. |
Also thought that may be the problem - I tried mariadb and sqlite, tried both with empty socket field and with some data inside. I can try postgre/dbtext as well. In case of mariadb I was uploading a dump of uac and versions table only on startup, in case of sqlite it was a clean full database file which I copy into docker container on startup. DB's were generated by kamdbctl tool |
Not necessary, should be easy to reproduce it. I will have a look to it. |
Fixed in the referenced commit in git master. After fixing one of the URLs in the quoted DB entry, I was able to login. As this is a public tracker, you might want to change your password. ;-) |
Description
I was testing latest nightly build to test uacreg with auth_ha1 column. I have 1 record in database:
When I execute kamcmd uac.reg_reload I get:
ERROR: read reply failed: Success (0)
as return code for kamcmd and Kamailio crashes.Troubleshooting
It repeats every time, Kamailio crashes with signal 11
Reproduction
Basically do the same - create a record in database with auth_ha1 instead of password and try kamcmd uac.reg_reload
Debugging Data
core.zip
Log Messages
Additional Information
kamailio -v
UPD: calling uac.reg_reload through jsonrpc caused same behaviour
UPD2: it seems that uac_reg_load_db functions just fails
UPD3: I noticed there's no socket data fetched from db, even though I have it in my sqlite
The text was updated successfully, but these errors were encountered: