From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: When should ralloc.c be used? Date: Sun, 23 Oct 2016 15:50:57 +0300 Message-ID: <83mvhvns9a.fsf@gnu.org> References: <87twe6sx2g.fsf@users.sourceforge.net> <87eg51ng4r.fsf_-_@users.sourceforge.net> <87k2djwumn.fsf@users.sourceforge.net> <83h98nidvd.fsf@gnu.org> <87eg3rvtsf.fsf@users.sourceforge.net> <83k2dihpm9.fsf@gnu.org> <8760p2wzgj.fsf@users.sourceforge.net> <838ttyhhzu.fsf@gnu.org> <871szqwu51.fsf@users.sourceforge.net> <831szqhbc2.fsf@gnu.org> <87d1itt79z.fsf_-_@users.sourceforge.net> <7baa18d4-2b09-caa8-005e-29008a383ad1@cs.ucla.edu> <83mvhwrgd5.fsf@gnu.org> <8539f38f-9a11-44c3-4de7-bb974c96206c@cs.ucla.edu> <8360ojpndr.fsf@gnu.org> <83wpgzo30m.fsf@gnu.org> <5a4bbe6d-08ce-e6c6-39d1-49c9cd6d1ffd@cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1477227126 18313 195.159.176.226 (23 Oct 2016 12:52:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 23 Oct 2016 12:52:06 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 23 14:51:57 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1byIFg-0002PM-BT for ged-emacs-devel@m.gmane.org; Sun, 23 Oct 2016 14:51:48 +0200 Original-Received: from localhost ([::1]:40989 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1byIFh-0003ym-KM for ged-emacs-devel@m.gmane.org; Sun, 23 Oct 2016 08:51:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47779) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1byIF1-0003yB-Cx for emacs-devel@gnu.org; Sun, 23 Oct 2016 08:51:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1byIEx-0005hY-09 for emacs-devel@gnu.org; Sun, 23 Oct 2016 08:51:07 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33237) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1byIEw-0005hE-Sp; Sun, 23 Oct 2016 08:51:02 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2669 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1byIEv-0008Ry-Vr; Sun, 23 Oct 2016 08:51:02 -0400 In-reply-to: <5a4bbe6d-08ce-e6c6-39d1-49c9cd6d1ffd@cs.ucla.edu> (message from Paul Eggert on Sun, 23 Oct 2016 02:38:38 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:208616 Archived-At: Is it reasonable to require a version of glibc that still supports __malloc_initialize_hook? When people upgrade to a newer glibc, the previous version is still left on the system, I presume (for programs that need them which were built against those old versions)? I took a look at our sources, and we have a lot of places where we call malloc, directly or indirectly, while holding C pointers to data of Lisp strings. We also have several (maybe half a dozen) places where the same happens with C pointers to buffer text. Auditing all of these and fixing them is a non-trivial job, so maybe we should try to avoid the problems in the first place? Is it a practical solution?