Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Feb 2005 15:20:38 GMT
From:      Lynk <lynk@lynksys.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/77515: ZapTel crashes on some hardware 
Message-ID:  <200502141520.j1EFKc18032444@www.freebsd.org>
Resent-Message-ID: <200502141530.j1EFUEvB051723@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         77515
>Category:       ports
>Synopsis:       ZapTel crashes on some hardware
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 14 15:30:14 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Lynk
>Release:        5.3-RELEASE-p5
>Organization:
>Environment:
gbvipp01.sys.xxx.xxx 5.3-RELEASE-p5 FreeBSD 5.3-RELEASE-p5 #0: Thu Jan 27 01:50:01 UTC 2005     root@gbvipp01.sys.xxx.xxx:/usr/obj/usr/src/sy
s/GENERIC  i386
>Description:
Crashes associated with the ZapTel driver are occuring for some users, the machine will just lock up when either shutting asterisk or testing the zaptel interface details can be found here http://lists.digium.com/pipermail/asterisk-bsd/2005-February/000568.html and in other messages in that list.
>How-To-Repeat:
It only occurs on some machines, I have accesses to 3 machines running the same versions and config files and it only happens on one of them, other people have reported similar problems and similar lack of problems to the list,  zaptel cards in the three machine are identical.
>Fix:
Update the file /usr/ports/misc/zaptel/files/patch-zaptel::zaptel.c to include the following as documented in the above E:mail to the mailing list.

@@ -664,8 +669,13 @@

 static int schluffen(void *q)
 {
-       tsleep(q, PZERO | PCATCH, "schluffen", 0);
-       return(0);
+    int rc;
+
+         switch (rc=tsleep(q, PZERO | PCATCH, "schluffen", 0)) {
+            case    EINTR:
+            case ERESTART: return(rc);
+         }
+         return(0);
 }

 static __inline void calc_fcs(struct zt_chan *ss)
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502141520.j1EFKc18032444>