Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Dec 95 16:13:21 +0900
From:      Mihoko Tanaka <m_tanaka@pa.yokogawa.co.jp>
To:        freebsd-hackers@FreeBSD.org
Subject:   Re: ipcs bug
Message-ID:  <9512120713.AA08802@cabbage.pa.yokogawa.co.jp>
In-Reply-To: Mihoko Tanaka's message of Tue, 12 Dec 95 15:25:33 %2B0900 <9512120625.AA08759@cabbage.pa.yokogawa.co.jp>

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

   >>I found a trouble in 'ipcs' command.
   >>If SHMMNI is bigger than MSGMNI, ipcs occurs core dump.
   >>The 'ipcs' allocates the buffer for the shared memory
   >>information , but its size is wrong.
   >>
   >>
   >>		    kvm_read(kd, symbols[X_SHMSEGS].n_value, &shmsegs, sizeof(shmsegs));
   >>		    xshmids = malloc(sizeof(struct shmid_ds) * msginfo.msgmni);
   >>							       ~~~~~~~~~~~~~~~
   >>
   >>
   >>I think that it should be 'shminfo.msgmni' 
                                       ~~~~~~~~
				       'shmmni'
    				                 I'm sorry . 

--
Mihoko Tanaka 
<m_tanaka@pa.yokogawa.co.jp>     
	



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