Skip to content
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

sca: Core dump #35

Closed
oej opened this issue Jan 17, 2015 · 5 comments
Closed

sca: Core dump #35

oej opened this issue Jan 17, 2015 · 5 comments
Labels

Comments

@oej
Copy link
Member

oej commented Jan 17, 2015

If I load the sca module in a minimal configuration without any sca modparams, it core dumps.

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 sca.so 0x000000010de29823 sca_db_get_connection + 35 (sca_db.c:158)
1 sca.so 0x000000010de411e7 sca_subscription_db_update + 55 (sca_subscribe.c:493)
2 sca.so 0x000000010ddd44e3 sca_mod_destroy + 19 (sca.c:367)
3 kamailio 0x000000010d1ab089 destroy_modules + 73 (sr_module.c:790)

@oej
Copy link
Member Author

oej commented Jan 17, 2015

This is with trunk

@oej
Copy link
Member Author

oej commented Jan 17, 2015

Config:

debug=2
log_stderror=yes
fork=no
alias="country.sm.edv"  # Replace "country" with your country

# ------------------ module loading ----------------------------------
mpath="/usr/local/lib64/kamailio/modules"
loadmodule "sca.so"     # THe registrar that manage the usrloc


# -------------------------  request routing logic -------------------
route {
    # Handle everything else
    forward();
}

onreply_route {
    ;
}

@oej oej added the bug label Jan 17, 2015
@miconda
Copy link
Member

miconda commented Jan 28, 2015

Pushed patch to catch destroy on uninitialized variable.

@miconda miconda closed this as completed Jan 28, 2015
@oej
Copy link
Member Author

oej commented Jan 29, 2015

Still dumps core here.
0(10104) INFO: [tcp_main.c:4652]: init_tcp(): using kqueue as the io watch method (auto detected)
0(10104) INFO: rr [./../outbound/api.h:54]: ob_load_api(): Failed to import bind_ob
0(10104) INFO: rr [rr_mod.c:160]: mod_init(): outbound module not available
0(10104) ERROR: [db.c:73]: db_check_api(): module db_mysql does not export db_use_table function. Please check if module is loaded.
0(10104) ERROR: sca [sca.c:164]: sca_bind_srdb1(): Failed to initialize required DB API 0(10104) ERROR: sca [sca.c:300]: sca_mod_init(): Failed to initialize required DB API 0(10104) ERROR: [sr_module.c:945]: init_mod(): Error while initializing module sca (/usr/local/lib64/kamailio/modules/sca.so)
ERROR: error while initializing modules
Segmentation fault: 11 (core dumped)

@oej oej reopened this Jan 29, 2015
@oej
Copy link
Member Author

oej commented Jan 29, 2015

Sorry, that was the other bug repot. /* Need to wake up */

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants