[Bug 664808] New: linphone segfaults on incoming call
https://bugzilla.novell.com/show_bug.cgi?id=664808 https://bugzilla.novell.com/show_bug.cgi?id=664808#c0 Summary: linphone segfaults on incoming call Classification: openSUSE Product: openSUSE 11.4 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: GNOME AssignedTo: bnc-team-gnome@forge.provo.novell.com ReportedBy: seife@novell.slipkontur.de QAContact: qa@suse.de Found By: Third Party Developer/Partner Blocker: --- Outgoing calls via SIP work well, but on incoming calls, linphone segfaults without even ringing: (gdb) bt #0 0x00007ffff5887010 in strcasecmp () from /lib64/libc.so.6 #1 0x00007ffff7775071 in find_payload_type_best_match (local=0x943b60, remote=<value optimized out>) at offeranswer.c:32 #2 match_payloads (local=0x943b60, remote=<value optimized out>) at offeranswer.c:59 #3 0x00007ffff777544d in initiate_incoming (local_capabilities=0x945ec0, remote_offer=0x9429f0, result=0x9498e0) at offeranswer.c:102 #4 offer_answer_initiate_incoming (local_capabilities=0x945ec0, remote_offer=0x9429f0, result=0x9498e0) at offeranswer.c:155 #5 0x00007ffff7775ceb in sdp_process (h=0x927de0) at sal_eXosip2.c:444 #6 0x00007ffff7777595 in sal_call_get_final_media_description (h=0x927de0) at sal_eXosip2.c:583 #7 0x00007ffff777d12f in call_received (h=0x927de0) at callbacks.c:80 #8 0x00007ffff7779364 in inc_new_call (sal=0x7c3e80) at sal_eXosip2.c:753 #9 process_event (sal=0x7c3e80) at sal_eXosip2.c:1496 #10 sal_iterate (sal=0x7c3e80) at sal_eXosip2.c:1592 #11 0x00007ffff777289e in linphone_core_iterate (lc=0x6ef050) at linphonecore.c:1766 #12 0x000000000040f542 in linphone_gtk_iterate (lc=0x6ef050) at main.c:443 #13 0x00007ffff5dd739b in ?? () from /lib64/libglib-2.0.so.0 #14 0x00007ffff5dd5a43 in g_main_context_dispatch () from /lib64/libglib-2.0.so.0 #15 0x00007ffff5dd6220 in ?? () from /lib64/libglib-2.0.so.0 #16 0x00007ffff5dd68a5 in g_main_loop_run () from /lib64/libglib-2.0.so.0 #17 0x00007ffff70407a7 in gtk_main () from /usr/lib64/libgtk-x11-2.0.so.0 #18 0x00000000004109fa in main (argc=1, argv=0x7fffffffdc88) at main.c:1333 The code that crashes is static PayloadType * find_payload_type_best_match(const MSList *l, const PayloadType *refpt){ PayloadType *pt; char value[10]; const MSList *elem; PayloadType *candidate=NULL; for (elem=l;elem!=NULL;elem=elem->next){ pt=(PayloadType*)elem->data; ===> if (strcasecmp(pt->mime_type,refpt->mime_type)==0 && ... I'd guess that either elem->data is already NULL, refpt is NULL or the ->mime_type members are NULL, as those are not checked. Or they are uninitialized / corrupted. Unfortunately I'm completely unfamiliar with the codebase, so cannot be of more help. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=664808 https://bugzilla.novell.com/show_bug.cgi?id=664808#c1 --- Comment #1 from Stefan Seyfried <seife@novell.slipkontur.de> 2011-01-16 14:11:51 CET --- I built the latest devel snapshot 3.3.99.10 in obs://home:seife:testing/ (needs also current libosip2 and libeXosip2) and the problem is fixed there. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=664808 https://bugzilla.novell.com/show_bug.cgi?id=664808#c2 Stefan Seyfried <seife@novell.slipkontur.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kkeil@linux-pingi.de --- Comment #2 from Stefan Seyfried <seife@novell.slipkontur.de> 2011-01-16 15:36:01 CET --- I patched up linphone-3.3.2 to the latest GIT level of branch 3.3.x and this also fixes the issue. Unfortunately, the patch is ugly as it contains lots of unrelated stuff, but at least it comes from a "stable" branch :-) Submitted to network:telephony project, please accept and forward to FACTORY: 58427 State:new By:seife When:2011-01-16T15:31:33 submit: home:seife:testing/linphone332 -> network:telephony/linphone Descr: - Patch up to current git state of branch 3.3.x. Unfortunately, the git history is not helpful to create a changelog. But this fixes bnc#664808 (linphone segfaults at incoming call). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=664808 https://bugzilla.novell.com/show_bug.cgi?id=664808#c3 Stefan Seyfried <seife@novell.slipkontur.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|GNOME |Network AssignedTo|bnc-team-gnome@forge.provo. |bnc-team-screening@forge.pr |novell.com |ovo.novell.com --- Comment #3 from Stefan Seyfried <seife@novell.slipkontur.de> 2011-01-16 15:37:57 CET --- reset component, GNOME is wrong, use Network instead (package is in network:telephony after all) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=664808 https://bugzilla.novell.com/show_bug.cgi?id=664808#c4 Stefan Seyfried <seife@novell.slipkontur.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aj@novell.com, | |coolo@novell.com, | |ro@novell.com --- Comment #4 from Stefan Seyfried <seife@novell.slipkontur.de> 2011-01-16 15:39:02 CET --- add the people that touched the package in the last year to CC: -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=664808 https://bugzilla.novell.com/show_bug.cgi?id=664808#c wei wang <wewang@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wewang@novell.com AssignedTo|bnc-team-screening@forge.pr |allau@novell.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=664808 https://bugzilla.novell.com/show_bug.cgi?id=664808#c6 dong mao zhang <dmzhang@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |seife@novell.slipkontur.de --- Comment #6 from dong mao zhang <dmzhang@novell.com> 2011-01-21 05:04:42 UTC --- Is it possible to fix this specifically bug using a simple patch instead of this complicate huge patch? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=664808 https://bugzilla.novell.com/show_bug.cgi?id=664808#c7 Stefan Seyfried <seife@novell.slipkontur.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|seife@novell.slipkontur.de | --- Comment #7 from Stefan Seyfried <seife@novell.slipkontur.de> 2011-01-21 17:04:20 CET --- I have no idea. The problem is that upstream development seems not to be very structured, e.g. git commit history is a mess. I also did not find out what the exact cause is (ok, somehting is obviously NULL or corrupted), and I am not at all familiar with the codebase. So the first try was to check if it is fixed in the latest devel snapshot (it is), and after realizing that this needs updated libexosip and libosip I thought about something less intrusive. Then I checked out the last version of the 3.3.x branch, did a "make dist" and then diffed the contents of the tarball against the 3.3.2 tarball. That's the diff I added to the package which was accepted in network:telephony now. If you check the diff, it contains many small changes coming from the fact that autoconf generates different tarballs depending on the build host. A lot of changes are also to windows only code. But the rest is still too much for me to check which of the changes actually fixes the bug. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=664808 https://bugzilla.novell.com/show_bug.cgi?id=664808#c Stefan Seyfried <seife@novell.slipkontur.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|seife@novell.slipkontur.de | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=664808 https://bugzilla.novell.com/show_bug.cgi?id=664808#c9 --- Comment #9 from Stefan Seyfried <seife@novell.slipkontur.de> 2011-02-04 10:22:03 CET --- Will you submit my patched version to FACTORY / 11.4 or will we have to live with a totally broken linphone in 11.4? (In that case it would be better to be honest and drop it at least). 11.4 RC's are coming in soon. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=664808 https://bugzilla.novell.com/show_bug.cgi?id=664808#c10 --- Comment #10 from Stefan Seyfried <seife@novell.slipkontur.de> 2011-02-11 15:50:20 CET --- In order to not have a totally useless linphone package in 11.4, I have now submitted my patched package to FACTORY -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=664808 https://bugzilla.novell.com/show_bug.cgi?id=664808#c11 Li Bin <bili@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bili@novell.com Resolution| |FIXED --- Comment #11 from Li Bin <bili@novell.com> 2011-02-15 09:48:06 UTC --- Thanks a lot, it's already in the FACTORY. Close it now. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com