Return-Path: X-Original-To: apmail-apr-bugs-archive@www.apache.org Delivered-To: apmail-apr-bugs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6369D11030 for ; Sat, 21 Jun 2014 06:15:17 +0000 (UTC) Received: (qmail 77875 invoked by uid 500); 21 Jun 2014 06:15:17 -0000 Delivered-To: apmail-apr-bugs-archive@apr.apache.org Received: (qmail 77842 invoked by uid 500); 21 Jun 2014 06:15:17 -0000 Mailing-List: contact bugs-help@apr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@apr.apache.org Delivered-To: mailing list bugs@apr.apache.org Received: (qmail 77832 invoked by uid 99); 21 Jun 2014 06:15:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jun 2014 06:15:17 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.115] (HELO eir.zones.apache.org) (140.211.11.115) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jun 2014 06:15:18 +0000 Received: by eir.zones.apache.org (Postfix, from userid 80) id 6D31D1DC0; Sat, 21 Jun 2014 06:14:53 +0000 (UTC) From: bugzilla@apache.org To: bugs@apr.apache.org Subject: [Bug 56654] New: apr_skiplist sometimes corrupts Date: Sat, 21 Jun 2014 06:14:53 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: APR X-Bugzilla-Component: APR X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: takashi.asfbugzilla@tks.st X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: bugs@apr.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=56654 Bug ID: 56654 Summary: apr_skiplist sometimes corrupts Product: APR Version: HEAD Hardware: All OS: All Status: NEW Severity: critical Priority: P2 Component: APR Assignee: bugs@apr.apache.org Reporter: takashi.asfbugzilla@tks.st apr_skiplist sometimes corrupts. apr_skiplist_insert uses apr_skiplist_alloc to allocate memory for apr_skiplistnode_t, but apr_skiplist_alloc sometimes returns uninitialized (un-memset-zeroed) one. apr_skiplist have a memory recycle system, so apr_skiplist_alloc first tries to get memory from it, but apr_skiplist_alloc doesn't clear memory. apr_skiplist_insert presume apr_skiplist_alloc returns zero cleared memory. How to reproduce: 1. insert objects to skiplist many times (about 10?) 2. remove all objects from the skiplist 3. insert objects to skiplist many times again then skiplist_print_struct shows like this: Skiplist Structure (height: 3) _(nil) 0xb3805e78 0xb3805f18 _0xb3806080 _0xb3806088 0xb3806088 _0xb38060c0 First line should contains NULL only, but it doesn't. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org For additional commands, e-mail: bugs-help@apr.apache.org