What's happening here?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jul 13, 2012 at 10:33 PM, Tom Merriewether <
tmerriewether at star2star.com> wrote:

> I took the plunge and am trying to bring in version 2.0.1
> It built OK and linked into my project with no problem.
> Everything runs up to the point where the log reads:
>
> *11:15:00.174    pjsua_acc.c  Adding account: id=
> sip:remote_12027 at rmt1-srq.star2star.net*
>
> *
> *
>
> *It crashes with a memory violation in psjua_acc_add:*
>
> *
> *
>
> *
> *
>
> *The code is the same as that which worked in version 1.10:*
>
> **
>
> *    static pjsua_acc_config xcfg;*
> *
>
>     pjsua_acc_config_default(&xcfg);
>
>
>
>     //Setting the registration timeout value
>
>     xcfg.reg_timeout = 600;  //backgrounding reccommends 600 seconds not
> 300 as is the default
>
>     xcfg.id = pj_str((char *)[pjID UTF8String]);
>
>     xcfg.reg_uri = pj_str((char *)[pjRegistrar UTF8String]);
>
>     xcfg.cred_count = 1;
>
>     xcfg.cred_info[0].realm = pj_str((char *)[sipRealm UTF8String]);
>
>     xcfg.cred_info[0].scheme = pj_str("digest");
>
>     xcfg.cred_info[0].username = pj_str((char *)[pjUsername UTF8String]);
>
>     xcfg.cred_info[0].data_type = PJSIP_CRED_DATA_PLAIN_PASSWD;
>
>     xcfg.cred_info[0].data = pj_str((char *)[pjPassword UTF8String]);
>
>
>
>     pjsua_acc_id p_acc_id;
>
>     pj_status_t status = pjsua_acc_add(&xcfg, PJ_TRUE, &p_acc_id);
>
> Blows up here with EXC_BAD_ACCESS (not very useful but its trying to do a
> memmove()
>
> 0x33b4ef48:  beq    0x33b4ef60                ; memmove$VARIANT$CortexA8
> + 576
>
> 0x33b4ef4a:  ldrb   r3, [r1], #1
>
> 0x33b4ef4e:  sub.w  r2, r2, #1
>
> Platform is iPhone 4
>
> *
>
> Could you please tell me why the problem is?
>
>
Don't you have a debugger? If no then you're in trouble. :)

 Benny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20120716/1a65c301/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux