linphone-users
[Top][All Lists]
Advanced

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

Re: [Linphone-users]linphone 0.9.1 crashes with incomming call from SJPh


From: Aymeric Moizard
Subject: Re: [Linphone-users]linphone 0.9.1 crashes with incomming call from SJPhone
Date: Fri, 17 Jan 2003 19:24:13 +0100 (CET)

This is not a sjphone issue. The bug happen when there is no username
in the from header. Here is a patch for gnome/callback.c

 case 200:
        linpmain.call=call;
        if (rem_url!=NULL) g_free(rem_url);

-       addrlen=9+strlen(from->url->username)+strlen(from->url->host);
+       if (from->url->username!=NULL)
+          addrlen=9+strlen(from->url->username)+strlen(from->url->host);
+       else addrlen=9+strlen(from->url->host);
        if (from->displayname!=NULL) addrlen+=strlen(from->displayname);
        rem_url=g_malloc(addrlen);

Aymeric

On Fri, 17 Jan 2003, Pavel Litvinenko wrote:

> on my slackware 9.0
>
> linphone-0.9.1 with libosip-0.9.3
> linphone makes segfault when anyone calls me by SJPhone -
> http://www.sjlabs.com
>
> is there any option howto fix it ?
>
> here logfile
> ----------------------------------------------------------------------------------------------------------------
> | INFO1 | <udp.c: 162> info: RECEIVING UDP MESSAGE:
> INVITE sip:address@hidden SIP/2.0
> Content-Type: application/sdp
> Content-Length: 120
> Contact: <sip:192.168.0.247:5060>
> CSeq: 1 INVITE
> Call-ID: address@hidden
> From: "andr "<sip:192.168.0.247>;tag=8713960
> Via: SIP/2.0/UDP 192.168.0.247:5060
> To: <sip:address@hidden>
> User-Agent: SJLabs-SJPhone/1.0
>
> v=0
> o=- 3246382804 3246382804 IN IP4 195.161.161.247
> s=-
> c=IN IP4 195.161.161.247
> t=0 0
> m=audio 50000 RTP/AVP 8 0
>
>
> | INFO1 | <ist_callbacks.c: 195> OnEvent_New_IncomingInvite!
>
> | INFO1 | <ist_callbacks.c: 46> Sending 100 trying.
>
> |WARNING| <uatransaction.c: 308> ua_transaction_execute: could not get
> dialog transaction.
>
> | INFO1 | <osipua.c: 532> osip_ua_find 1: 195.161.161.248 <> 195.161.161.248
>
> | INFO1 | <osipdialog.c: 157> "andr " <sip:195.161.161.247>;tag=8713960
> has called at 1042814210.
>
> | INFO1 | <ist_callbacks.c: 123> Found body application/sdp.
>
> | INFO1 | <ist_callbacks.c: 134> Creating a new body context.
>
> | INFO1 | <sdpcontext.c: 126> sdp_context_notify_inc_req: negociation
> returned: 200
>
> ------------------------------------------------------------------------------------------------------------------
>
>
> New Thread 16384 (LWP 5282)]
> [New Thread 32769 (LWP 5283)]
> [New Thread 16386 (LWP 5284)]
> [New Thread 32771 (LWP 5285)]
> 0x40627299 in wait4 () from /lib/libc.so.6
> #0  0x40627299 in wait4 () from /lib/libc.so.6
> #1  0x406a7230 in __DTOR_END__ () from /lib/libc.so.6
> #2  0x40510103 in waitpid () from /lib/libpthread.so.0
> #3  0x400938da in gnome_init () from /usr/lib/libgnomeui.so.32
> #4  0x40511dfd in __pthread_sighandler () from /lib/libpthread.so.0
> #5  <signal handler called>
> #6  0x0805cb73 in invite_cb (call=0xbf7ff61c, trn=0x80db9f0,
> sipmsg=0xfffffe00, p2=0xdbaf7cd) at callbacks.c:347
> #7  0x4044e312 in on_first_invite (trn=0x80db650, sipmsg=0x80db9f0) at
> ist_callbacks.c:143
> #8  0x4044e40a in ist_invite_received (trn=0x80db650, sipmsg=0x80db9f0)
> at ist_callbacks.c:202
> #9  0x4047a44f in ist_rcv_invite (ist=0x80db650, evt=0x80d7318) at
> ist_fsm.c:190
> #10 0x4047c8d1 in fsm_callmethod (type=RCV_REQINVITE,
> state=IST_PRE_PROCEEDING, statemachine=0x806ae58, sipevent=0x80d7318,
> transaction=0x80db650)
>      at fsm_misc.c:63
> #11 0x4047e4e7 in transaction_execute (transaction=0x80db650,
> evt=0x80d7318) at transaction.c:377
> #12 0x4047d408 in osip_ist_execute (osip=0x806b358) at osip.c:845
> #13 0x40452a82 in sipd_thread (managerp=0x806abd8) at udp.c:107
> #14 0x4050a463 in pthread_start_thread () from /lib/libpthread.so.0
>
> Thread 4 (Thread 32771 (LWP 5285)):
> #0  0x405a2cd1 in sigsuspend () from /lib/libc.so.6
> #1  0x4050d118 in __pthread_wait_for_restart_signal () from
> /lib/libpthread.so.0
> #2  0x40511607 in address@hidden () from /lib/libpthread.so.0
> #3  0x40481ef6 in ssem_wait (sem=0x406a7230) at port_sema.c:113
> #4  0x40482104 in fifo_get (ff=0x806c468) at port_fifo.c:137
> #5  0x40453019 in resolver_thread (p_manager=0x806abd8) at resolver.c:108
> #6  0x4050a463 in pthread_start_thread () from /lib/libpthread.so.0
>
> Thread 3 (Thread 16386 (LWP 5284)):
> #0  0x40627299 in wait4 () from /lib/libc.so.6
> #1  0x406a7230 in __DTOR_END__ () from /lib/libc.so.6
> #2  0x40510103 in waitpid () from /lib/libpthread.so.0
> #3  0x400938da in gnome_init () from /usr/lib/libgnomeui.so.32
> #4  0x40511dfd in __pthread_sighandler () from /lib/libpthread.so.0
> #5  <signal handler called>
> #6  0x0805cb73 in invite_cb (call=0xbf7ff61c, trn=0x80db9f0,
> sipmsg=0xfffffe00, p2=0xdbaf7cd) at callbacks.c:347
> #7  0x4044e312 in on_first_invite (trn=0x80db650, sipmsg=0x80db9f0) at
> ist_callbacks.c:143
> #8  0x4044e40a in ist_invite_received (trn=0x80db650, sipmsg=0x80db9f0)
> at ist_callbacks.c:202
> #9  0x4047a44f in ist_rcv_invite (ist=0x80db650, evt=0x80d7318) at
> ist_fsm.c:190
> #10 0x4047c8d1 in fsm_callmethod (type=RCV_REQINVITE,
> state=IST_PRE_PROCEEDING, statemachine=0x806ae58, sipevent=0x80d7318,
> transaction=0x80db650)
>      at fsm_misc.c:63
> #11 0x4047e4e7 in transaction_execute (transaction=0x80db650,
> evt=0x80d7318) at transaction.c:377
> #12 0x4047d408 in osip_ist_execute (osip=0x806b358) at osip.c:845
> #13 0x40452a82 in sipd_thread (managerp=0x806abd8) at udp.c:107
> #14 0x4050a463 in pthread_start_thread () from /lib/libpthread.so.0
>
> Thread 2 (Thread 32769 (LWP 5283)):
> #0  0x4064e31c in poll () from /lib/libc.so.6
> #1  0x4050a16e in __pthread_manager () from /lib/libpthread.so.0
>
> Thread 1 (Thread 16384 (LWP 5282)):
> #0  0x4064e31c in poll () from /lib/libc.so.6
> #1  0x404f37ba in g_main_is_running () from /usr/lib/libglib-1.2.so.0
> #2  0x404f317e in g_get_current_time () from /usr/lib/libglib-1.2.so.0
> #3  0x404f355c in g_main_run () from /usr/lib/libglib-1.2.so.0
> #4  0x401d3083 in gtk_main () from /usr/lib/libgtk-1.2.so.0
> #5  0x403ccd07 in applet_widget_gtk_main () from
> /usr/lib/libpanel_applet.so.0
> #6  0x0805104a in main (argc=1, argv=0xbffffa04) at main.c:210
> #7  0x4058ebb4 in __libc_start_main () from /lib/libc.so.6
> #0  0x40627299 in wait4 () from /lib/libc.so.6
> #0  0x40627299 in wait4 () from /lib/libc.so.6
> No symbol table info available.
> #1  0x406a7230 in __DTOR_END__ () from /lib/libc.so.6
> No symbol table info available.
> #2  0x40510103 in waitpid () from /lib/libpthread.so.0
> No symbol table info available.
> #3  0x400938da in gnome_init () from /usr/lib/libgnomeui.so.32
> No symbol table info available.
> #4  0x40511dfd in __pthread_sighandler () from /lib/libpthread.so.0
> No symbol table info available.
> #5  <signal handler called>
> No symbol table info available.
> #6  0x0805cb73 in invite_cb (call=0xbf7ff61c, trn=0x80db9f0,
> sipmsg=0xfffffe00, p2=0xdbaf7cd) at callbacks.c:347
> 347
> addrlen=9+strlen(from->url->username)+strlen(from->url->host);
> from = (struct from_t *) 0x0
> barmesg = 0x0
> addrlen = 0
> sdpctx = (struct _BodyContext *) 0xfffffe00
> #7  0x4044e312 in on_first_invite (trn=0x80db650, sipmsg=0x80db9f0) at
> ist_callbacks.c:143
> 143                             err = ua->invite (call, trn,sipmsg,
> err = 0
> pos = 1
> call = (struct _OsipDialog *) 0x80d5d48
> ua = (struct _OsipUA *) 0x809b6f8
> body = (struct body_t *) 0x0
>
>
> --
> ----
> ---------
> Best Regards,
>       Pavel Litvinenko.
>       ICQ: 16224754
>       Ph: (8632) 923540, 923640
>       sip:address@hidden
>
>
>
>
> _______________________________________________
> Linphone-users mailing list
> address@hidden
> http://mail.nongnu.org/mailman/listinfo/linphone-users
>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]