ports/77515: ZapTel crashes on some hardware

Lynk lynk at lynksys.net
Mon Feb 14 15:30:15 UTC 2005


>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 at 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:



More information about the freebsd-ports-bugs mailing list