From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7196 invoked by alias); 3 Sep 2004 13:23:28 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 7157 invoked from network); 3 Sep 2004 13:23:26 -0000 Received: from unknown (HELO smtp3.mail.be.easynet.net) (212.100.160.66) by sourceware.org with SMTP; 3 Sep 2004 13:23:26 -0000 Received: from 212-100-178-228.adsl.easynet.be ([212.100.178.228] helo=fft.be) by smtp3.mail.be.easynet.net with asmtp (Exim 4.41) id 1C3E2I-0000f5-2v for gcc-help@gcc.gnu.org; Fri, 03 Sep 2004 15:23:26 +0200 Message-ID: <41387052.1090406@fft.be> Date: Fri, 03 Sep 2004 13:23:00 -0000 From: Toon Knapen User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: segfault with std::allocator Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-09/txt/msg00015.txt.bz2 Following problem segfaults with gcc 3.2.2 inside the deallocate function. AFAICT however, allocation and deallocation of 0 number of objects are allowed ? #include int main() { std::allocator< int > int_alloc ; int* p = int_alloc.allocate( 0 ) ; int_alloc.deallocate( p, 0 ) ; return 0 ; }