From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Herbert J. Skuhra" Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] trunk r117168: Use mmap(2) emulation for buffer text on MS-Windows. Date: Thu, 29 May 2014 16:19:42 +0200 Message-ID: <86fvjsvf9d.wl%hskuhra@eumx.net> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1401373212 24562 80.91.229.3 (29 May 2014 14:20:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 May 2014 14:20:12 +0000 (UTC) To: Eli Zaretskii , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 29 16:20:05 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Wq1Bb-0008DK-IS for ged-emacs-devel@m.gmane.org; Thu, 29 May 2014 16:20:03 +0200 Original-Received: from localhost ([::1]:48467 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wq1Bb-0005tB-5I for ged-emacs-devel@m.gmane.org; Thu, 29 May 2014 10:20:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wq1BT-0005ss-SX for emacs-devel@gnu.org; Thu, 29 May 2014 10:20:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wq1BP-00077q-HX for emacs-devel@gnu.org; Thu, 29 May 2014 10:19:55 -0400 Original-Received: from eumx.net ([91.82.101.43]:52879 helo=owm.eumx.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wq1BK-00076g-Bb; Thu, 29 May 2014 10:19:46 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=eumx.net; h=date :message-id:from:to:subject:in-reply-to:references:mime-version :content-type; s=default; bh=ZBJ7xJR18o+x1uPpol1/BosSc58=; b=0Jv DIn9W2OES5TNCN4IW/huXjWTlXle0H0vwogdng+5WPcq7BnzpZAq56xQKk1kmNeg vF/RzhXVh6EWjvbzv+7ARjPsdOFNvtiEVddMJkbEyxnalZDm9aGN0dAricystjQu AdPRK//2l2fIpYV7FkkKG1XsN2mSJA/Bj9cGnEx0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=eumx.net; h=date:message-id :from:to:subject:in-reply-to:references:mime-version :content-type; q=dns; s=default; b=do1XZSvIBTglIqESoRcLzsY9VLvfj oOxepuQ6qURkM5MCVh2+PkZXdiWR4453t3RNcf9omfyHkcdMBzD6n+xTnAABFLSJ BMf/+JIxDgFoZTK1TCe4+wQNnwDstFlKhnISmjgscRV3sP2Iy8w7+eui2gfQJW3i rZW6B5iHSoItXM= In-Reply-To: User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.8 EasyPG/1.0.0 Emacs/24.4.50 (i386-pc-freebsd10.0) MULE/6.0 (HANACHIRUSATO) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 91.82.101.43 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:172174 Archived-At: Hello, this commit breaks the build on FreeBSD (tested on 10.0-STABLE amd64 and i386): Finding pointers to doc strings... Finding pointers to doc strings...done 81004 pure bytes used cd ../lisp; gmake -w compile-first EMACS="../src/bootstrap-emacs" gmake[3]: Entering directory `/home/herbert/source/emacs/trunk-r117168/lisp' Compiling emacs-lisp/macroexp.el Fatal error 11: Segmentation fault Backtrace: 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs 0x4a376b at /home/herbert/source/emacs/trunk-r117168/src/bootstrap-emacs gmake[3]: *** [emacs-lisp/macroexp.elc] Segmentation fault (core dumped) gmake[3]: Leaving directory `/home/herbert/source/emacs/trunk-r117168/lisp' gmake[2]: *** [bootstrap-emacs] Error 2 gmake[2]: Leaving directory `/home/herbert/source/emacs/trunk-r117168/src' gmake[1]: *** [src] Error 2 gmake[1]: Leaving directory `/home/herbert/source/emacs/trunk-r117168' gmake: *** [bootstrap] Error 2 -- Herbert On Tue, 27 May 2014 17:33:35 +0000 Eli Zaretskii wrote: > ------------------------------------------------------------ > revno: 117168 > revision-id: eliz@gnu.org-20140527173117-et72fjq7lazj50mj > parent: monnier@iro.umontreal.ca-20140527143607-1j29n1rk63f1zrm5 > author: Fabrice Popineau > committer: Eli Zaretskii > branch nick: trunk > timestamp: Tue 2014-05-27 20:31:17 +0300 > message: > Use mmap(2) emulation for buffer text on MS-Windows. > > src/Makefile.in (C_HEAP_SWITCH): Get the predefined heap size from > configure. > (ADDSECTION, MINGW_TEMACS_POST_LINK): Remove, no longer used. > src/lisp.h (NONPOINTER_BITS): Modify the condition to define to zero > for MinGW, since it no longer uses gmalloc. > src/buffer.c: Do not define mmap allocations functions for Windows. > Remove mmap_find which is unused. Remove mmap_set_vars which does > nothing useful. > [WINDOWSNT]: Include w32heap.h. > (init_buffer): Always allocate new memory for buffers. > src/emacs.c: Remove mmap_set_vars calls. > src/image.c (free_image): Undef free for Windows because it is > redirected to our private version. > src/unexw32.c (COPY_PROC_CHUNK): Use %p format for 64bits > compatibility. > (copy_executable_and_dump_data): Remove dumping the heap section. > (unexec): Restore using_dynamic_heap after dumping. > src/w32heap.c (dumped_data_commit, malloc_after_dump) > (malloc_before_dump, realloc_after_dump, realloc_before_dump) > (free_after_dump, free_before_dump, mmap_alloc, mmap_realloc) > (mmap_free): New functions. > src/w32heap.h: Declare dumped_data and mmap_* function prototypes. > > nt/inc/ms-w32.h: Switch to the system heap allocation scheme > instead of GNU malloc and ralloc. > nt/inc/sys/mman.h: New file. > nt/INSTALL: Update for the new build requirements. > > etc/NEWS: Mention build changes on MS-Windows. > > configure.ac (C_HEAP_SWITCH) define for different values of > dumped heap size depending on 32/64bits arch on Windows. > Don't check for pthreads.h on MinGW32/64, it gets in the way. > Use mmap(2) for buffers and system malloc for MinGW32/64. > added: > nt/inc/sys/mman.h mman.h-20140527171208-w5h37lgvfzdhyjf8-1 > modified: > ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1538 > configure.ac configure.in-20091113204419-o5vbwnq5f7feedwu-783 > etc/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1485 > etc/NEWS news-20100311060928-aoit31wvzf25yr1z-1 > nt/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1545 > nt/INSTALL install.msys-20130416132004-cxmtwcclsy15p2r8-1 > nt/inc/ms-w32.h msw32.h-20091113204419-o5vbwnq5f7feedwu-807 > src/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1438 > src/Makefile.in makefile.in-20091113204419-o5vbwnq5f7feedwu-631 > src/buffer.c buffer.c-20091113204419-o5vbwnq5f7feedwu-264 > src/emacs.c emacs.c-20091113204419-o5vbwnq5f7feedwu-241 > src/image.c image.c-20091113204419-o5vbwnq5f7feedwu-2969 > src/lisp.h lisp.h-20091113204419-o5vbwnq5f7feedwu-253 > src/unexw32.c unexw32.c-20091113204419-o5vbwnq5f7feedwu-887 > src/w32heap.c w32heap.c-20091113204419-o5vbwnq5f7feedwu-810 > src/w32heap.h w32heap.h-20091113204419-o5vbwnq5f7feedwu-811