https://sourceware.org/bugzilla/show_bug.cgi?id=10353 Adhemerval Zanella changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |adhemerval.zanella at linaro dot o | |rg --- Comment #8 from Adhemerval Zanella --- To expand Florian answer, the main issue is that closefrom call is inherent racy when trying to implement on libc without kernel support. The straightforward way to accomplish, and what python does, is to iterate over all open file descriptors (either by walking through /proc//fds or sysconf(_SC_OPEN_MAX)) and issue a close on the file descriptor. The problem with this approach does not guarantee on multithread environments that a file descriptor would not be created in the iteration phase. One option would be to serialize a file descriptor creation routine (such as open, openat) with close; but besides the fact it adds a large complexity and scalability issue, it does not solve the issue of file descriptors being created by bypassing the libc (by issuing the syscall instruction directly). Both OpenBSD and Solaris implements it with syscalls, former with closefrom and later with fcntl(..., F_CLOSEFROM). Also, Solaris documents its MT-unsafe. In fact, IMHO a closefrom syscall won't help much for posix_spawn. Current implementation for Linux uses a clone(CLONE_VM, CLONE_VFORK) which means that only the calling thread will be suspended while the helper thread issues execlpe or _exit. It means that a file action to issue a closefrom will also be susceptible to race conditions in multi-thread environments. That's why posix_spawn_file_actions_addclosefrom_np does not make much sense unless you implement posix_spawn with fork+exec (which has its own scalability issues). The possible solutions are: 1. Ensure all file descriptors are opened with O_CLOEXEC. 2. Use a helper process to actually set up the required file descriptor close steps and issue the target binary. This is in fact what OpenJDK does (check src/java.base/unix/native/jspawnhelper/jspawnhelper.c and src/java.base/unix/native/libjava/childproc.c). So IMHO closefrom would be just a performance optimization on Linux, where kernel will know exactly which file descriptor to close. -- You are receiving this mail because: You are on the CC list for the bug. >From glibc-bugs-return-45272-listarch-glibc-bugs=sources.redhat.com@sourceware.org Fri Apr 12 21:35:36 2019 Return-Path: Delivered-To: listarch-glibc-bugs@sources.redhat.com Received: (qmail 113083 invoked by alias); 12 Apr 2019 21:35:35 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Delivered-To: mailing list glibc-bugs@sourceware.org Received: (qmail 113042 invoked by uid 48); 12 Apr 2019 21:35:32 -0000 From: "dimpase at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug libc/10353] Methods for deleting all file descriptors greater than given integer Date: Fri, 12 Apr 2019 21: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: dimpase at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: WONTFIX X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: drepper.fsp at gmail dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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-04/txt/msg00143.txt.bz2 Content-length: 508 https://sourceware.org/bugzilla/show_bug.cgi?id=10353 --- Comment #9 from Dima Pasechnik --- The cpython problem with its current implementation is bad performance on systems with large sysconf(_SC_OPEN_MAX) value (e.g. it's much bigger on FreeBSD than it's on Linux). We actually plan to do a cpython PR which would replace the loop with a call to closefrom() -- for systems where it's available. -- You are receiving this mail because: You are on the CC list for the bug. >From glibc-bugs-return-45273-listarch-glibc-bugs=sources.redhat.com@sourceware.org Fri Apr 12 22:10:57 2019 Return-Path: Delivered-To: listarch-glibc-bugs@sources.redhat.com Received: (qmail 98529 invoked by alias); 12 Apr 2019 22:10:56 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Delivered-To: mailing list glibc-bugs@sourceware.org Received: (qmail 98486 invoked by uid 48); 12 Apr 2019 22:10:53 -0000 From: "adhemerval.zanella at linaro dot org" To: glibc-bugs@sourceware.org Subject: [Bug libc/10353] Methods for deleting all file descriptors greater than given integer Date: Fri, 12 Apr 2019 22: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: RESOLVED X-Bugzilla-Resolution: WONTFIX X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: drepper.fsp at gmail dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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-04/txt/msg00144.txt.bz2 Content-length: 683 https://sourceware.org/bugzilla/show_bug.cgi?id=10353 --- Comment #10 from Adhemerval Zanella --- (In reply to Dima Pasechnik from comment #9) > The cpython problem with its current implementation is bad performance on > systems with large sysconf(_SC_OPEN_MAX) value (e.g. it's much bigger on > FreeBSD than it's on Linux). We actually plan to do a cpython PR which would > replace the loop with a call to closefrom() -- for systems where it's > available. AFAIK unfortunately for this case, there is no much glibc can do without proper kernel support. -- You are receiving this mail because: You are on the CC list for the bug. >From glibc-bugs-return-45274-listarch-glibc-bugs=sources.redhat.com@sourceware.org Sun Apr 14 06:25:01 2019 Return-Path: Delivered-To: listarch-glibc-bugs@sources.redhat.com Received: (qmail 70605 invoked by alias); 14 Apr 2019 06:24:58 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Delivered-To: mailing list glibc-bugs@sourceware.org Received: (qmail 70507 invoked by uid 48); 14 Apr 2019 06:24:53 -0000 From: "tamuki at linet dot gr.jp" To: glibc-bugs@sourceware.org Subject: [Bug time/24453] New: Producing alternative representation for year with alternative numeric symbols Date: Sun, 14 Apr 2019 06:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: time X-Bugzilla-Version: 2.29 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tamuki at linet dot gr.jp 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: 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-04/txt/msg00145.txt.bz2 Content-length: 2215 https://sourceware.org/bugzilla/show_bug.cgi?id=24453 Bug ID: 24453 Summary: Producing alternative representation for year with alternative numeric symbols Product: glibc Version: 2.29 Status: NEW Severity: normal Priority: P2 Component: time Assignee: unassigned at sourceware dot org Reporter: tamuki at linet dot gr.jp Target Milestone: --- In Japanese locale, it is possible to produce Japanese calendar date and time representation with Chinese numerals as follows: $ LANG=ja_JP.UTF-8 date -d "2019-04-14 11:23:31" +"%m月%d日" 04月14日 $ LANG=ja_JP.UTF-8 date -d "2019-04-14 11:23:31" +"%H時%M分%S秒" 11時23分31秒 $ LANG=ja_JP.UTF-8 date -d "2019-04-14 11:23:31" +"%Om月%Od日" 四月十四日 $ LANG=ja_JP.UTF-8 date -d "2019-04-14 11:23:31" +"%OH時%OM分%OS秒" 十一時二十三分三十一秒 These representation are very commonly used in Japan, especially in vertical writing. However, Japanese calendar year can currently not be produced using Chinese numeric symbols, because both the 'E' and 'O' modifiers can not be applied to "%y" or "%Y" simultaneously: $ LANG=ja_JP.UTF-8 date -d "2019-04-14 11:23:31" +"%y年" 19年 $ LANG=ja_JP.UTF-8 date -d "2019-04-14 11:23:31" +"%Y年" 2019年 $ LANG=ja_JP.UTF-8 date -d "2019-04-14 11:23:31" +"%EC%Ey年" 平成31年 $ LANG=ja_JP.UTF-8 date -d "2019-04-14 11:23:31" +"%EY" 平成31年 $ LANG=ja_JP.UTF-8 date -d "2019-04-14 11:23:31" +"%Oy年" 十九年 $ LANG=ja_JP.UTF-8 date -d "2019-04-14 11:23:31" +"%EC%OEy年" 平成%OEy年 $ LANG=ja_JP.UTF-8 date -d "2019-04-14 11:23:31" +"%OEY" %OEY The last two should be represented as follows: 平成三十一年 -- You are receiving this mail because: You are on the CC list for the bug. >From glibc-bugs-return-45275-listarch-glibc-bugs=sources.redhat.com@sourceware.org Sun Apr 14 11:03:14 2019 Return-Path: Delivered-To: listarch-glibc-bugs@sources.redhat.com Received: (qmail 74273 invoked by alias); 14 Apr 2019 11:03:14 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Delivered-To: mailing list glibc-bugs@sourceware.org Received: (qmail 74234 invoked by uid 48); 14 Apr 2019 11:03:11 -0000 From: "marat at slonopotamus dot org" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/20972] Running libc.so.6 as an executable triggers IFUNC relocation ordering issues Date: Sun, 14 Apr 2019 11:03: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.24 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marat at slonopotamus dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: 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-04/txt/msg00146.txt.bz2 Content-length: 408 https://sourceware.org/bugzilla/show_bug.cgi?id=20972 Marat Radchenko changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marat at slonopotamus dot org -- You are receiving this mail because: You are on the CC list for the bug. >From glibc-bugs-return-45276-listarch-glibc-bugs=sources.redhat.com@sourceware.org Sun Apr 14 11:07:07 2019 Return-Path: Delivered-To: listarch-glibc-bugs@sources.redhat.com Received: (qmail 95692 invoked by alias); 14 Apr 2019 11:07:07 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Delivered-To: mailing list glibc-bugs@sourceware.org Received: (qmail 94009 invoked by uid 48); 14 Apr 2019 11:07:04 -0000 From: "marat at slonopotamus dot org" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/13579] do_lookup_x may access dangling memory Date: Sun, 14 Apr 2019 11:07: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.15 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marat at slonopotamus dot org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: carlos_odonell at mentor dot com X-Bugzilla-Target-Milestone: 2.16 X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: 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-04/txt/msg00147.txt.bz2 Content-length: 408 https://sourceware.org/bugzilla/show_bug.cgi?id=13579 Marat Radchenko changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marat at slonopotamus dot org -- You are receiving this mail because: You are on the CC list for the bug. >From glibc-bugs-return-45277-listarch-glibc-bugs=sources.redhat.com@sourceware.org Sun Apr 14 11:10:37 2019 Return-Path: Delivered-To: listarch-glibc-bugs@sources.redhat.com Received: (qmail 33777 invoked by alias); 14 Apr 2019 11:10:37 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Delivered-To: mailing list glibc-bugs@sourceware.org Received: (qmail 33733 invoked by uid 48); 14 Apr 2019 11:10:34 -0000 From: "marat at slonopotamus dot org" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/13882] Cycle detection in dynamic loader is broken Date: Sun, 14 Apr 2019 11: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.15 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marat at slonopotamus dot 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.16 X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: 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-04/txt/msg00148.txt.bz2 Content-length: 408 https://sourceware.org/bugzilla/show_bug.cgi?id=13882 Marat Radchenko changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marat at slonopotamus dot org -- You are receiving this mail because: You are on the CC list for the bug. >From glibc-bugs-return-45278-listarch-glibc-bugs=sources.redhat.com@sourceware.org Sun Apr 14 11:16:49 2019 Return-Path: Delivered-To: listarch-glibc-bugs@sources.redhat.com Received: (qmail 38267 invoked by alias); 14 Apr 2019 11:16:49 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Delivered-To: mailing list glibc-bugs@sourceware.org Received: (qmail 38243 invoked by uid 48); 14 Apr 2019 11:16:46 -0000 From: "marat at slonopotamus dot org" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/15309] dl_open_worker doesn't fully initialize seen array during init sort Date: Sun, 14 Apr 2019 11:16: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: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marat at slonopotamus dot org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED 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 Message-ID: In-Reply-To: References: 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-04/txt/msg00149.txt.bz2 Content-length: 408 https://sourceware.org/bugzilla/show_bug.cgi?id=15309 Marat Radchenko changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marat at slonopotamus dot org -- You are receiving this mail because: You are on the CC list for the bug. >From glibc-bugs-return-45279-listarch-glibc-bugs=sources.redhat.com@sourceware.org Sun Apr 14 12:48:21 2019 Return-Path: Delivered-To: listarch-glibc-bugs@sources.redhat.com Received: (qmail 72498 invoked by alias); 14 Apr 2019 12:48:18 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Delivered-To: mailing list glibc-bugs@sourceware.org Received: (qmail 72401 invoked by uid 48); 14 Apr 2019 12:48:14 -0000 From: "dimpase at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug libc/10353] Methods for deleting all file descriptors greater than given integer Date: Sun, 14 Apr 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: libc X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dimpase at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: WONTFIX X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: drepper.fsp at gmail dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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-04/txt/msg00150.txt.bz2 Content-length: 336 https://sourceware.org/bugzilla/show_bug.cgi?id=10353 --- Comment #11 from Dima Pasechnik --- libbsd does provide closefrom on Linux-I have not looked at what it actually does... https://packages.debian.org/source/sid/libbsd -- You are receiving this mail because: You are on the CC list for the bug. >From glibc-bugs-return-45280-listarch-glibc-bugs=sources.redhat.com@sourceware.org Sun Apr 14 14:44:46 2019 Return-Path: Delivered-To: listarch-glibc-bugs@sources.redhat.com Received: (qmail 19015 invoked by alias); 14 Apr 2019 14:44:46 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Delivered-To: mailing list glibc-bugs@sourceware.org Received: (qmail 18969 invoked by uid 48); 14 Apr 2019 14:44:43 -0000 From: "adhemerval.zanella at linaro dot org" To: glibc-bugs@sourceware.org Subject: [Bug libc/10353] Methods for deleting all file descriptors greater than given integer Date: Sun, 14 Apr 2019 14:44: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: RESOLVED X-Bugzilla-Resolution: WONTFIX X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: drepper.fsp at gmail dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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-04/txt/msg00151.txt.bz2 Content-length: 571 https://sourceware.org/bugzilla/show_bug.cgi?id=10353 --- Comment #12 from Adhemerval Zanella --- (In reply to Dima Pasechnik from comment #11) > libbsd does provide closefrom on Linux-I have not looked at what it actually > does... > > https://packages.debian.org/source/sid/ It does exactly what I described earlier: interact over /proc/self/fd or getconf [1]. [1] https://gitlab.freedesktop.org/libbsd/libbsd/blob/master/src/closefrom.c -- You are receiving this mail because: You are on the CC list for the bug. >From glibc-bugs-return-45281-listarch-glibc-bugs=sources.redhat.com@sourceware.org Sun Apr 14 14:47:01 2019 Return-Path: Delivered-To: listarch-glibc-bugs@sources.redhat.com Received: (qmail 21351 invoked by alias); 14 Apr 2019 14:47:00 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Delivered-To: mailing list glibc-bugs@sourceware.org Received: (qmail 21314 invoked by uid 48); 14 Apr 2019 14:46:57 -0000 From: "marat at slonopotamus dot org" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/15311] _dl_sort_fini static deps can be violated by dynamic ones Date: Sun, 14 Apr 2019 14:47: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: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marat at slonopotamus 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: cc Message-ID: In-Reply-To: References: 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-04/txt/msg00152.txt.bz2 Content-length: 408 https://sourceware.org/bugzilla/show_bug.cgi?id=15311 Marat Radchenko changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marat at slonopotamus dot org -- You are receiving this mail because: You are on the CC list for the bug. >From glibc-bugs-return-45282-listarch-glibc-bugs=sources.redhat.com@sourceware.org Sun Apr 14 18:17:00 2019 Return-Path: Delivered-To: listarch-glibc-bugs@sources.redhat.com Received: (qmail 69756 invoked by alias); 14 Apr 2019 18:17:00 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Delivered-To: mailing list glibc-bugs@sourceware.org Received: (qmail 68018 invoked by uid 48); 14 Apr 2019 18:16:57 -0000 From: "marat at slonopotamus dot org" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/15329] _dl_sort_fini and _dl_sort_init don't keep SCCs contiguous Date: Sun, 14 Apr 2019 18: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: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: marat at slonopotamus 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: cc Message-ID: In-Reply-To: References: 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-04/txt/msg00153.txt.bz2 Content-length: 408 https://sourceware.org/bugzilla/show_bug.cgi?id=15329 Marat Radchenko changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marat at slonopotamus dot org -- You are receiving this mail because: You are on the CC list for the bug. >From glibc-bugs-return-45283-listarch-glibc-bugs=sources.redhat.com@sourceware.org Sun Apr 14 21:23:19 2019 Return-Path: Delivered-To: listarch-glibc-bugs@sources.redhat.com Received: (qmail 22236 invoked by alias); 14 Apr 2019 21:23:19 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Delivered-To: mailing list glibc-bugs@sourceware.org Received: (qmail 18788 invoked by uid 48); 14 Apr 2019 21:23:15 -0000 From: "marat at slonopotamus dot org" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/15310] _dl_sort_fini is O(n^3) causing slow exit when many dsos Date: Sun, 14 Apr 2019 21:23: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: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marat at slonopotamus 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: In-Reply-To: References: 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-04/txt/msg00154.txt.bz2 Content-length: 1384 https://sourceware.org/bugzilla/show_bug.cgi?id=15310 --- Comment #25 from Marat Radchenko --- (In reply to Don Hatch from comment #3) > I'll submit it here in a day or two. Hello from 2019. We're still suffering from O(n^3). Don, unfortunately you haven't published your code anywhere (even if it still lacks an exhaustive set of tests). For those brave enough out there who would like to try solve this, here's a PDF named "A Space-Efficient Algorithm for Finding Strongly Connected Components" with non-recursive Tarjan SCC implementation: http://homepages.ecs.vuw.ac.nz/~djp/files/IPL15-preprint.pdf "Proposed initial patch" that is attached here is no longer needed because it only moves code around that was done in commit c2c299fd24e87b83c63191ff979d41a86b37d714 Author: Andreas Schwab Date: Tue Nov 7 15:24:19 2017 +0100 Consolidate link map sorting Combine the four places where link maps are sorted into a single function. This also moves the logic to skip the first map (representing the main binary) to the callers. So, there's currently only a single sorting function in elf/dl-sort-maps.c BTW, has anyone tried looking at how other libcs do this sorting? Maybe there's no need to reinvent the wheel? -- You are receiving this mail because: You are on the CC list for the bug. >From glibc-bugs-return-45284-listarch-glibc-bugs=sources.redhat.com@sourceware.org Sun Apr 14 21:49:47 2019 Return-Path: Delivered-To: listarch-glibc-bugs@sources.redhat.com Received: (qmail 120130 invoked by alias); 14 Apr 2019 21:49:47 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Delivered-To: mailing list glibc-bugs@sourceware.org Received: (qmail 120051 invoked by uid 48); 14 Apr 2019 21:49:42 -0000 From: "marat at slonopotamus dot org" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/17645] RFE: Improve performance of dynamic loader for deeply nested DSO dependencies. Date: Sun, 14 Apr 2019 21:49: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: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marat at slonopotamus 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: In-Reply-To: References: 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-04/txt/msg00155.txt.bz2 Content-length: 1257 https://sourceware.org/bugzilla/show_bug.cgi?id=17645 --- Comment #11 from Marat Radchenko --- (In reply to Paulo Andrade from comment #8) > My question is, is some documentation that says > that dsos must be kept together in the ordering? > I mean, there are 2 correct results: > > main a4 a3 b2 b1 a2 a1 > > and > > main a4 a3 b2 a2 a1 b1 > > but if there is some specification that says > it should have "b2 b1" together, then the patch > is invalid, because it only breaks cycles and > does ordering, and if there are no dependencies, > it keeps it in the order it received the list > to sort. I'm not aware of any such spefication, but current glibc implementation does keep direct dependencies together and this looks like A Good Thing. #15310 suggest using Tarjan SCC for toposort and it is expected to keep direct deps together. With regard to your patch - what big-O complexity does it have? If I read the code correctly, you recalculate (num_maps - num_seen) weights whenever you mark link_map as seen. This is just a better than O(n^2). But the problem we're talking about (toposort) is believed to be linear. -- You are receiving this mail because: You are on the CC list for the bug. >From glibc-bugs-return-45285-listarch-glibc-bugs=sources.redhat.com@sourceware.org Mon Apr 15 08:27:32 2019 Return-Path: Delivered-To: listarch-glibc-bugs@sources.redhat.com Received: (qmail 21012 invoked by alias); 15 Apr 2019 08:27:31 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Delivered-To: mailing list glibc-bugs@sourceware.org Received: (qmail 20944 invoked by uid 48); 15 Apr 2019 08:27:28 -0000 From: "fweimer at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug network/24252] resolv/tst-resolv-ai_idn test failure with libidn2 2.1.1a Date: Mon, 15 Apr 2019 08:27: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.30 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fweimer at redhat dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: MOVED 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: In-Reply-To: References: 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-04/txt/msg00156.txt.bz2 Content-length: 436 https://sourceware.org/bugzilla/show_bug.cgi?id=24252 --- Comment #8 from Florian Weimer --- libidn2 upstream now has an API trace test, based on the glibc test suite: https://gitlab.com/libidn/libidn2/commit/6b75895913990dd91ab5c373e4c9d1977761f899 Hopefully, this will avoid future regressions in the glibc test suite. -- You are receiving this mail because: You are on the CC list for the bug. >From glibc-bugs-return-45286-listarch-glibc-bugs=sources.redhat.com@sourceware.org Mon Apr 15 12:57:14 2019 Return-Path: Delivered-To: listarch-glibc-bugs@sources.redhat.com Received: (qmail 130115 invoked by alias); 15 Apr 2019 12:57:13 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Delivered-To: mailing list glibc-bugs@sourceware.org Received: (qmail 127213 invoked by uid 48); 15 Apr 2019 12:57:09 -0000 From: "fweimer at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/11754] RFE: dlopen of ET_EXEC file Date: Mon, 15 Apr 2019 12:57: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.12 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: fweimer at redhat dot com X-Bugzilla-Status: REOPENED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: drepper.fsp at gmail dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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-04/txt/msg00157.txt.bz2 Content-length: 1945 https://sourceware.org/bugzilla/show_bug.cgi?id=11754 --- Comment #15 from Florian Weimer --- (In reply to John Reiser from comment #14) > (In reply to Florian Weimer from comment #13) > > We cannot support this because it is not possible to perform correct > > relocations if another executable has already been loaded. There is also no > > way to correctly execute the ELF constructors of the second executable. > > Please give specific examples or explanations why success (or a > recognizable, specific, and informative error code) is not possible. Here is an example. The first program is mylocaltime-export: #include #include void mylocaltime (time_t t) { struct tm *tm = localtime (&t); printf ("tm_isdst (from other program): %d\n", tm->tm_isdst); printf ("daylight (from other program): %d\n", daylight); } int main (void) { return 0; } The second is mylocaltime-use: #include #include #include #include #include #include static void mylocaltime2 (time_t t) { struct tm *tm = localtime (&t); printf ("tm_isdst (from main program): %d\n", tm->tm_isdst); printf ("daylight (from main program): %d\n", daylight); } int main (void) { setenv ("TZ", "Europe/Berlin", 1); void *handle = dlopen ("./mylocaltime-export", RTLD_NOW); if (handle == NULL) errx (1, "dlopen: %s", dlerror ()); void *func = dlsym (handle, "mylocaltime"); if (func == NULL) errx (1, "dlsym: %s", dlerror ()); void (*fptr) (time_t) = func; mylocaltime2 (1555332781); fptr (1555332781); } Running the latter produces on x86-64: tm_isdst (from main program): 1 daylight (from main program): 1 tm_isdst (from other program): 1 daylight (from other program): 0 Such issues will be extremely difficult to debug. -- You are receiving this mail because: You are on the CC list for the bug. >From glibc-bugs-return-45287-listarch-glibc-bugs=sources.redhat.com@sourceware.org Mon Apr 15 12:58:12 2019 Return-Path: Delivered-To: listarch-glibc-bugs@sources.redhat.com Received: (qmail 34384 invoked by alias); 15 Apr 2019 12:58:12 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Delivered-To: mailing list glibc-bugs@sourceware.org Received: (qmail 32453 invoked by uid 48); 15 Apr 2019 12:58:08 -0000 From: "fweimer at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/24323] dlopen should not be able open PIE objects Date: Mon, 15 Apr 2019 12:58: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: 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: In-Reply-To: References: 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-04/txt/msg00158.txt.bz2 Content-length: 274 https://sourceware.org/bugzilla/show_bug.cgi?id=24323 --- Comment #1 from Florian Weimer --- See bug 11754 comment 15 for an example why this change is desirable. -- You are receiving this mail because: You are on the CC list for the bug. >From glibc-bugs-return-45288-listarch-glibc-bugs=sources.redhat.com@sourceware.org Mon Apr 15 14:47:26 2019 Return-Path: Delivered-To: listarch-glibc-bugs@sources.redhat.com Received: (qmail 113843 invoked by alias); 15 Apr 2019 14:47:26 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Delivered-To: mailing list glibc-bugs@sourceware.org Received: (qmail 113833 invoked by uid 89); 15 Apr 2019 14:47:26 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=3.7 required=5.0 testsYES_50,DOS_OUTLOOK_TO_MX,FILL_THIS_FORM,HTML_MESSAGE,SPF_PASS,T_FILL_THIS_FORM_LONG autolearn=no version=3.3.1 spammy=H*x:12.0, H*UA:12.0, contacts, H*x:Office X-HELO: ans.enewswriter.com Received: from ans.enewswriter.com (HELO ans.enewswriter.com) (206.189.15.249) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 15 Apr 2019 14:47:25 +0000 From: "Tia Costa" To: Subject: Cisco Live! 2018 Attendee Info Date: Mon, 15 Apr 2019 14:47:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-SW-Source: 2019-04/txt/msg00159.txt.bz2 Content-length: 533 Hi, Would you be interested in Cisco Live! 2018 attendee list? We can provide you with 18,500 attendee contacts. Each contact comes with First Name, Middle Name, Last Name, Phone, Fax, Email Address, Business Name, Job Title, Web Address/URL, Country and Zip Code. Please let me know if you are interested and I shall get back to you with the Pricing. Best Regards, Tia Costa | Demand Generation| B2bprolist If you don't wish to receive our newsletters, reply back with " UN-SUBSCRIBE " in subject line.