<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; "><span>Hi,</span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; ">Here is my debug result:</div><div><font size="3">In file: conncheck.c, function conn_check_send(), the segmentation occur at line</font></div><div>buffer_len = stun_usage_ice_conncheck_create (&agent->stun_agent,</div><div> &pair->stun_message, pair->stun_buffer, sizeof(pair->stun_buffer),</div><div> uname, uname_len, password, password_len,</div><div> cand_use, controlling, priority,</div><div> agent->tie_breaker,</div><div>
pair->foundation,</div><div> agent_to_ice_compatibility (agent));</div><div>I checked that &pair->stun_message is null and step into this function to follow this variable. It's always null until segmentation.</div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; ">Please refer backtrace in attachment for more details.<br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; ">Thanks</div> <div style="font-size: 12pt; font-family: arial, helvetica, sans-serif; "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Youness Alaoui
<youness.alaoui@collabora.co.uk><br> <b><span style="font-weight: bold;">To:</span></b> nice@lists.freedesktop.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, August 15, 2012 9:04 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Nice] Segmentation fault with libnice-0.1.2 on ARM ( Nokia N9)<br> </font> </div> <br>
Hi,<br><br>Could you provide a gdb backtrace with "bt full" so I can look into what's<br>causing it exactly?<br><br>Thanks,<br>Youness<br><br>On 08/15/2012 05:56 AM, ly tran wrote:<br>> Hi,<br>> <br>> I use libnice to make video call using SIP (sofia-sip) signalling protocol.<br>> I used sofsip_cli example in sofia-sip-1.12.11.<br>> I can make successfull video call in x86 (Ubuntu dekstop).<br>> But when I compile and run on ARM (Nokia N9), I got the following segmentation<br>> fault at: nice_agent_set_remote_candidates() function<br>> Is there anybody have the same problem ?<br>> <br>> ** Message: parsing SDP:<br>> v=0<br>> m=video 32931 RTP/AVP 98<br>> c=IN IP4 192.168.2.15<br>> a=rtpmap:98 theora/90000<br>> a=candidate:1 1 UDP 2013266431 192.168.2.15 32931 typ host<br>> a=candidate:2 1 UDP 2013266431 169.254.41.172 48865 typ host<br>> a=candidate:1 2 UDP 2013266430 192.168.2.15 57849 typ host<br>>
a=candidate:2 2 UDP 2013266430 169.254.41.172 43299 typ host<br>> a=ice-pwd:sIX8Lqas8Lk1TSgIBboFST<br>> a=ice-ufrag:owAy<br>> a=rtcp:57849<br>> <br>> ---<br>> ** Message: priv_refresh_nice aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa<br>> ** Message: priv_set_remote_v_sdp_candidates<br>> ** (sofsip_cli:1356): DEBUG: Found ice-ufrag:cyES<br>> ** (sofsip_cli:1356): DEBUG: Found ice-pwd:mYErzMCqTWU+2vZJAQ8uuK<br>> ** Message: Remote does not support ICE, falling back to non-ICE mode.<br>> ** Message: nice_agent_set_remote_candidates START<br>> (sofsip_cli:1356): libnice-DEBUG: Agent 0xc19a8: set_remote_candidates 1 1<br>> (sofsip_cli:1356): libnice-DEBUG: Agent 0xc19a8 : Adding remote candidate with<br>> addr [192.168.2.15]:33462 for s1/c1. U/P '(null)'/'(null)' prio: 1<br>> (sofsip_cli:1356): libnice-DEBUG: Agent 0xc19a8 : creating new pair 0xf3000 state 5<br>> (sofsip_cli:1356): libnice-DEBUG: Agent 0xc19a8 :
added a new conncheck 0xf3000<br>> with foundation of '1:1' to list 1.<br>> (sofsip_cli:1356): libnice-DEBUG: Agent 0xc19a8 : stream 1 component 1<br>> STATE-CHANGE 1 -> 2.<br>> ** Message: priv_cb_component_state_changed: stream_id=1, component_id=1,<br>> state=2, self=0xbfc10<br>> ** Message: rtp comp 1, rtcp com 2, ready 4, disconnected 0 failed 5<br>> ** Message: goes here<br>> (sofsip_cli:1356): libnice-DEBUG: Agent 0xc19a8 : creating new pair 0x1030b0 state 5<br>> (sofsip_cli:1356): libnice-DEBUG: Agent 0xc19a8 : added a new conncheck 0x1030b0<br>> with foundation of '2:1' to list 1.<br>> (sofsip_cli:1356): libnice-DEBUG: Agent 0xc19a8 : Pair 0xf3000 with s/c-id 1/1<br>> (1:1) unfrozen.<br>> (sofsip_cli:1356): libnice-DEBUG: Agent 0xc19a8 : pair 0xf3000 state WAITING<br>> (sofsip_cli:1356): libnice-DEBUG: Agent 0xc19a8 : priv_conn_check_unfreeze_next<br>> returned 1<br>> (sofsip_cli:1356):
libnice-DEBUG: Agent 0xc19a8 : pair 0xf3000 state IN_PROGRESS<br>> (sofsip_cli:1356): libnice-DEBUG: Agent 0xc19a8 : STUN-CC REQ to<br>> '192.168.2.15:33462', socket=11, pair=1:1 (c-id:1), tie=2663607996370330830,<br>> username='cyES:owAy' (9), password='mYErzMCqTWU+2vZJAQ8uuK' (22),<br>> priority=1845494271.<br>> Segmentation fault<br>> <br>> <br>> _______________________________________________<br>> nice mailing list<br>> <a ymailto="mailto:nice@lists.freedesktop.org" href="mailto:nice@lists.freedesktop.org">nice@lists.freedesktop.org</a><br>> http://lists.freedesktop.org/mailman/listinfo/nice<br><br><br><br>_______________________________________________<br>nice mailing list<br><a ymailto="mailto:nice@lists.freedesktop.org" href="mailto:nice@lists.freedesktop.org">nice@lists.freedesktop.org</a><br><a href="http://lists.freedesktop.org/mailman/listinfo/nice"
target="_blank">http://lists.freedesktop.org/mailman/listinfo/nice</a><br><br><br> </div> </div> </div></body></html>