From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 44155 invoked by alias); 11 Sep 2018 13:54:07 -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 44003 invoked by uid 89); 11 Sep 2018 13:54:06 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=H*r:TCP, HTo:D*wfu.edu, Hx-languages-length:931, Tel X-HELO: brunni.mail.netestate.de Received: from brunni.mail.netestate.de (HELO brunni.mail.netestate.de) (81.209.177.48) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 11 Sep 2018 13:54:04 +0000 Received: (qmail 9566 invoked from network); 11 Sep 2018 13:54:01 -0000 Received: from localhost.netestate.de (HELO fiano.netestate.de) (127.0.0.1) by localhost.netestate.de with ESMTP; 11 Sep 2018 13:54:01 -0000 Received: from fiano.netestate.de (81.209.177.7) by brunni.mail.netestate.de with SMTP via TCP; Tue, 11 Sep 2018 15:54:01 +0200 Received: (qmail 1797 invoked by uid 503); 11 Sep 2018 13:54:01 -0000 Date: Tue, 11 Sep 2018 13:54:00 -0000 From: Michael Brunnbauer To: Allin Cottrell Cc: libc-help@sourceware.org Subject: Re: my strstr is broken Message-ID: <20180911135401.GA1745@netestate.de> References: <20180910144752.GA29636@netestate.de> <20180911102711.GA31876@netestate.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UlVJffcvxoiEqYs2" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-IsSubscribed: yes X-SW-Source: 2018-09/txt/msg00003.txt.bz2 --UlVJffcvxoiEqYs2 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 946 Hello Allin, On Tue, Sep 11, 2018 at 08:58:07AM -0400, Allin Cottrell wrote: > Since it's difficult to verify your long strings in email I tried the > following variant of your test: [...] > Compiled with gcc 8.2.1 20180831 (Arch) the output is >=20 > s =3D 0x7ffe8771ae51 > strcmp(n, s) =3D 0 I attached my code as file to my first mail. But your program works as well: s =3D (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 cu, brunni --=20 ++ Michael Brunnbauer ++ netEstate GmbH ++ Geisenhausener Stra=DFe 11a ++ 81379 M=FCnchen ++ Tel +49 89 32 19 77 80 ++ Fax +49 89 32 19 77 89=20 ++ E-Mail brunni@netestate.de ++ https://www.netestate.de/ ++ ++ Sitz: M=FCnchen, HRB Nr.142452 (Handelsregister B M=FCnchen) ++ USt-IdNr. DE221033342 ++ Gesch=E4ftsf=FChrer: Michael Brunnbauer, Franz Brunnbauer ++ Prokurist: Dipl. Kfm. (Univ.) Markus Hendel --UlVJffcvxoiEqYs2 Content-Type: application/pgp-signature; name="signature.asc" Content-length: 163 -----BEGIN PGP SIGNATURE----- iEYEARECAAYFAluXyPkACgkQvo+oDi22HrlALQCgpRyDqy328Kjd6cwGkl3/vTm+ hNQAoIEsAHIGP/LokZ6OV8iaXEXGbf0c =leAN -----END PGP SIGNATURE----- --UlVJffcvxoiEqYs2--