From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from felloff.net ([199.191.58.38]) by ttr; Sat Aug 9 11:42:33 EDT 2014 Message-ID: <85ce5f14cc01e339c5d77bcbbb37af15@felloff.net> List-ID: <9front.9front.org> X-Glyph: ➈ X-Bullshit: mobile content-addressed realtime interface Date: Sat, 9 Aug 2014 17:42:25 +0200 From: cinap_lenrek@felloff.net To: 9front@9front.org Subject: Re: [9front] stats(1) suicide In-Reply-To: <7DA01EF3-861B-4638-B9E7-A03D7933956D@ar.aichi-u.ac.jp> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit many thanks kenji. i see whats wrong now. the bug is in iobufinit(). xiop = ialloc(niob * RBUFSIZE, 0); niob is uint so we get 32bit result. iobufinit+0x114 0x000000000021ecd2 MOVL niob(SB),BP iobufinit+0x11b 0x000000000021ecd9 SHLL $0xe,BP /* multiplication by shift */ iobufinit+0x11e 0x000000000021ecdc MOVL BP,BP iobufinit+0x120 0x000000000021ecde MOVL $0x0,0x8(SP) iobufinit+0x128 0x000000000021ece6 CALL ialloc(SB) you must have raised fsmempercent so that it used more than 4g for buffers causing the overflow. i pushed fix now that does 64bit multiplications on amd64 so it should work now after pull and recompiling cwfs and kernel. -- cinap