Return-Path: X-Original-To: apmail-corinthia-dev-archive@minotaur.apache.org Delivered-To: apmail-corinthia-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C450110A6D for ; Thu, 26 Feb 2015 21:01:18 +0000 (UTC) Received: (qmail 34233 invoked by uid 500); 26 Feb 2015 21:01:18 -0000 Delivered-To: apmail-corinthia-dev-archive@corinthia.apache.org Received: (qmail 34203 invoked by uid 500); 26 Feb 2015 21:01:18 -0000 Mailing-List: contact dev-help@corinthia.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@corinthia.incubator.apache.org Delivered-To: mailing list dev@corinthia.incubator.apache.org Received: (qmail 34191 invoked by uid 99); 26 Feb 2015 21:01:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Feb 2015 21:01:18 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gabriela.gibson@gmail.com designates 209.85.223.177 as permitted sender) Received: from [209.85.223.177] (HELO mail-ie0-f177.google.com) (209.85.223.177) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Feb 2015 21:00:53 +0000 Received: by iecrl12 with SMTP id rl12so21121640iec.2 for ; Thu, 26 Feb 2015 13:00:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=Wl9GkHIw2dRU8uDMrxbZGz1XBwJ8drFevnG3SChuojk=; b=ktcnl1Fd4vFALqdHCUwCUzuuwuhp2wb8St97MyWlcNmfLYU6a6uhYecA4rbMgK9KyT mQranZ9N4GWqOu5HCMY93IbLGkqsfeBgBTRLQqcd41dJz6a4csOp6XPQ+ZUZuhdVhyTT CPIchodmctQCYfZGsW7d5wtM+MAuZcydUdy4SUXgbr91bgKQshgNU+GhX6ojzCZfA9Gx OBGlxboxaErllYZUsCZxuxgjlYxZwqFFay8mu35t15gvOCFqzZaTgt8gukNIw7+i1Smr Y3BVb0dFdgSmM+vIPcUEcpVMF7Gd6ouc1ao9UfF7e/YRD8oUJFthW9NBI4XmI3NxkhQh 1UEQ== X-Received: by 10.107.157.195 with SMTP id g186mr14512906ioe.72.1424984406594; Thu, 26 Feb 2015 13:00:06 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.29.14 with HTTP; Thu, 26 Feb 2015 12:59:46 -0800 (PST) From: Gabriela Gibson Date: Thu, 26 Feb 2015 20:59:46 +0000 Message-ID: Subject: More on the xmalloc project To: dev Content-Type: multipart/alternative; boundary=001a11409acc5dbec50510040963 X-Virus-Checked: Checked by ClamAV on apache.org --001a11409acc5dbec50510040963 Content-Type: text/plain; charset=UTF-8 Hi Peter, (and everyone else!) I read your JIRA comment, and that's an interesting thing with the missing headerfiles. My build report[1] was OK so, maybe different compilers take headers in a different order? Regards the clang build, should/could we have this as a regular build option in the CMake file? Another thing to notice was that my test had quite a lot of malloc 0 calls, so whatever is run there, maybe it could do with a check, or perhaps xmalloc should check for if (!size) ... ? The html file I downloaded and tested to get all those zeros was here: http://stackoverflow.com/questions/8880603/loop-through-array-of-strings-in-bash-script cmd I used to test was: ./bin/dfutil -normalize ~/cor2/incubator-corinthia/loop-through-array-of-strings-in-bash-script.html Towards the end, there's a heap of 0 allocations. G Ps.: Currently trying to figure out the best way of testing the mallocs in the WrapperTest.c file. Will holler when/if I get stuck. [1] My build report: make [ 5%] Built target odf [ 7%] Built target api [ 38%] Built target core Scanning dependencies of target platform [ 38%] Building C object DocFormats/platform/CMakeFiles/platform.dir/src/Wrapper.c.o [ 66%] Built target platform [ 67%] Built target unittest [ 96%] Built target ooxml [ 97%] Built target latex Linking C static library ../lib/libDocFormats.a [ 97%] Built target DocFormats Linking C executable ../../../bin/dftest [ 97%] Built target dftest Linking C executable ../../../bin/dfconvert [ 98%] Built target dfconvert Linking C executable ../../../bin/dfutil [100%] Built target dfutil -- Visit my Coding Diary: http://gabriela-gibson.blogspot.com/ --001a11409acc5dbec50510040963--