-
Notifications
You must be signed in to change notification settings - Fork 633
Description
Hi, I'm using centos 6.5, opensips from git, everything up to date.
I configured usrloc (and all the other modules) to use unixodbc.
Here is an example of the configuration:
loadmodule "usrloc.so"
modparam("usrloc", "db_url", "unixodbc://opensips:opensipsrw@localhost/OpenSIPS")
modparam("usrloc", "db_mode", 1)
the result is a core dump:
Jul 15 09:22:51 opensips0 kernel: opensips[8177] general protection ip:4a073b sp:7fffcd229720 error:0 in opensips[400000+153000]
Jul 15 09:22:51 opensips0 abrt[8179]: Not saving repeating crash in '/usr/sbin/opensips'
Jul 15 09:22:51 opensips0 abrt[8179]: Saved core dump of pid 8177 to core.8177 (52912128 bytes)
Jul 15 09:22:51 opensips0 opensips: INFO:core:daemonize: pre-daemon process exiting with -1
Here you can see the backtrace: http://pastebin.com/xeeu25ne
For now I solved with this small patch http://pastebin.com/nzTwikcJ
I let it run 2 days, haven't noticed anything wrong with it, but please let me know if you think I'm breaking some other functionality I'm not aware of.
Thanks.