-
Notifications
You must be signed in to change notification settings - Fork 569
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
Opensips 1.8.8 crash in get_ha1 while doing authorization on REGISTER #688
Comments
Can someone help me out........... |
@neha31oct Can you please tell me what database engine are you using? And also, might be a stupid question, but are you sure your ha1/ha1b column is not INT? |
I am using mysql database and i am also sure ha1/ha1b column is not INT . i have re-checked it also. |
ok i'll try to replicate the bug for myself. please can you tell me what column you are using? ha1 or ha1b? |
i am using ha1 column
opensips crashes while using strlen function in above point 2 because it gets address out of bound in above string (point1) . I dont know why it is getting invalid address .i am also not closing database here . |
opensips is also getting crash in alias_db_module |
what's strange is the type of that value (type = DB_INT in your log). That's why it crashes. I'll try to replicate the bug and come back with an answer(hope i'll have one) |
@neha31oct do you use the load_credentials parameter? |
@neha31oct can you try compiling your opensips with memory debugging[0] ? [0] http://www.opensips.org/Documentation/TroubleShooting-OutOfMem |
yes i am using load_credentials parameters but with default values modparam("auth_db", "load_credentials", "") |
I have also compiled my opensips with memory debbugging as you said above but it is not giving any memory logs in to opensips logs |
i have again tried for memory debugging and found these logs(see below) . these logs are not of server on which opensips crash .These are of testing server .i cant enable memory debugging on that production server . please tell me how to read these logs.? i am also unable to recreate this crash . /usr/local/sbin/opensips[17884]: Memory status (pkg): |
I recreated this crash after changing type of PASSWORD column database from CHAR to INT . so its clear that there is no handling in opensips if anyone changed type of this column . but actually the scenario in which opensips crashes there the type of PASSWORD column is CHAR only but i think that while accessing the database through query its type changes from CHAR TO INT as we can see in the above logs. How can we identify that? |
Just FYI, there is an ongoing discussion regarding a lot more strict SQL column type checking |
I am trying to recreate the bug but i just can't get it. Can you please provide the script? Or at least the modules you are using? Also, are you using some custom tables(modified the ones created by opensips), or functions/modules? |
I'm asking because I suspect some kind of memory corruption. |
one more thing, thanks to @razvancrainea . In gdb, you should print *((*res)->rows->values) since "res" is a double pointer. |
we are using load_balancer module of opensips |
We have not changed anything in authorization module where crash happens . Please specify what other information you need ? please be specific |
Not only the auth module. Anything else that is not as in the git version! |
As you can see in the above dump logs that no any other module (except auth module ) is used in this stack of crash . |
Ok. Think I've found the issue. Just to confirm it to me, can you please trace only the mysql queries connections with wireshark and send me a pcap on my email? |
@neha31oct any success in getting that pcap? i didn't receive any email |
Hi @neha31oct, since there is no progress with this we decided to close this issue. Please feel free to reopen it or open another one if you have any updates. |
Below are the core fille debug log.. Please help me out.......
We havenot changed anything
The text was updated successfully, but these errors were encountered: