public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/23960] [2.28 Regression]: New getdents{64} implementation breaks qemu-user
       [not found] <bug-23960-131@http.sourceware.org/bugzilla/>
@ 2019-05-01 20:33 ` chewi at gentoo dot org
  2020-09-17 21:42 ` tg at mirbsd dot de
                   ` (20 subsequent siblings)
  21 siblings, 0 replies; 22+ messages in thread
From: chewi at gentoo dot org @ 2019-05-01 20:33 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=23960

James Le Cuirot <chewi at gentoo dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |chewi at gentoo dot org

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45374-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu May 02 11:45:56 2019
Return-Path: <glibc-bugs-return-45374-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 108356 invoked by alias); 2 May 2019 11:45:56 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 108277 invoked by uid 48); 2 May 2019 11:45:52 -0000
From: "adhemerval.zanella at linaro dot org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug dynamic-link/24506] FAIL: elf/tst-pldd with --enable-hardcoded-path-in-tests
Date: Thu, 02 May 2019 11:45:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: dynamic-link
X-Bugzilla-Version: 2.30
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: adhemerval.zanella at linaro dot org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: adhemerval.zanella at linaro dot org
X-Bugzilla-Target-Milestone: 2.30
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-24506-131-M8oB0xCQQN@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24506-131@http.sourceware.org/bugzilla/>
References: <bug-24506-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00004.txt.bz2
Content-length: 587

https://sourceware.org/bugzilla/show_bug.cgi?id=24506

Adhemerval Zanella <adhemerval.zanella at linaro dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #12 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
Fixed by b2af6fb2ed23930c148bae382ca85fad4d1cf32e.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45375-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu May 02 11:52:15 2019
Return-Path: <glibc-bugs-return-45375-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 37673 invoked by alias); 2 May 2019 11:52:15 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 37588 invoked by uid 55); 2 May 2019 11:52:12 -0000
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug malloc/24216] Check for large bin list corruption when inserting unsorted chunk
Date: Thu, 02 May 2019 11:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: malloc
X-Bugzilla-Version: 2.29
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: cvs-commit at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: 2.30
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields:
Message-ID: <bug-24216-131-EB2qkoiVwu@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24216-131@http.sourceware.org/bugzilla/>
References: <bug-24216-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00005.txt.bz2
Content-length: 1036

https://sourceware.org/bugzilla/show_bug.cgi?id=24216

--- Comment #6 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The release/2.29/master branch has been updated by Arjun Shankar
<arjun@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=52b7cd6e9a701bb203023d56e84551943dc6a4c0

commit 52b7cd6e9a701bb203023d56e84551943dc6a4c0
Author: Adam Maris <amaris@redhat.com>
Date:   Thu Mar 14 16:51:16 2019 -0400

    malloc: Check for large bin list corruption when inserting unsorted chunk

    Fixes bug 24216. This patch adds security checks for bk and bk_nextsize
pointers
    of chunks in large bin when inserting chunk from unsorted bin. It was
possible
    to write the pointer to victim (newly inserted chunk) to arbitrary memory
    locations if bk or bk_nextsize pointers of the next large bin chunk
    got corrupted.

    (cherry picked from commit 5b06f538c5aee0389ed034f60d90a8884d6d54de)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45376-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu May 02 12:25:20 2019
Return-Path: <glibc-bugs-return-45376-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 1534 invoked by alias); 2 May 2019 12:25:20 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 1457 invoked by uid 48); 2 May 2019 12:25:17 -0000
From: "schwab@linux-m68k.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug dynamic-link/24484] RISC-V libraries can have read-write .dynamic sections, but ld.so loads them as read-only
Date: Thu, 02 May 2019 12:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: dynamic-link
X-Bugzilla-Version: 2.29
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: schwab@linux-m68k.org
X-Bugzilla-Status: REOPENED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: 2.30
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-24484-131-ZKtODx38bo@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24484-131@http.sourceware.org/bugzilla/>
References: <bug-24484-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00006.txt.bz2
Content-length: 570

https://sourceware.org/bugzilla/show_bug.cgi?id=24484

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #3 from Andreas Schwab <schwab@linux-m68k.org> ---
I think this needs to be reverted, and this bug should be closed as WONTFIX.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45377-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu May 02 12:29:59 2019
Return-Path: <glibc-bugs-return-45377-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 13634 invoked by alias); 2 May 2019 12:29:58 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 13358 invoked by uid 48); 2 May 2019 12:29:54 -0000
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug dynamic-link/24484] RISC-V libraries can have read-write .dynamic sections, but ld.so loads them as read-only
Date: Thu, 02 May 2019 12:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: dynamic-link
X-Bugzilla-Version: 2.29
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fweimer at redhat dot com
X-Bugzilla-Status: REOPENED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: 2.30
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields:
Message-ID: <bug-24484-131-3AvLC62Dyd@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24484-131@http.sourceware.org/bugzilla/>
References: <bug-24484-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00007.txt.bz2
Content-length: 435

https://sourceware.org/bugzilla/show_bug.cgi?id=24484

--- Comment #4 from Florian Weimer <fweimer at redhat dot com> ---
(In reply to Andreas Schwab from comment #2)
> Isn't that an ABI break?

Would you please explain the nature of the ABI break?  Thanks.

Do you expect tools to get confused because the dynamic section is now
relocated at run time?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45378-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu May 02 12:37:42 2019
Return-Path: <glibc-bugs-return-45378-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 44277 invoked by alias); 2 May 2019 12:37:42 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 44215 invoked by uid 48); 2 May 2019 12:37:39 -0000
From: "schwab@linux-m68k.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug dynamic-link/24484] RISC-V libraries can have read-write .dynamic sections, but ld.so loads them as read-only
Date: Thu, 02 May 2019 12:37:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: dynamic-link
X-Bugzilla-Version: 2.29
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: schwab@linux-m68k.org
X-Bugzilla-Status: REOPENED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: 2.30
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields:
Message-ID: <bug-24484-131-7BMbUC6Hks@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24484-131@http.sourceware.org/bugzilla/>
References: <bug-24484-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00008.txt.bz2
Content-length: 230

https://sourceware.org/bugzilla/show_bug.cgi?id=24484

--- Comment #5 from Andreas Schwab <schwab@linux-m68k.org> ---
It breaks libphobos in gcc 9.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45379-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu May 02 12:40:32 2019
Return-Path: <glibc-bugs-return-45379-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 60311 invoked by alias); 2 May 2019 12:40:32 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 60280 invoked by uid 55); 2 May 2019 12:40:29 -0000
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug malloc/24216] Check for large bin list corruption when inserting unsorted chunk
Date: Thu, 02 May 2019 12:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: malloc
X-Bugzilla-Version: 2.29
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: cvs-commit at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: 2.30
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields:
Message-ID: <bug-24216-131-O1Wl2GCC6l@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24216-131@http.sourceware.org/bugzilla/>
References: <bug-24216-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00009.txt.bz2
Content-length: 1036

https://sourceware.org/bugzilla/show_bug.cgi?id=24216

--- Comment #7 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The release/2.28/master branch has been updated by Arjun Shankar
<arjun@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=4a5e58827f2b6efa94ea50a9db5f3c861173837f

commit 4a5e58827f2b6efa94ea50a9db5f3c861173837f
Author: Adam Maris <amaris@redhat.com>
Date:   Thu Mar 14 16:51:16 2019 -0400

    malloc: Check for large bin list corruption when inserting unsorted chunk

    Fixes bug 24216. This patch adds security checks for bk and bk_nextsize
pointers
    of chunks in large bin when inserting chunk from unsorted bin. It was
possible
    to write the pointer to victim (newly inserted chunk) to arbitrary memory
    locations if bk or bk_nextsize pointers of the next large bin chunk
    got corrupted.

    (cherry picked from commit 5b06f538c5aee0389ed034f60d90a8884d6d54de)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45380-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu May 02 12:48:49 2019
Return-Path: <glibc-bugs-return-45380-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 72227 invoked by alias); 2 May 2019 12:48:43 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 72117 invoked by uid 48); 2 May 2019 12:48:33 -0000
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug dynamic-link/24484] RISC-V libraries can have read-write .dynamic sections, but ld.so loads them as read-only
Date: Thu, 02 May 2019 12:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: dynamic-link
X-Bugzilla-Version: 2.29
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fweimer at redhat dot com
X-Bugzilla-Status: REOPENED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: 2.30
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields:
Message-ID: <bug-24484-131-azHiMeC3t8@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24484-131@http.sourceware.org/bugzilla/>
References: <bug-24484-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00010.txt.bz2
Content-length: 339

https://sourceware.org/bugzilla/show_bug.cgi?id=24484

--- Comment #6 from Florian Weimer <fweimer at redhat dot com> ---
(In reply to Andreas Schwab from comment #5)
> It breaks libphobos in gcc 9.

In which way?  Does it try to parse the dynamic section?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45381-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu May 02 12:54:11 2019
Return-Path: <glibc-bugs-return-45381-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 99065 invoked by alias); 2 May 2019 12:54:11 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 99013 invoked by uid 48); 2 May 2019 12:54:07 -0000
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug dynamic-link/24484] RISC-V libraries can have read-write .dynamic sections, but ld.so loads them as read-only
Date: Thu, 02 May 2019 12:54:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: dynamic-link
X-Bugzilla-Version: 2.29
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fweimer at redhat dot com
X-Bugzilla-Status: REOPENED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: 2.30
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields:
Message-ID: <bug-24484-131-2MdRUY52uC@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24484-131@http.sourceware.org/bugzilla/>
References: <bug-24484-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00011.txt.bz2
Content-length: 1102

https://sourceware.org/bugzilla/show_bug.cgi?id=24484

--- Comment #7 from Florian Weimer <fweimer at redhat dot com> ---
Looks like this is expected to change, from
libphobos/libdruntime/gcc/sections/elf_shared.d:

  version (CRuntime_Musl)
      strtab = cast(const(char)*)(info.dlpi_addr + dyn.d_un.d_ptr); // relocate
  else version (linux)
  {
      // This might change in future glibc releases (after 2.29) as dynamic
sections
      // are not required to be read-only on RISC-V. This was copy & pasted
from MIPS
      // while upstreaming RISC-V support. Otherwise MIPS is the only arch
which sets
      // in glibc: #define DL_RO_DYN_SECTION 1
      version (RISCV_Any)
          strtab = cast(const(char)*)(info.dlpi_addr + dyn.d_un.d_ptr); //
relocate
      else
          strtab = cast(const(char)*)dyn.d_un.d_ptr;
  }

Looks like this code needs fixing on MIPS, too.

Is there an easy way to detect whether the dynamic segment has been relocated? 
Then we should just at the check to libphobos.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45382-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu May 02 13:11:30 2019
Return-Path: <glibc-bugs-return-45382-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 30593 invoked by alias); 2 May 2019 13:11:30 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 30549 invoked by uid 48); 2 May 2019 13:11:27 -0000
From: "schwab@linux-m68k.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug dynamic-link/24484] RISC-V libraries can have read-write .dynamic sections, but ld.so loads them as read-only
Date: Thu, 02 May 2019 13:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: dynamic-link
X-Bugzilla-Version: 2.29
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: schwab@linux-m68k.org
X-Bugzilla-Status: REOPENED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: 2.30
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields:
Message-ID: <bug-24484-131-oIzlpC0pzC@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24484-131@http.sourceware.org/bugzilla/>
References: <bug-24484-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00012.txt.bz2
Content-length: 243

https://sourceware.org/bugzilla/show_bug.cgi?id=24484

--- Comment #8 from Andreas Schwab <schwab@linux-m68k.org> ---
You cannot change it, the ship has sailed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45383-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu May 02 13:55:35 2019
Return-Path: <glibc-bugs-return-45383-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 7370 invoked by alias); 2 May 2019 13:55:35 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 7305 invoked by uid 48); 2 May 2019 13:55:32 -0000
From: "glaubitz at physik dot fu-berlin.de" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/23960] [2.28 Regression]: New getdents{64} implementation breaks qemu-user
Date: Thu, 02 May 2019 13:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: libc
X-Bugzilla-Version: 2.28
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: glaubitz at physik dot fu-berlin.de
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields:
Message-ID: <bug-23960-131-PygAwBZGh1@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-23960-131@http.sourceware.org/bugzilla/>
References: <bug-23960-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00013.txt.bz2
Content-length: 598

https://sourceware.org/bugzilla/show_bug.cgi?id=23960

--- Comment #45 from John Paul Adrian Glaubitz <glaubitz at physik dot fu-berlin.de> ---
(In reply to John Paul Adrian Glaubitz from comment #44)
> I have already tried building qtchooser with  -D_LARGEFILE64_SOURCE
> -D_LARGEFILE_SOURCE, but that didn't help so far.
> 
> Source of qtchoser is here: https://code.qt.io/cgit/qtsdk/qtchooser.git/

Okay, if anyone is reading this. Building qtchooser with -D_FILE_OFFSET_BITS=64
fixes the problem for me.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45384-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu May 02 13:58:27 2019
Return-Path: <glibc-bugs-return-45384-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 31890 invoked by alias); 2 May 2019 13:58:26 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 29923 invoked by uid 48); 2 May 2019 13:58:23 -0000
From: "adhemerval.zanella at linaro dot org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/23960] [2.28 Regression]: New getdents{64} implementation breaks qemu-user
Date: Thu, 02 May 2019 13:58:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: libc
X-Bugzilla-Version: 2.28
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: adhemerval.zanella at linaro dot org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields:
Message-ID: <bug-23960-131-Zm2CrwnjGp@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-23960-131@http.sourceware.org/bugzilla/>
References: <bug-23960-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00014.txt.bz2
Content-length: 455

https://sourceware.org/bugzilla/show_bug.cgi?id=23960

--- Comment #46 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
I think maybe an option would to just avoid to return EOVERFLOW, as Joseph has
a suggestion in comment #22, and make it clear in documentation the pitfalls
about using getdents in non-LFS mode for scenarios (as Florian described).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45385-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu May 02 21:32:36 2019
Return-Path: <glibc-bugs-return-45385-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 71816 invoked by alias); 2 May 2019 21:32:36 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 71775 invoked by uid 48); 2 May 2019 21:32:32 -0000
From: "egor at kobylkin dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug locale/2872] Transliteration Cyrillic -> ASCII fails
Date: Thu, 02 May 2019 21:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: locale
X-Bugzilla-Version: 2.3.6
X-Bugzilla-Keywords: glibc_2.29
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egor at kobylkin dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: egor at kobylkin dot com
X-Bugzilla-Target-Milestone: 2.30
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: bug_status target_milestone
Message-ID: <bug-2872-131-yr8FbV2uA7@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-2872-131@http.sourceware.org/bugzilla/>
References: <bug-2872-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00015.txt.bz2
Content-length: 630

https://sourceware.org/bugzilla/show_bug.cgi?id=2872

Egor Kobylkin <egor at kobylkin dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
   Target Milestone|2.29                        |2.30

--- Comment #59 from Egor Kobylkin <egor at kobylkin dot com> ---
Added as release blocker for 2.30 on suggestion of Siddhesh Poyarekar 
https://sourceware.org/ml/libc-alpha/2019-04/msg00566.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45386-listarch-glibc-bugs=sources.redhat.com@sourceware.org Fri May 03 07:41:23 2019
Return-Path: <glibc-bugs-return-45386-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 101469 invoked by alias); 3 May 2019 07:41:23 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 101424 invoked by uid 48); 3 May 2019 07:41:20 -0000
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/14176] mblen is erroneously marked warn_unused_result
Date: Fri, 03 May 2019 07:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: libc
X-Bugzilla-Version: 2.13
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fweimer at redhat dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-14176-131-Fps4TAjjPp@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-14176-131@http.sourceware.org/bugzilla/>
References: <bug-14176-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00016.txt.bz2
Content-length: 397

https://sourceware.org/bugzilla/show_bug.cgi?id=14176

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fweimer at redhat dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45388-listarch-glibc-bugs=sources.redhat.com@sourceware.org Fri May 03 07:47:06 2019
Return-Path: <glibc-bugs-return-45388-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 117662 invoked by alias); 3 May 2019 07:47:06 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 117596 invoked by uid 48); 3 May 2019 07:47:03 -0000
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/14176] mblen is erroneously marked warn_unused_result
Date: Fri, 03 May 2019 07:47:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: libc
X-Bugzilla-Version: 2.13
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fweimer at redhat dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: see_also
Message-ID: <bug-14176-131-2AGdxBc3Ou@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-14176-131@http.sourceware.org/bugzilla/>
References: <bug-14176-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00018.txt.bz2
Content-length: 479

https://sourceware.org/bugzilla/show_bug.cgi?id=14176

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://sourceware.org/bugz
                   |                            |illa/show_bug.cgi?id=24512

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45387-listarch-glibc-bugs=sources.redhat.com@sourceware.org Fri May 03 07:47:06 2019
Return-Path: <glibc-bugs-return-45387-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 117648 invoked by alias); 3 May 2019 07:47:06 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 117579 invoked by uid 48); 3 May 2019 07:47:03 -0000
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug string/24512] New: Implement current ISO C mblen
Date: Fri, 03 May 2019 07:47:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: string
X-Bugzilla-Version: unspecified
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fweimer at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-24512-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00017.txt.bz2
Content-length: 1070

https://sourceware.org/bugzilla/show_bug.cgi?id=24512

            Bug ID: 24512
           Summary: Implement current ISO C mblen
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: string
          Assignee: unassigned at sourceware dot org
          Reporter: fweimer at redhat dot com
  Target Milestone: ---

ISO C changed the behavior of mblen.  It is not required to reset the
conversion state at the beginning of each call, like this:

  mbtowc((wchar_t *)0, (const char *)0, 0);
  mbtowc((wchar_t *)0, s, n);

Older C standards left out the first call to mbtowc, not resetting the state.

POSIX still appears to require the old behavior, but it is expected that it
eventually adopts the current ISO C behavior due to future synchronization.

The new ISO C version will be thread safe, so it is a net improvement.  It
should also be marked warn_unused_result again (bug 14176).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45389-listarch-glibc-bugs=sources.redhat.com@sourceware.org Fri May 03 16:07:43 2019
Return-Path: <glibc-bugs-return-45389-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 53146 invoked by alias); 3 May 2019 16:07:43 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 53062 invoked by uid 48); 3 May 2019 16:07:39 -0000
From: "dflogeras2 at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/23960] [2.28 Regression]: New getdents{64} implementation breaks qemu-user
Date: Fri, 03 May 2019 16:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: libc
X-Bugzilla-Version: 2.28
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dflogeras2 at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-23960-131-aXUTJsZhvw@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-23960-131@http.sourceware.org/bugzilla/>
References: <bug-23960-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00019.txt.bz2
Content-length: 1284

https://sourceware.org/bugzilla/show_bug.cgi?id=23960

dflogeras2 at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dflogeras2 at gmail dot com

--- Comment #47 from dflogeras2 at gmail dot com ---
I'd gladly help testing this patch.  Those of us Gentoo ARM enthusiasts that
use qemu to build packages have hit this issue as well.  I agree, it would be
better if Qemu/kernel properly handled these cases, but until they do it might
be easier to revert back to previous incorrect behaviour.

I've noticed more than just Dash, but also shared-mime-info, as well as
Gentoo's libsandbox affected by this.  The latter wasn't as simple as enabling
LFS since it is a syscall wrapper itself.  It actually had to be patched where
it uses readdir() internally with _FILE_OFFSET_BITS=64.

It's not the packages I now know about that scare me, it's the potentially
dozens of unknowns that will mysteriously not work as intended because (again,
not glibc fault) no one bothered to check the return errno and catch the error
at the very least.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45390-listarch-glibc-bugs=sources.redhat.com@sourceware.org Sun May 05 07:10:10 2019
Return-Path: <glibc-bugs-return-45390-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 69532 invoked by alias); 5 May 2019 07:10:10 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 69503 invoked by uid 48); 5 May 2019 07:10:06 -0000
From: "wangbing6 at huawei dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug dynamic-link/24525] New: asan report memleak in add_dependency called by _dl_lookup_symbol_x
Date: Sun, 05 May 2019 07:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: dynamic-link
X-Bugzilla-Version: 2.27
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wangbing6 at huawei dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-24525-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00020.txt.bz2
Content-length: 4600

https://sourceware.org/bugzilla/show_bug.cgi?id=24525

            Bug ID: 24525
           Summary: asan report memleak in add_dependency called by
                    _dl_lookup_symbol_x
           Product: glibc
           Version: 2.27
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: dynamic-link
          Assignee: unassigned at sourceware dot org
          Reporter: wangbing6 at huawei dot com
  Target Milestone: ---

asan report memleak in add_dependency called by __dl_lookup_symbol_x:
==== callStack : Direct leak of 88 byte(s) in 1 object(s) allocated (1 objects)
from:
#0 0x7f77ba52ef in __interceptor_malloc
/usr1/code/gcc_asan_build/gcc-5.3.0/libsanitizer/asan/asan_malloc_linux.cc:62
#1 0x5574e380a7 in malloc (+0x1f0a7)
#2 0x7f7905129b in _dl_lookup_symbol_x (/lib64/ld-linux-aarch64.so.1+0xa29b)
#3 0x7f779b3cdb in do_sym (/lib64/libc.so.6+0x112cdb)
#4 0x7f77acd1ab in dlsym_doit (/lib64/libdl.so.2+0x11ab)
#5 0x7f779b4273 in _dl_catch_exception (/lib64/libc.so.6+0x113273)
#6 0x7f779b431f in __GI__dl_catch_error (/lib64/libc.so.6+0x11331f)
#7 0x7f77acd80f in _dlerror_run (/lib64/libdl.so.2+0x180f)
#8 0x7f77acd233 in dlsym (/lib64/libdl.so.2+0x1233)

and check the glibc source: _dl_lookup_symbol_x called add_dependency:

elf/dl-lookup.c Line:900
  /* We have to check whether this would bind UNDEF_MAP to an object
     in the global scope which was dynamically loaded.  In this case
     we have to prevent the latter from being unloaded unless the
     UNDEF_MAP object is also unloaded.  */
  if (__glibc_unlikely (current_value.m->l_type == lt_loaded)
      /* Don't do this for explicit lookups as opposed to implicit
         runtime lookups.  */
      && (flags & DL_LOOKUP_ADD_DEPENDENCY) != 0
      /* Add UNDEF_MAP to the dependencies.  */
      && add_dependency (undef_map, current_value.m, flags) < 0)
      /* Something went wrong.  Perhaps the object we tried to reference
         was just removed.  Try finding another definition.  */
      return _dl_lookup_symbol_x (undef_name, undef_map, ref,
                                  (flags & DL_LOOKUP_GSCOPE_LOCK)
                                  ? undef_map->l_scope : symbol_scope,
                                  version, type_class, flags, skip_map);

  /* The object is used.  */
  if (__glibc_unlikely (current_value.m->l_used == 0))
    current_value.m->l_used = 1;

  if (__glibc_unlikely (GLRO(dl_debug_mask)
                        & (DL_DEBUG_BINDINGS|DL_DEBUG_PRELINK)))
    _dl_debug_bindings (undef_name, undef_map, ref,
                        &current_value, version, type_class, protected);


and add_dependency called malloc in  elf/dl-lookup.c Line:711, without freeing
newp:


      /* Add the reference now.  */
      if (__glibc_unlikely (l_reldepsact >= undef_map->l_reldepsmax))
        {
          /* Allocate more memory for the dependency list.  Since this
             can never happen during the startup phase we can use
             `realloc'.  */
          struct link_map_reldeps *newp;
          unsigned int max
            = undef_map->l_reldepsmax ? undef_map->l_reldepsmax * 2 : 10;

#ifdef RTLD_PREPARE_FOREIGN_CALL
          RTLD_PREPARE_FOREIGN_CALL;
#endif

          newp = malloc (sizeof (*newp) + max * sizeof (struct link_map *));
          if (newp == NULL)
            {
              /* If we didn't manage to allocate memory for the list this is
                 no fatal problem.  We simply make sure the referenced object
                 cannot be unloaded.  This is semantically the correct
                 behavior.  */
              map->l_flags_1 |= DF_1_NODELETE;
              goto out;
            }
          else
            {
              if (l_reldepsact)
                memcpy (&newp->list[0], &undef_map->l_reldeps->list[0],
                        l_reldepsact * sizeof (struct link_map *));
              newp->list[l_reldepsact] = map;
              newp->act = l_reldepsact + 1;
              atomic_write_barrier ();
              void *old = undef_map->l_reldeps;
              undef_map->l_reldeps = newp;
              undef_map->l_reldepsmax = max;
              if (old)
                _dl_scope_free (old);
            }
        }
      else
        {
          undef_map->l_reldeps->list[l_reldepsact] = map;
          atomic_write_barrier ();
          undef_map->l_reldeps->act = l_reldepsact + 1;
        }

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45391-listarch-glibc-bugs=sources.redhat.com@sourceware.org Sun May 05 07:30:34 2019
Return-Path: <glibc-bugs-return-45391-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 88316 invoked by alias); 5 May 2019 07:30:11 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 88077 invoked by uid 48); 5 May 2019 07:30:02 -0000
From: "wangbing6 at huawei dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug dynamic-link/24525] asan report memleak in add_dependency called by _dl_lookup_symbol_x
Date: Sun, 05 May 2019 07:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: dynamic-link
X-Bugzilla-Version: 2.27
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wangbing6 at huawei dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-24525-131-ZoRZTms3Lj@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24525-131@http.sourceware.org/bugzilla/>
References: <bug-24525-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00021.txt.bz2
Content-length: 395

https://sourceware.org/bugzilla/show_bug.cgi?id=24525

wangbing <wangbing6 at huawei dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wangbing6 at huawei dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45392-listarch-glibc-bugs=sources.redhat.com@sourceware.org Sun May 05 22:33:58 2019
Return-Path: <glibc-bugs-return-45392-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 98106 invoked by alias); 5 May 2019 22:33:58 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 98068 invoked by uid 48); 5 May 2019 22:33:55 -0000
From: "slandden at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug math/24207] [powerpc] Enable sincos/sincosf in libmvec vector math library on POWER VSX
Date: Sun, 05 May 2019 22:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: math
X-Bugzilla-Version: unspecified
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: slandden at gmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-24207-131-5VY8WbARZI@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24207-131@http.sourceware.org/bugzilla/>
References: <bug-24207-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00022.txt.bz2
Content-length: 520

https://sourceware.org/bugzilla/show_bug.cgi?id=24207

Shawn Landden <slandden at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |slandden at gmail dot com

--- Comment #2 from Shawn Landden <slandden at gmail dot com> ---
I found this branch and will modify my patch to conform.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45393-listarch-glibc-bugs=sources.redhat.com@sourceware.org Mon May 06 10:15:39 2019
Return-Path: <glibc-bugs-return-45393-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 83680 invoked by alias); 6 May 2019 10:15:29 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 79418 invoked by uid 48); 6 May 2019 10:15:06 -0000
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug network/16181] Threade-safe implementation of innetgr and definition of struct __netgrent
Date: Mon, 06 May 2019 10:15:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: network
X-Bugzilla-Version: 2.18
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fweimer at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: short_desc
Message-ID: <bug-16181-131-XBza8yVrZs@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-16181-131@http.sourceware.org/bugzilla/>
References: <bug-16181-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00023.txt.bz2
Content-length: 1112

https://sourceware.org/bugzilla/show_bug.cgi?id=16181

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|innetgr is likely to miss   |Threade-safe implementation
                   |entries in nscd and other   |of innetgr and definition
                   |multi-thread contexts       |of struct __netgrent

--- Comment #1 from Florian Weimer <fweimer at redhat dot com> ---
The glibc NSS modules avoid this issue by using the struct __netgrent *
argument to store state.  The interface requires that the struct is zeroed by
the NSS framework, and initialization only happens in the NSS module if certain
values are not zero.

The main issue here is that the type struct __netgrent is private.  If this was
a public interface, an application could use that to store state information
across setnetgrent/getnetgrent_r/endnetgrent, just like the internal NSS
modules do.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45394-listarch-glibc-bugs=sources.redhat.com@sourceware.org Mon May 06 17:10:53 2019
Return-Path: <glibc-bugs-return-45394-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 93445 invoked by alias); 6 May 2019 17:10:52 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 91561 invoked by uid 48); 6 May 2019 17:10:49 -0000
From: "hd@os-cillation.de" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug build/24529] New: Static linking issue with getcontext/setcontext and PIC on ARM
Date: Mon, 06 May 2019 17:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: build
X-Bugzilla-Version: 2.29
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hd@os-cillation.de
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-24529-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00024.txt.bz2
Content-length: 1893

https://sourceware.org/bugzilla/show_bug.cgi?id=24529

            Bug ID: 24529
           Summary: Static linking issue with getcontext/setcontext and
                    PIC on ARM
           Product: glibc
           Version: 2.29
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: hd@os-cillation.de
                CC: carlos at redhat dot com
  Target Milestone: ---

Hello,

we observe the following issue statically linking in libc.a:

/usr/sbin/ld:
/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/8.3.0/../../../libc.a(getcontext.o):
in function `getcontext':
(.text+0x88): undefined reference to `_rtld_global_ro'
/usr/sbin/ld:
/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/8.3.0/../../../libc.a(setcontext.o):
in function `__startcontext':
(.text+0x80): undefined reference to `_rtld_global_ro'

This seems to be due our static pie enabled toolchain and ifdef PIC vs SHARED
confusion in

https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/arm/getcontext.S;h=e072c30fc7a64ffe723bbae52f6eb2736d999bd5;hb=HEAD#l53
https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/arm/getcontext.S;h=e072c30fc7a64ffe723bbae52f6eb2736d999bd5;hb=HEAD#l105

https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/arm/setcontext.S;h=3381b9486126d5492ddbddf79b599b35aab16eb3;hb=HEAD#l35
https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/arm/setcontext.S;h=3381b9486126d5492ddbddf79b599b35aab16eb3;hb=HEAD#l104

I guess that needs to be fixed like in
https://sourceware.org/git/?p=glibc.git;a=commit;h=3ee578690f35942f41926cc2d98e25b3d0d08c71
?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45395-listarch-glibc-bugs=sources.redhat.com@sourceware.org Mon May 06 18:21:10 2019
Return-Path: <glibc-bugs-return-45395-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 105341 invoked by alias); 6 May 2019 18:21:10 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 100434 invoked by uid 48); 6 May 2019 18:21:06 -0000
From: "palmer at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug dynamic-link/24484] RISC-V libraries can have read-write .dynamic sections, but ld.so loads them as read-only
Date: Mon, 06 May 2019 18:21:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: dynamic-link
X-Bugzilla-Version: 2.29
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: palmer at gcc dot gnu.org
X-Bugzilla-Status: REOPENED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: 2.30
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields:
Message-ID: <bug-24484-131-YI0vKHk5p3@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24484-131@http.sourceware.org/bugzilla/>
References: <bug-24484-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00025.txt.bz2
Content-length: 829

https://sourceware.org/bugzilla/show_bug.cgi?id=24484

--- Comment #9 from Palmer Dabbelt <palmer at gcc dot gnu.org> ---
Sorry, I'm still a bit confused about this being an ABI break.  If the ABI
doesn't require these sections to be read-only then isn't this an
implementation bug in glibc as opposed to an ABI break?  If I understand
correctly we were already producing these read-write sections in binutils, so
it's really a difference between binutils and glibc -- either we change
binutils and the ABI document to match what glibc is doing, or we change glibc
to match what binutils and the ABI document say.  In this case I'd prefer to
have the glibc change, as it seems like the more normal direction.

Am I misunderstanding something?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45396-listarch-glibc-bugs=sources.redhat.com@sourceware.org Mon May 06 18:37:55 2019
Return-Path: <glibc-bugs-return-45396-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 105402 invoked by alias); 6 May 2019 18:37:55 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 105355 invoked by uid 48); 6 May 2019 18:37:51 -0000
From: "carlos at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug locale/24442] FAIL: iconv/test-iconvconfig
Date: Mon, 06 May 2019 18:37:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: locale
X-Bugzilla-Version: 2.30
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: carlos at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields:
Message-ID: <bug-24442-131-MTZwKvj2Zo@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24442-131@http.sourceware.org/bugzilla/>
References: <bug-24442-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00026.txt.bz2
Content-length: 903

https://sourceware.org/bugzilla/show_bug.cgi?id=24442

--- Comment #7 from Carlos O'Donell <carlos at redhat dot com> ---
(In reply to Andreas Schwab from comment #6)
> I think the point of the test is to check that gconv-modules.cache stays
> binary compatible.

I take back what I said earlier, this test is always going to fail here, I
agree with Florian.

The intent of the test is to check for binary compatibility, but that's not
what is actually being tested for here. Instead we are checking to see if the
result is binary identical, and that's not the same. This test is therefore
susceptable to spurious failures (like this one) *but* it will catch issues
where we make mistakes, and so should stay, but for now the result of the test
is basically wrong until your system is rebuilt with the latest change.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45397-listarch-glibc-bugs=sources.redhat.com@sourceware.org Mon May 06 18:39:11 2019
Return-Path: <glibc-bugs-return-45397-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 106026 invoked by alias); 6 May 2019 18:39:11 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 105988 invoked by uid 48); 6 May 2019 18:39:08 -0000
From: "carlos at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug locale/24442] RFE: Make iconv/test-iconvconfig test gconv module ABI.
Date: Mon, 06 May 2019 18:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: locale
X-Bugzilla-Version: 2.30
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: carlos at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: short_desc
Message-ID: <bug-24442-131-xK2aHLI4ZL@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24442-131@http.sourceware.org/bugzilla/>
References: <bug-24442-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00027.txt.bz2
Content-length: 619

https://sourceware.org/bugzilla/show_bug.cgi?id=24442

Carlos O'Donell <carlos at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|FAIL:                       |RFE: Make
                   |iconv/test-iconvconfig      |iconv/test-iconvconfig test
                   |                            |gconv module ABI.

--- Comment #8 from Carlos O'Donell <carlos at redhat dot com> ---
Retitling this as an RFE.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45398-listarch-glibc-bugs=sources.redhat.com@sourceware.org Mon May 06 18:43:39 2019
Return-Path: <glibc-bugs-return-45398-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 19187 invoked by alias); 6 May 2019 18:43:39 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 19150 invoked by uid 48); 6 May 2019 18:43:35 -0000
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug dynamic-link/24484] RISC-V libraries can have read-write .dynamic sections, but ld.so loads them as read-only
Date: Mon, 06 May 2019 18:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: dynamic-link
X-Bugzilla-Version: 2.29
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fweimer at redhat dot com
X-Bugzilla-Status: REOPENED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: 2.30
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields:
Message-ID: <bug-24484-131-vK07K382V7@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24484-131@http.sourceware.org/bugzilla/>
References: <bug-24484-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00028.txt.bz2
Content-length: 654

https://sourceware.org/bugzilla/show_bug.cgi?id=24484

--- Comment #10 from Florian Weimer <fweimer at redhat dot com> ---
(In reply to Palmer Dabbelt from comment #9)
> Sorry, I'm still a bit confused about this being an ABI break.  If the ABI
> doesn't require these sections to be read-only then isn't this an
> implementation bug in glibc as opposed to an ABI break?

If the dynamic segment isn't read-only, glibc relocates it, so the address
values contained in it change.  I think this is the nature of the ABI break,
not the read-write vs read-only status as such.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45399-listarch-glibc-bugs=sources.redhat.com@sourceware.org Tue May 07 09:41:26 2019
Return-Path: <glibc-bugs-return-45399-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 117844 invoked by alias); 7 May 2019 09:41:26 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 117775 invoked by uid 48); 7 May 2019 09:41:21 -0000
From: "superherowolverine-sourcewareorg at yahoo dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug localedata/14085] en_NL: new locale (English language for the Netherlands)
Date: Tue, 07 May 2019 09:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: localedata
X-Bugzilla-Version: unspecified
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: superherowolverine-sourcewareorg at yahoo dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: WONTFIX
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields:
Message-ID: <bug-14085-131-PoPSvOZoMz@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-14085-131@http.sourceware.org/bugzilla/>
References: <bug-14085-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00029.txt.bz2
Content-length: 2950

https://sourceware.org/bugzilla/show_bug.cgi?id=14085

--- Comment #15 from Robertino <superherowolverine-sourcewareorg at yahoo dot com> ---
https://sourceware.org/bugzilla/show_bug.cgi?id=12624#c3 :
QUOTE
Accepting any such special-interest locale would open a flood.  There is no
reason to have such a locale in glibc.  The localedef utility is standardized
for a reason: locales can be compiled by anyone.

Just create a RPM or whatever which upon installation installs the files and
compiles the locale with localedef.
UNQUOTE

Adding "en_non-en" locales is not flooding.
Let's see what flooding is.

Somehow some people seem to forget that the EU (as we know it now) is a reality
since 1993. There are 24 official languages of the European Union. And 19 EU
member states. There is an internal single market in the EU where by law all
member states have agreed to act as one. Also, EU policies further the free
movement of **people**, goods, services and capital within this internal
market. Yes also people.
Has/Is anyone In The Netherlands working for a company that has Linux desktop
computers in their network and employs English speaking permies or English
speaking freelancers using those Linux computers?
And where more often than not one of the job requirements for native Dutch
speakers is : good (or better) written and spoken English. Because of the mix
of nationalities within the company. We are the USE (United States of Europe)
after all.
Has/Is anyone working for one of the many Japanese companies in The
Netherlands, where speaking and writing English is mandatory?

Has/Is anyone working for a company where Windows sysadmins keep Linux desktops
and laptops off their network and out the door because of locale issues?
Although staff would prefer to use Linux on the dersktop.

Some of the companies in The Netherlands that I worked as a freelance
contractor that had and still have many English speaking freelancers/permies :
ING Bank, ABN AMRO Bank, RABO Bank, MUFG Bank (nee Bank of Tokyo Mitsubishi
UFJ), Canon Europe BV, Kyocera Mita Europe, Cygnific BV (Air France-KLM's
worldwide support), XS4ALL BV (best ISP ever). They all refuse Linux desktops
for this locale issue.

ING Bank encountered major issues after they decided to build their new call
center software on Linux (server and desktop). As you guess the issues were
about locales on the desktop. Yes, they had to roll their own locales. I'm
still grateful that I did not work on that mope and grope project. That was in
late 2008.

You expect us to keep rinsing and repeating the ING effort almost 11 years
later? Almost 26 years after the beginning of the EU ?
Thanks for adding the Euro-sign though. It shaved 2 seconds off the work to
create a new locale. Hail Windows and Hail MacOS for putting in a genuinine
effort to conquer the desktop. Doh! Oops!

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45400-listarch-glibc-bugs=sources.redhat.com@sourceware.org Tue May 07 09:46:49 2019
Return-Path: <glibc-bugs-return-45400-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 6026 invoked by alias); 7 May 2019 09:46:49 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 6006 invoked by uid 48); 7 May 2019 09:46:46 -0000
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug string/24512] Implement current ISO C mblen
Date: Tue, 07 May 2019 09:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: string
X-Bugzilla-Version: unspecified
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fweimer at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: fweimer at redhat dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: assigned_to
Message-ID: <bug-24512-131-cnVCWjTYA4@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24512-131@http.sourceware.org/bugzilla/>
References: <bug-24512-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00030.txt.bz2
Content-length: 406

https://sourceware.org/bugzilla/show_bug.cgi?id=24512

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at sourceware dot org   |fweimer at redhat dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45401-listarch-glibc-bugs=sources.redhat.com@sourceware.org Tue May 07 13:36:18 2019
Return-Path: <glibc-bugs-return-45401-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 39678 invoked by alias); 7 May 2019 13:36:17 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 39624 invoked by uid 48); 7 May 2019 13:36:14 -0000
From: "wdijkstr at arm dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug malloc/24531] New: Malloc tunables give tcache assertion failures
Date: Tue, 07 May 2019 13:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: malloc
X-Bugzilla-Version: 2.26
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wdijkstr at arm dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-24531-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00031.txt.bz2
Content-length: 1099

https://sourceware.org/bugzilla/show_bug.cgi?id=24531

            Bug ID: 24531
           Summary: Malloc tunables give tcache assertion failures
           Product: glibc
           Version: 2.26
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: malloc
          Assignee: unassigned at sourceware dot org
          Reporter: wdijkstr at arm dot com
  Target Milestone: ---

There is no range check when setting
GLIBC_TUNABLES=glibc.malloc.tcache_count=N. Given the tcache->counts[] array
uses a char and there are no overflow checks on this array, the count can wrap
around and cause assertion failures. Eg.

export GLIBC_TUNABLES=glibc.malloc.tcache_count=4096
make bench
...
Running /build/glibc/benchtests/bench-strcoll
bench-strcoll: malloc.c:2949: tcache_get: Assertion `tcache->counts[tc_idx] >
0' failed.
Aborted

So the range of the tunable must be limited to the maximum range of the tcache
counts array, which would be 127 for a char.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45402-listarch-glibc-bugs=sources.redhat.com@sourceware.org Tue May 07 17:30:30 2019
Return-Path: <glibc-bugs-return-45402-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 52374 invoked by alias); 7 May 2019 17:30:29 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 52073 invoked by uid 48); 7 May 2019 17:30:17 -0000
From: "mika.fischer at zoopnet dot de" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug malloc/14581] memalign allocations are often not reused after free
Date: Tue, 07 May 2019 17:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: malloc
X-Bugzilla-Version: 2.15
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: mika.fischer at zoopnet dot de
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: carlos at redhat dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: cc attachments.created
Message-ID: <bug-14581-131-TfPudBCPHY@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-14581-131@http.sourceware.org/bugzilla/>
References: <bug-14581-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00032.txt.bz2
Content-length: 1085

https://sourceware.org/bugzilla/show_bug.cgi?id=14581

Mika Fischer <mika.fischer at zoopnet dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mika.fischer at zoopnet dot de

--- Comment #15 from Mika Fischer <mika.fischer at zoopnet dot de> ---
Created attachment 11763
  --> https://sourceware.org/bugzilla/attachment.cgi?id=11763&action=edit
Example case for image processing use-case

We hit this issue (or at least I assume it is this issue) in production.

Our use-case is that we have a loop with:
- two large aligned allocations (large temporary images)
- followed by a small unaligned allocation (the result)
- the large allocations are freed, the small result is kept

For some sizes (see attached program) this leads to glibc never freeing any
memory! The attached program demonstrates the issue. It runs out of memory in
seconds...

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45403-listarch-glibc-bugs=sources.redhat.com@sourceware.org Tue May 07 21:43:27 2019
Return-Path: <glibc-bugs-return-45403-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 4587 invoked by alias); 7 May 2019 21:43:27 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 4543 invoked by uid 48); 7 May 2019 21:43:23 -0000
From: "wilson at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/24532] New: conform/arpa/inet.h failures due to linux kernel 64-bit time_t changes
Date: Tue, 07 May 2019 21:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: libc
X-Bugzilla-Version: 2.30
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wilson at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-24532-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00033.txt.bz2
Content-length: 1997

https://sourceware.org/bugzilla/show_bug.cgi?id=24532

            Bug ID: 24532
           Summary: conform/arpa/inet.h failures due to linux kernel
                    64-bit time_t changes
           Product: glibc
           Version: 2.30
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: wilson at gcc dot gnu.org
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

As part of the 64-bit time_t y2038 changes, the linux kernel modified
asm-generic/socket.h to include linux/posix_types.h.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/include/uapi/asm-generic/socket.h?h=v5.1&id=a623a7a1a5670c25a16881f5078072d272d96b71

Unfortunately, linux/posix_types.h defines a structure with a field called
fds_bits.  It also includes asm-generic/posix_types.h which defines a structure
with a field called val.  The existence of these two structure fields is
causing me to see conform failures.

In the make check output I see
FAIL: conform/POSIX2008/arpa/inet.h/conform
FAIL: conform/POSIX2008/netdb.h/conform
FAIL: conform/POSIX2008/netinet/in.h/conform
FAIL: conform/POSIX2008/sys/socket.h/conform
which then repeats for four other standard versions for a total of 20 failures.

In conform/POSIX2008/arpa/inet.h/conform.out I see
    Namespace violation: "fds_bits"
    Namespace violation: "val"
FAIL: Namespace of <arpa/inet.h>
and similarly for the other header files.

I'm seeing these failures on a RISC-V Fedora Core 30 system, with 5.1.0 linux
kernel headers, building top of tree glibc sources, and running make check.

Maybe this is actually a linux kernel bug, but it is glibc make check that is
broken, so I thought I would start here.  I don't know how these linux/glibc
interaction problems are dealt with normally.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45404-listarch-glibc-bugs=sources.redhat.com@sourceware.org Tue May 07 22:55:46 2019
Return-Path: <glibc-bugs-return-45404-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 112620 invoked by alias); 7 May 2019 22:55:46 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 112576 invoked by uid 55); 7 May 2019 22:55:42 -0000
From: "joseph at codesourcery dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/24532] conform/arpa/inet.h failures due to linux kernel 64-bit time_t changes
Date: Tue, 07 May 2019 22:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: libc
X-Bugzilla-Version: 2.30
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: joseph at codesourcery dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-24532-131-bBJZ9hXDtj@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24532-131@http.sourceware.org/bugzilla/>
References: <bug-24532-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00034.txt.bz2
Content-length: 355

https://sourceware.org/bugzilla/show_bug.cgi?id=24532

--- Comment #1 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
I just chased this up on linux-api as a patch was posted there on 19 March 
but somehow failed to get into the 5.1 release.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45405-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 08 04:38:31 2019
Return-Path: <glibc-bugs-return-45405-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 75267 invoked by alias); 8 May 2019 04:38:30 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 72922 invoked by uid 48); 8 May 2019 04:38:26 -0000
From: "carlos at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug malloc/14581] memalign allocations are often not reused after free
Date: Wed, 08 May 2019 04:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: malloc
X-Bugzilla-Version: 2.15
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: carlos at redhat dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: carlos at redhat dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields:
Message-ID: <bug-14581-131-sLXEbklKQE@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-14581-131@http.sourceware.org/bugzilla/>
References: <bug-14581-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00035.txt.bz2
Content-length: 2195

https://sourceware.org/bugzilla/show_bug.cgi?id=14581

--- Comment #16 from Carlos O'Donell <carlos at redhat dot com> ---
(In reply to Mika Fischer from comment #15)
> Created attachment 11763 [details]
> Example case for image processing use-case
> 
> We hit this issue (or at least I assume it is this issue) in production.
> 
> Our use-case is that we have a loop with:
> - two large aligned allocations (large temporary images)
> - followed by a small unaligned allocation (the result)
> - the large allocations are freed, the small result is kept
> 
> For some sizes (see attached program) this leads to glibc never freeing any
> memory! The attached program demonstrates the issue. It runs out of memory
> in seconds...

Yes, it's the same case.

In your example the 16MiB aligned block needs worst case 16MiB + alignment +
MIN_SIZE, but memalign, after getting back that block, will split the leader
and header from the block and reuse them. If a long-lived allocation takes one
of leader/remainder blocks then we can no longer find enough space on a
subsequent memalign to reallocate the 16MiB + alignment + MIN_SIZE block, and
we end up having to extend the heap again by 16MiB + alignment + MIN_SIZE. This
continues every iteration, growing the heap by sizes which are just shy of the
needed space.

Your only workaround is the usual trick:
GLIBC_TUNABLES=glibc.malloc.mmap_threshold=10485760 strace -ff -ttt -o
loop2.log ./memalign-loop
Which avoids the dynamic thresholding which is moving the allocation from mmap
to the brk heap.

Looking over the code again, I think the problem is really this:

4698   /* Call malloc with worst case padding to hit alignment. */
4699 
4700   m = (char *) (_int_malloc (av, nb + alignment + MINSIZE));
4701 

We need to avoid this pessimistic allocation and scan the bins ourselves
looking for a suitably aligned allocation. It's there, and ready to be used,
but not if we lazily use _int_malloc instead of scanning the bins ourself
first. I think such a scan will yield the best results overall and be straight
forward to implement.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45406-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 08 05:40:49 2019
Return-Path: <glibc-bugs-return-45406-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 48512 invoked by alias); 8 May 2019 05:40:49 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 48361 invoked by uid 48); 8 May 2019 05:40:45 -0000
From: "maiku.fabian at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug localedata/24535] New: Update locale data to Unicode 12.1.0
Date: Wed, 08 May 2019 05:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: localedata
X-Bugzilla-Version: 2.31
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: maiku.fabian at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-24535-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00036.txt.bz2
Content-length: 786

https://sourceware.org/bugzilla/show_bug.cgi?id=24535

            Bug ID: 24535
           Summary: Update locale data to Unicode 12.1.0
           Product: glibc
           Version: 2.31
            Status: NEW
          Severity: normal
          Priority: P2
         Component: localedata
          Assignee: unassigned at sourceware dot org
          Reporter: maiku.fabian at gmail dot com
                CC: libc-locales at sourceware dot org
  Target Milestone: ---

Now that Unicode 12.1.0 is released, the locale data that was updated for
Unicode 12.0.0 (bug 24307) should be updated to 12.1.0

http://blog.unicode.org/2019/05/unicode-12-1-en.html

https://www.unicode.org/Public/12.1.0/ucd/

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45407-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 08 06:35:24 2019
Return-Path: <glibc-bugs-return-45407-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 42860 invoked by alias); 8 May 2019 06:35:24 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 42822 invoked by uid 48); 8 May 2019 06:35:21 -0000
From: "maiku.fabian at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug localedata/24535] Update locale data to Unicode 12.1.0
Date: Wed, 08 May 2019 06:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: localedata
X-Bugzilla-Version: 2.30
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: maiku.fabian at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: version
Message-ID: <bug-24535-131-jm2qopFUFZ@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24535-131@http.sourceware.org/bugzilla/>
References: <bug-24535-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00037.txt.bz2
Content-length: 377

https://sourceware.org/bugzilla/show_bug.cgi?id=24535

Mike FABIAN <maiku.fabian at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|2.31                        |2.30

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45408-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 08 06:36:06 2019
Return-Path: <glibc-bugs-return-45408-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 58871 invoked by alias); 8 May 2019 06:36:06 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 57177 invoked by uid 48); 8 May 2019 06:36:03 -0000
From: "maiku.fabian at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug localedata/24535] Update locale data to Unicode 12.1.0
Date: Wed, 08 May 2019 06:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: localedata
X-Bugzilla-Version: 2.30
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: maiku.fabian at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-24535-131-n7yBKCcctq@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24535-131@http.sourceware.org/bugzilla/>
References: <bug-24535-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00038.txt.bz2
Content-length: 397

https://sourceware.org/bugzilla/show_bug.cgi?id=24535

Mike FABIAN <maiku.fabian at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |carlos at redhat dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45409-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 08 09:57:46 2019
Return-Path: <glibc-bugs-return-45409-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 83479 invoked by alias); 8 May 2019 09:57:46 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 83448 invoked by uid 48); 8 May 2019 09:57:43 -0000
From: "maiku.fabian at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug localedata/24535] Update locale data to Unicode 12.1.0
Date: Wed, 08 May 2019 09:57:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: localedata
X-Bugzilla-Version: 2.30
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: maiku.fabian at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-24535-131-AONHAkQVce@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24535-131@http.sourceware.org/bugzilla/>
References: <bug-24535-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00039.txt.bz2
Content-length: 356

https://sourceware.org/bugzilla/show_bug.cgi?id=24535

--- Comment #1 from Mike FABIAN <maiku.fabian at gmail dot com> ---
Created attachment 11766
  --> https://sourceware.org/bugzilla/attachment.cgi?id=11766&action=edit
0001-Bug-24535-Update-to-Unicode-12.1.0.patch

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45410-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 08 12:41:15 2019
Return-Path: <glibc-bugs-return-45410-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 102291 invoked by alias); 8 May 2019 12:41:15 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 102248 invoked by uid 48); 8 May 2019 12:41:12 -0000
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug manual/24512] Document mblen divergence from C11/C17
Date: Wed, 08 May 2019 12:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: manual
X-Bugzilla-Version: unspecified
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fweimer at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: fweimer at redhat dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: cc component short_desc
Message-ID: <bug-24512-131-cNlkcATb9C@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24512-131@http.sourceware.org/bugzilla/>
References: <bug-24512-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00040.txt.bz2
Content-length: 877

https://sourceware.org/bugzilla/show_bug.cgi?id=24512

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mtk.manpages at gmail dot com
          Component|string                      |manual
            Summary|Implement current ISO C     |Document mblen divergence
                   |mblen                       |from C11/C17

--- Comment #1 from Florian Weimer <fweimer at redhat dot com> ---
This is a bug in the C11 and C17 standards.  If implemented as indicated, mblen
will be useless with state-dependent encodings.

If we want a thread-safe version of mblen, we should consider another approach.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45411-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 08 12:41:26 2019
Return-Path: <glibc-bugs-return-45411-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 102589 invoked by alias); 8 May 2019 12:41:26 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 102545 invoked by uid 48); 8 May 2019 12:41:23 -0000
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug manual/24512] Document mblen divergence from C11/C17
Date: Wed, 08 May 2019 12:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: manual
X-Bugzilla-Version: unspecified
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fweimer at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: assigned_to
Message-ID: <bug-24512-131-oNxBnDhdK7@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24512-131@http.sourceware.org/bugzilla/>
References: <bug-24512-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00041.txt.bz2
Content-length: 413

https://sourceware.org/bugzilla/show_bug.cgi?id=24512

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|fweimer at redhat dot com          |unassigned at sourceware dot org

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45412-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 08 13:37:13 2019
Return-Path: <glibc-bugs-return-45412-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 4416 invoked by alias); 8 May 2019 13:37:13 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 4382 invoked by uid 48); 8 May 2019 13:37:09 -0000
From: "nsz at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug build/24537] New: nptl/tst-eintr1 test case can hit task limits on some kernels and break testing
Date: Wed, 08 May 2019 13:37:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: build
X-Bugzilla-Version: 2.28
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nsz at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-24537-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00042.txt.bz2
Content-length: 1713

https://sourceware.org/bugzilla/show_bug.cgi?id=24537

            Bug ID: 24537
           Summary: nptl/tst-eintr1 test case can hit task limits on some
                    kernels and break testing
           Product: glibc
           Version: 2.28
            Status: NEW
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: nsz at gcc dot gnu.org
                CC: carlos at redhat dot com
  Target Milestone: ---

linux does not account the number of running tasks reliably

https://bugzilla.kernel.org/show_bug.cgi?id=154011

this can cause the nptl/tst-eintr1 test to hit task limits
set for the session or process, symptoms in the build logs:

/bin/sh: 2: Cannot fork

or

make[2]: fork: Resource temporarily unavailable

or in kernel logs:

cgroup: fork rejected by pids controller in /user.slice/user-1002.slice

and /sys/fs/cgroup/pids/user.slice/user-1002.slice/pids.events != 0

increasing the cgroup task limit sometimes helps

  systemctl set-property user-1002.slice TasksMax=20000

or

  echo 20000 >/sys/fs/cgroup/pids/user.slice/user-1002.slice/pids.max

but does not fix the problem: the futex wait in
pthread_join returns before the kernel decrements
the task counter so a pthread_create/join loop
can keep increasing the task counter and hit the
task limit eventually.

this has been seen at least on a linux 4.6 fedora
system and linux 4.15 aarch64 ubuntu system.

on a correct kernel the test should succeed with
task limit set to 25.

this can cause "make check" to fail early since
make cannot fork.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45413-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 08 17:47:51 2019
Return-Path: <glibc-bugs-return-45413-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 22200 invoked by alias); 8 May 2019 17:47:50 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 22177 invoked by uid 48); 8 May 2019 17:47:47 -0000
From: "wilson at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/24532] conform/arpa/inet.h failures due to linux kernel 64-bit time_t changes
Date: Wed, 08 May 2019 17:47:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: libc
X-Bugzilla-Version: 2.30
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wilson at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-24532-131-ConTXV11Rg@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24532-131@http.sourceware.org/bugzilla/>
References: <bug-24532-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00043.txt.bz2
Content-length: 414

https://sourceware.org/bugzilla/show_bug.cgi?id=24532

--- Comment #2 from Jim Wilson <wilson at gcc dot gnu.org> ---
Thanks for the pointer to the linux-api mailing list.  I found the patch
discussion there.  That patch should fix my problem.  I also downloaded a
linux-5.1 tarball and double checked, I don't see the patch there.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45414-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 08 18:10:16 2019
Return-Path: <glibc-bugs-return-45414-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 51028 invoked by alias); 8 May 2019 18:10:16 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 50979 invoked by uid 48); 8 May 2019 18:10:11 -0000
From: "wilson at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug dynamic-link/24484] RISC-V libraries can have read-write .dynamic sections, but ld.so loads them as read-only
Date: Wed, 08 May 2019 18:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: dynamic-link
X-Bugzilla-Version: 2.29
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wilson at gcc dot gnu.org
X-Bugzilla-Status: REOPENED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: 2.30
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-24484-131-mCU4DFjIVr@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24484-131@http.sourceware.org/bugzilla/>
References: <bug-24484-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00044.txt.bz2
Content-length: 2861

https://sourceware.org/bugzilla/show_bug.cgi?id=24484

Jim Wilson <wilson at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wilson at gcc dot gnu.org

--- Comment #11 from Jim Wilson <wilson at gcc dot gnu.org> ---
The problem here is that the D language runtime library libphobos has some code
identical to the D_PTR macro in sysdeps/generic/ldsodefs.h which depends on the
value of DL_RO_DYN_SECTION.  This is a static compile time check in the
libphobos code.  So changing the value of DL_RO_DYN_SECTION breaks the D
language support.  We can make the same change to libphobos, but that leaves us
in the situation where a new libphobos won't work with an old glibc, and an old
libphobos won't work with a new glibc.  That is the ABI break.

There is no RISC-V D language support before the gcc-9.1.0 release, which
happened about a week ago, so we have some time to fix this if we are quick. 
We can just say that RISC-V D isn't supported in 9.1 and requires 9.2 for
instance.  This can be fixed if libphobos is changed to use a dynamic run-time
check for the DL_RO_DYN_SECTION value.  But this looks complicated.  We can't
use DL_RO_DYN_SECTION or D_PTR because those are glibc internal macros, and you
can't include a C language header file in a D language source file anyways. 
The code in elf_get_dynamic_info() in elf/get-dynamic-info.h that uses
DL_RO_DYN_SECTION doesn't set any flags to indicate whether it did anything or
not.  So there doesn't seem to be anything we can easily check there.  We have
the phdrs, but the dynamic section was already read/write from the beginning,
so that doesn't help.  It seems that we need to add a new feature to glibc so
that the application can query whether the target has DL_RO_DYN_SECTION set or
not, which is returned via a function not a macro because we can't use C header
files, and then modify libphobos to use the new feature, in a failsafe way,
e.g. if the feature doesn't exist then we use the old scheme where MIPS and
RISC-V have DL_RO_DYN_SECTION set, and if the feature exists, then we use the
new scheme of checking the feature value to see if the target has
DL_RO_DYN_SECTION set.  And we need to do all of this before the gcc-9.2
release.

This seems like a awful lot of trouble for what appears to be an minor feature.
 There is also the possibility that there may be other programs or libraries
that have the same problem, and we just haven't noticed yet.  The simpler
solution is to just accept that we can't change the value of DL_RO_DYN_SECTION
unless we are doing a major ABI break for some other reason.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45415-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu May 09 00:18:52 2019
Return-Path: <glibc-bugs-return-45415-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 97139 invoked by alias); 9 May 2019 00:18:52 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 97066 invoked by uid 48); 9 May 2019 00:18:43 -0000
From: "slandden at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug math/24208] [powerpc] Enable log/logf in libmvec vector math library on POWER VSX
Date: Thu, 09 May 2019 00:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: math
X-Bugzilla-Version: unspecified
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: slandden at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-24208-131-upEI0rlWo0@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24208-131@http.sourceware.org/bugzilla/>
References: <bug-24208-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00045.txt.bz2
Content-length: 698

https://sourceware.org/bugzilla/show_bug.cgi?id=24208

Shawn Landden <slandden at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |slandden at gmail dot com

--- Comment #1 from Shawn Landden <slandden at gmail dot com> ---
As I discussed here: https://sourceware.org/ml/libc-alpha/2019-05/msg00192.html

Two attempts were not able to increase performance with a vector log or logf,
(I suspect) for lack of a vector gather instruction in ppc64el ISA 3.0.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45416-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu May 09 14:37:50 2019
Return-Path: <glibc-bugs-return-45416-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 122614 invoked by alias); 9 May 2019 14:37:50 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 118142 invoked by uid 48); 9 May 2019 14:37:46 -0000
From: "mark at klomp dot org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug dynamic-link/24476] __libc_freeres triggers bad free in libdl if dlerror was not used
Date: Thu, 09 May 2019 14:37:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: dynamic-link
X-Bugzilla-Version: 2.28
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mark at klomp dot org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: carlos at redhat dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-24476-131-POnGkvEJ2C@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24476-131@http.sourceware.org/bugzilla/>
References: <bug-24476-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00046.txt.bz2
Content-length: 1459

https://sourceware.org/bugzilla/show_bug.cgi?id=24476

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-05-09
                 CC|                            |mark at klomp dot org
     Ever confirmed|0                           |1

--- Comment #2 from Mark Wielaard <mark at klomp dot org> ---
Proposed fix. Only free the memory if __libc_once (once, init) has been called.

diff --git a/dlfcn/dlerror.c b/dlfcn/dlerror.c
index 2737658..41a41ee 100644
--- a/dlfcn/dlerror.c
+++ b/dlfcn/dlerror.c
@@ -230,13 +230,16 @@ free_key_mem (void *mem)
 void
 __dlerror_main_freeres (void)
 {
-  void *mem;
-  /* Free the global memory if used.  */
-  check_free (&last_result);
-  /* Free the TSD memory if used.  */
-  mem = __libc_getspecific (key);
-  if (mem != NULL)
-    free_key_mem (mem);
+  if (__libc_once_get (once))
+    {
+      void *mem;
+      /* Free the global memory if used.  */
+      check_free (&last_result);
+      /* Free the TSD memory if used.  */
+      mem = __libc_getspecific (key);
+      if (mem != NULL)
+       free_key_mem (mem);
+    }
 }

 struct dlfcn_hook *_dlfcn_hook __attribute__((nocommon));

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45417-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu May 09 15:56:50 2019
Return-Path: <glibc-bugs-return-45417-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 67784 invoked by alias); 9 May 2019 15:56:50 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 65728 invoked by uid 55); 9 May 2019 15:56:47 -0000
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug build/24537] nptl/tst-eintr1 test case can hit task limits on some kernels and break testing
Date: Thu, 09 May 2019 15:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: build
X-Bugzilla-Version: 2.28
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: cvs-commit at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-24537-131-mKypWpL6d2@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24537-131@http.sourceware.org/bugzilla/>
References: <bug-24537-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00047.txt.bz2
Content-length: 877

https://sourceware.org/bugzilla/show_bug.cgi?id=24537

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Szabolcs Nagy <nsz@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=18aa51ee0d1a9c555d9fee93441cd075cd9b5975

commit 18aa51ee0d1a9c555d9fee93441cd075cd9b5975
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
Date:   Wed May 8 14:50:47 2019 +0100

    Move nptl/tst-eintr1 to xtests

    Don't run nptl/tst-eintr1 by normal make check because it can spuriously
    break testing on various linux kernels. (Currently this affects the
    aarch64 glibc buildbot machine which regularly fails and loses test
    results.)

        [BZ #24537]
        * nptl/Makefile: Move tst-eintr1 to xtests.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45418-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu May 09 16:27:12 2019
Return-Path: <glibc-bugs-return-45418-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 8360 invoked by alias); 9 May 2019 16:27:12 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 8329 invoked by uid 48); 9 May 2019 16:27:09 -0000
From: "nsz at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug build/24537] nptl/tst-eintr1 test case can hit task limits on some kernels and break testing
Date: Thu, 09 May 2019 16:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: build
X-Bugzilla-Version: 2.28
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nsz at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: 2.30
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution target_milestone
Message-ID: <bug-24537-131-w5i40wviKV@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24537-131@http.sourceware.org/bugzilla/>
References: <bug-24537-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00048.txt.bz2
Content-length: 625

https://sourceware.org/bugzilla/show_bug.cgi?id=24537

Szabolcs Nagy <nsz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |2.30

--- Comment #2 from Szabolcs Nagy <nsz at gcc dot gnu.org> ---
the test got moved to xtests so it no longer affect normal make check runs.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45419-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu May 09 18:35:12 2019
Return-Path: <glibc-bugs-return-45419-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 103692 invoked by alias); 9 May 2019 18:35:12 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 103636 invoked by uid 48); 9 May 2019 18:35:08 -0000
From: "carlos at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug dynamic-link/24476] __libc_freeres triggers bad free in libdl if dlerror was not used
Date: Thu, 09 May 2019 18:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: dynamic-link
X-Bugzilla-Version: 2.28
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: carlos at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: carlos at redhat dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields:
Message-ID: <bug-24476-131-F5LZFEWM4Z@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24476-131@http.sourceware.org/bugzilla/>
References: <bug-24476-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00049.txt.bz2
Content-length: 1365

https://sourceware.org/bugzilla/show_bug.cgi?id=24476

--- Comment #3 from Carlos O'Donell <carlos at redhat dot com> ---
(In reply to Mark Wielaard from comment #2)
> Proposed fix. Only free the memory if __libc_once (once, init) has been
> called.
> 
> diff --git a/dlfcn/dlerror.c b/dlfcn/dlerror.c
> index 2737658..41a41ee 100644
> --- a/dlfcn/dlerror.c
> +++ b/dlfcn/dlerror.c
> @@ -230,13 +230,16 @@ free_key_mem (void *mem)
>  void
>  __dlerror_main_freeres (void)
>  {
> -  void *mem;
> -  /* Free the global memory if used.  */
> -  check_free (&last_result);
> -  /* Free the TSD memory if used.  */
> -  mem = __libc_getspecific (key);
> -  if (mem != NULL)
> -    free_key_mem (mem);
> +  if (__libc_once_get (once))
> +    {
> +      void *mem;
> +      /* Free the global memory if used.  */
> +      check_free (&last_result);
> +      /* Free the TSD memory if used.  */
> +      mem = __libc_getspecific (key);
> +      if (mem != NULL)
> +       free_key_mem (mem);
> +    }
>  }
>  
>  struct dlfcn_hook *_dlfcn_hook __attribute__((nocommon));

I reviewed this on libc-alpha.

It isn't quite right, and I noticed a similar failure if the key fails to be
created.

I have suggested some changes for Mark to look at.

I think we're almost done though.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45420-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu May 09 19:45:39 2019
Return-Path: <glibc-bugs-return-45420-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 80914 invoked by alias); 9 May 2019 19:45:39 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 80849 invoked by uid 48); 9 May 2019 19:45:36 -0000
From: "vectoroc at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug locale/18441] Performance regression due to strcoll_l changes
Date: Thu, 09 May 2019 19:45:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: locale
X-Bugzilla-Version: 2.21
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vectoroc at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-18441-131-9O1Tx8LfeD@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-18441-131@http.sourceware.org/bugzilla/>
References: <bug-18441-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00050.txt.bz2
Content-length: 585

https://sourceware.org/bugzilla/show_bug.cgi?id=18441

vectoroc at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vectoroc at gmail dot com

--- Comment #13 from vectoroc at gmail dot com ---
Hello. Is there any chance that the issues will be fixed? Unfortunately
PostgreSQL Is unable to use ICU some base features (e.g in analyze operation).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45421-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu May 09 20:20:19 2019
Return-Path: <glibc-bugs-return-45421-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 39443 invoked by alias); 9 May 2019 20:20:18 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 39408 invoked by uid 48); 9 May 2019 20:20:15 -0000
From: "romain.geissler at amadeus dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug build/24544] New: elf/tst-pldd doesn't work if you install with a --prefix
Date: Thu, 09 May 2019 20:20:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: build
X-Bugzilla-Version: 2.29
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: romain.geissler at amadeus dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-24544-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00051.txt.bz2
Content-length: 883

https://sourceware.org/bugzilla/show_bug.cgi?id=24544

            Bug ID: 24544
           Summary: elf/tst-pldd doesn't work if you install with a
                    --prefix
           Product: glibc
           Version: 2.29
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: romain.geissler at amadeus dot com
                CC: carlos at redhat dot com
  Target Milestone: ---

Hi,

If you install glibc in a non-standard folder with --prefix, obviously the
binary pldd is not found in "/usr/bin/pldd". Would it be possible to either:
 - patch the test to take into account the prefix
 - or consider this test as unsupported if a prefix was used
?

Cheers,
Romain

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45422-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu May 09 20:25:35 2019
Return-Path: <glibc-bugs-return-45422-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 47352 invoked by alias); 9 May 2019 20:25:35 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 47261 invoked by uid 48); 9 May 2019 20:25:32 -0000
From: "tuliom at ascii dot art.br" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug math/24208] [powerpc] Enable log/logf in libmvec vector math library on POWER VSX
Date: Thu, 09 May 2019 20:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: math
X-Bugzilla-Version: unspecified
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: tuliom at ascii dot art.br
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-24208-131-daVo18xXFK@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24208-131@http.sourceware.org/bugzilla/>
References: <bug-24208-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00052.txt.bz2
Content-length: 586

https://sourceware.org/bugzilla/show_bug.cgi?id=24208

Tulio Magno Quites Machado Filho <tuliom at ascii dot art.br> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Tulio Magno Quites Machado Filho <tuliom at ascii dot art.br> ---
Patches merged into branch tuliom/libmvec.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45423-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu May 09 20:25:36 2019
Return-Path: <glibc-bugs-return-45423-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 47485 invoked by alias); 9 May 2019 20:25:36 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 47281 invoked by uid 48); 9 May 2019 20:25:32 -0000
From: "tuliom at ascii dot art.br" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug math/20123] [powerpc] Enable libmvec vector math library on POWER VSX
Date: Thu, 09 May 2019 20:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: dep_changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: math
X-Bugzilla-Version: unspecified
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: tuliom at ascii dot art.br
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-20123-131-7Mga1h7u0N@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-20123-131@http.sourceware.org/bugzilla/>
References: <bug-20123-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00053.txt.bz2
Content-length: 583

https://sourceware.org/bugzilla/show_bug.cgi?id=20123
Bug 20123 depends on bug 24208, which changed state.

Bug 24208 Summary: [powerpc] Enable log/logf in libmvec vector math library on POWER VSX
https://sourceware.org/bugzilla/show_bug.cgi?id=24208

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45424-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu May 09 20:45:00 2019
Return-Path: <glibc-bugs-return-45424-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 97761 invoked by alias); 9 May 2019 20:44:59 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 95898 invoked by uid 48); 9 May 2019 20:44:56 -0000
From: "carlos at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug locale/18441] Performance regression due to strcoll_l changes
Date: Thu, 09 May 2019 20:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: locale
X-Bugzilla-Version: 2.21
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: carlos at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields:
Message-ID: <bug-18441-131-65kgkEFHhJ@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-18441-131@http.sourceware.org/bugzilla/>
References: <bug-18441-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00054.txt.bz2
Content-length: 542

https://sourceware.org/bugzilla/show_bug.cgi?id=18441

--- Comment #14 from Carlos O'Donell <carlos at redhat dot com> ---
(In reply to vectoroc from comment #13)
> Hello. Is there any chance that the issues will be fixed? Unfortunately
> PostgreSQL Is unable to use ICU some base features (e.g in analyze
> operation).

We haven't had anyone working on strcoll_l performance improvements. So it's
unlikely that this will get merged or reviewed any time soon.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45425-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu May 09 20:59:49 2019
Return-Path: <glibc-bugs-return-45425-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 77701 invoked by alias); 9 May 2019 20:59:49 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 77658 invoked by uid 48); 9 May 2019 20:59:45 -0000
From: "carlos at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug build/24544] elf/tst-pldd doesn't work if you install with a --prefix
Date: Thu, 09 May 2019 20:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: build
X-Bugzilla-Version: 2.29
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: carlos at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-24544-131-D7g3HywLMs@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24544-131@http.sourceware.org/bugzilla/>
References: <bug-24544-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00055.txt.bz2
Content-length: 1237

https://sourceware.org/bugzilla/show_bug.cgi?id=24544

Carlos O'Donell <carlos at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-05-09
     Ever confirmed|0                           |1

--- Comment #1 from Carlos O'Donell <carlos at redhat dot com> ---
(In reply to Romain Geissler from comment #0)
> Hi,
> 
> If you install glibc in a non-standard folder with --prefix, obviously the
> binary pldd is not found in "/usr/bin/pldd". Would it be possible to either:
>  - patch the test to take into account the prefix
>  - or consider this test as unsupported if a prefix was used
> ?

We need to patch the test to take into account the prefix.

The test should have used 'support_install_prefix' as the prefix for the
install.

Thank you for reporting this, and please feel free to work up a patch to
correct this. Instead of /usr/bin/pldd we should use support_install_prefix +
bin/pldd and construct the path that way to run it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45426-listarch-glibc-bugs=sources.redhat.com@sourceware.org Fri May 10 05:23:17 2019
Return-Path: <glibc-bugs-return-45426-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 64633 invoked by alias); 10 May 2019 05:23:17 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 64608 invoked by uid 48); 10 May 2019 05:23:14 -0000
From: "bluebat at member dot fsf.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug localedata/24409] Updates for TW locales
Date: Fri, 10 May 2019 05:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: localedata
X-Bugzilla-Version: 2.30
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: bluebat at member dot fsf.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields:
Message-ID: <bug-24409-131-sNMOH70ogc@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24409-131@http.sourceware.org/bugzilla/>
References: <bug-24409-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00056.txt.bz2
Content-length: 377

https://sourceware.org/bugzilla/show_bug.cgi?id=24409

--- Comment #2 from Wei-Lun Chao <bluebat at member dot fsf.org> ---
[Ping]
Two presentations from me: (sorry in chinese only)
https://speakerdeck.com/bluebat/locales-for-chinese-dialects
https://speakerdeck.com/bluebat/look-at-yue-desktop

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45427-listarch-glibc-bugs=sources.redhat.com@sourceware.org Fri May 10 08:04:49 2019
Return-Path: <glibc-bugs-return-45427-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 57590 invoked by alias); 10 May 2019 08:04:49 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 57543 invoked by uid 48); 10 May 2019 08:04:46 -0000
From: "pander at users dot sourceforge.net" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug localedata/23831] nl_NL missing LC_NUMERIC thousands_sep
Date: Fri, 10 May 2019 08:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: localedata
X-Bugzilla-Version: unspecified
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pander at users dot sourceforge.net
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-23831-131-g6hernLBDC@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-23831-131@http.sourceware.org/bugzilla/>
References: <bug-23831-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00057.txt.bz2
Content-length: 655

https://sourceware.org/bugzilla/show_bug.cgi?id=23831

Pander <pander at users dot sourceforge.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pander at users dot sourceforge.ne
                   |                            |t

--- Comment #1 from Pander <pander at users dot sourceforge.net> ---
I can confirm that this needs to be fixed. Is a patch file needed for this or
can this be fixed directly by a maintainer?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45428-listarch-glibc-bugs=sources.redhat.com@sourceware.org Fri May 10 15:40:49 2019
Return-Path: <glibc-bugs-return-45428-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 27230 invoked by alias); 10 May 2019 15:40:49 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 27208 invoked by uid 55); 10 May 2019 15:40:46 -0000
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug malloc/24531] Malloc tunables give tcache assertion failures
Date: Fri, 10 May 2019 15:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: malloc
X-Bugzilla-Version: 2.26
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: cvs-commit at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-24531-131-ywG8Ld6ckT@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24531-131@http.sourceware.org/bugzilla/>
References: <bug-24531-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00058.txt.bz2
Content-length: 1121

https://sourceware.org/bugzilla/show_bug.cgi?id=24531

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Wilco Dijkstra <wilco@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=5ad533e8e65092be962e414e0417112c65d154fb

commit 5ad533e8e65092be962e414e0417112c65d154fb
Author: Wilco Dijkstra <wdijkstr@arm.com>
Date:   Fri May 10 16:38:21 2019 +0100

    Fix tcache count maximum (BZ #24531)

    The tcache counts[] array is a char, which has a very small range and thus
    may overflow.  When setting tcache_count tunable, there is no overflow
check.
    However the tunable must not be larger than the maximum value of the tcache
    counts[] array, otherwise it can overflow when filling the tcache.

        [BZ #24531]
        * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
        (do_set_tcache_count): Only update if count is small enough.
        * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45429-listarch-glibc-bugs=sources.redhat.com@sourceware.org Fri May 10 15:41:55 2019
Return-Path: <glibc-bugs-return-45429-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 28021 invoked by alias); 10 May 2019 15:41:55 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 27997 invoked by uid 48); 10 May 2019 15:41:51 -0000
From: "wdijkstr at arm dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug malloc/24531] Malloc tunables give tcache assertion failures
Date: Fri, 10 May 2019 15:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: malloc
X-Bugzilla-Version: 2.26
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wdijkstr at arm dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-24531-131-xzd09rrr8z@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24531-131@http.sourceware.org/bugzilla/>
References: <bug-24531-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00059.txt.bz2
Content-length: 503

https://sourceware.org/bugzilla/show_bug.cgi?id=24531

Wilco <wdijkstr at arm dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Wilco <wdijkstr at arm dot com> ---
Fixed for GLIBC 2.30.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45430-listarch-glibc-bugs=sources.redhat.com@sourceware.org Sat May 11 13:32:42 2019
Return-Path: <glibc-bugs-return-45430-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 15102 invoked by alias); 11 May 2019 13:32:42 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 12228 invoked by uid 48); 11 May 2019 13:32:37 -0000
From: "bruno at clisp dot org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/23076] Iconv translitterate with profile
Date: Sat, 11 May 2019 13:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: libc
X-Bugzilla-Version: unspecified
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: bruno at clisp dot org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields:
Message-ID: <bug-23076-131-Lw0lGpetl5@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-23076-131@http.sourceware.org/bugzilla/>
References: <bug-23076-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00060.txt.bz2
Content-length: 1252

https://sourceware.org/bugzilla/show_bug.cgi?id=23076

--- Comment #15 from Bruno Haible <bruno at clisp dot org> ---
A note about transliteration in general:

glibc implements transliteration regarding a character set, and thus responds
to the frequent case (in the years 2000-2005) that an application needs to
process a file in UTF-8, while the locale is an 8-bit locale.

Nowadays, the more frequent use of transliteration is a culture-aware
transliteration from one script to another script. The charset is not the
important factor here. For example, when doing transliteration from Punjabi in
Gurmukhi script to Punjabi in Shahmukhi (Arabic) script, the input and output
are both UTF-8, therefore the glibc's transliteration system does not help. And
such use-cases are outside glibc anyway, since 99.9% of the applications don't
need culture-aware transliteration.

Therefore I think there is no need to extend glibc's transliteration facilities
any more. Separate packages are the way to go (and also easier to implement if
you can assume Unicode input and Unicode output, without the charset-related
baggage that glibc's transliteration carries).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45431-listarch-glibc-bugs=sources.redhat.com@sourceware.org Sun May 12 00:50:25 2019
Return-Path: <glibc-bugs-return-45431-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 84792 invoked by alias); 12 May 2019 00:50:24 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 84744 invoked by uid 48); 12 May 2019 00:50:21 -0000
From: "slandden at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug math/24209] [powerpc] Enable exp/expf in libmvec vector math library on POWER VSX
Date: Sun, 12 May 2019 00:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: math
X-Bugzilla-Version: unspecified
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: slandden at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-24209-131-ox0h9Mu62b@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24209-131@http.sourceware.org/bugzilla/>
References: <bug-24209-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00061.txt.bz2
Content-length: 396

https://sourceware.org/bugzilla/show_bug.cgi?id=24209

Shawn Landden <slandden at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |slandden at gmail dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45432-listarch-glibc-bugs=sources.redhat.com@sourceware.org Mon May 13 16:10:41 2019
Return-Path: <glibc-bugs-return-45432-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 111274 invoked by alias); 13 May 2019 16:10:36 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 111124 invoked by uid 55); 13 May 2019 16:10:32 -0000
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug localedata/24535] Update locale data to Unicode 12.1.0
Date: Mon, 13 May 2019 16:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: localedata
X-Bugzilla-Version: 2.30
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: cvs-commit at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-24535-131-XjeAsVd2gl@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24535-131@http.sourceware.org/bugzilla/>
References: <bug-24535-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00062.txt.bz2
Content-length: 1482

https://sourceware.org/bugzilla/show_bug.cgi?id=24535

--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Mike Fabian <mfabian@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f6efec90c86a6576fe02f4bf220ed4f7bc0b5e14

commit f6efec90c86a6576fe02f4bf220ed4f7bc0b5e14
Author: Mike FABIAN <mfabian@redhat.com>
Date:   Wed May 8 07:54:15 2019 +0200

    Bug 24535: Update to Unicode 12.1.0

    Unicode 12.1.0 Support: Character encoding, character type info, and
    transliteration tables are all updated to Unicode 12.1.0, using
    the generator scripts contributed by Mike FABIAN (Red Hat).

    Some info about the number of characters added or changed:

    Total added characters in newly generated CHARMAP: 1
    added: <U32FF>     /xe3/x8b/xbf SQUARE ERA NAME REIWA
    Total added characters in newly generated WIDTH: 1
    added: <U32FF> 2 : eaw=W category=So bidi=L   name=SQUARE ERA NAME REIWA
    graph: Added 1 characters in new ctype which were not in old ctype
    graph: Added: ㋿ U+32FF SQUARE ERA NAME REIWA
    print: Added 1 characters in new ctype which were not in old ctype
    print: Added: ㋿ U+32FF SQUARE ERA NAME REIWA
    punct: Added 1 characters in new ctype which were not in old ctype
    punct: Added: ㋿ U+32FF SQUARE ERA NAME REIWA

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45433-listarch-glibc-bugs=sources.redhat.com@sourceware.org Mon May 13 16:12:13 2019
Return-Path: <glibc-bugs-return-45433-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 113891 invoked by alias); 13 May 2019 16:12:13 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 113859 invoked by uid 48); 13 May 2019 16:12:10 -0000
From: "maiku.fabian at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug localedata/24535] Update locale data to Unicode 12.1.0
Date: Mon, 13 May 2019 16:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: localedata
X-Bugzilla-Version: 2.30
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: maiku.fabian at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: 2.30
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-24535-131-N0kNxdCkmR@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24535-131@http.sourceware.org/bugzilla/>
References: <bug-24535-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00063.txt.bz2
Content-length: 377

https://sourceware.org/bugzilla/show_bug.cgi?id=24535

Mike FABIAN <maiku.fabian at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |2.30

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45435-listarch-glibc-bugs=sources.redhat.com@sourceware.org Mon May 13 16:13:38 2019
Return-Path: <glibc-bugs-return-45435-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 22849 invoked by alias); 13 May 2019 16:13:37 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 21195 invoked by uid 48); 13 May 2019 16:13:34 -0000
From: "maiku.fabian at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug localedata/24535] Update locale data to Unicode 12.1.0
Date: Mon, 13 May 2019 16:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: localedata
X-Bugzilla-Version: 2.30
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: maiku.fabian at gmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: 2.30
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-24535-131-gOn1GFiG7G@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24535-131@http.sourceware.org/bugzilla/>
References: <bug-24535-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00065.txt.bz2
Content-length: 538

https://sourceware.org/bugzilla/show_bug.cgi?id=24535

Mike FABIAN <maiku.fabian at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Mike FABIAN <maiku.fabian at gmail dot com> ---
Patch is pushed to glibc master.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45434-listarch-glibc-bugs=sources.redhat.com@sourceware.org Mon May 13 16:13:21 2019
Return-Path: <glibc-bugs-return-45434-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 9340 invoked by alias); 13 May 2019 16:13:21 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 6160 invoked by uid 48); 13 May 2019 16:13:18 -0000
From: "maiku.fabian at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug localedata/24307] Update locale data to Unicode 12.0.0
Date: Mon, 13 May 2019 16:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: localedata
X-Bugzilla-Version: 2.30
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: maiku.fabian at gmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: maiku.fabian at gmail dot com
X-Bugzilla-Target-Milestone: 2.30
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-24307-131-s2axYamuXZ@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24307-131@http.sourceware.org/bugzilla/>
References: <bug-24307-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00064.txt.bz2
Content-length: 545

https://sourceware.org/bugzilla/show_bug.cgi?id=24307

Mike FABIAN <maiku.fabian at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Mike FABIAN <maiku.fabian at gmail dot com> ---
This patch is included in glibc master.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45436-listarch-glibc-bugs=sources.redhat.com@sourceware.org Tue May 14 00:08:18 2019
Return-Path: <glibc-bugs-return-45436-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 21698 invoked by alias); 14 May 2019 00:08:18 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 21647 invoked by uid 48); 14 May 2019 00:08:15 -0000
From: "howaboutsynergy at pm dot me" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/20338] Parsing of /etc/gshadow can return bad pointers causing segfaults in applications
Date: Tue, 14 May 2019 00:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: libc
X-Bugzilla-Version: 2.21
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: howaboutsynergy at pm dot me
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-20338-131-haiCHofvlf@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-20338-131@http.sourceware.org/bugzilla/>
References: <bug-20338-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00066.txt.bz2
Content-length: 388

https://sourceware.org/bugzilla/show_bug.cgi?id=20338

howaboutsynergy at pm dot me changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |howaboutsynergy at pm dot me

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45437-listarch-glibc-bugs=sources.redhat.com@sourceware.org Tue May 14 00:36:46 2019
Return-Path: <glibc-bugs-return-45437-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 118602 invoked by alias); 14 May 2019 00:36:46 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 116461 invoked by uid 48); 14 May 2019 00:36:42 -0000
From: "howaboutsynergy at pm dot me" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug malloc/24551] New: mmap: accessing memory beyond mmap-ed region doesn't segfault
Date: Tue, 14 May 2019 00:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: malloc
X-Bugzilla-Version: 2.29
X-Bugzilla-Keywords:
X-Bugzilla-Severity: minor
X-Bugzilla-Who: howaboutsynergy at pm dot me
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-24551-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00067.txt.bz2
Content-length: 2787

https://sourceware.org/bugzilla/show_bug.cgi?id=24551

            Bug ID: 24551
           Summary: mmap: accessing memory beyond mmap-ed region doesn't
                    segfault
           Product: glibc
           Version: 2.29
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: malloc
          Assignee: unassigned at sourceware dot org
          Reporter: howaboutsynergy at pm dot me
  Target Milestone: ---

Is this even a bug?

with glibc 2.28 mmap-ing 1 byte (in a kernel with page_size 4096 bytes) like:
`addr = mmap (NULL, size, PROT_READ, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0);`
... allows accesses until addr[16384-1] and only segfaults at accessing
addr[16384] (page 4 instead of 2)

but with glibc 2.29, segfault happens only at addr[188416]  (page 46 instead of
2)

for details see comment 14 & 15 in:
https://bugzilla.kernel.org/show_bug.cgi?id=203537#c14


Note that I tried this with MAP_FILE (and an actual file) not just with
MAP_ANONYMOUS but I found that the effects/results are the same.

I would expect segfault(or SIGBUSS? according to the man page) would happen
when hitting page 2 (ie. addr[0x1000]) but this would seem to require something
like what valdis mentioned: " * valdis wonders how hard it would be to add an
"allocate non-accessible guard page at both ends" flag to mmap()."

So, is the manual in need of updating? since SIGBUS isn't generated as stated
in these circumstances:

man 2 mmap:
    SIGBUS Attempted access to a portion of the buffer that does not correspond
to the file (for example, beyond the end of the file, including the case where
another process has truncated the file).

man mmap (ie. map 3p mmap):
    The system shall always zero-fill any partial page at the end of an object.
Further, the system shall never write out any modified portions of the last
page of an object which are beyond its end. References within the address range
starting at pa and continuing for len bytes to whole pages following the end of
an object shall result in delivery of a SIGBUS signal.
    An implementation may generate SIGBUS signals when a reference would cause
an error in the mapped object, such as out-of-space condition.

(pa=addr and len=size in my case)

At the very least, SIGBUS isn't generated beyond the end of the file until the
end of the page.

Note: SIGBUS is generated when file is a 0 byte file (from what I've tested)
and this is to be expected and working normally (now that I know enough to
understand it).

For a 200MiB mmap, both glibc versions allow accesses until page 442 beyond
mmap-ed region is reached (page 443 for v2.29) and only then segfault.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45438-listarch-glibc-bugs=sources.redhat.com@sourceware.org Tue May 14 00:39:53 2019
Return-Path: <glibc-bugs-return-45438-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 130610 invoked by alias); 14 May 2019 00:39:52 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 130589 invoked by uid 48); 14 May 2019 00:39:49 -0000
From: "howaboutsynergy at pm dot me" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug malloc/24551] mmap: accessing memory beyond mmap-ed region doesn't segfault
Date: Tue, 14 May 2019 00:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: malloc
X-Bugzilla-Version: 2.29
X-Bugzilla-Keywords:
X-Bugzilla-Severity: minor
X-Bugzilla-Who: howaboutsynergy at pm dot me
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-24551-131-W1GBBCfDXS@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24551-131@http.sourceware.org/bugzilla/>
References: <bug-24551-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00068.txt.bz2
Content-length: 626

https://sourceware.org/bugzilla/show_bug.cgi?id=24551

howaboutsynergy at pm dot me changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |howaboutsynergy at pm dot me

--- Comment #1 from howaboutsynergy at pm dot me ---
oops
What not to put in a new report:
 Questions about the correctness or the expected behaviour of standardised
system calls. These might be more appropriately asked in other forums.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45439-listarch-glibc-bugs=sources.redhat.com@sourceware.org Tue May 14 06:58:39 2019
Return-Path: <glibc-bugs-return-45439-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 99419 invoked by alias); 14 May 2019 06:58:38 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 96908 invoked by uid 48); 14 May 2019 06:58:35 -0000
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug malloc/24551] mmap: accessing memory beyond mmap-ed region doesn't segfault
Date: Tue, 14 May 2019 06:58:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: malloc
X-Bugzilla-Version: 2.29
X-Bugzilla-Keywords:
X-Bugzilla-Severity: minor
X-Bugzilla-Who: fweimer at redhat dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: bug_status cc see_also resolution flagtypes.name
Message-ID: <bug-24551-131-cafflUXAS1@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24551-131@http.sourceware.org/bugzilla/>
References: <bug-24551-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00069.txt.bz2
Content-length: 1102

https://sourceware.org/bugzilla/show_bug.cgi?id=24551

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |fweimer at redhat dot com
           See Also|                            |https://bugzilla.kernel.org
                   |                            |/show_bug.cgi?id=203537
         Resolution|---                         |INVALID
              Flags|                            |security-

--- Comment #2 from Florian Weimer <fweimer at redhat dot com> ---
If you need guard pages, you need to map extra pages and leave them with
PROT_NONE protection flags.

Changes in mapping behavior are expected for different kernel versions. 
Different glibc versions have different library sizes and perhaps even load
segments, so they trigger different kernel behavior, too.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45440-listarch-glibc-bugs=sources.redhat.com@sourceware.org Tue May 14 13:51:08 2019
Return-Path: <glibc-bugs-return-45440-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 40507 invoked by alias); 14 May 2019 13:51:08 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 36919 invoked by uid 48); 14 May 2019 13:51:04 -0000
From: "adhemerval.zanella at linaro dot org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/24492] utmp/wtmp locking allows non-privileged user to deny service
Date: Tue, 14 May 2019 13:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: libc
X-Bugzilla-Version: 2.29
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: adhemerval.zanella at linaro dot org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-24492-131-jtg5rRbr3X@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24492-131@http.sourceware.org/bugzilla/>
References: <bug-24492-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00070.txt.bz2
Content-length: 1842

https://sourceware.org/bugzilla/show_bug.cgi?id=24492

Adhemerval Zanella <adhemerval.zanella at linaro dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |adhemerval.zanella at linaro dot o
                   |                            |rg

--- Comment #1 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
This issue seems to exist on Solaris and AIX as well, although they uses a
different path (/var/run/utmpx for Solaris and /etc/utmp).  As with glibc-based
system, its permission is similar that it allows users to read-lock it:

Solaris:
$ ls -l /var/run/utmpx
-rw-r--r--   1 root     bin         7440 May 14 14:56 /var/run/utmpx

AIX:
$ ls -l /etc/utmp
-rw-r--r--    1 root     system        38232 May 14 08:39 /etc/utmp

The same issue also prevents further login on the system, as sshd for instance. 

I think a better alternative would just to make the utmp file no accessible to
user as default with the side effect of making utmp{x} interfaces return EPERM
as default. I am not sure how it would play on its usage in login process, but
I also don't think using a different lock file while still using default
permission for /var/run/utmp would be an improvement here.  The privileged
process still need to have non-blocked access to utmp regardless and I think
adding a timeout to abort in such cases is also not an option (besides it is
not defined in the standard, it also not expected such functions fail in this
scenario). Another possibility is to route utmp{x} interfaces to a privileged
process.  

Not sure which would be the best option, thoughts?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45441-listarch-glibc-bugs=sources.redhat.com@sourceware.org Tue May 14 14:17:09 2019
Return-Path: <glibc-bugs-return-45441-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 127732 invoked by alias); 14 May 2019 14:17:09 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 124198 invoked by uid 48); 14 May 2019 14:17:06 -0000
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/24492] utmp/wtmp locking allows non-privileged user to deny service
Date: Tue, 14 May 2019 14:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: libc
X-Bugzilla-Version: 2.29
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fweimer at redhat dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security+
X-Bugzilla-Changed-Fields: cc flagtypes.name
Message-ID: <bug-24492-131-UP7FHT38PI@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24492-131@http.sourceware.org/bugzilla/>
References: <bug-24492-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00071.txt.bz2
Content-length: 456

https://sourceware.org/bugzilla/show_bug.cgi?id=24492

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fweimer at redhat dot com
              Flags|                            |security+

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45443-listarch-glibc-bugs=sources.redhat.com@sourceware.org Tue May 14 14:26:47 2019
Return-Path: <glibc-bugs-return-45443-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 99381 invoked by alias); 14 May 2019 14:26:47 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 99321 invoked by uid 48); 14 May 2019 14:26:44 -0000
From: "carlos at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/24492] utmp/wtmp locking allows non-privileged user to deny service
Date: Tue, 14 May 2019 14:26:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: libc
X-Bugzilla-Version: 2.29
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: carlos at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security+
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-24492-131-cXaoubCpCe@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24492-131@http.sourceware.org/bugzilla/>
References: <bug-24492-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00073.txt.bz2
Content-length: 486

https://sourceware.org/bugzilla/show_bug.cgi?id=24492

Carlos O'Donell <carlos at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-05-14
     Ever confirmed|0                           |1

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45442-listarch-glibc-bugs=sources.redhat.com@sourceware.org Tue May 14 14:26:42 2019
Return-Path: <glibc-bugs-return-45442-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 99087 invoked by alias); 14 May 2019 14:26:42 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 99020 invoked by uid 48); 14 May 2019 14:26:38 -0000
From: "carlos at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/24492] utmp/wtmp locking allows non-privileged user to deny service
Date: Tue, 14 May 2019 14:26:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: libc
X-Bugzilla-Version: 2.29
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: carlos at redhat dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security+
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-24492-131-OsvRnrzaGU@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24492-131@http.sourceware.org/bugzilla/>
References: <bug-24492-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00072.txt.bz2
Content-length: 1969

https://sourceware.org/bugzilla/show_bug.cgi?id=24492

Carlos O'Donell <carlos at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |carlos at redhat dot com

--- Comment #2 from Carlos O'Donell <carlos at redhat dot com> ---
(In reply to Adhemerval Zanella from comment #1)
> I think a better alternative would just to make the utmp file no accessible
> to user as default with the side effect of making utmp{x} interfaces return
> EPERM as default. I am not sure how it would play on its usage in login
> process, but I also don't think using a different lock file while still
> using default permission for /var/run/utmp would be an improvement here. 
> The privileged process still need to have non-blocked access to utmp
> regardless and I think adding a timeout to abort in such cases is also not
> an option (besides it is not defined in the standard, it also not expected
> such functions fail in this scenario). Another possibility is to route
> utmp{x} interfaces to a privileged process.  
> 
> Not sure which would be the best option, thoughts?

Privileged processes can be expected to coordinate access and complete writes
and release locks in a timely fashion. So the writers can block other writers
or readers.

Unprivileged readers cannot be trusted to complete reads or release locks in a
timely fashion, and should have no impact on the privileged writers. The
readers cannot block other writers, but could block other readers (if
required).

It seems like we should be able to implement this with the Linux filesystem
primivites, but I haven't done a deep analysis of this issue.

This is a security issue, and Florian has added security+ flag, but it's one
that has existed for a long time.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45444-listarch-glibc-bugs=sources.redhat.com@sourceware.org Tue May 14 14:31:50 2019
Return-Path: <glibc-bugs-return-45444-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 108827 invoked by alias); 14 May 2019 14:31:50 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 108281 invoked by uid 48); 14 May 2019 14:31:46 -0000
From: "OxFF-Alex at yandex dot ru" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug locale/20568] Segfault with wide characters and setlocale/fgetwc/UTF-8
Date: Tue, 14 May 2019 14:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: locale
X-Bugzilla-Version: 2.24
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: OxFF-Alex at yandex dot ru
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-20568-131-SydLG8KnWS@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-20568-131@http.sourceware.org/bugzilla/>
References: <bug-20568-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00074.txt.bz2
Content-length: 1174

https://sourceware.org/bugzilla/show_bug.cgi?id=20568

OxFF-Alex <OxFF-Alex at yandex dot ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |OxFF-Alex at yandex dot ru

--- Comment #6 from OxFF-Alex <OxFF-Alex at yandex dot ru> ---
I also have this bug.

$ uname -a
Linux serbinov 4.18.0-17-generic #18~18.04.1-Ubuntu SMP Fri Mar 15 15:27:12 UTC
2019 x86_64 x86_64 x86_64 GNU/Linux

$ lsb_release -d
Description:    Ubuntu 18.04.2 LTS

But a have three different crashes depending on number of input symbols:

Code:
int main()
{
    setlocale(LC_ALL, "ru_RU.UTF-8");
    getwc(stdin);
    return 0;
}

Results:
$
$ ./a.out
111111111111111111111111
*** stack smashing detected ***: <unknown> terminated
Aborted (core dumped)
$
$ ./a.out
111111111111111111111111111111111111111111111111111111111111111111111111111111
free(): invalid pointer
Aborted (core dumped)
$
$ ./a.out
1111111111111111111111111111111111111
Segmentation fault (core dumped)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45445-listarch-glibc-bugs=sources.redhat.com@sourceware.org Tue May 14 14:36:18 2019
Return-Path: <glibc-bugs-return-45445-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 60335 invoked by alias); 14 May 2019 14:36:18 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 60278 invoked by uid 48); 14 May 2019 14:36:15 -0000
From: "OxFF-Alex at yandex dot ru" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug locale/20568] Segfault with wide characters and setlocale/fgetwc/UTF-8
Date: Tue, 14 May 2019 14:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: locale
X-Bugzilla-Version: 2.24
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: OxFF-Alex at yandex dot ru
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-20568-131-gQ2wYKUxSL@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-20568-131@http.sourceware.org/bugzilla/>
References: <bug-20568-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00075.txt.bz2
Content-length: 578

https://sourceware.org/bugzilla/show_bug.cgi?id=20568

--- Comment #7 from OxFF-Alex <OxFF-Alex at yandex dot ru> ---
In additional:
$ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=ru_RU.UTF-8
LC_TIME=ru_RU.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=ru_RU.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=ru_RU.UTF-8
LC_NAME=ru_RU.UTF-8
LC_ADDRESS=ru_RU.UTF-8
LC_TELEPHONE=ru_RU.UTF-8
LC_MEASUREMENT=ru_RU.UTF-8
LC_IDENTIFICATION=ru_RU.UTF-8
LC_ALL=
$

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45446-listarch-glibc-bugs=sources.redhat.com@sourceware.org Tue May 14 14:57:41 2019
Return-Path: <glibc-bugs-return-45446-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 24071 invoked by alias); 14 May 2019 14:57:41 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 22132 invoked by uid 48); 14 May 2019 14:57:38 -0000
From: "schwab@linux-m68k.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug locale/20568] Segfault with wide characters and setlocale/fgetwc/UTF-8
Date: Tue, 14 May 2019 14:57:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: locale
X-Bugzilla-Version: 2.24
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: schwab@linux-m68k.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-20568-131-6NCeO28hq1@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-20568-131@http.sourceware.org/bugzilla/>
References: <bug-20568-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00076.txt.bz2
Content-length: 479

https://sourceware.org/bugzilla/show_bug.cgi?id=20568

--- Comment #8 from Andreas Schwab <schwab@linux-m68k.org> ---
At this point in _IO_wfile_sync, delta is always negative:

          nread = (*cv->__codecvt_do_length) (cv, &fp->_wide_data->_IO_state,
                                              fp->_IO_read_base,
                                              fp->_IO_read_end, delta);

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45447-listarch-glibc-bugs=sources.redhat.com@sourceware.org Tue May 14 15:32:03 2019
Return-Path: <glibc-bugs-return-45447-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 108753 invoked by alias); 14 May 2019 15:32:03 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 108627 invoked by uid 48); 14 May 2019 15:32:00 -0000
From: "schwab@linux-m68k.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug locale/20568] Segfault with wide characters and setlocale/fgetwc/UTF-8
Date: Tue, 14 May 2019 15:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: locale
X-Bugzilla-Version: 2.24
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: schwab@linux-m68k.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-20568-131-2LzeASQHXA@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-20568-131@http.sourceware.org/bugzilla/>
References: <bug-20568-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00077.txt.bz2
Content-length: 1109

https://sourceware.org/bugzilla/show_bug.cgi?id=20568

--- Comment #9 from Andreas Schwab <schwab@linux-m68k.org> ---
That should fix it:

diff --git a/libio/wfileops.c b/libio/wfileops.c
index 5bc785b2b6..b30ef81813 100644
--- a/libio/wfileops.c
+++ b/libio/wfileops.c
@@ -508,11 +508,11 @@ _IO_wfile_sync (FILE *fp)
             generate the wide characters up to the current reading
             position.  */
          int nread;
-
+         size_t wnread = fp->_wide_data->_IO_read_ptr -
fp->_wide_data->_IO_read_base;
          fp->_wide_data->_IO_state = fp->_wide_data->_IO_last_state;
          nread = (*cv->__codecvt_do_length) (cv, &fp->_wide_data->_IO_state,
                                              fp->_IO_read_base,
-                                             fp->_IO_read_end, delta);
+                                             fp->_IO_read_end, wnread);
          fp->_IO_read_ptr = fp->_IO_read_base + nread;
          delta = -(fp->_IO_read_end - fp->_IO_read_base - nread);
        }

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45448-listarch-glibc-bugs=sources.redhat.com@sourceware.org Tue May 14 17:38:24 2019
Return-Path: <glibc-bugs-return-45448-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 94130 invoked by alias); 14 May 2019 17:38:24 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 94076 invoked by uid 55); 14 May 2019 17:38:20 -0000
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug build/24544] elf/tst-pldd doesn't work if you install with a --prefix
Date: Tue, 14 May 2019 17:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: build
X-Bugzilla-Version: 2.29
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: cvs-commit at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-24544-131-xrJfbXjKs1@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24544-131@http.sourceware.org/bugzilla/>
References: <bug-24544-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00078.txt.bz2
Content-length: 1071

https://sourceware.org/bugzilla/show_bug.cgi?id=24544

--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Adhemerval Zanella
<azanella@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=da2b83ef6ba6f4c974664f69e715cc85b9173938

commit da2b83ef6ba6f4c974664f69e715cc85b9173938
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Mon May 13 13:13:46 2019 -0300

    elf: Fix tst-pldd for non-default --prefix and/or --bindir (BZ#24544)

    Use a new libsupport support_bindir_prefix instead of a hardcoded
    /usr/bin to create the pldd path on container directory.

    Checked on x86_64-linux-gnu with default and non-default --prefix and
    --bindir paths, as well with --enable-hardcoded-path-in-tests.

        [BZ #24544]
        * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
        pre-defined value.

    Reviewed-by: DJ Delorie <dj@redhat.com>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45449-listarch-glibc-bugs=sources.redhat.com@sourceware.org Tue May 14 17:39:19 2019
Return-Path: <glibc-bugs-return-45449-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 95102 invoked by alias); 14 May 2019 17:39:19 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 95063 invoked by uid 48); 14 May 2019 17:39:16 -0000
From: "adhemerval.zanella at linaro dot org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug build/24544] elf/tst-pldd doesn't work if you install with a --prefix
Date: Tue, 14 May 2019 17:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: build
X-Bugzilla-Version: 2.30
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: adhemerval.zanella at linaro dot org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: adhemerval.zanella at linaro dot org
X-Bugzilla-Target-Milestone: 2.30
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc version resolution assigned_to target_milestone
Message-ID: <bug-24544-131-R5Wy1GGTyb@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24544-131@http.sourceware.org/bugzilla/>
References: <bug-24544-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00079.txt.bz2
Content-length: 977

https://sourceware.org/bugzilla/show_bug.cgi?id=24544

Adhemerval Zanella <adhemerval.zanella at linaro dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |adhemerval.zanella at linaro dot o
                   |                            |rg
            Version|2.29                        |2.30
         Resolution|---                         |FIXED
           Assignee|unassigned at sourceware dot org   |adhemerval.zanella at linaro dot o
                   |                            |rg
   Target Milestone|---                         |2.30

--- Comment #3 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
Fixed by da2b83ef6ba6f4c974664f69e715cc85b9173938.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45450-listarch-glibc-bugs=sources.redhat.com@sourceware.org Tue May 14 22:38:15 2019
Return-Path: <glibc-bugs-return-45450-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 103203 invoked by alias); 14 May 2019 22:38:15 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 103164 invoked by uid 48); 14 May 2019 22:38:11 -0000
From: "hjl.tools at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: =?UTF-8?B?W0J1ZyBidWlsZC8yNDU1Nl0gTmV3OiBbR0NDIDldIGVycm9yOiDigJglcw==?= =?UTF-8?B?4oCZIGRpcmVjdGl2ZSBhcmd1bWVudCBpcyBudWxsIFstV2Vycm9yPWZvcm1h?= =?UTF-8?B?dC1vdmVyZmxvdz1d?Date: Tue, 14 May 2019 22:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: build
X-Bugzilla-Version: 2.30
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-24556-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00080.txt.bz2
Content-length: 2175

https://sourceware.org/bugzilla/show_bug.cgi?id=24556

            Bug ID: 24556
           Summary: [GCC 9] error: ‘%s’ directive argument is null
                    [-Werror=format-overflow=]
           Product: glibc
           Version: 2.30
            Status: NEW
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
                CC: carlos at redhat dot com
  Target Milestone: ---

With GCC 9 and -O3, I got

In file included from ../include/bits/error.h:1,
                 from ../misc/error.h:57,
                 from ../include/error.h:2,
                 from bench-string.h:60,
                 from bench-strstr.c:22:
In function ‘error’,
    inlined from ‘do_one_test’ at bench-strstr.c:149:7,
    inlined from ‘do_test’ at bench-strstr.c:201:5,
    inlined from ‘test_main’ at bench-strstr.c:220:2:
../include/bits/../../misc/bits/error.h:42:5: error: ‘%s’ directive argument is
null [-Werror=format-overflow=]
   42 |     __error_alias (__status, __errnum, __format, __va_arg_pack ());
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘error’,
    inlined from ‘do_one_test’ at bench-strstr.c:149:7,
    inlined from ‘do_test’ at bench-strstr.c:201:5,
    inlined from ‘test_main’ at bench-strstr.c:227:2:
../include/bits/../../misc/bits/error.h:42:5: error: ‘%s’ directive argument is
null [-Werror=format-overflow=]
   42 |     __error_alias (__status, __errnum, __format, __va_arg_pack ());
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[1]: *** [../o-iterator.mk:9:
/export/build/gnu/tools-build/glibc-march-9/build-x86_64-linux/benchtests/bench-strstr.o]
Error 1

There is

do_one_test (impl, s1, s2, fail ? NULL : s1 + len1 - len2);

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45451-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 15 10:37:38 2019
Return-Path: <glibc-bugs-return-45451-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 67336 invoked by alias); 15 May 2019 10:37:37 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 67305 invoked by uid 48); 15 May 2019 10:37:34 -0000
From: "flo at geekplace dot eu" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug manual/24558] New: Broken sentence in manual/tunables.texi
Date: Wed, 15 May 2019 10:37:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: manual
X-Bugzilla-Version: 2.31
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: flo at geekplace dot eu
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-24558-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00081.txt.bz2
Content-length: 885

https://sourceware.org/bugzilla/show_bug.cgi?id=24558

            Bug ID: 24558
           Summary: Broken sentence in manual/tunables.texi
           Product: glibc
           Version: 2.31
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: manual
          Assignee: unassigned at sourceware dot org
          Reporter: flo at geekplace dot eu
                CC: mtk.manpages at gmail dot com
  Target Milestone: ---

The sentence in tunables.texi

> Lock elision will use memory transactions to under certain conditions, to elide locks and improve performance. 

is missing a comma and has to many 'to's, it should probably read

> Lock elision will use memory transactions to, under certain conditions, elide locks and improve performance.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45452-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 15 10:39:00 2019
Return-Path: <glibc-bugs-return-45452-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 68359 invoked by alias); 15 May 2019 10:39:00 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 68325 invoked by uid 48); 15 May 2019 10:38:57 -0000
From: "flo at geekplace dot eu" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug manual/24558] Broken sentence in manual/tunables.texi
Date: Wed, 15 May 2019 10:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: manual
X-Bugzilla-Version: 2.31
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: flo at geekplace dot eu
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-24558-131-OOjRuBvysh@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24558-131@http.sourceware.org/bugzilla/>
References: <bug-24558-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00082.txt.bz2
Content-length: 356

https://sourceware.org/bugzilla/show_bug.cgi?id=24558

--- Comment #1 from Florian Schmaus <flo at geekplace dot eu> ---
Created attachment 11776
  --> https://sourceware.org/bugzilla/attachment.cgi?id=11776&action=edit
Patch to fix a sentence in manual/tunables.texi

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45453-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 15 11:25:32 2019
Return-Path: <glibc-bugs-return-45453-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 59181 invoked by alias); 15 May 2019 11:25:31 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 59107 invoked by uid 48); 15 May 2019 11:25:28 -0000
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/10353] Methods for deleting all file descriptors greater than given integer (closefrom)
Date: Wed, 15 May 2019 11:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: libc
X-Bugzilla-Version: unspecified
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fweimer at redhat dot com
X-Bugzilla-Status: REOPENED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: bug_status resolution assigned_to short_desc
Message-ID: <bug-10353-131-xB67DR4gff@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-10353-131@http.sourceware.org/bugzilla/>
References: <bug-10353-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00083.txt.bz2
Content-length: 1214

https://sourceware.org/bugzilla/show_bug.cgi?id=10353

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WONTFIX                     |---
           Assignee|drepper.fsp at gmail dot com       |unassigned at sourceware dot org
            Summary|Methods for deleting all    |Methods for deleting all
                   |file descriptors greater    |file descriptors greater
                   |than given integer          |than given integer
                   |                            |(closefrom)

--- Comment #14 from Florian Weimer <fweimer at redhat dot com> ---
We should implement closefrom and related functions from Solaris.  A
high-quality implementation (that cannot fail) will require kernel support.

I do not think there is a way to obtain the number of the highest file
descriptor currently in use because RLIMIT_NOFILE is not enforced for existing
descriptors.  Opening /proc/self/fd may fail.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45454-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 15 12:10:47 2019
Return-Path: <glibc-bugs-return-45454-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 117354 invoked by alias); 15 May 2019 12:10:47 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 117303 invoked by uid 48); 15 May 2019 12:10:44 -0000
From: "adhemerval.zanella at linaro dot org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/10353] Methods for deleting all file descriptors greater than given integer (closefrom)
Date: Wed, 15 May 2019 12:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: libc
X-Bugzilla-Version: unspecified
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: adhemerval.zanella at linaro dot org
X-Bugzilla-Status: REOPENED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields:
Message-ID: <bug-10353-131-XeBEQoMxAw@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-10353-131@http.sourceware.org/bugzilla/>
References: <bug-10353-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00084.txt.bz2
Content-length: 1491

https://sourceware.org/bugzilla/show_bug.cgi?id=10353

--- Comment #15 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
(In reply to Florian Weimer from comment #14)
> We should implement closefrom and related functions from Solaris.  A
> high-quality implementation (that cannot fail) will require kernel support.

Agreed. I have a wip patch that I might send. Solaris11 also defines as
non-portable interfaces:

posix_spawn_file_actions_addchdir_np
posix_spawn_file_actions_addclosefrom_np
posix_spawnattr_setsigignore_np
posix_spawnattr_getsigignore_np
posix_spawnattr_setvamask_np
posix_spawnattr_getvamask_np

We already implements posix_spawn_file_actions_addchdir_np.  The
posix_spawnattr_setsigignore_np/posix_spawnattr_getsigignore_np seems
completary addition to
posix_spawnattr_setsigdefault/posix_spawnattr_getsigdefault.

I am trying to figure out what
posix_spawnattr_setvamask_np/posix_spawnattr_getvamask_np do, I couldn't find
any information online. 

> 
> I do not think there is a way to obtain the number of the highest file
> descriptor currently in use because RLIMIT_NOFILE is not enforced for
> existing descriptors.  Opening /proc/self/fd may fail.

I think an initial userland implementation need just to try opening
/proc/self/fd and if it fails bail out with an error. Relying on RLIMIT_NOFILE,
even as a fallback, might still leak file descriptors.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45455-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 15 12:17:19 2019
Return-Path: <glibc-bugs-return-45455-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 4423 invoked by alias); 15 May 2019 12:17:19 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 4368 invoked by uid 48); 15 May 2019 12:17:16 -0000
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/10353] Methods for deleting all file descriptors greater than given integer (closefrom)
Date: Wed, 15 May 2019 12:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: libc
X-Bugzilla-Version: unspecified
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fweimer at redhat dot com
X-Bugzilla-Status: REOPENED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields:
Message-ID: <bug-10353-131-MKK1dJjV1z@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-10353-131@http.sourceware.org/bugzilla/>
References: <bug-10353-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00085.txt.bz2
Content-length: 397

https://sourceware.org/bugzilla/show_bug.cgi?id=10353

--- Comment #16 from Florian Weimer <fweimer at redhat dot com> ---
closefrom cannot fail.  I'm happy to implement /proc/self/fd fallback, but only
if we also have a proper system call that can be used to implement this
correctly (without possible failure).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45456-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 15 12:35:44 2019
Return-Path: <glibc-bugs-return-45456-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 115187 invoked by alias); 15 May 2019 12:35:44 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 115150 invoked by uid 48); 15 May 2019 12:35:41 -0000
From: "adhemerval.zanella at linaro dot org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/10353] Methods for deleting all file descriptors greater than given integer (closefrom)
Date: Wed, 15 May 2019 12:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: libc
X-Bugzilla-Version: unspecified
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: adhemerval.zanella at linaro dot org
X-Bugzilla-Status: REOPENED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields:
Message-ID: <bug-10353-131-qUluqe5vsY@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-10353-131@http.sourceware.org/bugzilla/>
References: <bug-10353-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00086.txt.bz2
Content-length: 835

https://sourceware.org/bugzilla/show_bug.cgi?id=10353

--- Comment #17 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
(In reply to Florian Weimer from comment #16)
> closefrom cannot fail.  I'm happy to implement /proc/self/fd fallback, but
> only if we also have a proper system call that can be used to implement this
> correctly (without possible failure).

It would fail as other file actions, by not spawning the process and returning
a generic error (we might also extend the posix_spawn to add a way to actually
provide more information of what has failed exactly).  I think it would be
feasible to implement closefrom initially with/proc/self/fd and later if/when
we get an actual syscall to move it as a fallback.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45457-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 15 13:12:37 2019
Return-Path: <glibc-bugs-return-45457-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 58193 invoked by alias); 15 May 2019 13:12:37 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 58140 invoked by uid 48); 15 May 2019 13:12:33 -0000
From: "yann at droneaud dot fr" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug dynamic-link/24561] New: _dl_addr: linear lookup inefficient, making mtrace() feature very slow
Date: Wed, 15 May 2019 13:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: dynamic-link
X-Bugzilla-Version: 2.31
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: yann at droneaud dot fr
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created
Message-ID: <bug-24561-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00087.txt.bz2
Content-length: 2768

https://sourceware.org/bugzilla/show_bug.cgi?id=24561

            Bug ID: 24561
           Summary: _dl_addr: linear lookup inefficient, making mtrace()
                    feature very slow
           Product: glibc
           Version: 2.31
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: dynamic-link
          Assignee: unassigned at sourceware dot org
          Reporter: yann at droneaud dot fr
  Target Milestone: ---

Created attachment 11778
  --> https://sourceware.org/bugzilla/attachment.cgi?id=11778&action=edit
perf top screenshot

I'm "profiling" memory usage during Glibc build using mtrace(), mtrace() being
enabled through a preloaded shared object injected through LD_PRELOAD into
every programs run by ./configure and make.

Unfortunately mtrace() hooks are inducing very expensive calls to _dl_addr().

It's so expansive that _dl_addr() is responsible for ~80% of the CPU cycles
according to linux's perf top, while I'm using make -j2, thus having only 2
jobs in parallel.

Samples: 5M of event 'cycles:ppp', 4000 Hz, Event count (approx.): 109055426197
lost: 0/0 drop: 0/0
Overhead  Shared Object            Symbol
  84,91%  libc-2.29.so             [.] _dl_addr
   0,61%  perf                     [.] hpp__sort_overhead
   0,36%  perf                     [.] rb_next
   0,24%  libpixman-1.so.0.38.0    [.] sse2_fill
   0,22%  perf                     [.] hist_entry__sort
   0,19%  libpthread-2.29.so       [.] __pthread_mutex_lock
   0,18%  [kernel]                 [k] update_blocked_averages
   0,18%  perf                     [.] perf_hpp__is_dynamic_entry
   0,17%  [kernel]                 [k] copy_user_enhanced_fast_string
   0,16%  perf                     [.] sort__dso_cmp
   0,15%  libc-2.29.so             [.] __vfprintf_internal
   0,15%  libc-2.29.so             [.] __strcmp_avx2
   0,15%  libc-2.29.so             [.] __memmove_avx_unaligned_erms
   0,13%  libglib-2.0.so.0.6000.2  [.] g_hash_table_lookup
   0,13%  perf                     [.] output_resort
   0,12%  [snd_hda_intel]          [k] pci_azx_readl
   0,12%  libc-2.29.so             [.] _int_malloc
   0,10%  perf                     [.] __hists__add_entry

It's not visible here, but they're two cc1 processes running (on my desktop).

_dl_addr() is way too slow. It's so slow I think it's using a very ineffective
way of looking things up.

Perhaps mtrace() hooks can be improved to put address resolutions results in a
cache (but it would require to be invalidated on dlopen(), dlclose()), but I
believe _dl_addr() could be improved, so that users of dladdr(), or dladdr1()
could benefit from a speed up.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45458-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 15 13:17:58 2019
Return-Path: <glibc-bugs-return-45458-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 69139 invoked by alias); 15 May 2019 13:17:56 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 69062 invoked by uid 48); 15 May 2019 13:17:53 -0000
From: "yann at droneaud dot fr" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug dynamic-link/24561] _dl_addr: linear lookup inefficient, making mtrace() feature very slow
Date: Wed, 15 May 2019 13:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: dynamic-link
X-Bugzilla-Version: 2.31
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: yann at droneaud dot fr
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-24561-131-vzhP5cm4vL@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24561-131@http.sourceware.org/bugzilla/>
References: <bug-24561-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00088.txt.bz2
Content-length: 331

https://sourceware.org/bugzilla/show_bug.cgi?id=24561

--- Comment #1 from Yann Droneaud <yann at droneaud dot fr> ---
Created attachment 11779
  --> https://sourceware.org/bugzilla/attachment.cgi?id=11779&action=edit
top and perf top screens

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45459-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 15 13:18:20 2019
Return-Path: <glibc-bugs-return-45459-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 69752 invoked by alias); 15 May 2019 13:18:20 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 69702 invoked by uid 48); 15 May 2019 13:18:17 -0000
From: "yann at droneaud dot fr" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug dynamic-link/24561] _dl_addr: linear lookup inefficient, making mtrace() feature very slow
Date: Wed, 15 May 2019 13:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: dynamic-link
X-Bugzilla-Version: 2.31
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: yann at droneaud dot fr
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.description
Message-ID: <bug-24561-131-ogpommv3ld@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24561-131@http.sourceware.org/bugzilla/>
References: <bug-24561-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00089.txt.bz2
Content-length: 446

https://sourceware.org/bugzilla/show_bug.cgi?id=24561

Yann Droneaud <yann at droneaud dot fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #11779|top and perf top screens    |top and perf top screenshot
        description|                            |

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45460-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 15 14:49:15 2019
Return-Path: <glibc-bugs-return-45460-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 79620 invoked by alias); 15 May 2019 14:49:15 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 79570 invoked by uid 55); 15 May 2019 14:49:12 -0000
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug locale/20568] Segfault with wide characters and setlocale/fgetwc/UTF-8
Date: Wed, 15 May 2019 14:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: locale
X-Bugzilla-Version: 2.24
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: cvs-commit at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-20568-131-iYW29jwqsv@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-20568-131@http.sourceware.org/bugzilla/>
References: <bug-20568-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00090.txt.bz2
Content-length: 766

https://sourceware.org/bugzilla/show_bug.cgi?id=20568

--- Comment #10 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Andreas Schwab <schwab@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=32ff397533715988c19cbf3675dcbd727ec13e18

commit 32ff397533715988c19cbf3675dcbd727ec13e18
Author: Andreas Schwab <schwab@suse.de>
Date:   Tue May 14 17:14:59 2019 +0200

    Fix crash in _IO_wfile_sync (bug 20568)

    When computing the length of the converted part of the stdio buffer, use
    the number of consumed wide characters, not the (negative) distance to the
    end of the wide buffer.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45461-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 15 14:51:00 2019
Return-Path: <glibc-bugs-return-45461-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 87294 invoked by alias); 15 May 2019 14:51:00 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 85619 invoked by uid 48); 15 May 2019 14:50:57 -0000
From: "schwab@linux-m68k.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug locale/20568] Segfault with wide characters and setlocale/fgetwc/UTF-8
Date: Wed, 15 May 2019 14:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: locale
X-Bugzilla-Version: 2.24
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: schwab@linux-m68k.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: 2.30
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution target_milestone
Message-ID: <bug-20568-131-WAaqpSGWlY@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-20568-131@http.sourceware.org/bugzilla/>
References: <bug-20568-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00091.txt.bz2
Content-length: 565

https://sourceware.org/bugzilla/show_bug.cgi?id=20568

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |2.30

--- Comment #11 from Andreas Schwab <schwab@linux-m68k.org> ---
Fixed in 2.30.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45462-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 15 14:57:15 2019
Return-Path: <glibc-bugs-return-45462-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 23095 invoked by alias); 15 May 2019 14:57:15 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 23022 invoked by uid 48); 15 May 2019 14:57:12 -0000
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug locale/20568] Segfault with wide characters and setlocale/fgetwc/UTF-8
Date: Wed, 15 May 2019 14:57:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: locale
X-Bugzilla-Version: 2.24
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fweimer at redhat dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: 2.30
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: see_also
Message-ID: <bug-20568-131-LiXhsXFBn1@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-20568-131@http.sourceware.org/bugzilla/>
References: <bug-20568-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00092.txt.bz2
Content-length: 475

https://sourceware.org/bugzilla/show_bug.cgi?id=20568

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://bugzilla.redhat.com
                   |                            |/show_bug.cgi?id=1710460

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45464-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 15 15:24:58 2019
Return-Path: <glibc-bugs-return-45464-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 77997 invoked by alias); 15 May 2019 15:24:58 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 77954 invoked by uid 48); 15 May 2019 15:24:55 -0000
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/10353] Methods for deleting all file descriptors greater than given integer (closefrom)
Date: Wed, 15 May 2019 15:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: libc
X-Bugzilla-Version: unspecified
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fweimer at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: bug_status
Message-ID: <bug-10353-131-h43ehgyeLH@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-10353-131@http.sourceware.org/bugzilla/>
References: <bug-10353-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00094.txt.bz2
Content-length: 665

https://sourceware.org/bugzilla/show_bug.cgi?id=10353

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |NEW

--- Comment #18 from Florian Weimer <fweimer at redhat dot com> ---
Right, for the posix_spawn extension, we do not need a fail-safe function.

(FWOW, I have just posted a patch for a public getdents64 system call wrapper,
and I'm working on async-signal-safe directory stream parsing.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45463-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 15 15:24:01 2019
Return-Path: <glibc-bugs-return-45463-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 75934 invoked by alias); 15 May 2019 15:24:01 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 75849 invoked by uid 55); 15 May 2019 15:23:57 -0000
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug locale/20568] Segfault with wide characters and setlocale/fgetwc/UTF-8
Date: Wed, 15 May 2019 15:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: locale
X-Bugzilla-Version: 2.24
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: cvs-commit at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: 2.30
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-20568-131-FpEgkFP2uN@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-20568-131@http.sourceware.org/bugzilla/>
References: <bug-20568-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00093.txt.bz2
Content-length: 847

https://sourceware.org/bugzilla/show_bug.cgi?id=20568

--- Comment #12 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The release/2.29/master branch has been updated by Florian Weimer
<fw@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c6177be4b92d5d7df50a785652d1912db511423e

commit c6177be4b92d5d7df50a785652d1912db511423e
Author: Andreas Schwab <schwab@suse.de>
Date:   Wed May 15 17:09:05 2019 +0200

    Fix crash in _IO_wfile_sync (bug 20568)

    When computing the length of the converted part of the stdio buffer, use
    the number of consumed wide characters, not the (negative) distance to the
    end of the wide buffer.

    (cherry picked from commit 32ff397533715988c19cbf3675dcbd727ec13e18)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45465-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 15 15:35:14 2019
Return-Path: <glibc-bugs-return-45465-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 127914 invoked by alias); 15 May 2019 15:35:14 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 127830 invoked by uid 55); 15 May 2019 15:35:11 -0000
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug locale/20568] Segfault with wide characters and setlocale/fgetwc/UTF-8
Date: Wed, 15 May 2019 15:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: locale
X-Bugzilla-Version: 2.24
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: cvs-commit at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: 2.30
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-20568-131-uuGCmrxqEx@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-20568-131@http.sourceware.org/bugzilla/>
References: <bug-20568-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00095.txt.bz2
Content-length: 847

https://sourceware.org/bugzilla/show_bug.cgi?id=20568

--- Comment #13 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The release/2.28/master branch has been updated by Florian Weimer
<fw@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=d948478bc586dec2fe3edd49e8e55f3893b3f854

commit d948478bc586dec2fe3edd49e8e55f3893b3f854
Author: Andreas Schwab <schwab@suse.de>
Date:   Tue May 14 17:14:59 2019 +0200

    Fix crash in _IO_wfile_sync (bug 20568)

    When computing the length of the converted part of the stdio buffer, use
    the number of consumed wide characters, not the (negative) distance to the
    end of the wide buffer.

    (cherry picked from commit 32ff397533715988c19cbf3675dcbd727ec13e18)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45466-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 15 15:44:38 2019
Return-Path: <glibc-bugs-return-45466-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 16824 invoked by alias); 15 May 2019 15:44:37 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 16772 invoked by uid 55); 15 May 2019 15:44:34 -0000
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug locale/20568] Segfault with wide characters and setlocale/fgetwc/UTF-8
Date: Wed, 15 May 2019 15:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: locale
X-Bugzilla-Version: 2.24
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: cvs-commit at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: 2.30
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-20568-131-GbakI4BgCF@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-20568-131@http.sourceware.org/bugzilla/>
References: <bug-20568-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00096.txt.bz2
Content-length: 847

https://sourceware.org/bugzilla/show_bug.cgi?id=20568

--- Comment #14 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The release/2.27/master branch has been updated by Florian Weimer
<fw@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f9c3c12f3365c3e26aa11a31c6effea7d959f0ba

commit f9c3c12f3365c3e26aa11a31c6effea7d959f0ba
Author: Andreas Schwab <schwab@suse.de>
Date:   Tue May 14 17:14:59 2019 +0200

    Fix crash in _IO_wfile_sync (bug 20568)

    When computing the length of the converted part of the stdio buffer, use
    the number of consumed wide characters, not the (negative) distance to the
    end of the wide buffer.

    (cherry picked from commit 32ff397533715988c19cbf3675dcbd727ec13e18)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45467-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 15 16:18:23 2019
Return-Path: <glibc-bugs-return-45467-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 77229 invoked by alias); 15 May 2019 16:18:23 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 77160 invoked by uid 48); 15 May 2019 16:18:20 -0000
From: "yann at droneaud dot fr" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug dynamic-link/24561] _dl_addr: linear lookup inefficient, making mtrace() feature very slow
Date: Wed, 15 May 2019 16:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: dynamic-link
X-Bugzilla-Version: 2.31
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: yann at droneaud dot fr
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc attachments.created
Message-ID: <bug-24561-131-WCaSXt0aCM@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24561-131@http.sourceware.org/bugzilla/>
References: <bug-24561-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00097.txt.bz2
Content-length: 638

https://sourceware.org/bugzilla/show_bug.cgi?id=24561

Yann Droneaud <yann at droneaud dot fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yann at droneaud dot fr

--- Comment #2 from Yann Droneaud <yann at droneaud dot fr> ---
Created attachment 11780
  --> https://sourceware.org/bugzilla/attachment.cgi?id=11780&action=edit
mtrace() LD_PRELOAD injector

From https://github.com/opteya/libmtraceall

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45468-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 15 16:48:30 2019
Return-Path: <glibc-bugs-return-45468-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 5942 invoked by alias); 15 May 2019 16:48:30 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 5455 invoked by uid 48); 15 May 2019 16:48:27 -0000
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug dynamic-link/24561] _dl_addr: linear lookup inefficient, making mtrace() feature very slow
Date: Wed, 15 May 2019 16:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: dynamic-link
X-Bugzilla-Version: 2.31
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fweimer at redhat dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: cc flagtypes.name
Message-ID: <bug-24561-131-7eU2KZ2euu@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24561-131@http.sourceware.org/bugzilla/>
References: <bug-24561-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00098.txt.bz2
Content-length: 887

https://sourceware.org/bugzilla/show_bug.cgi?id=24561

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fweimer at redhat dot com
              Flags|                            |security-

--- Comment #3 from Florian Weimer <fweimer at redhat dot com> ---
Torvald and I discussed this a while back in the context of the GCC exception
handling issue: https://gcc.gnu.org/ml/gcc/2013-05/msg00287.html

I think I have a prototype patch somewhere for implementing a binary search in
_dl_find_dso_for_object (without locking).  I just need to polish it, and we
need a review of the (non-trivial) concurrency bits in it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45469-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 15 19:51:31 2019
Return-Path: <glibc-bugs-return-45469-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 130595 invoked by alias); 15 May 2019 19:51:31 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 130550 invoked by uid 48); 15 May 2019 19:51:28 -0000
From: "mark at klomp dot org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug dynamic-link/24476] __libc_freeres triggers bad free in libdl if dlerror was not used
Date: Wed, 15 May 2019 19:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: dynamic-link
X-Bugzilla-Version: 2.28
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mark at klomp dot org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: mark at klomp dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-24476-131-lFWUGGgntC@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24476-131@http.sourceware.org/bugzilla/>
References: <bug-24476-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00099.txt.bz2
Content-length: 592

https://sourceware.org/bugzilla/show_bug.cgi?id=24476

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|carlos at redhat dot com           |mark at klomp dot org

--- Comment #4 from Mark Wielaard <mark at klomp dot org> ---
Updated patch: https://sourceware.org/ml/libc-alpha/2019-05/msg00320.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45470-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 15 21:50:55 2019
Return-Path: <glibc-bugs-return-45470-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 36834 invoked by alias); 15 May 2019 21:50:55 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 36790 invoked by uid 48); 15 May 2019 21:50:50 -0000
From: "mark at klomp dot org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug dynamic-link/24476] __libc_freeres triggers bad free in libdl if dlerror was not used
Date: Wed, 15 May 2019 21:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: dynamic-link
X-Bugzilla-Version: 2.28
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mark at klomp dot org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: mark at klomp dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-24476-131-H8rLXJj7A7@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24476-131@http.sourceware.org/bugzilla/>
References: <bug-24476-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00100.txt.bz2
Content-length: 1536

https://sourceware.org/bugzilla/show_bug.cgi?id=24476

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Mark Wielaard <mark at klomp dot org> ---
commit 11b451c8868d8a2b0edc5dfd44fc58d9ee538be0
Author: Mark Wielaard <mark@klomp.org>
Date:   Wed May 15 17:14:01 2019 +0200

    dlfcn: Guard __dlerror_main_freeres with __libc_once_get (once) [BZ# 24476]

    dlerror.c (__dlerror_main_freeres) will try to free resources which only
    have been initialized when init () has been called. That function is
    called when resources are needed using __libc_once (once, init) where
    once is a __libc_once_define (static, once) in the dlerror.c file.
    Trying to free those resources if init () hasn't been called will
    produce errors under valgrind memcheck. So guard the freeing of those
    resources using __libc_once_get (once) and make sure we have a valid
    key. Also add a similar guard to __dlerror ().

        * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
        __libc_once_get (once) and static_bug == NULL.
        (__dlerror): Check we have a valid key, set result to static_buf
        otherwise.

    Reviewed-by: Carlos O'Donell <carlos@redhat.com>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45471-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu May 16 08:21:46 2019
Return-Path: <glibc-bugs-return-45471-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 72170 invoked by alias); 16 May 2019 08:21:46 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 72125 invoked by uid 48); 16 May 2019 08:21:43 -0000
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug stdio/23525] Uninitialized multi-byte conversion state in fxprintf
Date: Thu, 16 May 2019 08:21:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: stdio
X-Bugzilla-Version: 2.28
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fweimer at redhat dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: fweimer at redhat dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-23525-131-nz1QpMoN9E@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-23525-131@http.sourceware.org/bugzilla/>
References: <bug-23525-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00101.txt.bz2
Content-length: 681

https://sourceware.org/bugzilla/show_bug.cgi?id=23525

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Florian Weimer <fweimer at redhat dot com> ---
The code clearly calls memset before mbsrtowcs:

  memset (&mbstate, 0, sizeof mbstate);
  res = __mbsrtowcs (wfmt, &fmt, len, &mbstate);

I don't know why I filed this bug.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45472-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu May 16 08:26:00 2019
Return-Path: <glibc-bugs-return-45472-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 82159 invoked by alias); 16 May 2019 08:26:00 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 82106 invoked by uid 48); 16 May 2019 08:25:57 -0000
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug stdio/24562] New: __fxprintf makes incorrect assumption about multibyte string conversion
Date: Thu, 16 May 2019 08:26:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: stdio
X-Bugzilla-Version: 2.30
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fweimer at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-24562-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00102.txt.bz2
Content-length: 774

https://sourceware.org/bugzilla/show_bug.cgi?id=24562

            Bug ID: 24562
           Summary: __fxprintf makes incorrect assumption about multibyte
                    string conversion
           Product: glibc
           Version: 2.30
            Status: NEW
          Severity: normal
          Priority: P2
         Component: stdio
          Assignee: unassigned at sourceware dot org
          Reporter: fweimer at redhat dot com
  Target Milestone: ---

locked_vfxprintf has this comment:

  /* We must convert the narrow format string to a wide one.
     Each byte can produce at most one wide character.  */

This is not actually true for the TSCII single-byte character set.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45473-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu May 16 08:47:10 2019
Return-Path: <glibc-bugs-return-45473-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 101037 invoked by alias); 16 May 2019 08:47:10 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 100983 invoked by uid 55); 16 May 2019 08:47:07 -0000
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug locale/20568] Segfault with wide characters and setlocale/fgetwc/UTF-8
Date: Thu, 16 May 2019 08:47:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: locale
X-Bugzilla-Version: 2.24
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: cvs-commit at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: 2.30
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-20568-131-XMrsep6Atc@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-20568-131@http.sourceware.org/bugzilla/>
References: <bug-20568-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00103.txt.bz2
Content-length: 847

https://sourceware.org/bugzilla/show_bug.cgi?id=20568

--- Comment #15 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The release/2.26/master branch has been updated by Florian Weimer
<fw@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=4385ec1d8af4203b23dce8c9dc2f1aff5acaf094

commit 4385ec1d8af4203b23dce8c9dc2f1aff5acaf094
Author: Andreas Schwab <schwab@suse.de>
Date:   Tue May 14 17:14:59 2019 +0200

    Fix crash in _IO_wfile_sync (bug 20568)

    When computing the length of the converted part of the stdio buffer, use
    the number of consumed wide characters, not the (negative) distance to the
    end of the wide buffer.

    (cherry picked from commit 32ff397533715988c19cbf3675dcbd727ec13e18)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45474-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu May 16 08:48:37 2019
Return-Path: <glibc-bugs-return-45474-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 103314 invoked by alias); 16 May 2019 08:48:37 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 103199 invoked by uid 55); 16 May 2019 08:48:31 -0000
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug locale/20568] Segfault with wide characters and setlocale/fgetwc/UTF-8
Date: Thu, 16 May 2019 08:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: locale
X-Bugzilla-Version: 2.24
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: cvs-commit at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: 2.30
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-20568-131-SjPovCjNI7@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-20568-131@http.sourceware.org/bugzilla/>
References: <bug-20568-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00104.txt.bz2
Content-length: 847

https://sourceware.org/bugzilla/show_bug.cgi?id=20568

--- Comment #16 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The release/2.26/master branch has been updated by Florian Weimer
<fw@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=4385ec1d8af4203b23dce8c9dc2f1aff5acaf094

commit 4385ec1d8af4203b23dce8c9dc2f1aff5acaf094
Author: Andreas Schwab <schwab@suse.de>
Date:   Tue May 14 17:14:59 2019 +0200

    Fix crash in _IO_wfile_sync (bug 20568)

    When computing the length of the converted part of the stdio buffer, use
    the number of consumed wide characters, not the (negative) distance to the
    end of the wide buffer.

    (cherry picked from commit 32ff397533715988c19cbf3675dcbd727ec13e18)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45475-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu May 16 09:12:39 2019
Return-Path: <glibc-bugs-return-45475-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 93149 invoked by alias); 16 May 2019 09:12:39 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 93094 invoked by uid 55); 16 May 2019 09:12:36 -0000
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug locale/20568] Segfault with wide characters and setlocale/fgetwc/UTF-8
Date: Thu, 16 May 2019 09:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: locale
X-Bugzilla-Version: 2.24
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: cvs-commit at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: 2.30
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-20568-131-IgzDoph7Oz@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-20568-131@http.sourceware.org/bugzilla/>
References: <bug-20568-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00105.txt.bz2
Content-length: 847

https://sourceware.org/bugzilla/show_bug.cgi?id=20568

--- Comment #17 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The release/2.25/master branch has been updated by Florian Weimer
<fw@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=60bc81ba47915817fb89bc2b80b0176ac1eeba07

commit 60bc81ba47915817fb89bc2b80b0176ac1eeba07
Author: Andreas Schwab <schwab@suse.de>
Date:   Tue May 14 17:14:59 2019 +0200

    Fix crash in _IO_wfile_sync (bug 20568)

    When computing the length of the converted part of the stdio buffer, use
    the number of consumed wide characters, not the (negative) distance to the
    end of the wide buffer.

    (cherry picked from commit 32ff397533715988c19cbf3675dcbd727ec13e18)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45476-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu May 16 10:08:04 2019
Return-Path: <glibc-bugs-return-45476-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 123035 invoked by alias); 16 May 2019 10:08:04 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 118558 invoked by uid 48); 16 May 2019 10:08:01 -0000
From: "mark at klomp dot org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug dynamic-link/24476] __libc_freeres triggers bad free in libdl if dlerror was not used
Date: Thu, 16 May 2019 10:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: dynamic-link
X-Bugzilla-Version: 2.28
X-Bugzilla-Keywords: glibc_2.28, glibc_2.29
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mark at klomp dot org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: mark at klomp dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: keywords
Message-ID: <bug-24476-131-LuYh0NLZQv@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24476-131@http.sourceware.org/bugzilla/>
References: <bug-24476-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00106.txt.bz2
Content-length: 389

https://sourceware.org/bugzilla/show_bug.cgi?id=24476

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |glibc_2.28, glibc_2.29

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45477-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu May 16 10:12:03 2019
Return-Path: <glibc-bugs-return-45477-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 37754 invoked by alias); 16 May 2019 10:12:02 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 37705 invoked by uid 48); 16 May 2019 10:11:59 -0000
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug stdio/24562] __fxprintf makes incorrect assumption about multibyte string conversion
Date: Thu, 16 May 2019 10:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: stdio
X-Bugzilla-Version: 2.30
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fweimer at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: dependson
Message-ID: <bug-24562-131-rt0qyixdA6@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24562-131@http.sourceware.org/bugzilla/>
References: <bug-24562-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00107.txt.bz2
Content-length: 532

https://sourceware.org/bugzilla/show_bug.cgi?id=24562

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |24563


Referenced Bugs:

https://sourceware.org/bugzilla/show_bug.cgi?id=24563
[Bug 24563] vfprintf makes incorrect assumption about wchar_t character count
-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45478-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu May 16 10:12:03 2019
Return-Path: <glibc-bugs-return-45478-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 37764 invoked by alias); 16 May 2019 10:12:02 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 37692 invoked by uid 48); 16 May 2019 10:11:59 -0000
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug stdio/24563] New: vfprintf makes incorrect assumption about wchar_t character count
Date: Thu, 16 May 2019 10:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: stdio
X-Bugzilla-Version: 2.30
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fweimer at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter blocked target_milestone flagtypes.name
Message-ID: <bug-24563-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00108.txt.bz2
Content-length: 1653

https://sourceware.org/bugzilla/show_bug.cgi?id=24563

            Bug ID: 24563
           Summary: vfprintf makes incorrect assumption about wchar_t
                    character count
           Product: glibc
           Version: 2.30
            Status: NEW
          Severity: normal
          Priority: P2
         Component: stdio
          Assignee: unassigned at sourceware dot org
          Reporter: fweimer at redhat dot com
            Blocks: 24562
  Target Milestone: ---
             Flags: security-

This assumption is not true for exotic character sets as TSCII:

            /* Allocate dynamically an array which definitely is long         \
               enough for the wide character version.  Each byte in the       \
               multi-byte string can produce at most one wide character.  */  \
            if (__glibc_unlikely (len > SIZE_MAX / sizeof (wchar_t)))         \
              {                                                               \
                __set_errno (EOVERFLOW);                                      \
                done = -1;                                                    \
                goto all_done;                                                \
              }                                                               \

See Unicode Technical Note 15 <https://www.unicode.org/notes/tn15/> for the
background.


Referenced Bugs:

https://sourceware.org/bugzilla/show_bug.cgi?id=24562
[Bug 24562] __fxprintf makes incorrect assumption about multibyte string
conversion
-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45479-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu May 16 13:34:09 2019
Return-Path: <glibc-bugs-return-45479-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 713 invoked by alias); 16 May 2019 13:34:09 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 647 invoked by uid 48); 16 May 2019 13:34:06 -0000
From: "mark at klomp dot org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug dynamic-link/24476] __libc_freeres triggers bad free in libdl if dlerror was not used
Date: Thu, 16 May 2019 13:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: dynamic-link
X-Bugzilla-Version: 2.28
X-Bugzilla-Keywords: glibc_2.28, glibc_2.29
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mark at klomp dot org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: mark at klomp dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields:
Message-ID: <bug-24476-131-J7EvNeXFui@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24476-131@http.sourceware.org/bugzilla/>
References: <bug-24476-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00109.txt.bz2
Content-length: 279

https://sourceware.org/bugzilla/show_bug.cgi?id=24476

--- Comment #6 from Mark Wielaard <mark at klomp dot org> ---
Also backported/cherry-picked to release/2.28/master and release/2.29/master.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45480-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu May 16 14:48:02 2019
Return-Path: <glibc-bugs-return-45480-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 4658 invoked by alias); 16 May 2019 14:48:01 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 2629 invoked by uid 48); 16 May 2019 14:47:58 -0000
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug dynamic-link/24561] _dl_addr: linear lookup inefficient, making mtrace() feature very slow
Date: Thu, 16 May 2019 14:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: dynamic-link
X-Bugzilla-Version: 2.31
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fweimer at redhat dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields:
Message-ID: <bug-24561-131-kdxGXsz42u@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24561-131@http.sourceware.org/bugzilla/>
References: <bug-24561-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00110.txt.bz2
Content-length: 297

https://sourceware.org/bugzilla/show_bug.cgi?id=24561

--- Comment #4 from Florian Weimer <fweimer at redhat dot com> ---
Sorry, this came across wrong.  If someone else has a patch for this, I'll
gladly review it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45481-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu May 16 17:55:38 2019
Return-Path: <glibc-bugs-return-45481-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 74318 invoked by alias); 16 May 2019 17:55:37 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 74219 invoked by uid 48); 16 May 2019 17:55:33 -0000
From: "ats-sourceware at offog dot org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug nptl/24568] New: gdb colored output makes nptl/test-*-printers fail
Date: Thu, 16 May 2019 17:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: nptl
X-Bugzilla-Version: 2.29
X-Bugzilla-Keywords:
X-Bugzilla-Severity: minor
X-Bugzilla-Who: ats-sourceware at offog dot org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-24568-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00111.txt.bz2
Content-length: 1228

https://sourceware.org/bugzilla/show_bug.cgi?id=24568

            Bug ID: 24568
           Summary: gdb colored output makes nptl/test-*-printers fail
           Product: glibc
           Version: 2.29
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: nptl
          Assignee: unassigned at sourceware dot org
          Reporter: ats-sourceware at offog dot org
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

With current glibc 2.29 (git 980cb43f15c4320afc6272e7a508f1415413b945) and gdb
8.3, several tests fail:

FAIL: nptl/test-cond-printers
FAIL: nptl/test-condattr-printers
FAIL: nptl/test-mutex-printers
FAIL: nptl/test-mutexattr-printers
FAIL: nptl/test-rwlock-printers
FAIL: nptl/test-rwlockattr-printers

Examining the .out files, this is because gdb is producing messages with color
escapes in them that don't match the patterns the tests expect.

Hacking init_test in test_printers_common.py to do "set style enabled off"
fixes this, but maybe gdb should be in batch mode, or the terminal type set to
something that wouldn't use highlighting instead?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45482-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu May 16 19:04:39 2019
Return-Path: <glibc-bugs-return-45482-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 42423 invoked by alias); 16 May 2019 19:04:39 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 42355 invoked by uid 48); 16 May 2019 19:04:36 -0000
From: "adhemerval.zanella at linaro dot org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/24570] New: alpha: compat msgctl uses __IPC_64
Date: Thu, 16 May 2019 19:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: libc
X-Bugzilla-Version: 2.25
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: adhemerval.zanella at linaro dot org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-24570-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00112.txt.bz2
Content-length: 1079

https://sourceware.org/bugzilla/show_bug.cgi?id=24570

            Bug ID: 24570
           Summary: alpha: compat msgctl uses __IPC_64
           Product: glibc
           Version: 2.25
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: adhemerval.zanella at linaro dot org
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

Since glibc 2.25 (356c0aabd0191cdd7287ccf1ec8bbaa4862a0823) alpha passed
__IPC_64 on its compat msgctl:

---
 int
 attribute_compat_text_section
 __old_msgctl (int msqid, int cmd, struct __old_msqid_ds *buf)
 {
#ifdef __ASSUME_DIRECT_SYSVIPC_SYSCALLS
  return INLINE_SYSCALL_CALL (msgctl, msqid, cmd | __IPC_64, buf);
#else
  return INLINE_SYSCALL_CALL (ipc, IPCOP_msgctl, msqid, cmd, 0, buf);
#endif
 }
---

Fortunately alpha is currently the only ABI that has wire-up msgctl which also
requires the compat symbol handling.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45483-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu May 16 19:07:43 2019
Return-Path: <glibc-bugs-return-45483-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 48439 invoked by alias); 16 May 2019 19:07:43 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 48383 invoked by uid 48); 16 May 2019 19:07:40 -0000
From: "adhemerval.zanella at linaro dot org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/24570] alpha: compat msgctl uses __IPC_64
Date: Thu, 16 May 2019 19:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: libc
X-Bugzilla-Version: 2.25
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: adhemerval.zanella at linaro dot org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: adhemerval.zanella at linaro dot org
X-Bugzilla-Target-Milestone: 2.30
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: assigned_to target_milestone
Message-ID: <bug-24570-131-jTkmezzWqL@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24570-131@http.sourceware.org/bugzilla/>
References: <bug-24570-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00113.txt.bz2
Content-length: 536

https://sourceware.org/bugzilla/show_bug.cgi?id=24570

Adhemerval Zanella <adhemerval.zanella at linaro dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at sourceware dot org   |adhemerval.zanella at linaro dot o
                   |                            |rg
   Target Milestone|---                         |2.30

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45484-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu May 16 20:31:15 2019
Return-Path: <glibc-bugs-return-45484-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 11064 invoked by alias); 16 May 2019 20:31:15 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 11027 invoked by uid 48); 16 May 2019 20:31:12 -0000
From: "yann at droneaud dot fr" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug malloc/16939] revert malloc hook deprecation or provide an alternative
Date: Thu, 16 May 2019 20:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: malloc
X-Bugzilla-Version: unspecified
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: yann at droneaud dot fr
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: WONTFIX
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-16939-131-ellku6laCh@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-16939-131@http.sourceware.org/bugzilla/>
References: <bug-16939-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00114.txt.bz2
Content-length: 392

https://sourceware.org/bugzilla/show_bug.cgi?id=16939

Yann Droneaud <yann at droneaud dot fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yann at droneaud dot fr

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45485-listarch-glibc-bugs=sources.redhat.com@sourceware.org Sat May 18 19:22:36 2019
Return-Path: <glibc-bugs-return-45485-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 4268 invoked by alias); 18 May 2019 19:22:36 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 4216 invoked by uid 48); 18 May 2019 19:22:32 -0000
From: "slyfox at inbox dot ru" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug build/24577] New: 'make install-headers' fails for riscv64-unknown-linux-gnu: sysdeps/riscv/bits/wordsize.h:28:3: error: #error "rv32i-based targets are not supported"
Date: Sat, 18 May 2019 19:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: build
X-Bugzilla-Version: 2.28
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: slyfox at inbox dot ru
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-24577-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00115.txt.bz2
Content-length: 3461

https://sourceware.org/bugzilla/show_bug.cgi?id=24577

            Bug ID: 24577
           Summary: 'make install-headers' fails for
                    riscv64-unknown-linux-gnu:
                    sysdeps/riscv/bits/wordsize.h:28:3: error: #error
                    "rv32i-based targets are not supported"
           Product: glibc
           Version: 2.28
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: slyfox at inbox dot ru
                CC: carlos at redhat dot com
  Target Milestone: ---

Gentoo bootstraps gcc cross-compilers in the following way:

1. build cross-binutils:
2. Install system headers (kernel headers and libc headers):
3. build minimal GCC without libc support (not able to link final
4. build complete libc (gcc will need crt.o files)
5. build full GCC (able to link final binaries for C and C++)

This bug is about build failure on [2.] step. Note: we don't have a
cross-compiler there.

More build failure details are at: https://bugs.gentoo.org/686248
The summary of it is failure to preprocess target files with host compiler:

x86_64-pc-linux-gnu-gcc -E -dM -MD -MP -MF
/tmp/portage/cross-riscv64-unknown-linux-gnu/glibc-2.28-r6/work/build-default-riscv64-unknown-linux-gnu-headers/bits/stdio_lim.dT
-MT
'/tmp/portage/cross-riscv64-unknown-linux-gnu/glibc-2.28-r6/work/build-default-riscv64-unknown-linux-gnu-headers/bits/stdio_lim.h
/tmp/portage/cross-riscv64-unknown-linux-gnu/glibc-2.28-r6/work/build-default-riscv64-unknown-linux-gnu-headers/bits/stdio_lim.d'
   \
       -I../include
-I/tmp/portage/cross-riscv64-unknown-linux-gnu/glibc-2.28-r6/work/build-default-riscv64-unknown-linux-gnu-headers/stdio-common

-I/tmp/portage/cross-riscv64-unknown-linux-gnu/glibc-2.28-r6/work/build-default-riscv64-unknown-linux-gnu-headers
 -I../sysdeps/unix/sysv/linux/riscv/rv64  -I../sysdeps/unix/sysv/linux/riscv 
-I../sysdeps/riscv/nptl  -I../sysdeps/unix/sysv/linux/generic 
-I../sysdeps/unix/sysv/linux/wordsize-64  -I../sysdeps/unix/sysv/linux/include
-I../sysdeps/unix/sysv/linux  -I../sysdeps/nptl  -I../sysdeps/pthread 
-I../sysdeps/gnu  -I../sysdeps/unix/inet  -I../sysdeps/unix/sysv 
-I../sysdeps/unix  -I../sysdeps/posix  -I../sysdeps/riscv/rv64/rvd 
-I../sysdeps/riscv/rv64/rvf  -I../sysdeps/riscv/rvf  -I../sysdeps/riscv/rvd 
-I../sysdeps/riscv/rv64  -I../sysdeps/riscv  -I../sysdeps/init_array 
-I../sysdeps/ieee754/ldbl-128  -I../sysdeps/ieee754/dbl-64 
-I../sysdeps/ieee754/flt-32  -I../sysdeps/wordsize-64  -I../sysdeps/ieee754 
-I../sysdeps/generic  -I.. -I../libio -I. -nostdinc -isystem
/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/include -isystem
/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/include-fixed -isystem
/usr/riscv64-unknown-linux-gnu/usr/include -xc - -o
/tmp/portage/cross-riscv64-unknown-linux-gnu/glibc-2.28-r6/work/build-default-riscv64-unknown-linux-gnu-headers/bits/stdio_lim.hT
In file included from ../posix/bits/posix1_lim.h:27,
                 from <stdin>:1:
../sysdeps/riscv/bits/wordsize.h:22:3: error: #error unsupported ABI
   22 | # error unsupported ABI
      |   ^~~~~
../sysdeps/riscv/bits/wordsize.h:28:3: error: #error "rv32i-based targets are
not supported"
   28 | # error "rv32i-based targets are not supported"
      |   ^~~~~

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45486-listarch-glibc-bugs=sources.redhat.com@sourceware.org Sat May 18 19:26:52 2019
Return-Path: <glibc-bugs-return-45486-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 21026 invoked by alias); 18 May 2019 19:26:52 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 20997 invoked by uid 48); 18 May 2019 19:26:49 -0000
From: "slyfox at inbox dot ru" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug build/24577] 'make install-headers' fails for riscv64-unknown-linux-gnu: sysdeps/riscv/bits/wordsize.h:28:3: error: #error "rv32i-based targets are not supported"
Date: Sat, 18 May 2019 19:26:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: build
X-Bugzilla-Version: 2.28
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: slyfox at inbox dot ru
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-24577-131-HNsEWW5li9@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24577-131@http.sourceware.org/bugzilla/>
References: <bug-24577-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00116.txt.bz2
Content-length: 1007

https://sourceware.org/bugzilla/show_bug.cgi?id=24577

--- Comment #1 from Sergei Trofimovich <slyfox at inbox dot ru> ---
Created attachment 11784
  --> https://sourceware.org/bugzilla/attachment.cgi?id=11784&action=edit
glibc-2.28-cppflags.patch

glibc-2.28-cppflags.patch allows passing CPPFLAGS to depend generation to
workaround the failure.

This way Gentoo work failure around by calling ./configure as:

CC=x86_64-pc-linux-gnu-gcc CPPFLAGS='-U_FORTIFY_SOURCE -D__riscv_xlen=64
-D__riscv_flen=64 -D__riscv_float_abi_double=1 -D__riscv_atomic=1' ./configure 
--build=x86_64-pc-linux-gnu --host=risc v64-unknown-linux-gnu
--with-headers=/usr/riscv64-unknown-linux-gnu/usr/include --prefix=/usr ...

Looks like riscv is the only target that requires CPPFLAGS workaround. Should
glibc headers (or sysdeps/riscv/preconfigure) be restructures to inject these
automatically?

Thank you!

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45487-listarch-glibc-bugs=sources.redhat.com@sourceware.org Sun May 19 12:34:09 2019
Return-Path: <glibc-bugs-return-45487-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 45035 invoked by alias); 19 May 2019 12:34:09 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 44981 invoked by uid 48); 19 May 2019 12:34:05 -0000
From: "liucheng32 at huawei dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug network/24579] New: uninitialized return value of pmap_set & pmap_unset
Date: Sun, 19 May 2019 12:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: network
X-Bugzilla-Version: 2.29
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: liucheng32 at huawei dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-24579-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00117.txt.bz2
Content-length: 2397

https://sourceware.org/bugzilla/show_bug.cgi?id=24579

            Bug ID: 24579
           Summary: uninitialized return value of pmap_set & pmap_unset
           Product: glibc
           Version: 2.29
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: network
          Assignee: unassigned at sourceware dot org
          Reporter: liucheng32 at huawei dot com
  Target Milestone: ---

The return value "rslt" in pmap_set/pmap_unset is not initialized, and is not
assigned in most cases, which may result in returning any random value.

In the case of pmap_set, rslt is assigned when CLNT_CALL(client, ...) !=
RPC_SUCCESS, and is used as a parameter in the CLNT_CALL macro; In the case of
pmap_unset, rslt is only used as a parameter in the CLNT_CALL macro.
Further analysis of the CLNT_CALL macro definition shows that there are several
implementations: UDP in clnt_udp.c, TCP in clnt_tcp.c, RAW in clnt_raw.c and
UNIX in clnt_unix.c. Analyzing the implementations of UDP, RAW and most cases
of TCP, UNIX, I find that second parameter(rlst) is not assigned.

So I think the following patch should be needed:
----------------------------------------------------------

From 3b25218da4d5de36954a21c28a88379a2b1f6e5e Mon Sep 17 00:00:00 2001
From: l00383200 <liucheng32@huawei.com>
Date: Sun, 19 May 2019 19:26:09 +0800
Subject: [PATCH] uninitialized return value of pmap_set and pmap_unset

The return value "rslt" in pmap_set/pmap_unset is not initialized, and is not
assigned in most cases, which may result in returning any random value.

---
 sunrpc/pmap_clnt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sunrpc/pmap_clnt.c b/sunrpc/pmap_clnt.c
index 69b4907..9cc9729 100644
--- a/sunrpc/pmap_clnt.c
+++ b/sunrpc/pmap_clnt.c
@@ -109,7 +109,7 @@ pmap_set (u_long program, u_long version, int protocol,
u_short port)
   int socket = -1;
   CLIENT *client;
   struct pmap parms;
-  bool_t rslt;
+  bool_t rslt = TRUE;

   if (!__get_myaddress (&myaddress))
     return FALSE;
@@ -145,7 +145,7 @@ pmap_unset (u_long program, u_long version)
   int socket = -1;
   CLIENT *client;
   struct pmap parms;
-  bool_t rslt;
+  bool_t rslt = TRUE;

   if (!__get_myaddress (&myaddress))
     return FALSE;
--
1.8.5.6

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45488-listarch-glibc-bugs=sources.redhat.com@sourceware.org Sun May 19 12:34:58 2019
Return-Path: <glibc-bugs-return-45488-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 45573 invoked by alias); 19 May 2019 12:34:57 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 45539 invoked by uid 48); 19 May 2019 12:34:55 -0000
From: "liucheng32 at huawei dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug network/24579] uninitialized return value of pmap_set & pmap_unset
Date: Sun, 19 May 2019 12:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: network
X-Bugzilla-Version: 2.29
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: liucheng32 at huawei dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-24579-131-0HOxiQR4QI@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24579-131@http.sourceware.org/bugzilla/>
References: <bug-24579-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00118.txt.bz2
Content-length: 400

https://sourceware.org/bugzilla/show_bug.cgi?id=24579

Cheng Liu <liucheng32 at huawei dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |liucheng32 at huawei dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45489-listarch-glibc-bugs=sources.redhat.com@sourceware.org Sun May 19 12:36:56 2019
Return-Path: <glibc-bugs-return-45489-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 47160 invoked by alias); 19 May 2019 12:36:55 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 47140 invoked by uid 48); 19 May 2019 12:36:52 -0000
From: "liucheng32 at huawei dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug network/24579] uninitialized return value of pmap_set & pmap_unset
Date: Sun, 19 May 2019 12:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: network
X-Bugzilla-Version: 2.29
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: liucheng32 at huawei dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-24579-131-n2UYZloeTN@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24579-131@http.sourceware.org/bugzilla/>
References: <bug-24579-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00119.txt.bz2
Content-length: 400

https://sourceware.org/bugzilla/show_bug.cgi?id=24579

Cheng Liu <liucheng32 at huawei dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nixiaoming at huawei dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45490-listarch-glibc-bugs=sources.redhat.com@sourceware.org Sun May 19 20:11:38 2019
Return-Path: <glibc-bugs-return-45490-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 91708 invoked by alias); 19 May 2019 20:11:38 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 91671 invoked by uid 48); 19 May 2019 20:11:34 -0000
From: "jeff.ogah at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug localedata/24580] New: Appropriate AM/PM time representation  for en_NG
Date: Sun, 19 May 2019 20:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: localedata
X-Bugzilla-Version: unspecified
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jeff.ogah at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone attachments.created
Message-ID: <bug-24580-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00120.txt.bz2
Content-length: 761

https://sourceware.org/bugzilla/show_bug.cgi?id=24580

            Bug ID: 24580
           Summary: Appropriate AM/PM time representation  for en_NG
           Product: glibc
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: localedata
          Assignee: unassigned at sourceware dot org
          Reporter: jeff.ogah at gmail dot com
                CC: libc-locales at sourceware dot org
  Target Milestone: ---

Created attachment 11785
  --> https://sourceware.org/bugzilla/attachment.cgi?id=11785&action=edit
Patch for en_NG

Include AM/PM 12hr time representation for en_NG locale

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45491-listarch-glibc-bugs=sources.redhat.com@sourceware.org Sun May 19 20:14:24 2019
Return-Path: <glibc-bugs-return-45491-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 93495 invoked by alias); 19 May 2019 20:14:23 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 93453 invoked by uid 48); 19 May 2019 20:14:20 -0000
From: "claude at 2xlibre dot net" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug localedata/24580] Appropriate AM/PM time representation  for en_NG
Date: Sun, 19 May 2019 20:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: localedata
X-Bugzilla-Version: unspecified
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: claude at 2xlibre dot net
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-24580-131-aBMc7Zit9e@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24580-131@http.sourceware.org/bugzilla/>
References: <bug-24580-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00121.txt.bz2
Content-length: 395

https://sourceware.org/bugzilla/show_bug.cgi?id=24580

Claude Paroz <claude at 2xlibre dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |claude at 2xlibre dot net

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45492-listarch-glibc-bugs=sources.redhat.com@sourceware.org Sun May 19 21:29:55 2019
Return-Path: <glibc-bugs-return-45492-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 41385 invoked by alias); 19 May 2019 21:29:55 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 41346 invoked by uid 48); 19 May 2019 21:29:51 -0000
From: "scott.franco42 at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug build/24581] New: Unable to build tip or 2.29 glibc with default options
Date: Sun, 19 May 2019 21:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: build
X-Bugzilla-Version: 2.29
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: scott.franco42 at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-24581-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00122.txt.bz2
Content-length: 5833

https://sourceware.org/bugzilla/show_bug.cgi?id=24581

            Bug ID: 24581
           Summary: Unable to build tip or 2.29 glibc with default options
           Product: glibc
           Version: 2.29
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: scott.franco42 at gmail dot com
                CC: carlos at redhat dot com
  Target Milestone: ---

Hi, I have been unable to build from either the tip version or the 2.29 version
obtained by the page:

https://www.gnu.org/software/libc/sources.html

It builds for quite a while but fails:

gcc -static -static-libgcc -static-libstdc++  -shared -static-libgcc 
-Wl,-dynamic-linker=/home/samiam/projects/petit_ami/glibc_local/lib/ld-linux-x86-64.so.2
-Wl,-z,defs -B/home/samiam/projects/petit_ami/glibc_build/csu/ 
-Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both 
-L/home/samiam/projects/petit_ami/glibc_build
-L/home/samiam/projects/petit_ami/glibc_build/math
-L/home/samiam/projects/petit_ami/glibc_build/elf
-L/home/samiam/projects/petit_ami/glibc_build/dlfcn
-L/home/samiam/projects/petit_ami/glibc_build/nss
-L/home/samiam/projects/petit_ami/glibc_build/nis
-L/home/samiam/projects/petit_ami/glibc_build/rt
-L/home/samiam/projects/petit_ami/glibc_build/resolv
-L/home/samiam/projects/petit_ami/glibc_build/mathvec
-L/home/samiam/projects/petit_ami/glibc_build/support
-L/home/samiam/projects/petit_ami/glibc_build/crypt
-L/home/samiam/projects/petit_ami/glibc_build/nptl
-Wl,-rpath-link=/home/samiam/projects/petit_ami/glibc_build:/home/samiam/projects/petit_ami/glibc_build/math:/home/samiam/projects/petit_ami/glibc_build/elf:/home/samiam/projects/petit_ami/glibc_build/dlfcn:/home/samiam/projects/petit_ami/glibc_build/nss:/home/samiam/projects/petit_ami/glibc_build/nis:/home/samiam/projects/petit_ami/glibc_build/rt:/home/samiam/projects/petit_ami/glibc_build/resolv:/home/samiam/projects/petit_ami/glibc_build/mathvec:/home/samiam/projects/petit_ami/glibc_build/support:/home/samiam/projects/petit_ami/glibc_build/crypt:/home/samiam/projects/petit_ami/glibc_build/nptl
-o /home/samiam/projects/petit_ami/glibc_build/elf/sotruss-lib.so -T
/home/samiam/projects/petit_ami/glibc_build/shlib.lds
/home/samiam/projects/petit_ami/glibc_build/csu/abi-note.o -Wl,--as-needed
/home/samiam/projects/petit_ami/glibc_build/elf/sotruss-lib.os 
-Wl,--no-as-needed -Wl,--start-group
/home/samiam/projects/petit_ami/glibc_build/libc.so
/home/samiam/projects/petit_ami/glibc_build/libc_nonshared.a -Wl,--as-needed
/home/samiam/projects/petit_ami/glibc_build/elf/ld.so -Wl,--no-as-needed
-Wl,--end-group
   9112 /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/7/crtbeginT.o: relocation
R_X86_64_32 against hidden symbol `__TMC_END__' can not be used when making a
shared object
   9113 /usr/bin/ld: final link failed: Nonrepresentable section on output
   9114 collect2: error: ld returned 1 exit status
   9115 Makefile:129: recipe for target
'/home/samiam/projects/petit_ami/glibc_build/elf/sotruss-lib.so' failed
   9116 make[2]: ***
[/home/samiam/projects/petit_ami/glibc_build/elf/sotruss-lib.so] Error 1
   9117 make[2]: Leaving directory '/home/samiam/projects/petit_ami/glibc/elf'
   9118 Makefile:258: recipe for target 'elf/subdir_lib' failed
   9119 make[1]: *** [elf/subdir_lib] Error 2
   9120 make[1]: Leaving directory '/home/samiam/projects/petit_ami/glibc'
   9121 Makefile:9: recipe for target 'all' failed
   9122 make: *** [all] Error 2

My configure line is:

../glibc/configure --prefix=/home/samiam/projects/petit_ami/glibc_local
CC="gcc" CFLAGS="-O2"

I note that in the error, there are both "-static" and "-shared" options in the
same compiler line. If I take the above and use it as a compile line alone from
the make, and then remove the first "-static" option, it compiles without
error. I have also tried configuring with:

../glibc/configure --prefix=/home/samiam/projects/petit_ami/glibc_local

IE, default options, same error. I have also tried both the tip and the 2.29
version as the page says.

My gcc is:

samiam@samiam-linux-pc:~/projects/petit_ami/glibc_build$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
7.4.0-1ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs
--enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr
--with-gcc-major-version-only --program-suffix=-7
--program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie
--with-system-zlib --with-target-system-zlib --enable-objc-gc=auto
--enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64
--with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic
--enable-offload-targets=nvptx-none --without-cuda-driver
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu
Thread model: posix
gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04) 

I believe it is getting conflicting options. I don't know the glibc make system
sufficiently to fix this, but am working on it.

Thank you,

Scott Franco

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45493-listarch-glibc-bugs=sources.redhat.com@sourceware.org Mon May 20 06:39:48 2019
Return-Path: <glibc-bugs-return-45493-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 86620 invoked by alias); 20 May 2019 06:39:47 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 86472 invoked by uid 48); 20 May 2019 06:39:43 -0000
From: "liucheng32 at huawei dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug network/24579] uninitialized return value of pmap_set & pmap_unset
Date: Mon, 20 May 2019 06:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: network
X-Bugzilla-Version: 2.29
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: liucheng32 at huawei dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-24579-131-quDOMNmek9@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24579-131@http.sourceware.org/bugzilla/>
References: <bug-24579-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00123.txt.bz2
Content-length: 404

https://sourceware.org/bugzilla/show_bug.cgi?id=24579

Cheng Liu <liucheng32 at huawei dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |unassigned at sourceware dot org

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45494-listarch-glibc-bugs=sources.redhat.com@sourceware.org Mon May 20 10:19:11 2019
Return-Path: <glibc-bugs-return-45494-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 68536 invoked by alias); 20 May 2019 10:19:11 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 68479 invoked by uid 48); 20 May 2019 10:19:08 -0000
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug stdio/24583] New: Memory leak in fopen with ccs argument
Date: Mon, 20 May 2019 10:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: stdio
X-Bugzilla-Version: 2.30
X-Bugzilla-Keywords:
X-Bugzilla-Severity: minor
X-Bugzilla-Who: fweimer at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone flagtypes.name
Message-ID: <bug-24583-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00124.txt.bz2
Content-length: 1071

https://sourceware.org/bugzilla/show_bug.cgi?id=24583

            Bug ID: 24583
           Summary: Memory leak in fopen with ccs argument
           Product: glibc
           Version: 2.30
            Status: NEW
          Severity: minor
          Priority: P2
         Component: stdio
          Assignee: unassigned at sourceware dot org
          Reporter: fweimer at redhat dot com
  Target Milestone: ---
             Flags: security-

Reproducer:

#include <err.h>
#include <locale.h>
#include <stdio.h>

int
main (void)
{
  if (setlocale (LC_ALL, "fr_FR.iso885915@euro") == NULL)
    err (1, "setlocale");
  FILE *fp = fopen ("/etc/passwd", "r,ccs=UTF-8");
  if (fp == NULL)
    err (1, "fopen");
  if (fclose (fp) != 0)
    err (1, "fclose");
  return 0;
}

The problem seems to be that the libio code never calls __gconv_close_transform
for the gconv functions returned by __wcsmbs_named_conv.  Calling
__gconv_release_step in _IO_new_fclose is not sufficient.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45495-listarch-glibc-bugs=sources.redhat.com@sourceware.org Mon May 20 10:47:52 2019
Return-Path: <glibc-bugs-return-45495-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 42745 invoked by alias); 20 May 2019 10:47:52 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 42711 invoked by uid 48); 20 May 2019 10:47:49 -0000
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug stdio/24583] Memory leak in fopen with ccs argument
Date: Mon, 20 May 2019 10:47:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: stdio
X-Bugzilla-Version: 2.30
X-Bugzilla-Keywords:
X-Bugzilla-Severity: minor
X-Bugzilla-Who: fweimer at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields:
Message-ID: <bug-24583-131-xDCs3hB70h@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24583-131@http.sourceware.org/bugzilla/>
References: <bug-24583-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00125.txt.bz2
Content-length: 361

https://sourceware.org/bugzilla/show_bug.cgi?id=24583

--- Comment #1 from Florian Weimer <fweimer at redhat dot com> ---
In the LeakSanitizer sources, this is identified as:

    // Leak in glibc's gconv caused by fopen(..., "r,ccs=UNICODE")
    "leak:__gconv_lookup_cache\n"

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45496-listarch-glibc-bugs=sources.redhat.com@sourceware.org Mon May 20 10:55:46 2019
Return-Path: <glibc-bugs-return-45496-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 63148 invoked by alias); 20 May 2019 10:55:46 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 62948 invoked by uid 48); 20 May 2019 10:55:42 -0000
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug locale/24584] New: Data race in __wcsmbs_clone_conv
Date: Mon, 20 May 2019 10:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: locale
X-Bugzilla-Version: 2.30
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fweimer at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone flagtypes.name
Message-ID: <bug-24584-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00126.txt.bz2
Content-length: 935

https://sourceware.org/bugzilla/show_bug.cgi?id=24584

            Bug ID: 24584
           Summary: Data race in __wcsmbs_clone_conv
           Product: glibc
           Version: 2.30
            Status: NEW
          Severity: normal
          Priority: P2
         Component: locale
          Assignee: unassigned at sourceware dot org
          Reporter: fweimer at redhat dot com
  Target Milestone: ---
             Flags: security-

__wcsmbs_clone_conv contains no locking and does this:

  /* Now increment the usage counters.
     Note: This assumes copy->*_nsteps == 1.  */
  if (copy->towc->__shlib_handle != NULL)
    ++copy->towc->__counter;
  if (copy->tomb->__shlib_handle != NULL)
    ++copy->tomb->__counter;

In other places, the counter is only modified under __gconv_lock.

(Adding an overflow check would not hurt, either.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45497-listarch-glibc-bugs=sources.redhat.com@sourceware.org Mon May 20 11:05:59 2019
Return-Path: <glibc-bugs-return-45497-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 100656 invoked by alias); 20 May 2019 11:05:59 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 100160 invoked by uid 48); 20 May 2019 11:05:54 -0000
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug locale/24584] Data race in __wcsmbs_clone_conv
Date: Mon, 20 May 2019 11:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: locale
X-Bugzilla-Version: 2.30
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fweimer at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: fweimer at redhat dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: assigned_to
Message-ID: <bug-24584-131-eG1sCtXasC@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24584-131@http.sourceware.org/bugzilla/>
References: <bug-24584-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00127.txt.bz2
Content-length: 406

https://sourceware.org/bugzilla/show_bug.cgi?id=24584

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at sourceware dot org   |fweimer at redhat dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45498-listarch-glibc-bugs=sources.redhat.com@sourceware.org Mon May 20 11:06:23 2019
Return-Path: <glibc-bugs-return-45498-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 104348 invoked by alias); 20 May 2019 11:06:23 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 104291 invoked by uid 48); 20 May 2019 11:06:20 -0000
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug locale/24584] Data race in __wcsmbs_clone_conv
Date: Mon, 20 May 2019 11:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: locale
X-Bugzilla-Version: 2.30
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fweimer at redhat dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: fweimer at redhat dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: bug_status
Message-ID: <bug-24584-131-kgVkBiGAVD@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24584-131@http.sourceware.org/bugzilla/>
References: <bug-24584-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00128.txt.bz2
Content-length: 380

https://sourceware.org/bugzilla/show_bug.cgi?id=24584

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45499-listarch-glibc-bugs=sources.redhat.com@sourceware.org Mon May 20 11:41:29 2019
Return-Path: <glibc-bugs-return-45499-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 6754 invoked by alias); 20 May 2019 11:41:29 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 3037 invoked by uid 48); 20 May 2019 11:41:26 -0000
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug stdio/24583] Memory leak in fopen with ccs argument
Date: Mon, 20 May 2019 11:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: stdio
X-Bugzilla-Version: 2.30
X-Bugzilla-Keywords:
X-Bugzilla-Severity: minor
X-Bugzilla-Who: fweimer at redhat dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: fweimer at redhat dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-24583-131-iRFwwTg5UY@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24583-131@http.sourceware.org/bugzilla/>
References: <bug-24583-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00129.txt.bz2
Content-length: 464

https://sourceware.org/bugzilla/show_bug.cgi?id=24583

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at sourceware dot org   |fweimer at redhat dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45500-listarch-glibc-bugs=sources.redhat.com@sourceware.org Mon May 20 12:05:58 2019
Return-Path: <glibc-bugs-return-45500-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 36754 invoked by alias); 20 May 2019 12:05:58 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 36668 invoked by uid 48); 20 May 2019 12:05:50 -0000
From: "adhemerval.zanella at linaro dot org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug build/24581] Unable to build tip or 2.29 glibc with default options
Date: Mon, 20 May 2019 12:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: build
X-Bugzilla-Version: 2.29
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: adhemerval.zanella at linaro dot org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-24581-131-jpYyNU4UPa@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24581-131@http.sourceware.org/bugzilla/>
References: <bug-24581-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00130.txt.bz2
Content-length: 2356

https://sourceware.org/bugzilla/show_bug.cgi?id=24581

Adhemerval Zanella <adhemerval.zanella at linaro dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |adhemerval.zanella at linaro dot o
                   |                            |rg

--- Comment #1 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
Are you sure the extra '-static' is not coming from a local configuration?
Using the released 2.29 source with the same configuration you used (including
the same gcc from ubuntu 18.04), I see:

gcc   -shared -static-libgcc 
-Wl,-dynamic-linker=/home/samiam/projects/petit_ami/glibc_local/lib/ld-linux-x86-64.so.2
-Wl,-z,defs -B/tmp/glibc-2.29/build/csu/  -Wl,-z,combreloc -Wl,-z,relro
-Wl,--hash-style=both  -L/tmp/glibc-2.29/build -L/tmp/glibc-2.29/build/math
-L/tmp/glibc-2.29/build/elf -L/tmp/glibc-2.29/build/dlfcn
-L/tmp/glibc-2.29/build/nss -L/tmp/glibc-2.29/build/nis
-L/tmp/glibc-2.29/build/rt -L/tmp/glibc-2.29/build/resolv
-L/tmp/glibc-2.29/build/mathvec -L/tmp/glibc-2.29/build/support
-L/tmp/glibc-2.29/build/crypt -L/tmp/glibc-2.29/build/nptl
-Wl,-rpath-link=/tmp/glibc-2.29/build:/tmp/glibc-2.29/build/math:/tmp/glibc-2.29/build/elf:/tmp/glibc-2.29/build/dlfcn:/tmp/glibc-2.29/build/nss:/tmp/glibc-2.29/build/nis:/tmp/glibc-2.29/build/rt:/tmp/glibc-2.29/build/resolv:/tmp/glibc-2.29/build/mathvec:/tmp/glibc-2.29/build/support:/tmp/glibc-2.29/build/crypt:/tmp/glibc-2.29/build/nptl
-o /tmp/glibc-2.29/build/elf/sotruss-lib.so 
/tmp/glibc-2.29/build/csu/abi-note.o -Wl,--as-needed
/tmp/glibc-2.29/build/elf/sotruss-lib.os  -Wl,--no-as-needed -Wl,--start-group
/tmp/glibc-2.29/build/libc.so /tmp/glibc-2.29/build/libc_nonshared.a
-Wl,--as-needed /tmp/glibc-2.29/build/elf/ld.so -Wl,--no-as-needed
-Wl,--end-group

Also, '-static' is just used on some specific rules within glibc make
configuration (static tests, some distributes binaries like sln). It really
does not make sense to add such configuration to a *shared library* and I
almost sure this is not coming from glibc build environment.  Could you
double-check if is not something your environment?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45501-listarch-glibc-bugs=sources.redhat.com@sourceware.org Mon May 20 12:18:50 2019
Return-Path: <glibc-bugs-return-45501-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 97355 invoked by alias); 20 May 2019 12:18:50 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 97298 invoked by uid 48); 20 May 2019 12:18:47 -0000
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug stdio/24563] vfprintf makes incorrect assumption about wchar_t character count
Date: Mon, 20 May 2019 12:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: stdio
X-Bugzilla-Version: 2.30
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fweimer at redhat dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: fweimer at redhat dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-24563-131-pT62yeSMcv@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24563-131@http.sourceware.org/bugzilla/>
References: <bug-24563-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00131.txt.bz2
Content-length: 676

https://sourceware.org/bugzilla/show_bug.cgi?id=24563

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at sourceware dot org   |fweimer at redhat dot com

--- Comment #1 from Florian Weimer <fweimer at redhat dot com> ---
I have a patch (based on an earlier patch which introduces piece-by-piece
conversion for %sl), but it does not completely fix my test case yet.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45502-listarch-glibc-bugs=sources.redhat.com@sourceware.org Mon May 20 12:34:08 2019
Return-Path: <glibc-bugs-return-45502-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 23019 invoked by alias); 20 May 2019 12:34:07 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 22992 invoked by uid 48); 20 May 2019 12:34:04 -0000
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug stdio/24588] New: Remove codecvt vtables from libio
Date: Mon, 20 May 2019 12:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: stdio
X-Bugzilla-Version: 2.30
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fweimer at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-24588-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00132.txt.bz2
Content-length: 952

https://sourceware.org/bugzilla/show_bug.cgi?id=24588

            Bug ID: 24588
           Summary: Remove codecvt vtables from libio
           Product: glibc
           Version: 2.30
            Status: NEW
          Severity: normal
          Priority: P2
         Component: stdio
          Assignee: unassigned at sourceware dot org
          Reporter: fweimer at redhat dot com
  Target Milestone: ---

codecvt support was added to the internal copy of libio in GCC 3.0, but the C++
compiler in that GCC version uses a different ABI for placing vtable pointers,
so libio in glibc is already ABI-incompatible with C++, and cannot be used with
libstdc++.

I believe that we can remove the codecvt vtable without affecting old binaries
(even though the struct definition was exposed in <libio.h>).

Also see <https://sourceware.org/glibc/wiki/LibioVtables>.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45503-listarch-glibc-bugs=sources.redhat.com@sourceware.org Mon May 20 13:46:23 2019
Return-Path: <glibc-bugs-return-45503-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 124324 invoked by alias); 20 May 2019 13:46:23 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 124296 invoked by uid 48); 20 May 2019 13:46:19 -0000
From: "scott.franco42 at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug build/24581] Unable to build tip or 2.29 glibc with default options
Date: Mon, 20 May 2019 13:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: build
X-Bugzilla-Version: 2.29
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: scott.franco42 at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-24581-131-ksA9T1dE4w@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24581-131@http.sourceware.org/bugzilla/>
References: <bug-24581-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00133.txt.bz2
Content-length: 335

https://sourceware.org/bugzilla/show_bug.cgi?id=24581

--- Comment #2 from Scott Franco <scott.franco42 at gmail dot com> ---
So you are saying it pulls in an environment variable? I'll check. I'd assumed
it didn't take anything from the environment.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45504-listarch-glibc-bugs=sources.redhat.com@sourceware.org Mon May 20 13:49:42 2019
Return-Path: <glibc-bugs-return-45504-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 129865 invoked by alias); 20 May 2019 13:49:42 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 129778 invoked by uid 48); 20 May 2019 13:49:38 -0000
From: "adhemerval.zanella at linaro dot org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug build/24581] Unable to build tip or 2.29 glibc with default options
Date: Mon, 20 May 2019 13:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: build
X-Bugzilla-Version: 2.29
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: adhemerval.zanella at linaro dot org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-24581-131-VUtFmPToTE@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24581-131@http.sourceware.org/bugzilla/>
References: <bug-24581-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00134.txt.bz2
Content-length: 531

https://sourceware.org/bugzilla/show_bug.cgi?id=24581

--- Comment #3 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
(In reply to Scott Franco from comment #2)
> So you are saying it pulls in an environment variable? I'll check. I'd
> assumed it didn't take anything from the environment.

It is most likely, I am not seeing how glibc build environment is adding this
'-static' cflag with the build description you provided.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45505-listarch-glibc-bugs=sources.redhat.com@sourceware.org Mon May 20 14:17:37 2019
Return-Path: <glibc-bugs-return-45505-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 80968 invoked by alias); 20 May 2019 14:17:36 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 80901 invoked by uid 48); 20 May 2019 14:17:32 -0000
From: "scott.franco42 at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug build/24581] Unable to build tip or 2.29 glibc with default options
Date: Mon, 20 May 2019 14:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: build
X-Bugzilla-Version: 2.29
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: scott.franco42 at gmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-24581-131-urSR6CB6dA@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24581-131@http.sourceware.org/bugzilla/>
References: <bug-24581-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00135.txt.bz2
Content-length: 613

https://sourceware.org/bugzilla/show_bug.cgi?id=24581

Scott Franco <scott.franco42 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Scott Franco <scott.franco42 at gmail dot com> ---
Verified, it was the LDFLAGS. I guess the loader reads that regardless.

Thanks much, lesson learned.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45506-listarch-glibc-bugs=sources.redhat.com@sourceware.org Mon May 20 14:33:14 2019
Return-Path: <glibc-bugs-return-45506-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 66719 invoked by alias); 20 May 2019 14:33:14 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 66677 invoked by uid 48); 20 May 2019 14:33:11 -0000
From: "schwab@linux-m68k.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug build/24581] Unable to build tip or 2.29 glibc with default options
Date: Mon, 20 May 2019 14:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: build
X-Bugzilla-Version: 2.29
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: schwab@linux-m68k.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: resolution
Message-ID: <bug-24581-131-kHBPKFFeVc@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24581-131@http.sourceware.org/bugzilla/>
References: <bug-24581-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00136.txt.bz2
Content-length: 375

https://sourceware.org/bugzilla/show_bug.cgi?id=24581

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|FIXED                       |INVALID

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45507-listarch-glibc-bugs=sources.redhat.com@sourceware.org Mon May 20 15:57:58 2019
Return-Path: <glibc-bugs-return-45507-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 99656 invoked by alias); 20 May 2019 15:57:58 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 99497 invoked by uid 55); 20 May 2019 15:57:55 -0000
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/24570] alpha: compat msgctl uses __IPC_64
Date: Mon, 20 May 2019 15:57:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: libc
X-Bugzilla-Version: 2.25
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: cvs-commit at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: adhemerval.zanella at linaro dot org
X-Bugzilla-Target-Milestone: 2.30
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-24570-131-UGFUmPSZrJ@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24570-131@http.sourceware.org/bugzilla/>
References: <bug-24570-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00137.txt.bz2
Content-length: 938

https://sourceware.org/bugzilla/show_bug.cgi?id=24570

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Adhemerval Zanella
<azanella@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=dfba907fedcb0e95af735a2d064761559f703ab6

commit dfba907fedcb0e95af735a2d064761559f703ab6
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue May 14 15:01:32 2019 -0300

    sysvipc: Fix compat msgctl (BZ#24570)

    The __IPC64 flags is meant to be used to enable the new sysv struct
    format when the architectures supports it (ARCH_WANT_IPC_PARSE_VERSION
    config flag on Linux kernel).

    This currently issue only affects alpha.

        [BZ #24570]
        * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
        usage.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45508-listarch-glibc-bugs=sources.redhat.com@sourceware.org Mon May 20 15:59:58 2019
Return-Path: <glibc-bugs-return-45508-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 104278 invoked by alias); 20 May 2019 15:59:58 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 103761 invoked by uid 48); 20 May 2019 15:59:53 -0000
From: "adhemerval.zanella at linaro dot org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/24570] alpha: compat msgctl uses __IPC_64
Date: Mon, 20 May 2019 15:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: libc
X-Bugzilla-Version: 2.25
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: adhemerval.zanella at linaro dot org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: adhemerval.zanella at linaro dot org
X-Bugzilla-Target-Milestone: 2.30
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-24570-131-Kz3qU3LxW8@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24570-131@http.sourceware.org/bugzilla/>
References: <bug-24570-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00138.txt.bz2
Content-length: 593

https://sourceware.org/bugzilla/show_bug.cgi?id=24570

Adhemerval Zanella <adhemerval.zanella at linaro dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
Fixed on 2.30 (dfba907fedcb0e95af735a2d064761559f703ab6).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45509-listarch-glibc-bugs=sources.redhat.com@sourceware.org Mon May 20 17:05:45 2019
Return-Path: <glibc-bugs-return-45509-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 51694 invoked by alias); 20 May 2019 17:05:45 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 50102 invoked by uid 55); 20 May 2019 17:05:41 -0000
From: "joseph at codesourcery dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug build/24577] 'make install-headers' fails for riscv64-unknown-linux-gnu: sysdeps/riscv/bits/wordsize.h:28:3: error: #error "rv32i-based targets are not supported"
Date: Mon, 20 May 2019 17:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: build
X-Bugzilla-Version: 2.28
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: joseph at codesourcery dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-24577-131-PIAru3GndT@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24577-131@http.sourceware.org/bugzilla/>
References: <bug-24577-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00139.txt.bz2
Content-length: 1215

https://sourceware.org/bugzilla/show_bug.cgi?id=24577

--- Comment #2 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
Minimal GCC (C only, static libgcc only, built --with-newlib 
--without-headers where --with-newlib is how you tell GCC to define 
inhibit_libc for the libgcc build) does not need libc headers.  I 
recommend removing libc header installation from step 2.  Since around 
glibc 2.16, glibc should fully support being built with such a minimal 
GCC, with the stripped glibc binaries being identical to those you get if 
you build it using the full GCC.  (Running the glibc testsuite requires 
building glibc using the full GCC, however.  And there are other bugs 
noting that when building glibc with the minimal GCC, you still need to 
set CXX to point to the (nonexistent) C++ compiler for the configuration 
for which you're building glibc, as otherwise configure may pick up a 
native C++ compiler and cause trouble later in the build process.)

See build-many-glibcs.py for more details of a modern bootstrap process 
known to work for all glibc configurations.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45510-listarch-glibc-bugs=sources.redhat.com@sourceware.org Mon May 20 18:07:53 2019
Return-Path: <glibc-bugs-return-45510-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 120212 invoked by alias); 20 May 2019 18:07:53 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 120176 invoked by uid 48); 20 May 2019 18:07:49 -0000
From: "slyfox at inbox dot ru" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug build/24577] 'make install-headers' fails for riscv64-unknown-linux-gnu: sysdeps/riscv/bits/wordsize.h:28:3: error: #error "rv32i-based targets are not supported"
Date: Mon, 20 May 2019 18:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: build
X-Bugzilla-Version: 2.28
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: slyfox at inbox dot ru
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-24577-131-rIROu09SPK@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24577-131@http.sourceware.org/bugzilla/>
References: <bug-24577-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00140.txt.bz2
Content-length: 263

https://sourceware.org/bugzilla/show_bug.cgi?id=24577

--- Comment #3 from Sergei Trofimovich <slyfox at inbox dot ru> ---
Thank you! We'll migrate to installation without headers.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45511-listarch-glibc-bugs=sources.redhat.com@sourceware.org Mon May 20 20:13:42 2019
Return-Path: <glibc-bugs-return-45511-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 25930 invoked by alias); 20 May 2019 20:13:42 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 25907 invoked by uid 55); 20 May 2019 20:13:38 -0000
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug stdio/24588] Remove codecvt vtables from libio
Date: Mon, 20 May 2019 20:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: stdio
X-Bugzilla-Version: 2.30
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: cvs-commit at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-24588-131-GCMAydeKD6@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24588-131@http.sourceware.org/bugzilla/>
References: <bug-24588-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00141.txt.bz2
Content-length: 1148

https://sourceware.org/bugzilla/show_bug.cgi?id=24588

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Florian Weimer <fw@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=09e1b0e3f6facc1af2dbcfef204f0aaa8718772b

commit 09e1b0e3f6facc1af2dbcfef204f0aaa8718772b
Author: Florian Weimer <fweimer@redhat.com>
Date:   Mon May 20 21:54:57 2019 +0200

    libio: Remove codecvt vtable [BZ #24588]

    The codecvt vtable is not a real vtable because it also contains the
    conversion state data.  Furthermore, wide stream support was added to
    GCC 3.0, after a C++ ABI bump, so there is no compatibility
    requirement with libstdc++.

    This change removes several unmangled function pointers which could
    be used with a corrupted FILE object to redirect execution.  (libio
    vtable verification did not cover the codecvt vtable.)

    Reviewed-by: Yann Droneaud <ydroneaud@opteya.com>
    Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45512-listarch-glibc-bugs=sources.redhat.com@sourceware.org Mon May 20 20:14:25 2019
Return-Path: <glibc-bugs-return-45512-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 27271 invoked by alias); 20 May 2019 20:14:24 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 27229 invoked by uid 48); 20 May 2019 20:14:21 -0000
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug stdio/24588] Remove codecvt vtables from libio
Date: Mon, 20 May 2019 20:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: stdio
X-Bugzilla-Version: 2.30
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fweimer at redhat dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: fweimer at redhat dot com
X-Bugzilla-Target-Milestone: 2.30
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: bug_status resolution assigned_to target_milestone flagtypes.name
Message-ID: <bug-24588-131-d33dzQfixa@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24588-131@http.sourceware.org/bugzilla/>
References: <bug-24588-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00142.txt.bz2
Content-length: 722

https://sourceware.org/bugzilla/show_bug.cgi?id=24588

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
           Assignee|unassigned at sourceware dot org   |fweimer at redhat dot com
   Target Milestone|---                         |2.30
              Flags|                            |security-

--- Comment #2 from Florian Weimer <fweimer at redhat dot com> ---
Fixed for glibc 2.30.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45513-listarch-glibc-bugs=sources.redhat.com@sourceware.org Tue May 21 10:22:32 2019
Return-Path: <glibc-bugs-return-45513-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 42493 invoked by alias); 21 May 2019 10:22:31 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 42474 invoked by uid 55); 21 May 2019 10:22:28 -0000
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug stdio/24583] Memory leak in fopen with ccs argument
Date: Tue, 21 May 2019 10:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: stdio
X-Bugzilla-Version: 2.30
X-Bugzilla-Keywords:
X-Bugzilla-Severity: minor
X-Bugzilla-Who: cvs-commit at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: fweimer at redhat dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields:
Message-ID: <bug-24583-131-XlQNU3Twmi@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24583-131@http.sourceware.org/bugzilla/>
References: <bug-24583-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00143.txt.bz2
Content-length: 830

https://sourceware.org/bugzilla/show_bug.cgi?id=24583

--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Florian Weimer <fw@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=7e740ab2e7be7d83b75513aa406e0b10875f7f9c

commit 7e740ab2e7be7d83b75513aa406e0b10875f7f9c
Author: Florian Weimer <fweimer@redhat.com>
Date:   Tue May 21 10:34:21 2019 +0200

    libio: Fix gconv-related memory leak [BZ #24583]

    struct gconv_fcts for the C locale is statically allocated,
    and __gconv_close_transform deallocates the steps object.
    Therefore this commit introduces __wcsmbs_close_conv to avoid
    freeing the statically allocated steps objects.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45514-listarch-glibc-bugs=sources.redhat.com@sourceware.org Tue May 21 10:22:38 2019
Return-Path: <glibc-bugs-return-45514-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 42852 invoked by alias); 21 May 2019 10:22:38 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 42754 invoked by uid 55); 21 May 2019 10:22:35 -0000
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug locale/24584] Data race in __wcsmbs_clone_conv
Date: Tue, 21 May 2019 10:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: locale
X-Bugzilla-Version: 2.30
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: cvs-commit at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: fweimer at redhat dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields:
Message-ID: <bug-24584-131-YYlSMmvXj8@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24584-131@http.sourceware.org/bugzilla/>
References: <bug-24584-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00144.txt.bz2
Content-length: 695

https://sourceware.org/bugzilla/show_bug.cgi?id=24584

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Florian Weimer <fw@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c9c15ac3162d10a999bf71418fd710bf5676175e

commit c9c15ac3162d10a999bf71418fd710bf5676175e
Author: Florian Weimer <fweimer@redhat.com>
Date:   Tue May 21 10:19:46 2019 +0200

    wcsmbs: Fix data race in __wcsmbs_clone_conv [BZ #24584]

    This also adds an overflow check and documents the synchronization
    requirement in <gconv.h>.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45515-listarch-glibc-bugs=sources.redhat.com@sourceware.org Tue May 21 10:23:03 2019
Return-Path: <glibc-bugs-return-45515-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 43289 invoked by alias); 21 May 2019 10:23:03 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 43253 invoked by uid 48); 21 May 2019 10:23:00 -0000
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug stdio/24583] Memory leak in fopen with ccs argument
Date: Tue, 21 May 2019 10:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: stdio
X-Bugzilla-Version: 2.30
X-Bugzilla-Keywords:
X-Bugzilla-Severity: minor
X-Bugzilla-Who: fweimer at redhat dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: fweimer at redhat dot com
X-Bugzilla-Target-Milestone: 2.30
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: bug_status resolution target_milestone
Message-ID: <bug-24583-131-AhyZH1kLdz@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24583-131@http.sourceware.org/bugzilla/>
References: <bug-24583-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00145.txt.bz2
Content-length: 573

https://sourceware.org/bugzilla/show_bug.cgi?id=24583

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |2.30

--- Comment #3 from Florian Weimer <fweimer at redhat dot com> ---
Fixed for 2.30.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45516-listarch-glibc-bugs=sources.redhat.com@sourceware.org Tue May 21 10:23:20 2019
Return-Path: <glibc-bugs-return-45516-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 43631 invoked by alias); 21 May 2019 10:23:19 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 43589 invoked by uid 48); 21 May 2019 10:23:16 -0000
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug locale/24584] Data race in __wcsmbs_clone_conv
Date: Tue, 21 May 2019 10:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: locale
X-Bugzilla-Version: 2.30
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fweimer at redhat dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: fweimer at redhat dot com
X-Bugzilla-Target-Milestone: 2.30
X-Bugzilla-Flags: security-
X-Bugzilla-Changed-Fields: bug_status resolution target_milestone
Message-ID: <bug-24584-131-pomgnx76Ej@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24584-131@http.sourceware.org/bugzilla/>
References: <bug-24584-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00146.txt.bz2
Content-length: 573

https://sourceware.org/bugzilla/show_bug.cgi?id=24584

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |2.30

--- Comment #2 from Florian Weimer <fweimer at redhat dot com> ---
Fixed for 2.30.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45517-listarch-glibc-bugs=sources.redhat.com@sourceware.org Tue May 21 11:06:07 2019
Return-Path: <glibc-bugs-return-45517-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 62981 invoked by alias); 21 May 2019 11:06:07 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 62933 invoked by uid 48); 21 May 2019 11:06:03 -0000
From: "arjun.is at lostca dot se" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug locale/19519] iconv(1) with -c option hangs on illegal multi-byte sequences (CVE-2016-10228)
Date: Tue, 21 May 2019 11:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: locale
X-Bugzilla-Version: 2.22
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: arjun.is at lostca dot se
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: arjun.is at lostca dot se
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security+
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-19519-131-XKY4Bx5DYy@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-19519-131@http.sourceware.org/bugzilla/>
References: <bug-19519-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00147.txt.bz2
Content-length: 599

https://sourceware.org/bugzilla/show_bug.cgi?id=19519

--- Comment #13 from Arjun Shankar <arjun.is at lostca dot se> ---
Created attachment 11786
  --> https://sourceware.org/bugzilla/attachment.cgi?id=11786&action=edit
Test to perform every possible 2-byte conversion from all charsets to UTF-8

I wrote a bash script that tests every possible 2-byte conversion from every
supported charset to UTF-8. It tests with all possible combinations of "-c"
"//TRANSLIT" and "//IGNORE" and takes tens of hours to run.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45518-listarch-glibc-bugs=sources.redhat.com@sourceware.org Tue May 21 11:15:04 2019
Return-Path: <glibc-bugs-return-45518-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 130823 invoked by alias); 21 May 2019 11:15:03 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 130683 invoked by uid 48); 21 May 2019 11:15:00 -0000
From: "arjun.is at lostca dot se" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug locale/19519] iconv(1) with -c option hangs on illegal multi-byte sequences (CVE-2016-10228)
Date: Tue, 21 May 2019 11:15:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: locale
X-Bugzilla-Version: 2.22
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: arjun.is at lostca dot se
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: arjun.is at lostca dot se
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security+
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-19519-131-3LrExp5PDf@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-19519-131@http.sourceware.org/bugzilla/>
References: <bug-19519-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00148.txt.bz2
Content-length: 804

https://sourceware.org/bugzilla/show_bug.cgi?id=19519

--- Comment #14 from Arjun Shankar <arjun.is at lostca dot se> ---
Created attachment 11787
  --> https://sourceware.org/bugzilla/attachment.cgi?id=11787&action=edit
Result of test run on Fedora 29 (release/2.28/master commit: 4a5e5882)

I ran the test on Fedora 29 (release/2.28/master commit: 4a5e5882) and found
hangs in more than half the supported character sets when converting to UTF-8.
Character sets listed as "OK" exhibited no hangs across the entire input
domain. Character sets that hung weren't tested past the first hang.

I expect that a lot (but not all) of these hangs are just duplicates; i.e. they
will vanish together with the same fix.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45519-listarch-glibc-bugs=sources.redhat.com@sourceware.org Tue May 21 22:26:57 2019
Return-Path: <glibc-bugs-return-45519-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 96084 invoked by alias); 21 May 2019 22:26:57 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 95815 invoked by uid 48); 21 May 2019 22:26:52 -0000
From: "gentoo-bugzilla at jdrake dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug nptl/24595] New: [2.28 Regression]: Deadlock in atfork handler which calls dlclose
Date: Tue, 21 May 2019 22:26:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: nptl
X-Bugzilla-Version: 2.28
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gentoo-bugzilla at jdrake dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-24595-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00149.txt.bz2
Content-length: 3957

https://sourceware.org/bugzilla/show_bug.cgi?id=24595

            Bug ID: 24595
           Summary: [2.28 Regression]: Deadlock in atfork handler which
                    calls dlclose
           Product: glibc
           Version: 2.28
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: nptl
          Assignee: unassigned at sourceware dot org
          Reporter: gentoo-bugzilla at jdrake dot com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

https://bugs.gentoo.org/685024

The specific use case is kind of complicated.  I am using OpenVPN with a pkcs11
"smartcard" (actually GnuK).  The software stack involved at the time consists
of

sys-libs/glibc-2.28-r6
sys-apps/pcsc-lite-1.8.24
dev-libs/opensc-0.18.0
dev-libs/pkcs11-helper-1.25.1
net-vpn/openvpn-2.4.6

Note that both glibc and opensc have newer versions now, but I have not gotten
the chance to test with those.

The situation is that pkcs11-helper installs an atfork handler, whose purpose
is to deinitialize the smartcard in the child process, to avoid inadvertantly
allowing it to inherit an open connection to the smartcard.  As part of
opensc's "Finalize", it dlclose()s its backend module, which in this case is
pcsc-lite.  It appears that pcsc-lite also has an atfork handler installed (I
did not investigate that one, but presumably it is also for the purpose of
closing any open smartcard in the child).  Glibc registers a mechansim,
apparently the same way that C++ destructors are registered, to remove any
atfork handlers that are registered in a module when it is being unloaded.  Now
that there is a (non-recursive) lock around the list of atfork handlers, and
the handlers are called while that lock is held, attempting to unregister an
atfork handler from within an atfork handler callback results in a deadlock.

There is no need for you to bisect - I already tracked down the commit in
question - 27761a1042daf01987e7d79636d0c41511c6df3c - and confirmed that
reverting this solves my deadlock.  If you want a simple test case to reproduce
this, I think the most simple incarnation would be to have an executable and a
shared library.  The executable would register with pthread_atfork(), dlopen()
the shared library, and call something in it which also registers an atfork
handler with pthread_atfork().  The executable would then fork(), and in its
atfork child handler dlclose() the shared library.  This should deadlock with
glibc 2.28 (and 2.29, though I have not yet confirmed this), but work fine with
2.27 and older.

Backtrace:
#0  0x4ec8eb4c in __lll_lock_wait_private () from /lib/libc.so.6
#1  0x4ec8efc6 in __unregister_atfork () from /lib/libc.so.6
#2  0x4ebbd5a9 in __cxa_finalize () from /lib/libc.so.6
#3  0x4dc1a3b1 in __do_global_dtors_aux () from /usr/lib/libpcsclite.so.1
#4  0x4f05ddca in _dl_close_worker () from /lib/ld-linux.so.2
#5  0x4f05e9e2 in _dl_close () from /lib/ld-linux.so.2
#6  0x4ecbdda9 in _dl_catch_exception () from /lib/libc.so.6
#7  0x4ecbde50 in _dl_catch_error () from /lib/libc.so.6
#8  0x4ed3d5e4 in _dlerror_run () from /lib/libdl.so.2
#9  0x4ed3ce9f in dlclose () from /lib/libdl.so.2
#10 0x4ea70664 in sc_dlclose () from /usr/lib/libopensc.so.6
#11 0x4e98d3fb in pcsc_finish () from /usr/lib/libopensc.so.6
#12 0x4e95b259 in sc_release_context () from /usr/lib/libopensc.so.6
#13 0x4eb3ebf2 in C_Finalize () from /usr/lib/opensc-pkcs11.so
#14 0x4eb3ec72 in C_Initialize () from /usr/lib/opensc-pkcs11.so
#15 0x4efe6a1b in __pkcs11h_threading_atfork_child ()
   from /usr/lib/libpkcs11-helper.so.1
#16 0x4ec8f1ed in __run_fork_handlers () from /lib/libc.so.6
#17 0x4ec43aa8 in fork () from /lib/libc.so.6
#18 0x4f00c540 in fork_compat () from /lib/libpthread.so.0
#19 0x125511d5 in openvpn_execve ()
#20 0x12551355 in openvpn_execve_check ()

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45520-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 22 11:41:04 2019
Return-Path: <glibc-bugs-return-45520-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 91222 invoked by alias); 22 May 2019 11:41:04 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 91195 invoked by uid 48); 22 May 2019 11:41:01 -0000
From: "adhemerval.zanella at linaro dot org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug nptl/24595] [2.28 Regression]: Deadlock in atfork handler which calls dlclose
Date: Wed, 22 May 2019 11:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: nptl
X-Bugzilla-Version: 2.28
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: adhemerval.zanella at linaro dot org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc attachments.created
Message-ID: <bug-24595-131-qRh3krfW0D@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24595-131@http.sourceware.org/bugzilla/>
References: <bug-24595-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00150.txt.bz2
Content-length: 678

https://sourceware.org/bugzilla/show_bug.cgi?id=24595

Adhemerval Zanella <adhemerval.zanella at linaro dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |adhemerval.zanella at linaro dot o
                   |                            |rg

--- Comment #1 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
Created attachment 11790
  --> https://sourceware.org/bugzilla/attachment.cgi?id=11790&action=edit
Fix proposal

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45521-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 22 11:46:18 2019
Return-Path: <glibc-bugs-return-45521-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 103155 invoked by alias); 22 May 2019 11:46:18 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 102499 invoked by uid 48); 22 May 2019 11:46:12 -0000
From: "adhemerval.zanella at linaro dot org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug nptl/24595] [2.28 Regression]: Deadlock in atfork handler which calls dlclose
Date: Wed, 22 May 2019 11:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: nptl
X-Bugzilla-Version: 2.28
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: adhemerval.zanella at linaro dot org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-24595-131-PKhNaGyN3r@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24595-131@http.sourceware.org/bugzilla/>
References: <bug-24595-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00151.txt.bz2
Content-length: 5529

https://sourceware.org/bugzilla/show_bug.cgi?id=24595

--- Comment #2 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
(In reply to Jeremy Drake from comment #0)
> https://bugs.gentoo.org/685024
> 
> The specific use case is kind of complicated.  I am using OpenVPN with a
> pkcs11 "smartcard" (actually GnuK).  The software stack involved at the time
> consists of
> 
> sys-libs/glibc-2.28-r6
> sys-apps/pcsc-lite-1.8.24
> dev-libs/opensc-0.18.0
> dev-libs/pkcs11-helper-1.25.1
> net-vpn/openvpn-2.4.6
> 
> Note that both glibc and opensc have newer versions now, but I have not
> gotten the chance to test with those.
> 
> The situation is that pkcs11-helper installs an atfork handler, whose
> purpose is to deinitialize the smartcard in the child process, to avoid
> inadvertantly allowing it to inherit an open connection to the smartcard. 
> As part of opensc's "Finalize", it dlclose()s its backend module, which in
> this case is pcsc-lite.  It appears that pcsc-lite also has an atfork
> handler installed (I did not investigate that one, but presumably it is also
> for the purpose of closing any open smartcard in the child).  Glibc
> registers a mechansim, apparently the same way that C++ destructors are
> registered, to remove any atfork handlers that are registered in a module
> when it is being unloaded.  Now that there is a (non-recursive) lock around
> the list of atfork handlers, and the handlers are called while that lock is
> held, attempting to unregister an atfork handler from within an atfork
> handler callback results in a deadlock.

The glibc-2.27 and used to support it by copying the atfork handlers on
multithread fork in lock-free way using dynamic stack allocation. A lock was
taken only when a symbol was actually removed, insertions (pthread_atfork) and
walking (running the handlers) only used atomics.

It has its drawbacks in some rough points, such some code complexity and
dynamic stack allocation., so the refactor done on
27761a1042daf01987e7d79636d0c41511c6df3c was aimed mostly to simplify the code
and remove the alloca usage.

> 
> There is no need for you to bisect - I already tracked down the commit in
> question - 27761a1042daf01987e7d79636d0c41511c6df3c - and confirmed that
> reverting this solves my deadlock.  If you want a simple test case to
> reproduce this, I think the most simple incarnation would be to have an
> executable and a shared library.  The executable would register with
> pthread_atfork(), dlopen() the shared library, and call something in it
> which also registers an atfork handler with pthread_atfork().  The
> executable would then fork(), and in its atfork child handler dlclose() the
> shared library.  This should deadlock with glibc 2.28 (and 2.29, though I
> have not yet confirmed this), but work fine with 2.27 and older.

The atfork handlers are not really well defined by POSIX standard, so it an
implementation detail what functions and environments it aims to implements. 
It looks like the described scenario is indeed used by some programs so I think
it would be feasible to keep glibc support.

We need to make the atfork handling to use a recursive mutex and make the data
structure to handle reentracy.  Unfortunately, I think the current one
(dynarray) is not the best suitable one due on reentracy the iterator is
usually an index (which might render invalid in an atfork handler removal). A
simple double-linked list should handle it.

Could you try the attached patch to see if it fixes the issue you are seeing? I
would like just to confirm before sending upstream to review.

Also keep in mind that the described use case is *far* from portable and most
likely will fail on different environments.  The reduced test case based on
your description:

--
$ cat tst-atfork3.c
#include <stdio.h>
#include <dlfcn.h>
#include <pthread.h>
#include <unistd.h>
#include <stdlib.h>
#include <assert.h>

static void *handler;

static void
prepare_dlclose (void)
{
  assert (dlclose (handler) == 0);
}

static void
parent_null (void)
{
}

static void
child_null (void)
{
}

static void *
thread_func (void *arg)
{
  return 0;
}

int
main (void)
{
  {
    /* Make the process acts as multithread.  */
    pthread_attr_t attr;
    assert (pthread_attr_init (&attr) == 0);
    assert (pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0);
    pthread_t thr;
    assert (pthread_create (&thr, &attr, thread_func, NULL) == 0);
  }

  {
    assert (pthread_atfork (prepare_dlclose, parent_null, child_null) == 0);

    handler = dlopen ("tst-atfork3mod.so", RTLD_NOW);
    assert (handler != NULL);

    int (*atfork3mod_func) (void);
    atfork3mod_func = dlsym (handler, "atfork3mod_func");
    assert (atfork3mod_func != NULL);

    atfork3mod_func ();

    pid_t pid = fork ();
    if (pid == 0)
      exit (0);
  }

  return 0;
}
$ cat tst-atfork3mod.c
#include <unistd.h>
#include <stdlib.h>
#include <pthread.h>
#include <assert.h>

static void
mod_prepare (void)
{
}

static void
mod_parent (void)
{
}

static void
mod_child (void)
{
}

int atfork3mod_func (void)
{
  assert (pthread_atfork (mod_prepare, mod_parent, mod_child) == 0);

  return 0;
}
--

It fails on FreeBSD11 and AIX72 (former with a hang, latter with a invalid jump
at fork handler).  It works on Solaris11 and Android (by reading bionic atfork
implementation).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45522-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 22 13:29:06 2019
Return-Path: <glibc-bugs-return-45522-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 71556 invoked by alias); 22 May 2019 13:29:05 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 71439 invoked by uid 55); 22 May 2019 13:29:00 -0000
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug malloc/24531] Malloc tunables give tcache assertion failures
Date: Wed, 22 May 2019 13:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: malloc
X-Bugzilla-Version: 2.26
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: cvs-commit at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-24531-131-LV3eMZitnr@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24531-131@http.sourceware.org/bugzilla/>
References: <bug-24531-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00152.txt.bz2
Content-length: 1208

https://sourceware.org/bugzilla/show_bug.cgi?id=24531

--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The release/2.29/master branch has been updated by Wilco Dijkstra
<wilco@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=95d66fecaabbc92ab53027e808f0fc1929c9f21a

commit 95d66fecaabbc92ab53027e808f0fc1929c9f21a
Author: Wilco Dijkstra <wdijkstr@arm.com>
Date:   Fri May 10 16:38:21 2019 +0100

    Fix tcache count maximum (BZ #24531)

    The tcache counts[] array is a char, which has a very small range and thus
    may overflow.  When setting tcache_count tunable, there is no overflow
check.
    However the tunable must not be larger than the maximum value of the tcache
    counts[] array, otherwise it can overflow when filling the tcache.

        [BZ #24531]
        * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
        (do_set_tcache_count): Only update if count is small enough.
        * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.

    (cherry picked from commit 5ad533e8e65092be962e414e0417112c65d154fb)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45523-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 22 13:59:13 2019
Return-Path: <glibc-bugs-return-45523-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 66960 invoked by alias); 22 May 2019 13:59:13 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 66443 invoked by uid 55); 22 May 2019 13:59:09 -0000
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug malloc/24531] Malloc tunables give tcache assertion failures
Date: Wed, 22 May 2019 13:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: malloc
X-Bugzilla-Version: 2.26
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: cvs-commit at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-24531-131-fnQfmDREu4@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24531-131@http.sourceware.org/bugzilla/>
References: <bug-24531-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00153.txt.bz2
Content-length: 1208

https://sourceware.org/bugzilla/show_bug.cgi?id=24531

--- Comment #4 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The release/2.28/master branch has been updated by Wilco Dijkstra
<wilco@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=58d2672f64176fcb323859d3bd5240fb1cf8f25c

commit 58d2672f64176fcb323859d3bd5240fb1cf8f25c
Author: Wilco Dijkstra <wdijkstr@arm.com>
Date:   Fri May 10 16:38:21 2019 +0100

    Fix tcache count maximum (BZ #24531)

    The tcache counts[] array is a char, which has a very small range and thus
    may overflow.  When setting tcache_count tunable, there is no overflow
check.
    However the tunable must not be larger than the maximum value of the tcache
    counts[] array, otherwise it can overflow when filling the tcache.

        [BZ #24531]
        * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
        (do_set_tcache_count): Only update if count is small enough.
        * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.

    (cherry picked from commit 5ad533e8e65092be962e414e0417112c65d154fb)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45524-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 22 14:39:34 2019
Return-Path: <glibc-bugs-return-45524-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 85624 invoked by alias); 22 May 2019 14:39:34 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 85590 invoked by uid 55); 22 May 2019 14:39:31 -0000
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug malloc/24531] Malloc tunables give tcache assertion failures
Date: Wed, 22 May 2019 14:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: malloc
X-Bugzilla-Version: 2.26
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: cvs-commit at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-24531-131-siM9WmcGl7@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24531-131@http.sourceware.org/bugzilla/>
References: <bug-24531-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00154.txt.bz2
Content-length: 1208

https://sourceware.org/bugzilla/show_bug.cgi?id=24531

--- Comment #5 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The release/2.27/master branch has been updated by Wilco Dijkstra
<wilco@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=54ba8bcd42355ad0c0ca763b6bba40a2b2829f38

commit 54ba8bcd42355ad0c0ca763b6bba40a2b2829f38
Author: Wilco Dijkstra <wdijkstr@arm.com>
Date:   Fri May 10 16:38:21 2019 +0100

    Fix tcache count maximum (BZ #24531)

    The tcache counts[] array is a char, which has a very small range and thus
    may overflow.  When setting tcache_count tunable, there is no overflow
check.
    However the tunable must not be larger than the maximum value of the tcache
    counts[] array, otherwise it can overflow when filling the tcache.

        [BZ #24531]
        * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
        (do_set_tcache_count): Only update if count is small enough.
        * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.

    (cherry picked from commit 5ad533e8e65092be962e414e0417112c65d154fb)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45525-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 22 14:43:41 2019
Return-Path: <glibc-bugs-return-45525-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 97491 invoked by alias); 22 May 2019 14:43:41 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 97446 invoked by uid 55); 22 May 2019 14:43:38 -0000
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug malloc/24531] Malloc tunables give tcache assertion failures
Date: Wed, 22 May 2019 14:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: malloc
X-Bugzilla-Version: 2.26
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: cvs-commit at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-24531-131-mDnvRi9D5V@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24531-131@http.sourceware.org/bugzilla/>
References: <bug-24531-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00155.txt.bz2
Content-length: 1208

https://sourceware.org/bugzilla/show_bug.cgi?id=24531

--- Comment #6 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The release/2.26/master branch has been updated by Wilco Dijkstra
<wilco@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=ac92c66821fae2ae6587114acc454f97a6bc7859

commit ac92c66821fae2ae6587114acc454f97a6bc7859
Author: Wilco Dijkstra <wdijkstr@arm.com>
Date:   Fri May 10 16:38:21 2019 +0100

    Fix tcache count maximum (BZ #24531)

    The tcache counts[] array is a char, which has a very small range and thus
    may overflow.  When setting tcache_count tunable, there is no overflow
check.
    However the tunable must not be larger than the maximum value of the tcache
    counts[] array, otherwise it can overflow when filling the tcache.

        [BZ #24531]
        * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
        (do_set_tcache_count): Only update if count is small enough.
        * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.

    (cherry picked from commit 5ad533e8e65092be962e414e0417112c65d154fb)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45526-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 22 17:34:18 2019
Return-Path: <glibc-bugs-return-45526-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 13805 invoked by alias); 22 May 2019 17:34:18 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 11813 invoked by uid 48); 22 May 2019 17:34:14 -0000
From: "gentoo-bugzilla at jdrake dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug nptl/24595] [2.28 Regression]: Deadlock in atfork handler which calls dlclose
Date: Wed, 22 May 2019 17:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: nptl
X-Bugzilla-Version: 2.28
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gentoo-bugzilla at jdrake dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-24595-131-XcI3Fbr7rd@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24595-131@http.sourceware.org/bugzilla/>
References: <bug-24595-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00156.txt.bz2
Content-length: 1612

https://sourceware.org/bugzilla/show_bug.cgi?id=24595

--- Comment #3 from Jeremy Drake <gentoo-bugzilla at jdrake dot com> ---
(In reply to Adhemerval Zanella from comment #2)
> Could you try the attached patch to see if it fixes the issue you are
> seeing? I would like just to confirm before sending upstream to review.

I will try to get to that this weekend.  I just had a quick read-through, and I
was curious about the __libc_lock_unlock_recursive.  I had read that recursive
locks generally need to be unlocked on the same thread they were locked on, but
in the case of the child handler, it is not only a different thread, but a
different process entirely.  Is this a supported case for this lock type?  It
seems it may be backed by a recursive pthread mutex, whose manpage says "If a
thread attempts to unlock a mutex that it has not locked or a mutex which is
unlocked, an error shall be returned."

> 
> Also keep in mind that the described use case is *far* from portable and
> most likely will fail on different environments.  The reduced test case
> based on your description:

The exact case is that the dlclose happens in the child handler, not the
prepare handler, but other than that this is what I was describing.

> It fails on FreeBSD11 and AIX72 (former with a hang, latter with a invalid
> jump at fork handler).  It works on Solaris11 and Android (by reading bionic
> atfork implementation).

It might be nice if someone who understood such things told the
OpenSC/pkcs11-helper people that.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45527-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 22 18:26:47 2019
Return-Path: <glibc-bugs-return-45527-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 30473 invoked by alias); 22 May 2019 18:26:47 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 27535 invoked by uid 48); 22 May 2019 18:26:44 -0000
From: "adhemerval.zanella at linaro dot org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug nptl/24595] [2.28 Regression]: Deadlock in atfork handler which calls dlclose
Date: Wed, 22 May 2019 18:26:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: nptl
X-Bugzilla-Version: 2.28
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: adhemerval.zanella at linaro dot org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-24595-131-w7Z9hODtBu@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24595-131@http.sourceware.org/bugzilla/>
References: <bug-24595-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00157.txt.bz2
Content-length: 2037

https://sourceware.org/bugzilla/show_bug.cgi?id=24595

--- Comment #4 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
(In reply to Jeremy Drake from comment #3)
> (In reply to Adhemerval Zanella from comment #2)
> > Could you try the attached patch to see if it fixes the issue you are
> > seeing? I would like just to confirm before sending upstream to review.
> 
> I will try to get to that this weekend.  I just had a quick read-through,
> and I was curious about the __libc_lock_unlock_recursive.  I had read that
> recursive locks generally need to be unlocked on the same thread they were
> locked on, but in the case of the child handler, it is not only a different
> thread, but a different process entirely.  Is this a supported case for this
> lock type?  It seems it may be backed by a recursive pthread mutex, whose
> manpage says "If a thread attempts to unlock a mutex that it has not locked
> or a mutex which is unlocked, an error shall be returned."

The internal glibc locks (__libc_lock_*) are private to process, so the child
will unlock its copy after fork (remind that although not all thread are
replicated in Linux fork, the memory is).

> 
> > 
> > Also keep in mind that the described use case is *far* from portable and
> > most likely will fail on different environments.  The reduced test case
> > based on your description:
> 
> The exact case is that the dlclose happens in the child handler, not the
> prepare handler, but other than that this is what I was describing.

In fact is you dlclose on prepare the parent will hang, while if you do in the
child it will hang in child.

> 
> > It fails on FreeBSD11 and AIX72 (former with a hang, latter with a invalid
> > jump at fork handler).  It works on Solaris11 and Android (by reading bionic
> > atfork implementation).
> 
> It might be nice if someone who understood such things told the
> OpenSC/pkcs11-helper people that.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45528-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 22 19:07:45 2019
Return-Path: <glibc-bugs-return-45528-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 89506 invoked by alias); 22 May 2019 19:07:45 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 89479 invoked by uid 48); 22 May 2019 19:07:42 -0000
From: "hjl.tools at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug math/24603] New: sysdeps/ieee754/dbl-64/branred.c is slow when compiled with -O3 -march=skylake
Date: Wed, 22 May 2019 19:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: math
X-Bugzilla-Version: 2.31
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone cf_gcctarget
Message-ID: <bug-24603-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00158.txt.bz2
Content-length: 759

https://sourceware.org/bugzilla/show_bug.cgi?id=24603

            Bug ID: 24603
           Summary: sysdeps/ieee754/dbl-64/branred.c is slow when compiled
                    with -O3 -march=skylake
           Product: glibc
           Version: 2.31
            Status: NEW
          Severity: normal
          Priority: P2
         Component: math
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---
            Target: x86-64

sysdeps/ieee754/dbl-64/branred.c is very slow when compiled with -O3
-march=skylake due to huge store forward stall:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90579

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45529-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed May 22 23:01:02 2019
Return-Path: <glibc-bugs-return-45529-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 55712 invoked by alias); 22 May 2019 23:01:01 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 55666 invoked by uid 48); 22 May 2019 23:00:59 -0000
From: "skpgkp1 at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug math/24603] sysdeps/ieee754/dbl-64/branred.c is slow when compiled with -O3 -march=skylake
Date: Wed, 22 May 2019 23:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: math
X-Bugzilla-Version: 2.31
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: skpgkp1 at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-24603-131-Bt3pHCMt4B@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-24603-131@http.sourceware.org/bugzilla/>
References: <bug-24603-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2019-05/txt/msg00159.txt.bz2
Content-length: 378

https://sourceware.org/bugzilla/show_bug.cgi?id=24603

skpgkp1 at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |skpgkp1 at gmail dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-45530-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu May 23 01:07:44 2019
Return-Path: <glibc-bugs-return-45530-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 124953 invoked by alias); 23 May 2019 01:07:44 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 124671 invoked by uid 89); 23 May 2019 01:07:44 -0000
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=3.7 required=5.0 tests=AWL,BAYES_50,HTML_IMAGE_ONLY_32,HTML_IMAGE_RATIO_02,HTML_MESSAGE,KAM_SHORT,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.1 spammy=HContent-type:multipart, HContent-type:boundary, browser, Click
X-HELO: ecmme.com
Received: from Unknown (HELO ecmme.com) (107.150.52.190) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 23 May 2019 01:07:43 +0000
Received: from ecmme.com (localhost [127.0.0.1])	by ecmme.com (8.14.4/8.14.4) with ESMTP id x4N17ek1031585	for <glibc-bugs@sourceware.org>; Thu, 23 May 2019 04:07:40 +0300
Received: (from apache@localhost)	by ecmme.com (8.14.4/8.14.4/Submit) id x4N17e2j031581;	Thu, 23 May 2019 04:07:40 +0300
Date: Thu, 23 May 2019 01:07:00 -0000
From: "Rima Awada- ICTN" <info@ecmme.com>
To: glibc-bugs@sourceware.org
Reply-To: "Rima Awada- ICTN" <info@ecmme.com>
Message-ID: <20190522141735.42143783@ecmme.com>
MIME-Version: 1.0
Subject: ICTN: Charismatic Public Speaking: Become a Compelling Leader - June 19-20-21,2019
Content-length: 651
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
X-SW-Source: 2019-05/txt/msg00160.txt.bz2

 Email not displaying correctly? View it in your browser | Share it
 You are seeing this Email in Plain Text Version; Switch to HTML or Click this link http://dits.ws/a/44118 to View it properly.

http://www.me-trk.com/url/u8nGvGl8lXiHmHF2j8vKzIC1p73CgbjBuWl7msjFvrulrbm3eoSSqa29x8TEtbGqu7jId36Kr72_und-ioy8tMe7v7GqyLy4d355e4SjyrS4rax5hYqEfJe5ubTAu7qrboaIh4J5aXuJhYWbg2l7iYWFnMGyrnmFioR8dYKCw7m4crexw8e-tol4fYWEjQ=
 Subscription Information:
 This email was sent to glibc-bugs@sourceware.org because you are Subscribed to Jordan List
 Click Here to permanently Unsubscribe from this List.

 Sent to you by:
 DIGITAL ITS | Tel: +961 5 464 323





^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug libc/23960] [2.28 Regression]: New getdents{64} implementation breaks qemu-user
       [not found] <bug-23960-131@http.sourceware.org/bugzilla/>
  2019-05-01 20:33 ` [Bug libc/23960] [2.28 Regression]: New getdents{64} implementation breaks qemu-user chewi at gentoo dot org
@ 2020-09-17 21:42 ` tg at mirbsd dot de
  2020-10-02  8:54 ` danny.milo at gmail dot com
                   ` (19 subsequent siblings)
  21 siblings, 0 replies; 22+ messages in thread
From: tg at mirbsd dot de @ 2020-09-17 21:42 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=23960

Thorsten Glaser <tg at mirbsd dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tg at mirbsd dot de

--- Comment #57 from Thorsten Glaser <tg at mirbsd dot de> ---
Jessica,

>Easiest thing would be to patch gcc/config/whatever.h to include:
>
>    builtin_define ("_LARGEFILE_SOURCE=1");         \
>    builtin_define ("_LARGEFILE64_SOURCE=1");       \
>    builtin_define ("_FILE_OFFSET_BITS=64");        \

this will not work, unfortunately: glibc’s <fts.h> refuses to work with LFS.

But why are *new* ports supporting nōn-LFS at all anyway? Just define off_t as
long long int on *all* new architectures, similar how it’s done with 64-bit
time_t for new ILP32 arches… and similar to how the BSDs all operate as well
(off_t is a quad there, period; this with my MirBSD developer hat).

Sorry for being late to this discussion, just found this from
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=916276 via
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=970460 and having seen this
impact Debian. (Current hat: Debian Developer)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug libc/23960] [2.28 Regression]: New getdents{64} implementation breaks qemu-user
       [not found] <bug-23960-131@http.sourceware.org/bugzilla/>
  2019-05-01 20:33 ` [Bug libc/23960] [2.28 Regression]: New getdents{64} implementation breaks qemu-user chewi at gentoo dot org
  2020-09-17 21:42 ` tg at mirbsd dot de
@ 2020-10-02  8:54 ` danny.milo at gmail dot com
  2020-10-02  9:36 ` danny.milo at gmail dot com
                   ` (18 subsequent siblings)
  21 siblings, 0 replies; 22+ messages in thread
From: danny.milo at gmail dot com @ 2020-10-02  8:54 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=23960

Danny Milosavljevic <danny.milo at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |danny.milo at gmail dot com

--- Comment #58 from Danny Milosavljevic <danny.milo at gmail dot com> ---
The title should be changed to be more general because this does not only break
qemu-user.  In fact, mentioning qemu would make it seem that it can be fixed in
qemu-user--which it can't.

The same happens on aarch64 if running armhf executables (no qemu anywhere).

More details on
https://lists.gnu.org/archive/html/guix-patches/2020-10/msg00059.html .

In order to test, patch fuse-2.9.9 like this:

diff -ru orig/fuse-2.9.9/lib/fuse_lowlevel.c fuse-2.9.9/lib/fuse_lowlevel.c
--- orig/fuse-2.9.9/lib/fuse_lowlevel.c 1970-01-01 01:00:01.000000000 +0100
+++ fuse-2.9.9/lib/fuse_lowlevel.c      2020-09-25 17:09:26.744879224 +0200
@@ -257,7 +257,7 @@
        struct fuse_dirent *dirent = (struct fuse_dirent *) buf;

        dirent->ino = stbuf->st_ino;
-       dirent->off = off;
+       dirent->off = off | 0x1234567890123;
        dirent->namelen = namelen;
        dirent->type = (stbuf->st_mode & 0170000) >> 12;
        strncpy(dirent->name, name, namelen);

Then run make.

mkdir -p /tmp/foo
Then invoke:
   examples/hello_ll /tmp/foo

Then run this test program:

#include <stdio.h>
#include <errno.h>
#include <assert.h>
#include <dirent.h>
#if defined( __ILP32__)
#warning ILP32
#endif

int main() {
        DIR* d;
        struct dirent* ent;
        d = opendir("/tmp/foo");
        if (d == NULL) {
                perror("opendir");
                return 1;
        }
        errno = 0;
        assert(sizeof(ent->d_off) == sizeof(off_t));
        while ((ent = readdir(d)) != NULL) {
                printf("%llX %s\n", (unsigned long long) ent->d_off,
ent->d_name);
                if (ent->d_off > 0xffffffff)
                        printf("BIG\n");
        }
        if (errno)
                perror("readdir");
        return sizeof(off_t);
}

Compile once with -D_FILE_OFFSET_BITS=64, once with -D_FILE_OFFSET_BITS=32 and
once with no -D_FILE_OFFSET_BITS.

You get this result:

system   _FILE_OFFSET_BITS off_t   d_off-sizeof   d_off-values
---------------------------------------------------------------
x86_64   -                 8 Byte  8 Byte         8 Byte
i686     -                 4 Byte  4 Byte         4 Byte
i686     64                8 Byte  8 Byte         FAIL*
i686     32                4 Byte  4 Byte         FAIL*
armhf    -                 4 Byte  4 Byte         FAIL*
armhf    64                8 Byte  8 Byte         8 Byte
armhf    32                4 Byte  4 Byte         FAIL*
a64armhf -                 4 Byte  4 Byte         FAIL*
a64armhf 64                8 Byte  8 Byte         8 Byte
a64armhf 32                4 Byte  4 Byte         FAIL*
aarch64  -                 8 Byte  8 Byte         8 Byte

*: Using FUSE filesystem with big d_off value.

None of those tests were done with qemu.  They were all native.

"i686" means "i686 on x86_64".

I argue that the only safe way to fix that once and for all is to use
_FILE_OFFSET_BITS=64 on 32 bits.

I would implore glibc maintainers to mandate choosing a _FILE_OFFSET_BITS and
fail compilation otherwise.  15 years of migration to LFS is more than enough.

Patch to do that:  At the end of dirent.h, add:

#ifndef _LIBC
#if __SIZEOF_LONG__ < 8
#ifndef __USE_FILE_OFFSET64
#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 32
#warning \"Using -D_FILE_OFFSET_BITS=32 and using readdir is a bad idea, see
<https://bugzilla.kernel.org/show_bug.cgi?id=205957>\"
#else
#undef readdir
#define readdir @READDIR_WITHOUT_FILE_OFFSET64_IS_A_REALLY_BAD_IDEA@
#endif
#endif
#endif
#endif

And then in posix/glob.c at the beginning:

  #undef readdir

This makes it much easier for distributions to find the problem.

Otherwise the problem would be hidden in the sense that a lot of programs
COMPILE just fine without _FILE_OFFSET_BITS--but they fail at runtime in
unexpected ways.

Unexpected because they usually don't fail right away at runtime but only on
the first strange readdir result.  A strange readdir result is one where d_off
> 2**32 but it doesn't fit into the d_off slot.

Worse, a lot of clients do not check errno and just leave all the other files
of that directory out once that happens.  When the strange readdir result
appears depends on filesystem internals.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug libc/23960] [2.28 Regression]: New getdents{64} implementation breaks qemu-user
       [not found] <bug-23960-131@http.sourceware.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2020-10-02  8:54 ` danny.milo at gmail dot com
@ 2020-10-02  9:36 ` danny.milo at gmail dot com
  2020-10-02  9:46 ` fweimer at redhat dot com
                   ` (17 subsequent siblings)
  21 siblings, 0 replies; 22+ messages in thread
From: danny.milo at gmail dot com @ 2020-10-02  9:36 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=23960

--- Comment #59 from Danny Milosavljevic <danny.milo at gmail dot com> ---
(In reply to Adhemerval Zanella from comment #32)
> I am not against in reverting back to use SYS_getdents for getdents64

SYS_getdents has 32 bit slots, including d_off, in the result and thus the
kernel cannot tell you the truth in the result.  Having the kernel paper over
this seems unwise--this would be/is basically the kernel lying to you.  As with
all lies, the kernel then has to keep some kind of table which lies it told to
whom and be consistent with them.  Why do that?

> although it is a subpar resolution for a kernel issue.  Newer architectures
> with mixed 32 and 64 bits support will continue to be broken without a
> proper kernel fix since they use SYS_getdents64 for getdents.

The kernel is the wrong place to work around this.  glibc should be using 64
bit struct dirent so it can actually handle the truth.

> What I think we should do is:
> 
>   1. *Deprecate* non-LFS usage in a multi-step way as discussed in
> libc-alpha [1]. We will need to take care of the issue brought by Joseph,
> but it will mean eventually the non-LFS interfaces will be just provided as
> compatibility symbols.

I agree.

>   2. Push to distro on 32-bits to *stop* building packages in non-LFS mode
> as default. Some distro already gets this right, but it seems some still
> lacking support.

For that to happen, please make glibc at least emit a warning--although with a
problem this bad, I'd prefer an error--if _FILE_OFFSET_BITS != 64 and
SIZEOF_LONG < 8 and readdir is used.

I use this in dirent.h:

#ifndef _LIBC
#if __SIZEOF_LONG__ < 8
#ifndef __USE_FILE_OFFSET64
#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 32
#warning \"Using -D_FILE_OFFSET_BITS=32 and using readdir is a bad idea, see
<https://bugzilla.kernel.org/show_bug.cgi?id=205957>\"
#else
#undef readdir
#define readdir @READDIR_WITHOUT_FILE_OFFSET64_IS_A_REALLY_BAD_IDEA@
#endif
#endif
#endif
#endif

It's much better to find problems this way than to have programs fail at random
times at runtime depending on file system internals.

Or use gcc's "deprecated" attribute on readdir, with a message, in order to at
least warn.  But, really, does this sound like something harmless enough to
only warn?  It does not to me.

>   3. Continue to push kernel developers to provide a correct fix for this
> issue. 

We shouldn't do that in the kernel (see beginning of this text).

It's impossible to store a 64 bit result into a 32 bit slot.

Also, if you call SYS_getdents64, you should expect a 64 bit result.  It's in
the name.

Please don't use SYS_getdents.  Just please mandate LFS instead.  This should
have been done long (decades) ago.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug libc/23960] [2.28 Regression]: New getdents{64} implementation breaks qemu-user
       [not found] <bug-23960-131@http.sourceware.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2020-10-02  9:36 ` danny.milo at gmail dot com
@ 2020-10-02  9:46 ` fweimer at redhat dot com
  2020-10-02 10:41 ` danny.milo at gmail dot com
                   ` (16 subsequent siblings)
  21 siblings, 0 replies; 22+ messages in thread
From: fweimer at redhat dot com @ 2020-10-02  9:46 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=23960

--- Comment #60 from Florian Weimer <fweimer at redhat dot com> ---
(In reply to Danny Milosavljevic from comment #59)
> It's impossible to store a 64 bit result into a 32 bit slot.

You can do something like that if you can maintain a translation table. The
kernel cannot do it due to the way the getdents64 system call works. glibc can
do it for telldir/seekdir (allocating table slots on demand), which are the
interfaces that are actually problematic.

> Please don't use SYS_getdents.  Just please mandate LFS instead.  This should have been done long (decades) ago.

LFS does not change the return type of telldir. So it does not fix the issue.
We need to maintain a translation table for telldir and seekdir in DIR. It can
be filled on demand, so that applications that do not call telldir are pretty
much unaffected. The only thing that is a bit tricky is that we have to
pre-allocate the slot during readdir because telldir must not fail.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug libc/23960] [2.28 Regression]: New getdents{64} implementation breaks qemu-user
       [not found] <bug-23960-131@http.sourceware.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2020-10-02  9:46 ` fweimer at redhat dot com
@ 2020-10-02 10:41 ` danny.milo at gmail dot com
  2020-10-02 11:03 ` danny.milo at gmail dot com
                   ` (15 subsequent siblings)
  21 siblings, 0 replies; 22+ messages in thread
From: danny.milo at gmail dot com @ 2020-10-02 10:41 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=23960

--- Comment #61 from Danny Milosavljevic <danny.milo at gmail dot com> ---
(In reply to Florian Weimer from comment #60)
> (In reply to Danny Milosavljevic from comment #59)
> > It's impossible to store a 64 bit result into a 32 bit slot.
> 
> You can do something like that if you can maintain a translation table. The
> kernel cannot do it due to the way the getdents64 system call works. glibc
> can do it for telldir/seekdir (allocating table slots on demand), which are
> the interfaces that are actually problematic.
> LFS does not change the return type of telldir.

>So it does not fix the issue. 

I know what you mean.  Given the seekdir and telldir interface as it is now,
mandating LFS does not fix telldir and seekdir, because they use "long", not
"off_t".

The correct solution is to change the POSIX standard, too.  Short term, that
won't be done.  But it still SHOULD be done.

In the mean time, I agree, you could make a mapping table for the rare cases
where telldir and seekdir are actually used.  The question is where to store
the latest (64 bit) d_off in the mean time (until telldir is called and you
need it)...

However, the current practical problem is much worse:

32 bit apps on 64 bits cannot reliably call *readdir* without using LFS.  So
far, Guix distribution has had to patch: gcc's libstdc++-v3, libidn2,
fontconfig, libtasn1, openssl, libtool/libltdl, rhash, cmake-bootstrap, cmake,
cyrus-sasl in order to even be able to *compile any end user program* as a
distribution using cmake.  That had broken the entire distribution on 32 bit,
to the point I'm now asking to remove 32 bit support entirely from our
homepage.

Just to be clear, that is *without* using qemu.

This problem affects even 32 bit distributions without LFS on 32 bit kernels
(that is not a typo)!

And if you enable LFS, it totally works fine in practice.

I estimate that compared to that, seekdir users are few.  And I agree that
those  users still have a problem even after enabling LFS.

> We need to maintain a translation table for telldir and seekdir in
> DIR. It can be filled on demand, so that applications that do not call
> telldir are pretty much unaffected. The only thing that is a bit tricky is
> that we have to pre-allocate the slot during readdir because telldir must
> not fail.

I argue the easiest fixing step to do is still to mandate LFS.
Then glibc works in practice.  Without, it *really* does not work--even in
theory.

But sure, also put workarounds into telldir and seekdir.  If possible.  Is it
possible?

(readdir has been broken the last few glibc releases--I had thought it was my
imagination that the compilation of gcc would always be stuck in an endless
loop on armhf--but now it all makes sense).

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug libc/23960] [2.28 Regression]: New getdents{64} implementation breaks qemu-user
       [not found] <bug-23960-131@http.sourceware.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2020-10-02 10:41 ` danny.milo at gmail dot com
@ 2020-10-02 11:03 ` danny.milo at gmail dot com
  2020-10-02 13:17 ` jrtc27 at jrtc27 dot com
                   ` (14 subsequent siblings)
  21 siblings, 0 replies; 22+ messages in thread
From: danny.milo at gmail dot com @ 2020-10-02 11:03 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=23960

--- Comment #62 from Danny Milosavljevic <danny.milo at gmail dot com> ---
(In reply to Florian Weimer from comment #60)
> (In reply to Danny Milosavljevic from comment #59)
> > It's impossible to store a 64 bit result into a 32 bit slot.
> 
> You can do something like that if you can maintain a translation table.

Mathematically speaking, no, you can't.  There cannot be a 1:1 mapping between
all 64 bit values and all 32 bit values.

I know what you mean--in practice it could be good enough, if the directory
doesn't have too many entries (or, depending on implementation, telldir isn't
called too often--though first that implementation with only telldir doing the
counting has to be possible.  Is it?).

But that's just kicking the can down the road--eventually, someone somewhere
will have that many entries.  And then, the mapping will fail.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug libc/23960] [2.28 Regression]: New getdents{64} implementation breaks qemu-user
       [not found] <bug-23960-131@http.sourceware.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2020-10-02 11:03 ` danny.milo at gmail dot com
@ 2020-10-02 13:17 ` jrtc27 at jrtc27 dot com
  2020-10-02 14:22 ` adhemerval.zanella at linaro dot org
                   ` (13 subsequent siblings)
  21 siblings, 0 replies; 22+ messages in thread
From: jrtc27 at jrtc27 dot com @ 2020-10-02 13:17 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=23960

--- Comment #63 from Jessica Clarke <jrtc27 at jrtc27 dot com> ---
(In reply to Danny Milosavljevic from comment #62)
> (In reply to Florian Weimer from comment #60)
> > (In reply to Danny Milosavljevic from comment #59)
> > > It's impossible to store a 64 bit result into a 32 bit slot.
> > 
> > You can do something like that if you can maintain a translation table.
> 
> Mathematically speaking, no, you can't.  There cannot be a 1:1 mapping
> between all 64 bit values and all 32 bit values.
> 
> I know what you mean--in practice it could be good enough, if the directory
> doesn't have too many entries (or, depending on implementation, telldir
> isn't called too often--though first that implementation with only telldir
> doing the counting has to be possible.  Is it?).
> 
> But that's just kicking the can down the road--eventually, someone somewhere
> will have that many entries.  And then, the mapping will fail.

If you have more than 4 billion files then you really should not be using a
32-bit system. That is a very different (if related) problem from a single >4
GiB file. Even https://lwn.net/Articles/400629/ split the 1 billion files up
into 1 thousand directories each with 1 million files.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug libc/23960] [2.28 Regression]: New getdents{64} implementation breaks qemu-user
       [not found] <bug-23960-131@http.sourceware.org/bugzilla/>
                   ` (7 preceding siblings ...)
  2020-10-02 13:17 ` jrtc27 at jrtc27 dot com
@ 2020-10-02 14:22 ` adhemerval.zanella at linaro dot org
  2020-10-02 23:06 ` tg at mirbsd dot de
                   ` (12 subsequent siblings)
  21 siblings, 0 replies; 22+ messages in thread
From: adhemerval.zanella at linaro dot org @ 2020-10-02 14:22 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=23960

--- Comment #64 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
> (In reply to Adhemerval Zanella from comment #32)
> > although it is a subpar resolution for a kernel issue.  Newer architectures
> > with mixed 32 and 64 bits support will continue to be broken without a
> > proper kernel fix since they use SYS_getdents64 for getdents.
> 
> The kernel is the wrong place to work around this.  glibc should be using 64
> bit struct dirent so it can actually handle the truth.

I agree and this an overlook from we glibc maintainers to allow newer 32-bit
ABIs to support non-LFS interface. Current pratice now is to enforce 64-bit
off_t for all newer ABIs (for instance as done for arc and riscv32).

However, there are still legacy ABIs which supports non-LFS and even one that
support without having the legacy kernel interface (nios2 and csky for
instance).

> 
> > What I think we should do is:
> > 
> >   1. *Deprecate* non-LFS usage in a multi-step way as discussed in
> > libc-alpha [1]. We will need to take care of the issue brought by Joseph,
> > but it will mean eventually the non-LFS interfaces will be just provided as
> > compatibility symbols.
> 
> I agree.
> 
> >   2. Push to distro on 32-bits to *stop* building packages in non-LFS mode
> > as default. Some distro already gets this right, but it seems some still
> > lacking support.
> 
> For that to happen, please make glibc at least emit a warning--although with
> a problem this bad, I'd prefer an error--if _FILE_OFFSET_BITS != 64 and
> SIZEOF_LONG < 8 and readdir is used.
> 
> I use this in dirent.h:
> 
> #ifndef _LIBC
> #if __SIZEOF_LONG__ < 8
> #ifndef __USE_FILE_OFFSET64
> #if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 32
> #warning \"Using -D_FILE_OFFSET_BITS=32 and using readdir is a bad idea, see
> <https://bugzilla.kernel.org/show_bug.cgi?id=205957>\"
> #else
> #undef readdir
> #define readdir @READDIR_WITHOUT_FILE_OFFSET64_IS_A_REALLY_BAD_IDEA@
> #endif
> #endif
> #endif
> #endif
> 
> It's much better to find problems this way than to have programs fail at
> random times at runtime depending on file system internals.
> 
> Or use gcc's "deprecated" attribute on readdir, with a message, in order to
> at least warn.  But, really, does this sound like something harmless enough
> to only warn?  It does not to me.

This is quite disruptive and with potentialy breakage in a lot of scenarios. As
suggested by Joseph [1], we need to make it more seamlessly over multiple
releases. We already have the bug tracer to make 64-bit LFS default (BZ#13047),
but we also need to take care of BZ#14106, BZ#15766, and glibc build/tests
itself.

What I would like to get on 2.33 is to move ld.so and libc.so to use non-LFS
internally first by using explicit *64 interface.  It will make build glibc
itself with default LFS easier.

The point that will require a *lot* of work is to check and adapt the testcases
to systematically check for all LFS interfaces in the various modes. 

> 
> >   3. Continue to push kernel developers to provide a correct fix for this
> > issue. 
> 
> We shouldn't do that in the kernel (see beginning of this text).
> 
> It's impossible to store a 64 bit result into a 32 bit slot.
> 
> Also, if you call SYS_getdents64, you should expect a 64 bit result.  It's
> in the name.
> 
> Please don't use SYS_getdents.  Just please mandate LFS instead.  This
> should have been done long (decades) ago.

I am not inclined to keep using non-LFS internally, ideally I would like to
remove *all* non-LFS usage even on non-LFS symbols.  It would be similar to
work done on y2038 support, with the advantage that it won't need to handle
ENOSYS and add non-LFS fallback (we will just need to handel overflow as some
ABIs do with 'generic' internal interfaces).

And I have a working solution for this issue [1]. I did not get much review on
my last try [3], but debian and gentoo developers told me that it has fixed
their issues on both qemu and bootstrap.

The bulk of the change is:

--
It allows to obtain the expected entry offset on telldir and set
it correctly on seekdir on platforms where long int is smaller
than off64_t.

On such cases telldir will mantain an internal list that maps the
DIR object off64_t offsets to the returned long int (the function
return value).  The seekdir will then set the correct offset from
the internal list using the telldir as the list key.

It also removes the overflow check on readdir and the returned value
will be truncated by the non-LFS off_t size.  As Joseph has noted
in BZ #23960 comment #22, d_off is an opaque value and since
telldir/seekdir works regardless of the returned dirent d_off value.

Finally it removed the requirement to check for overflow values on
telldir (BZ #24050).
--

And Florian has raised some question about making 'telldir' fails. The standard
does not really allow it, but I think it is feasible concession to deprecated
interface.

I will commit the first two patches, they have been acked on previous
iterations (they are mainly refactoring and some interfaces fixes) and send
remmaining ones to review. Maybe we get them on 2.33 and we can backport if
required.

[1] https://sourceware.org/legacy-ml/libc-alpha/2019-01/msg00124.html
[2]
https://sourceware.org/git/?p=glibc.git;a=shortlog;h=refs/heads/azanella/bz23960
[3] https://sourceware.org/pipermail/libc-alpha/2020-April/112866.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug libc/23960] [2.28 Regression]: New getdents{64} implementation breaks qemu-user
       [not found] <bug-23960-131@http.sourceware.org/bugzilla/>
                   ` (8 preceding siblings ...)
  2020-10-02 14:22 ` adhemerval.zanella at linaro dot org
@ 2020-10-02 23:06 ` tg at mirbsd dot de
  2020-10-03 13:54 ` fweimer at redhat dot com
                   ` (11 subsequent siblings)
  21 siblings, 0 replies; 22+ messages in thread
From: tg at mirbsd dot de @ 2020-10-02 23:06 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=23960

--- Comment #65 from Thorsten Glaser <tg at mirbsd dot de> ---
>I agree and this an overlook from we glibc maintainers to allow newer
>32-bit ABIs to support non-LFS interface.

Indeed. (Again, from a BSD PoV, wondering why this is so at all.)

>Current pratice now is to enforce 64-bit
>off_t for all newer ABIs (for instance as done for arc and riscv32).

Good.

>However, there are still legacy ABIs which supports non-LFS and even
>one that support without having the legacy kernel interface (nios2 and
>csky for instance).

Ouch. That’s going to be tricky to fix.

But enabling LFS on architectures that support nōn-LFS
breaks <fts.h> so it’s not a generally usable fix either.

----

>In the mean time, I agree, you could make a mapping table for the rare
>cases where telldir and seekdir are actually used.

Can you make the linker choose a readdir implementation
based on the presence of any of telldir and seekdir?

Perhaps something with putting a readdir that just does
its job, declared weak, into one archive, and a single .o
containing telldir, seekdir, and a readdir that also
maps 64-bit to 32-bit values into another, so that the
latter is only chosen if telldir/seekdir are actually
called? (AIUI it’s even only needed if *seek*dir is
actually called, right?)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug libc/23960] [2.28 Regression]: New getdents{64} implementation breaks qemu-user
       [not found] <bug-23960-131@http.sourceware.org/bugzilla/>
                   ` (9 preceding siblings ...)
  2020-10-02 23:06 ` tg at mirbsd dot de
@ 2020-10-03 13:54 ` fweimer at redhat dot com
  2020-10-03 13:55 ` fweimer at redhat dot com
                   ` (10 subsequent siblings)
  21 siblings, 0 replies; 22+ messages in thread
From: fweimer at redhat dot com @ 2020-10-03 13:54 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=23960

--- Comment #66 from Florian Weimer <fweimer at redhat dot com> ---
(In reply to Danny Milosavljevic from comment #62)
> (In reply to Florian Weimer from comment #60)
> > (In reply to Danny Milosavljevic from comment #59)
> > > It's impossible to store a 64 bit result into a 32 bit slot.
> > 
> > You can do something like that if you can maintain a translation table.
> 
> Mathematically speaking, no, you can't.  There cannot be a 1:1 mapping
> between all 64 bit values and all 32 bit values.
> 
> I know what you mean--in practice it could be good enough, if the directory
> doesn't have too many entries (or, depending on implementation, telldir
> isn't called too often--though first that implementation with only telldir
> doing the counting has to be possible.  Is it?).
> 
> But that's just kicking the can down the road--eventually, someone somewhere
> will have that many entries.  And then, the mapping will fail.

Most Linux file systems use some hash-based approach, so that they do not have
to maintain a separate lookup table for seeking in directories. A simple offset
does not work because there are POSIX (and quality-of-implementation)
requirements that after seekdir, the same sequence of entries is produced even
if unrelated directory entries are created and removed. Because of the hashing
involved, directories with tens of millions of entries may run into problems
even with a 64-bit hash.

If a file system uses a separate data structure for directory seeking, it won't
have a problem to generate 30-bit offsets, in which case glibc could avoid
translation completely (if it reserves the offsets in the range INT_MAX/2 + 1 …
INT_MAX for translation, which should be large enough).

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug libc/23960] [2.28 Regression]: New getdents{64} implementation breaks qemu-user
       [not found] <bug-23960-131@http.sourceware.org/bugzilla/>
                   ` (10 preceding siblings ...)
  2020-10-03 13:54 ` fweimer at redhat dot com
@ 2020-10-03 13:55 ` fweimer at redhat dot com
  2021-08-24 11:48 ` glaubitz at physik dot fu-berlin.de
                   ` (9 subsequent siblings)
  21 siblings, 0 replies; 22+ messages in thread
From: fweimer at redhat dot com @ 2020-10-03 13:55 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=23960

--- Comment #67 from Florian Weimer <fweimer at redhat dot com> ---
(In reply to Thorsten Glaser from comment #65)
> Can you make the linker choose a readdir implementation
> based on the presence of any of telldir and seekdir?

I don't think glibc should add complexity to optimize static linking on 32-bit
platforms. There are other libcs that have that as their area of expertise.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug libc/23960] [2.28 Regression]: New getdents{64} implementation breaks qemu-user
       [not found] <bug-23960-131@http.sourceware.org/bugzilla/>
                   ` (11 preceding siblings ...)
  2020-10-03 13:55 ` fweimer at redhat dot com
@ 2021-08-24 11:48 ` glaubitz at physik dot fu-berlin.de
  2022-05-15 20:53 ` glaubitz at physik dot fu-berlin.de
                   ` (8 subsequent siblings)
  21 siblings, 0 replies; 22+ messages in thread
From: glaubitz at physik dot fu-berlin.de @ 2021-08-24 11:48 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=23960

--- Comment #68 from John Paul Adrian Glaubitz <glaubitz at physik dot fu-berlin.de> ---
Just as a heads-up to anyone stumbling over this bug report, the latest set of
patches addressing the issue can be found here:

> https://sourceware.org/pipermail/libc-alpha/2020-October/118883.html

I have been using these patches without any issues on Debian for m68k and sh4.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug libc/23960] [2.28 Regression]: New getdents{64} implementation breaks qemu-user
       [not found] <bug-23960-131@http.sourceware.org/bugzilla/>
                   ` (12 preceding siblings ...)
  2021-08-24 11:48 ` glaubitz at physik dot fu-berlin.de
@ 2022-05-15 20:53 ` glaubitz at physik dot fu-berlin.de
  2022-05-16 12:06 ` adhemerval.zanella at linaro dot org
                   ` (7 subsequent siblings)
  21 siblings, 0 replies; 22+ messages in thread
From: glaubitz at physik dot fu-berlin.de @ 2022-05-15 20:53 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=23960

--- Comment #69 from John Paul Adrian Glaubitz <glaubitz at physik dot fu-berlin.de> ---
For anyone else running into this problem:

The issue can be worked around by putting the target chroot onto a btrfs
filesystem.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug libc/23960] [2.28 Regression]: New getdents{64} implementation breaks qemu-user
       [not found] <bug-23960-131@http.sourceware.org/bugzilla/>
                   ` (13 preceding siblings ...)
  2022-05-15 20:53 ` glaubitz at physik dot fu-berlin.de
@ 2022-05-16 12:06 ` adhemerval.zanella at linaro dot org
  2022-05-16 20:11 ` glaubitz at physik dot fu-berlin.de
                   ` (6 subsequent siblings)
  21 siblings, 0 replies; 22+ messages in thread
From: adhemerval.zanella at linaro dot org @ 2022-05-16 12:06 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=23960

--- Comment #70 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
(In reply to John Paul Adrian Glaubitz from comment #69)
> For anyone else running into this problem:
> 
> The issue can be worked around by putting the target chroot onto a btrfs
> filesystem.

Does it still fail with my patches applied?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug libc/23960] [2.28 Regression]: New getdents{64} implementation breaks qemu-user
       [not found] <bug-23960-131@http.sourceware.org/bugzilla/>
                   ` (14 preceding siblings ...)
  2022-05-16 12:06 ` adhemerval.zanella at linaro dot org
@ 2022-05-16 20:11 ` glaubitz at physik dot fu-berlin.de
  2022-05-16 20:15 ` adhemerval.zanella at linaro dot org
                   ` (5 subsequent siblings)
  21 siblings, 0 replies; 22+ messages in thread
From: glaubitz at physik dot fu-berlin.de @ 2022-05-16 20:11 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=23960

--- Comment #71 from John Paul Adrian Glaubitz <glaubitz at physik dot fu-berlin.de> ---
(In reply to Adhemerval Zanella from comment #70)
> (In reply to John Paul Adrian Glaubitz from comment #69)
> > For anyone else running into this problem:
> > 
> > The issue can be worked around by putting the target chroot onto a btrfs
> > filesystem.
> 
> Does it still fail with my patches applied?

It used to work with your patches, but that no longer seems to be the case
which I find strange.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug libc/23960] [2.28 Regression]: New getdents{64} implementation breaks qemu-user
       [not found] <bug-23960-131@http.sourceware.org/bugzilla/>
                   ` (15 preceding siblings ...)
  2022-05-16 20:11 ` glaubitz at physik dot fu-berlin.de
@ 2022-05-16 20:15 ` adhemerval.zanella at linaro dot org
  2022-05-17  4:39 ` sam at gentoo dot org
                   ` (4 subsequent siblings)
  21 siblings, 0 replies; 22+ messages in thread
From: adhemerval.zanella at linaro dot org @ 2022-05-16 20:15 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=23960

--- Comment #72 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
(In reply to John Paul Adrian Glaubitz from comment #71)
> (In reply to Adhemerval Zanella from comment #70)
> > (In reply to John Paul Adrian Glaubitz from comment #69)
> > > For anyone else running into this problem:
> > > 
> > > The issue can be worked around by putting the target chroot onto a btrfs
> > > filesystem.
> > 
> > Does it still fail with my patches applied?
> 
> It used to work with your patches, but that no longer seems to be the case
> which I find strange.

Do you have any information of what might be failing? It would be good to know
if this is another non-LFS interface pitfall.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug libc/23960] [2.28 Regression]: New getdents{64} implementation breaks qemu-user
       [not found] <bug-23960-131@http.sourceware.org/bugzilla/>
                   ` (16 preceding siblings ...)
  2022-05-16 20:15 ` adhemerval.zanella at linaro dot org
@ 2022-05-17  4:39 ` sam at gentoo dot org
  2022-12-06 15:50 ` glaubitz at physik dot fu-berlin.de
                   ` (3 subsequent siblings)
  21 siblings, 0 replies; 22+ messages in thread
From: sam at gentoo dot org @ 2022-05-17  4:39 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=23960

Sam James <sam at gentoo dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sam at gentoo dot org,
                   |                            |toolchain at gentoo dot org

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug libc/23960] [2.28 Regression]: New getdents{64} implementation breaks qemu-user
       [not found] <bug-23960-131@http.sourceware.org/bugzilla/>
                   ` (17 preceding siblings ...)
  2022-05-17  4:39 ` sam at gentoo dot org
@ 2022-12-06 15:50 ` glaubitz at physik dot fu-berlin.de
  2023-01-13  4:52 ` deller at gmx dot de
                   ` (2 subsequent siblings)
  21 siblings, 0 replies; 22+ messages in thread
From: glaubitz at physik dot fu-berlin.de @ 2022-12-06 15:50 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=23960

--- Comment #73 from John Paul Adrian Glaubitz <glaubitz at physik dot fu-berlin.de> ---
(In reply to Adhemerval Zanella from comment #72)
> (In reply to John Paul Adrian Glaubitz from comment #71)
> > (In reply to Adhemerval Zanella from comment #70)
> > > (In reply to John Paul Adrian Glaubitz from comment #69)
> > > > For anyone else running into this problem:
> > > > 
> > > > The issue can be worked around by putting the target chroot onto a btrfs
> > > > filesystem.
> > > 
> > > Does it still fail with my patches applied?
> > 
> > It used to work with your patches, but that no longer seems to be the case
> > which I find strange.
> 
> Do you have any information of what might be failing? It would be good to
> know if this is another non-LFS interface pitfall.

I can only say at the moment that it occurs with Java applications even with
your patches applied.

For example, when running the "ant" command inside an emulated m68k chroot, I
am getting the following error:

root@nofan:/# ant -version
Failed to locateorg.apache.tools.ant.Main
ant.home: /usr/share/ant
Classpath: /usr/share/ant/lib/ant-launcher.jar
Launcher JAR: /usr/share/java/ant-launcher-1.10.12.jar
Launcher Directory: /usr/share/java
root@nofan:/#

When working correctly - which is the case on btrfs and xfs, for example - the
output looks like this:

(sid-m68k-sbuild)root@z6:/# ant -version
Apache Ant(TM) version 1.10.12 compiled on July 11 2022
(sid-m68k-sbuild)root@z6:/#

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug libc/23960] [2.28 Regression]: New getdents{64} implementation breaks qemu-user
       [not found] <bug-23960-131@http.sourceware.org/bugzilla/>
                   ` (18 preceding siblings ...)
  2022-12-06 15:50 ` glaubitz at physik dot fu-berlin.de
@ 2023-01-13  4:52 ` deller at gmx dot de
  2023-12-29 23:52 ` sam at gentoo dot org
  2024-01-05  8:33 ` sam at gentoo dot org
  21 siblings, 0 replies; 22+ messages in thread
From: deller at gmx dot de @ 2023-01-13  4:52 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=23960

Helge Deller <deller at gmx dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |deller at gmx dot de

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug libc/23960] [2.28 Regression]: New getdents{64} implementation breaks qemu-user
       [not found] <bug-23960-131@http.sourceware.org/bugzilla/>
                   ` (19 preceding siblings ...)
  2023-01-13  4:52 ` deller at gmx dot de
@ 2023-12-29 23:52 ` sam at gentoo dot org
  2024-01-05  8:33 ` sam at gentoo dot org
  21 siblings, 0 replies; 22+ messages in thread
From: sam at gentoo dot org @ 2023-12-29 23:52 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=23960

Sam James <sam at gentoo dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://sourceware.org/bugz
                   |                            |illa/show_bug.cgi?id=31186

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug libc/23960] [2.28 Regression]: New getdents{64} implementation breaks qemu-user
       [not found] <bug-23960-131@http.sourceware.org/bugzilla/>
                   ` (20 preceding siblings ...)
  2023-12-29 23:52 ` sam at gentoo dot org
@ 2024-01-05  8:33 ` sam at gentoo dot org
  21 siblings, 0 replies; 22+ messages in thread
From: sam at gentoo dot org @ 2024-01-05  8:33 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=23960

Sam James <sam at gentoo dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://sourceware.org/bugz
                   |                            |illa/show_bug.cgi?id=31212

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2024-01-05  8:33 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-23960-131@http.sourceware.org/bugzilla/>
2019-05-01 20:33 ` [Bug libc/23960] [2.28 Regression]: New getdents{64} implementation breaks qemu-user chewi at gentoo dot org
2020-09-17 21:42 ` tg at mirbsd dot de
2020-10-02  8:54 ` danny.milo at gmail dot com
2020-10-02  9:36 ` danny.milo at gmail dot com
2020-10-02  9:46 ` fweimer at redhat dot com
2020-10-02 10:41 ` danny.milo at gmail dot com
2020-10-02 11:03 ` danny.milo at gmail dot com
2020-10-02 13:17 ` jrtc27 at jrtc27 dot com
2020-10-02 14:22 ` adhemerval.zanella at linaro dot org
2020-10-02 23:06 ` tg at mirbsd dot de
2020-10-03 13:54 ` fweimer at redhat dot com
2020-10-03 13:55 ` fweimer at redhat dot com
2021-08-24 11:48 ` glaubitz at physik dot fu-berlin.de
2022-05-15 20:53 ` glaubitz at physik dot fu-berlin.de
2022-05-16 12:06 ` adhemerval.zanella at linaro dot org
2022-05-16 20:11 ` glaubitz at physik dot fu-berlin.de
2022-05-16 20:15 ` adhemerval.zanella at linaro dot org
2022-05-17  4:39 ` sam at gentoo dot org
2022-12-06 15:50 ` glaubitz at physik dot fu-berlin.de
2023-01-13  4:52 ` deller at gmx dot de
2023-12-29 23:52 ` sam at gentoo dot org
2024-01-05  8:33 ` sam at gentoo dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).