From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 131024 invoked by alias); 11 Sep 2018 14:21:19 -0000 Mailing-List: contact libc-help-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: libc-help-owner@sourceware.org Received: (qmail 130678 invoked by uid 89); 11 Sep 2018 14:21:18 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=stock, Hx-languages-length:747, H*Ad:D*edu X-HELO: mail-oi0-f66.google.com Received: from mail-oi0-f66.google.com (HELO mail-oi0-f66.google.com) (209.85.218.66) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 11 Sep 2018 14:21:16 +0000 Received: by mail-oi0-f66.google.com with SMTP id c190-v6so47420994oig.6 for ; Tue, 11 Sep 2018 07:21:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=UvRKIPSEr5yX/EJo5fuRtmu9YCMECGPS+YAyCLCestI=; b=e/A/4TgqBAnjNy6O/sXeRpFWgY/fnhk2xvDPa061jgVKb8S01w7274fQ58S2R/pm13 r3cnRHlID3NGm0rYXQ+B6ByzjcPAGePmQUbbHaNrJbVpXImx63NkdBHN2BJ8KnaRr83W cgwecbuoMxUwO4Md2sbFroga4mOQoCCOcRUGJRRYLpE2eZ7ODkXQPFYXBfxU3h8vKOxc f7dPRGm82yuxEAtVkw+u7NJt1eFVWDVjF0M8/d/LsCBuT6yKkhj9TjnuabEwpqS9dZIO 0UWUmoLhWYgCqi2oGEws8Wl0RMhypCXjqPZIbKuJja1bEwd+rJboe9U4iasp9IH/h3d1 3Oaw== MIME-Version: 1.0 References: <20180910144752.GA29636@netestate.de> <20180911102711.GA31876@netestate.de> <20180911135401.GA1745@netestate.de> In-Reply-To: <20180911135401.GA1745@netestate.de> From: Siddhesh Poyarekar Date: Tue, 11 Sep 2018 14:21:00 -0000 Message-ID: Subject: Re: my strstr is broken To: brunni@netestate.de Cc: cottrell@wfu.edu, libc-help Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2018-09/txt/msg00004.txt.bz2 On Tue, 11 Sep 2018 at 19:24, Michael Brunnbauer wrote: > I attached my code as file to my first mail. But your program works as well: > > s = (nil) > Segmentation fault > > Some info about my environment: > > Linux Kernel 4.9.124 (recently updated from 3.16) > Glibc 2.28 > gcc 7.3.0 Is this a non-x86 architecture? I can reproduce this on the glibc 2.28 tag when I hack the ifunc resolver to ignore __strstr_sse2_unaligned and always use the stock __strstr. It looks like the test case is fixed on trunk, with[1], but I'll take a closer look at it later to confirm. Siddhesh [1] https://sourceware.org/git/?p=glibc.git;a=commit;h=284f42bc778e487dfd5dff5c01959f93b9e0c4f5 -- http://siddhesh.in