http://qa.mandrakesoft.com/show_bug.cgi?id=4202

           Product: kernel
         Component: kernel
           Summary: /dev/isdninfo unreliable - can crash apps (from 8.2 to
                    cooker)
           Product: kernel
           Version: 2.4.21-pre2.1mdk
          Platform: PC
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: kernel
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Hi ! 
 
In http://archives.mandrakelinux.com/cooker/2003-01/msg00073.php I have  
reported a strange problem. I have finally found out what causes the problem.  
Other then I have written there,  this bug is triggered too with channelbundling  
and some providers.  
 
Ok. Whats causing the problem: 
 
/dev/isdninfo only produces output if the output can be wriiten all at once.  
If the buffer for reading is to small nothing is written. A lot of  
applications are using a buffer of 1024 bytes (I guess standard with fopen()  
calls).  
 
Mandrake Kernel defines in isdn.h a maximum of 32 devices and so 64 
channels. This leads very fast to exceed this 1024 byte limit as the output of  
/dev/isdninfois dependent on the ISDNMAXCHAN set in isdn.h . An strace 
shows that only the difference of HiSax vs. capidrv-1 leads to exceed the limit 
the current setup.  
----------------------------------------------------------- 
write(1, "idmap:\tcapidrv-1 capidrv-1 - - -"..., 1024idmap:     capidrv-1  
capidrv-1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - - - - - - - - - - - 
chmap:  0 1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1  
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1  
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 
drmap:  0 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1  
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1  
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 
usage:  131 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0  
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
flags:  1 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 
phone:  0191011 ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? 
???  
??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? 
???  
??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? 
???  
??? ??? ??? ??? ??? ??? ??? ??? ???

-- 
Configure bugmail: http://qa.mandrakesoft.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

Reply via email to