Fwd: Debug Mode in psuja error

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

 



The strange thing about your screenshot is it has call to nh_malloc()
from vbr_init(), and this is impossible since there's no memory
allocation in vbr_init(). So the only explanation is your stack was
corrupt.

This could probably happen if your application build setting doesn't
match the libraries build setting (e.g. "Multithreaded Debug" vs
"Multithreaded Debug DLL" vs "Single Threaded"). Make sure that the
settings are correct, and you don't get warnings about
LIBC/LIBCMTD/MSVCRTD during linking.

cheers,
 -benny

On 2/25/08, Thomas Plotkowiak <plotti at gmx.net> wrote:
> Hmm,
>
> I rebuild the whole pjsip libraries. I rebuild my project.
> I checked how I initialize pjsua everything is as the sample:
>
>  /* Create pjsua first! */
>     status = pjsua_create();
>      if (status != PJ_SUCCESS) error_exit("Error in pjsua_create()",
> status);
>
>     /* Init pjsua */
>     {
>     pjsua_config cfg;
>     pjsua_logging_config log_cfg;
>
>     pjsua_config_default(&cfg);
>     cfg.cb.on_incoming_call = &on_incoming_call;
>     cfg.cb.on_call_media_state = &on_call_media_state;
>      cfg.cb.on_call_state = &on_call_state;
>     cfg.cb.on_buddy_state =&on_buddy_state;
>     cfg.cb.on_pager = &on_pager;
>     cfg.stun_host = pj_str("stun.ekiga.net");
>
>     pjsua_logging_config_default(&log_cfg);
>     log_cfg.console_level = 2;
>
>     status = pjsua_init(&cfg, &log_cfg, NULL);
>     if (status != PJ_SUCCESS) error_exit("Error in pjsua_init()", status);
>      }
>
> And yet the debugger still continues to complain. I attached a screenshot,
> maybe its more revealing to you guys than to me.
>
>
> 2008/2/19, Nanang Izzuddin <nanang.izzuddin at gmail.com>:
>
> > The params value (string and line number) supplied to
> > pj_thread_check_stack look strange (buffer overflow?), and the call
> > stack shows pjsua_init() (IMO pjsua_init can be declared 'safe').
> > So, if you just modified something, please do some more recheck, or
> > just try to clean all first, then rebuild (sometime this helps :D).
> >
> > nanang
> >
> >
> >
> > On 19/02/2008, Thomas Plotkowiak <plotti at gmx.net> wrote:
> > > I am trying to run psuja implementation in debug mode, and get the
> following
> > > error:
> > >
> > > From callers:
> > > !pj_thread_check_stack(const char * file=0x00000040, int line=15400960)
> > > Zeile 525 + 0xf Bytes
> > > ...
> > > ...
> > >       planet_p4.exe!pjsua_init(const pjsua_config * ua_cfg=0x0012f6a8,
> const
> > > pjsua_logging_config * log_cfg=0x0012f96c, const pjsua_media_config *
> > > media_cfg=0x0012f2d4)  Zeile 699 + 0x9 Bytes    C
> > >
> > > And from out:
> > > HEAP[planet_p4.exe]: Invalid Address specified to RtlFreeHeap( 00EB0000,
> > > 05200068 )
> > >
> > > The debugger shows:
> > > +        thread    0x05207f30 {obj_name=0x05207f30 "???="
> hthread=0x00000000
> > > idthread=0 ...}    pj_thread_t *
> > >
> > > I dont really know what the problem might be here.All seems very
> cryptic...
> > >
> > > Hopefully maybe somebody can help.
> > >
> > >
> > >
> > >
> > >
> > >
> >
> > > _______________________________________________
> > >  Visit our blog: http://blog.pjsip.org
> > >
> > >  pjsip mailing list
> > >  pjsip at lists.pjsip.org
> > >
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
> > >
> > >
> >
> >
>
>
>
> _______________________________________________
>  Visit our blog: http://blog.pjsip.org
>
>  pjsip mailing list
>  pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>
>



[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