Summary:ASTERISK-04939: Random garbage returned after output reading /proc/zaptel/*
Reporter:Dan_Lorusso (dlorusso)Labels:
Date Opened:2005-08-30 16:59:18Date Closed:2008-06-07 11:02:05
Versions:Frequency of
Description:When doing a "cat /proc/zaptel/1" I receive the expected output followed by random text or garbage.  I'm using the ztdummy driver on CentOS 4.1.


[root@pbx-test /]# cat /proc/zaptel/1                                                                                                                           Span 1: ZTDUMMY/1 "ZTDUMMY/1 1"                                                                                                                                  
#                                                                                                                                                               #
{rootot!(è°Øou can prelo!ÈUSERÀ Qone zones, to prevent them from getting                                                                                        Y
# overwritLOGNAMELOGNAMEsls8¨D!23.116.96 35739 ::ffff: 22ISSH_CONNECTION=::ffff: 35739 ::ffff: 22!¨àðSSH_TTYSSH_TTY¸Êp/dev/pts/0SSH_TTY=/dev/pts/0!(`pTERMTERM°Æ~IscreenTERM=screenc!°PWDPWDÀOSTTYPEX´âi686!àOSTYPEOSTYPEðÀ.5Óølinux-gnu!HMACHTYPEMACHTYPEHX(óXÖý!i686-redhat-linux-gnu!Àh  HOSTNAMEHOSTNAMEÐ ô}ð1000est!(`MAILCHECKMAILCHECKSw60!00.15(1)-releacat: /proc/zaptel/1: Bad address
Comments:By: Michael Jerris (mikej) 2005-08-30 17:06:09

Tested and unable to reproduce this (inclduing ztdummy).  Can you re-produce this on other boxes?

By: Dan_Lorusso (dlorusso) 2005-08-30 18:20:07

I duplicated the issue on another CentOS 4.1 system.  Note the "Bad address" error.  That always follows the garbage.

[root@spare1 zaptel]# uname -a
Linux spare1.logical.net 2.6.9-11.ELsmp #1 SMP Wed Jun 8 17:54:20 CDT 2005 i686 i686 i386 GNU/Linux
[root@spare1 zaptel]# cd
[root@spare1 ~]# cat /proc/zaptel/1
Span 1: ZTDUMMY/1 "ZTDUMMY/1 1"

`pP<8X<:àcat: /proc/zaptel/1: Bad address

By: Brian West (bkw918) 2005-08-30 20:03:31

recompile it.. i'm guessing you did this from an RPM?

By: Dan_Lorusso (dlorusso) 2005-08-30 20:39:54

This was freshly compiled on both systems.  I just downloaded the zaptel beta source, compiled with "make linux26 ; make install", edited udev files accordingly, rebooted, did "modprobe zaptel" and "modprobe ztdummy" and then "cat /proc/zaptel/1".

By: Dan_Lorusso (dlorusso) 2005-09-02 14:11:15

I've duplicated this problem on a Fedora Core 3 system.  Another thing to note is that none of my test systems contain any Digium hardware.  I've not tried the beta release on our production system with T1 cards installed.

[root@pbx-test zaptel-1.2.0-beta1]# uname -a
Linux pbx-test 2.6.12-1.1376_FC3 #1 Fri Aug 26 23:27:26 EDT 2005 i686 i686 i386 GNU/Linux

[root@pbx-test zaptel-1.2.0-beta1]# cat /proc/zaptel/1
Span 1: ZTDUMMY/1 "ZTDUMMY/1 1"

ð×      øÉ      xÞ      `Ê      °Í      Ì       ¨Ó      `×      hÌ      ðÆ      ØÒ      ¨a      0Ý      ¸       ØÏ                      8é      !È·     èô      `rootØï  ot!(à è      °ä      LOGNAMELOGNAME8à       à        sconfig haldaemon off !23.116.96 39842 ::ffff: 22ISSH_CONNECTION=::ffff: 39842 ::ffff: 22!¨Ç        àÇ      ðÇ      SSH_TTYSSH_TTY¸Ç        Ç       Êp/dev/pts/0SSH_TTY=/dev/pts/0!(È       `È      pÈ      TERMTERM°Å      8È      È        Æ~IscreenTERM=screen/root!°È    Þ       PWDPWDÀÈ        EHOSTTYPEË      XË      ´âi386!àË       Ì       OSTYPEOSTYPEðË  ÀË      .5Óølinux-gnu!HÌÌ
       MACHTYPEMACHTYPEHÃ      XÌ      (Ì      óXÖý!i386-redhat-linux-gnu!ÀÌ   hé      å       HOSTNAMEHOSTNAMEÐÌ       Ì      ô}1000est!(Í    `Í      MAILCHECKMAILCHECK8Í    Í        S       60!00.14(1)-releacat: /proc/zaptel/1: Bad address

By: Kevin P. Fleming (kpfleming) 2005-09-02 16:27:23

Fixed in CVS HEAD and CVS v1-0.

By: Digium Subversion (svnbot) 2008-06-07 11:02:01

Repository: dahdi
Revision: 755

U   trunk/zaptel.c

r755 | kpfleming | 2008-06-07 11:02:00 -0500 (Sat, 07 Jun 2008) | 2 lines

make 'cat /proc/zaptel/1' not fail with ztdummy loaded (issue ASTERISK-4939)



By: Digium Subversion (svnbot) 2008-06-07 11:02:05

Repository: dahdi
Revision: 756

U   branches/v1-0/zaptel.c

r756 | kpfleming | 2008-06-07 11:02:04 -0500 (Sat, 07 Jun 2008) | 3 lines

make 'cat /proc/zaptel/1' not fail with only ztdummy loaded (issue