Summary: | ASTERISK-15584: [patch] Calendar SIGSEGV with iCal | ||
Reporter: | Bc. Jan Kaláb (pitel) | Labels: | |
Date Opened: | 2010-02-05 04:22:33.000-0600 | Date Closed: | 2010-02-05 11:21:35.000-0600 |
Priority: | Critical | Regression? | No |
Status: | Closed/Complete | Components: | Resources/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) backtrace.txt ( 1) diff.txt | |
Description: | Asterisk SIGSEGV when I use iCal from Google Calendar. But it "only" happens on 3 of 4 machines I tested. ****** ADDITIONAL INFORMATION ****** Used Asterisk configuration: http://www.stud.fit.vutbr.cz/~xkalab00/ibp10:asterisk#konfigurace My desktop: It works here! 2 CPUs (Intel C2D E8400) uname -a: Linux mana3 2.6.31-18-generic ASTERISK-51-Ubuntu SMP Fri Jan 8 14:54:52 UTC 2010 x86_64 GNU/Linux Ubuntu 9.10 64bit libneon 0.28.6 libxml2 2.7.5 libical 0.43 libiksemel 1.2 My laptop: SIGSEGV 1 CPU (Intel Celeron M 420) uname -a: Linux manicka 2.6.31-18-generic-pae ASTERISK-51-Ubuntu SMP Fri Jan 8 16:13:23 UTC 2010 i686 GNU/Linux Ubuntu 9.10 32bit Same versions of libraries as above Virtual machine at work: SIGSEGV 1 CPU (Intel Xeon E5410) uname -a: Linux ipbx-ocs-test.ipex.cz 2.6.18-xen_3.1.0 #1 SMP Thu May 17 05:49:11 EDT 2007 i686 i686 i386 GNU/Linux CentOS libneon 0.25.5 libxml2 2.6.26 libical 0.43 libiksemel 1.2 My girlfriend's desktop: SIGSEGV 1 CPU (Intel Celeron 430) uname -a: Linux fellow 2.6.27-16-generic #1 SMP Tue Dec 1 17:56:54 UTC 2009 i686 GNU/Linux Ubuntu 8.10 32bit libneon 0.28.2 libxml2 2.6.32 libical 0.43 libiksemel 1.2 So my guess is something with CPU architecture or number of CPUs... I'll try to find some machine with more CPUs or 64bit to confirm it. P.S. Backtracing was done on virtual machine at work. | ||
Comments: | By: Terry Wilson (twilson) 2010-02-05 09:11:28.000-0600 What version is the neon library on each machine you tested? This looks like it is a crash in the neon library and not in Asterisk. If you haven't already, you might check to see if there are any updates for libneon that you could install. Then check to see if that fixes the issue. By: Bc. Jan Kaláb (pitel) 2010-02-05 09:17:38.000-0600 It's mentioned in comment: My desktop: 0.28.6 (works) My laptop: 0.28.6 (sigsegv) Virtual: 0.25.2 (sigsegv, backtrace) Girlfriend's desktop: 0.28.2 (sigsegv) Now I notice I made the backtrace on the oldest libneon... I'll redo it on my laptop. By: Terry Wilson (twilson) 2010-02-05 09:26:26.000-0600 Apparently I am blind. Sorry about that. :-) I suppose it could be that the 32-bit version of libneon has the bug, but that seems odd. So it looks like it happens almost immediately upon load? I'm pretty sure that you will bypass the crash that was posted by switching from https to http, if that is possible for testing purposes. By: Bc. Jan Kaláb (pitel) 2010-02-05 09:39:33.000-0600 It happens right after asterisk says "Asterisk Ready." and should display prompt. Now I tried https, and it works. So it crashes with plain http. By: Terry Wilson (twilson) 2010-02-05 10:05:16.000-0600 > Now I tried https, and it works. So it crashes with plain http. Ah, I see the problem. And it is code that I wrote. And it is a really stupid mistake. Attaching a patch for you to apply to verify that it fixes the issue. By: Bc. Jan Kaláb (pitel) 2010-02-05 10:23:15.000-0600 Now it works. At least on virtual machine. By: Digium Subversion (svnbot) 2010-02-05 11:20:25.000-0600 Repository: asterisk Revision: 244945 U trunk/res/res_calendar_caldav.c U trunk/res/res_calendar_exchange.c U trunk/res/res_calendar_icalendar.c ------------------------------------------------------------------------ r244945 | twilson | 2010-02-05 11:20:24 -0600 (Fri, 05 Feb 2010) | 9 lines Fix crash on 32-bit for users not using https (closes issue ASTERISK-15584) Reported by: pitel Patches: diff.txt uploaded by twilson (license 396) Tested by: twilson, pitel ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=244945 By: Digium Subversion (svnbot) 2010-02-05 11:21:35.000-0600 Repository: asterisk Revision: 244952 _U branches/1.6.2/ ------------------------------------------------------------------------ r244952 | twilson | 2010-02-05 11:21:34 -0600 (Fri, 05 Feb 2010) | 14 lines Blocked revisions 244945 via svnmerge ........ r244945 | twilson | 2010-02-05 11:20:24 -0600 (Fri, 05 Feb 2010) | 9 lines Fix crash on 32-bit for users not using https (closes issue ASTERISK-15584) Reported by: pitel Patches: diff.txt uploaded by twilson (license 396) Tested by: twilson, pitel ........ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=244952 |