From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Dimitry Kloper" Newsgroups: gmane.emacs.bugs Subject: emacs-22.1 coredumps on HPUX 11i Date: Wed, 15 Aug 2007 17:51:49 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1187224086 29253 80.91.229.12 (16 Aug 2007 00:28:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 16 Aug 2007 00:28:06 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 16 02:28:04 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1ILTDX-000077-Fa for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Aug 2007 02:28:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ILTDW-00037F-QL for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Aug 2007 20:28:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ILLAX-0003ib-3e for bug-gnu-emacs@gnu.org; Wed, 15 Aug 2007 11:52:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ILLAV-0003i6-8X for bug-gnu-emacs@gnu.org; Wed, 15 Aug 2007 11:52:24 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ILLAV-0003i3-28 for bug-gnu-emacs@gnu.org; Wed, 15 Aug 2007 11:52:23 -0400 Original-Received: from wx-out-0506.google.com ([66.249.82.238]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ILLAU-0006kV-Ln for bug-gnu-emacs@gnu.org; Wed, 15 Aug 2007 11:52:22 -0400 Original-Received: by wx-out-0506.google.com with SMTP id s7so1669488wxc for ; Wed, 15 Aug 2007 08:52:21 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=LDj30ep2XqmViFYtun1tCZm5wTjBKAbvqhwxO5GZ74tqCkBOUvGCOv3ueo/ztpBInS5qFFWMhPk2ryuAF+hFAm0tG38wJ504Oo3vv1FNdmqiyLFX/O3LzFfm4T+JsjSC/RIRiVp5Bgbcd5d5KnVTBtwHjUpDFKh0qsIRH/ttCrA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=RAMmxGY+k5zJQhI2aaRhWQh0tES54U48NApzEaZyNaWPoJwiMeYKn5iL4pPkykWvME9QLLHdr5Yv0RpjKkzRc+rr0+didM11BQdb2glFGy0gYZPJ4M3rZkr1DG0run9W/gumqGFDaJw7N16rNsApJSY/QrEySKnk+6U2c4/icFQ= Original-Received: by 10.70.116.1 with SMTP id o1mr1114766wxc.1187193109373; Wed, 15 Aug 2007 08:51:49 -0700 (PDT) Original-Received: by 10.70.97.5 with HTTP; Wed, 15 Aug 2007 08:51:49 -0700 (PDT) Content-Disposition: inline X-Detected-Kernel: Linux 2.6 (newer, 2) X-Mailman-Approved-At: Wed, 15 Aug 2007 20:27:59 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16365 Archived-At: Hello I apologise in case this bug was already reported. Setup: HPUX 11i gcc 3.3.3 Source snapshot from http://ftp.gnu.org/gnu/emacs/emacs-22.1.tar.gz ./configure --prefix=/usr/local/emacs-22.1 --with-x-toolkit=lucid [src]$ ./emacs -nw Segmentation fault (core dumped) [src]$ rm core [src]$ gdb emacs GNU gdb 5.3 Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "hppa2.0n-hp-hpux11.00"... TERM = vt100 Breakpoint 1 at 0x17ebd8 (gdb) r -nw Starting program: /usr/local/devel/dimka/emacs/emacs-22.1/src/emacs -nw Program received signal SIGSEGV, Segmentation fault. 0x002a92a4 in _free_internal () (gdb) where #0 0x002a92a4 in _free_internal () #1 0x002aa274 in free () #2 0x001ed49c in emacs_blocked_free () #3 0x002aa264 in free () #4 0x001eca98 in xfree () #5 0x000ee6b0 in tty_default_color_capabilities () #6 0x000ef650 in term_init () #7 0x0003e680 in init_display () #8 0x00150f24 in main () #9 0x77ee3460 in _start () from /usr/lib/libc.2 (gdb) k Kill the program being debugged? (y or n) y (gdb) The problem appears to be in the uninitialized static pointers default_orig_pair, default_set_foreground, default_set_background at the very beginning of function tty_default_color_capabilities() in term.c. Indeed, simply initializing those to NULL values solves the core dump. Here is the beginning of the fixed function: static void tty_default_color_capabilities (save) int save; { static char *default_orig_pair = NULL, *default_set_foreground = NULL, *default_set_background = NULL; .... Hope that helps -- Dimitry Kloper dimitry point kloper at gmail point com