From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 6 Jan 2005 16:48:48 -1000 From: Tim Newsham To: 9fans@cse.psu.edu Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: [9fans] mallocalign? Topicbox-Message-UUID: 293083ce-eace-11e9-9e20-41e7f4b1d025 Hi, I'm wondering how much confidence there is in the mallocalign implementation. I'm seeing strange behavior in my code using it. I started seeing a crash when I changed a simple buffer size definition in one of my modules. On a hunch I replaced mallocalign with a macro that uses xspanalloc and the problem disappeared. Normally my first instinct would be that the implementation is solid and that I have a heap corruption issue somewhere, but I noticed that mallocalign is not used elsewhere in the kernel sources right now. I'm also fairly confident about the heap buffers that were directly affected by the size change (although corruption elsewhere isnt out of the question). Has this function seen much use yet? (meanwhile I'm still working under the assumption that my code trashed the heap somehow). Tim N.