Bug 89176 - procinfo -m fails with more than 32 character devices
Summary: procinfo -m fails with more than 32 character devices
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: procinfo
Version: 9
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Karel Zak
QA Contact: Jay Turner
URL:
Whiteboard:
: 112533 (view as bug list)
Depends On:
Blocks: FC4Target
TreeView+ depends on / blocked
 
Reported: 2003-04-19 08:01 UTC by dellaric
Modified: 2015-01-08 00:04 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2004-12-17 10:51:11 UTC
Embargoed:


Attachments (Terms of Use)

Description dellaric 2003-04-19 08:01:01 UTC
Description of problem:

procinfo -m gives 'Segmentation fault' when there are more than 32 character
devices in /proc/devices

Version-Release number of selected component (if applicable):

procinfo-18-8

How reproducible:

always, when there are more than 32 character devices in /proc/devices

Steps to Reproduce:

> procinfo -a

or

> procinfo -m
    
Actual results:

Segmantation fault

Expected results:

it should work ...

Additional info:

I suggest to increase the values of MAX_CHRDEV (and maybe MAX_BLKDEV) in
procinfo.h from the current value of 32 to (for example) 64 (or more).

Comment 1 Mike A. Harris 2003-04-19 10:46:15 UTC
Arjan, what are the kernel defined limits for this?

Comment 2 Arjan van de Ven 2003-04-19 10:48:49 UTC
For 2.4 kernels there is a maximum of 256 character major numbers

Comment 3 Mike A. Harris 2004-01-13 16:47:40 UTC
*** Bug 112533 has been marked as a duplicate of this bug. ***

Comment 4 Karel Zak 2004-12-17 10:53:00 UTC
Fixed for FC-4.


Note You need to log in before you can comment on or make changes to this bug.