From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: MPS: Forwording symbols Date: Tue, 18 Jun 2024 15:36:55 +0300 Message-ID: <86cyoeqvfc.fsf@gnu.org> References: <87jziod6yc.fsf@gmail.com> <874j9rcuf6.fsf@gmail.com> <87y173bda9.fsf@gmail.com> <87plsfbcd5.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38565"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eller.helmut@gmail.com, emacs-devel@gnu.org To: Gerd =?utf-8?Q?M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jun 18 14:37:29 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sJY5Z-0009rf-Gq for ged-emacs-devel@m.gmane-mx.org; Tue, 18 Jun 2024 14:37:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sJY56-0006Ou-O3; Tue, 18 Jun 2024 08:37:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sJY55-0006OK-2h for emacs-devel@gnu.org; Tue, 18 Jun 2024 08:36:59 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sJY54-0003pi-R1; Tue, 18 Jun 2024 08:36:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=Er3xRV4OJZUH5yMhnWy2KvMC1nauOCkrcMsrLJqyjnU=; b=kbPgvbXYogwAxKohdRgK a8idIarUOOfRBsT6ZpMm/B74M5x4Z2HLW3qcgBQwOSQFzC7ah5nvl1AnKDhGPtVr3OgncKlXqHxMq Inc2LE4v/rM2L6qn3ff4h54XWn2oX9BNLT7Ye1kM866+MTKlTNsOxobSTxChhwV/vl6VXifDwJixY j+1VAU+u/2GdtY1Micg/kqJuw7b6LPwjyeMZP5Oy/ffZKI7n+M8arPjQ5/U8S6WFOf/ui0ToHJqBv npoMpvYsNHrBMvqsc++6puo0its64lC7LVHEB2Eogh5gYsu5NAY4dI6KSAd6RaM6HT4asQvFRM66z rwqVFGVh0lPdTA==; In-Reply-To: (message from Gerd =?utf-8?Q?M=C3=B6llmann?= on Mon, 17 Jun 2024 22:07:03 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:320240 Archived-At: > From: Gerd Möllmann > Cc: Emacs Devel , Eli Zaretskii > Date: Mon, 17 Jun 2024 22:07:03 +0200 > > Helmut Eller writes: > > > On Mon, Jun 17 2024, Gerd Möllmann wrote: > > > >> I still get the same assertion because client is not pdumper_object_p. > >> Could it be that we have to use pdumper_cold_object_p? I'll > >> give it a try. Strangely, I can't call that function in LLDB... :-( > > > > dump_cold_buffer uses a dirty trick to get that damn > > IGC_OBJ_DUMPED_BUFFER_TEXT header written out. igc_dump_finish_obj > > could just check the type. That's something for tomorrow. Now it's too > > late. > > Ok. I'll push something that lets me build, and with an optimized build > I get > > .../emacs/savannah/igc % /usr/bin/time src/emacs -batch -f igc--collect > 0.18 real 0.09 user 0.08 sys > > Not too bad :-). Good night! The latest HEAD builds here with one harmless warning: pdumper.c:4776:1: warning: 'dump_map_file_w32' defined but not used [-Wunused-function] 4776 | dump_map_file_w32 (void *base, int fd, off_t offset, size_t size, | ^~~~~~~~~~~~~~~~~ pdumper.c:4639:1: warning: 'dump_anonymous_allocate_w32' defined but not used [-Wunused-function] 4639 | dump_anonymous_allocate_w32 (void *base, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ and still infloops(?), hitting SIGSEGV repeatedly here: Thread 1 received signal SIGSEGV, Segmentation fault. igc_on_pdump_loaded (dump_base=dump_base@entry=0xb000008, hot_start=hot_start@entry=0xb000080, hot_end=0xb585408, cold_start=0xb5b0008, cold_end=cold_end@entry=0xba8b6a8, cold_user_data_start=0xb7038a8, heap_end=0xb707af8) at igc.c:3763 3763 eassert (((struct igc_header *)cold_start)->obj_type (gdb) p cold_start $1 = (void *) 0xb5b0008 (gdb) p ((struct igc_header *)cold_start)->obj_type Cannot access memory at address 0xb5b0008 Any ideas are welcome. I will gladly provide more information if needed. Thanks.