[asterisk-bugs] [JIRA] (ASTERISK-22474) res_pjsip / res_pjsip_session assertions and segfault

Corey Farrell (JIRA) noreply at issues.asterisk.org
Sat Sep 14 19:19:02 CDT 2013


     [ https://issues.asterisk.org/jira/browse/ASTERISK-22474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Corey Farrell updated ASTERISK-22474:
-------------------------------------

    Attachment: gdb-log-3.txt

I recompiled pjproject with optimization disabled.  Updated backtrace included in gdb-log-3.txt.  It appears I'm getting a crash due to pjproject internal modules: "mod-invite" and "mod-100rel".  They are registered during load of res_pjsip_session but not unregistered at unload.
                
> res_pjsip / res_pjsip_session assertions and segfault
> -----------------------------------------------------
>
>                 Key: ASTERISK-22474
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-22474
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_pjsip, Resources/res_pjsip_session
>    Affects Versions: 12.0.0-alpha2
>            Reporter: Corey Farrell
>            Severity: Minor
>         Attachments: cli-3.conf, gdb-log-1, gdb-log-2, gdb-log-3, gdb-log-3.txt, granular_rollback.diff, menuselect.makeopts, modules-1.conf, modules-2.conf, modules-3.conf
>
>
> It is relatively easy to cause a crash with res_pjsip.  I've attached numbered modules.conf for each test, and cli.conf for the 3rd test.  gdb-logs where obtained by running:
> {noformat}
> gdb --batch -ex 'r' -ex 'bt' -ex 'thread apply all bt' -ex 'thread apply all bt full' asterisk 2>&1 | tee gdb-log
> {noformat}
> # use modules-1.conf.  Causes segfault in ast_threadpool_push due to pool==NULL.
> # use modules-2.conf.  Causes assert in pjsip_endpt_unregister_module when attempting to cancel res_pjsip load.
> # use modules-3.conf and cli-3.conf.  Causes assert in pjsip_endpt_register_module when loading res_pjsip_session for second time.
> Additional note: res_pjsip MODULEINFO lists res_sorcery_config as the only required module.  res_sorcery_astdb and res_sorcery_memory should probably be listed as well.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list