From owner-freebsd-questions@FreeBSD.ORG Sun Apr 20 11:09:39 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6E064289 for ; Sun, 20 Apr 2014 11:09:39 +0000 (UTC) Received: from mail-qg0-x235.google.com (mail-qg0-x235.google.com [IPv6:2607:f8b0:400d:c04::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 333CE13D9 for ; Sun, 20 Apr 2014 11:09:39 +0000 (UTC) Received: by mail-qg0-f53.google.com with SMTP id f51so3060017qge.26 for ; Sun, 20 Apr 2014 04:09:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=GHMoEDW9rQw/xORbjt7ITn3+5+CJMGi4p/1R9XBOhI0=; b=bNt8zldjKKb1iXTgCHSOPR4xRKgQNczMxc57q9UpJuDuWzaooVjoDS8LZhKOiqHHm9 eNJBiSeMksLEgtL0CWecwsX/9utFYMEMd0waDgk3qbVADml/8CGQZCYFf/QnN/cWcOEb i9ufTKF4Ys1iQB55OxL87W9osG80EIcis6DahYFBDxy3Ni/iH3al0QJ3rUtuUc/7VFqj k6HH0z7h5ZxIFRVMF2zqD4zjQLbRv4ZKFIBPdB5ui85bQ44E8btz2hzWF1JApLBbPcV2 u0RVzAhxNqF69iS/3Cc10oYRUDdV/Q4ZX6RplmGbZiyv9fpWOXX/yIPDf0zy1ApLMnhL O8DA== MIME-Version: 1.0 X-Received: by 10.140.28.70 with SMTP id 64mr37138705qgy.36.1397992178274; Sun, 20 Apr 2014 04:09:38 -0700 (PDT) Sender: benlaurie@gmail.com Received: by 10.96.162.196 with HTTP; Sun, 20 Apr 2014 04:09:38 -0700 (PDT) Date: Sun, 20 Apr 2014 12:09:38 +0100 X-Google-Sender-Auth: t2tJPtwybTK68w4hogqkby1tNMY Message-ID: Subject: Valgrind and strlen From: Ben Laurie To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Apr 2014 11:09:39 -0000 I've been running valgrind and I get a lot of: ==20561== Invalid read of size 8 ==20561== at 0x207CC: ??? (in /libexec/ld-elf.so.1) ==20561== by 0x14198: ??? (in /libexec/ld-elf.so.1) ==20561== by 0x163A6: ??? (in /libexec/ld-elf.so.1) ==20561== by 0x16CB2: ??? (in /libexec/ld-elf.so.1) ==20561== by 0x179C6: ??? (in /libexec/ld-elf.so.1) ... I'm pretty sure this is caused by strlen(). I read somewhere that valgrind needs to replace strlen, but ld-elf.so doesn't have the symbol for it. Is this a bug? Or what?