Path: csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail From: Keith Thompson Newsgroups: gnu.bash.bug Subject: Re: Seg fault on "echo ~nosuchuser" Date: Mon, 1 Jun 2020 12:51:37 -0700 Lines: 35 Approved: bug-bash@gnu.org Message-ID: References: <0c4fcd5b-3ac6-ea8c-e537-b4bfc9215de4@case.edu> <81924c39-6cde-617b-c5a7-5e3605e0c3b8@case.edu> <6e7b8282-c41a-15b8-0dbf-9f811f6c3eee@case.edu> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: usenet.stanford.edu 1591041114 30110 209.51.188.17 (1 Jun 2020 19:51:54 GMT) X-Complaints-To: action@cs.stanford.edu Cc: bug-bash@gnu.org, Keith Thompson To: Chester Ramey Envelope-to: bug-bash@gnu.org 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=XC5119NzMnYI58Uw2F6n1vdcAeOkdiwJlrr/LBcLvU0=; b=AOsCtRB1Kob8PwDo6SoV9M279L7vVDbU07nZQ/nKgY4Z3mA4AiLpTLu9DA663T2/vz z5Aqslt43VumI/MrNbIYmx4kGd9pgVDaQD+4gsPbDZoKHKbris6FtKQ0ut8EUcS00PH7 dZNcQBFa1utPs0iCDmakHB960v7Q4ES5aBdFoYwB1xfUdcpeour2j5joNWwf9iK89gtZ WHuGSpUd/TjWpqr16f+b2BTSVdlBVT6GE0ayO1roTS+ZURHpVaz9+JnEvo/7nL1K9p7v Uau+YGsTU0Gd8OlqZXCoZ8z9S2YPaw5XASpasbTXloxMZK8oFLEJObyLhKHYthCp556c KuDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XC5119NzMnYI58Uw2F6n1vdcAeOkdiwJlrr/LBcLvU0=; b=pmDPSLyPr/TD9cLSIkDOyHp2PFcSKKSVoCYvg5a78Z876A1kftvoBHl6npV0y/gghO QaLnG0NNn6m/hH7DHgLfqaZazet+yL3qML0Jl7T4Q+of2HkMTMyH3h00YfLrwwzUOH2F NaRf4LlSv9ncdUa3zXDn3LaOcigpHgkQ6frJNy1z7BzH+5W5i75KPkMIjDUCID5YLKoj q1GG8A5yJhDgBIG++57jmDCnjD9WILBBQ9D2AhAv9HQfAYnQnCYLIRZ9VXGRZhZXo6iD DiX6aXVcuU6E/g6BigrMaKYIZQxmSCyShki60i+2eDcR1c3SvjCUlrrXsVJWwNkni+jq Uy+Q== X-Gm-Message-State: AOAM530zvcznQjwMOACyR8Y2JjR7QMI6rEyaVeHPS6nqL9osG3+Sw2oI op1VPq4z5NzIfjSJKgOZCcNG695J3iGpLrCUsrk= X-Google-Smtp-Source: ABdhPJy3bOa42nJ+gslexNw7j67bbTRwB14sjwHgya7Ka2xqqp0N7ToJTJvQNYbVybOL5ijS9hX6jObG8h9Q4myxjKQ= X-Received: by 2002:a17:906:7083:: with SMTP id b3mr20056874ejk.57.1591041110269; Mon, 01 Jun 2020 12:51:50 -0700 (PDT) In-Reply-To: <6e7b8282-c41a-15b8-0dbf-9f811f6c3eee@case.edu> Received-SPF: pass client-ip=2a00:1450:4864:20::642; envelope-from=keithsthompson@gmail.com; helo=mail-ej1-x642.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <0c4fcd5b-3ac6-ea8c-e537-b4bfc9215de4@case.edu> <81924c39-6cde-617b-c5a7-5e3605e0c3b8@case.edu> <6e7b8282-c41a-15b8-0dbf-9f811f6c3eee@case.edu> Xref: csiph.com gnu.bash.bug:16345 On Mon, Jun 1, 2020 at 12:12 PM Chet Ramey wrote: > > On 6/1/20 3:04 PM, Keith Thompson wrote: > > > OK, that's half of it. > > > > If you have a chance, can you verify that the problem exists with the > > bash-20200520 push? > > > > http://git.savannah.gnu.org/cgit/bash.git/snapshot/bash-ce1a3c07c4e17ed176edccd75892dfcf8242de60.tar.gz > > > > > > Confirmed, the problem does exist with that version. > > I finally found a case where 16-byte alignment for memory returned by > malloc() is required. But it's only on Linux systems that use systemd. > I bet it's trying to marshal arguments for IPC and uses instructions > that require 16-byte alignment. > > Thanks for your help verifying this. > > Chet You probably already know this, but I tested this with the last few versions on the devel branch. The problem occurs on versions up to and including commit ce1a3c07c4e17ed176edccd75892dfcf8242de60 "bash-20200520 snapshot". The problem does not occur on commit 37adc8b99d4c15dcb9e6582aa19a2ef61afb592f "bash-20200527 snapshot". Yes, my system uses systemd. Glad I could help.