From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Denny Dahl" Newsgroups: gmane.emacs.help Subject: Re: Mysterious emacs failure Date: Mon, 17 Oct 2005 16:12:19 -0400 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0670897490==" X-Trace: sea.gmane.org 1129580365 12470 80.91.229.2 (17 Oct 2005 20:19:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 17 Oct 2005 20:19:25 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 17 22:19:24 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ERbQQ-00072X-1J for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Oct 2005 22:17:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ERbQN-00068J-Ep for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Oct 2005 16:17:35 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Mon, 17 Oct 2005 15:12:17 -0500 Original-Newsgroups: gnu.emacs.help X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Original-Lines: 432 Original-NNTP-Posting-Host: 24.218.137.167 Original-X-Trace: sv3-iYppOdKlFJUMfCVT1JgZ35MFeYbI70h20GqJL3z3PX7/b4CSVRA/jXog/bBsNLHwrlU12JSyWaI6w96!NGnuLW0xE2UZIsi72bEnksI07iAFkeCsaL/t6tJHgaUh/CMxPmhl194/Y6+C6ovQxF/hiKFHTlND!CXTt5KrolWe1YWnJmj8= Original-X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Original-Xref: shelby.stanford.edu gnu.emacs.help:134713 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:30296 Archived-At: This is a multi-part message in MIME format. --===============0670897490== Content-Type: multipart/alternative; boundary="----=_NextPart_000_0009_01C5D335.8DC19A50" This is a multi-part message in MIME format. ------=_NextPart_000_0009_01C5D335.8DC19A50 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Have been hacking at this problem all day and have learned some = interesting things but do not have a solution yet. I was able to successfully start the = "bare impure emacs" executable named temacs. This runs successfully for a few minutes, then = it goes nuts attempting (unsuccessfully) to create the directory /.emacs.d over = and over again. I also built an emacs using "GNU_MALLOC=3Dno ./configure" but this = didn't do what I expected it to do. I've been looking through the INSTALL file and = etc/PROBLEMS to try to find some alternate ways to build the malloc() code. I've = seen interesting references to DOUG_LEA_MALLOC, but no indication of how to turn this on = at configure time. Currently, my best alternative is to run emacs on another machine and = just start making heavy use of ange-ftp and M-x telnet. I'd rather not, since M-x = telnet does not do filename completion. And I'd really rather run my emacs on the = same machine where all my files are... But I've already blown an entire day trying = to get a working build... I know I'm going to lose patience soon... "Denny Dahl" wrote in message = news:qtmdnQkmk8s-SM7eRVn-oQ@comcast.com... I am data warehouse consultant who has been working at a large = insurance company for 18 months. On my first week of work, I downloaded, configured and = compiled emacs for several of the AIX boxes here. I have been using emacs on = one particular server quite productively for the last 18 months without any problems. = Up until Thursday of last week. I took off Friday to attend my 30th high school reunion and returned = to work this morning. The box had been booted during my absence: a pre-meditated = re-boot so that a particular software package (Ab Initio) could be upgraded. = Now, emacs no longer works. In fact, it dies a horrible death at start-up like = this: tlmitnu1:ddahl> emacs Segmentation fault(coredump) tlmitnu1:ddahl> ls -l core -rw-r----- 1 ddahl abinitio 11360307 Oct 17 12:33 core If you can provide me any clues or ideas about things to investigate, = I would be very appreciative. Here is some additional information. OS particulars: tlmitnu1:ddahl> uname -rv 1 5 tlmitnu1:ddahl> uname -a AIX tlmitnu1 1 5 0029334A4C00 tlmitnu1:ddahl> cat /etc/motd = *************************************************************************= ****** * = * * = * * Welcome to AIX Version 5.1! = * * = * * = * * Please see the README file in /usr/lpp/bos for information = pertinent to * * this release of the AIX Operating System. = * * = * * = * = *************************************************************************= ****** DEOS Infrastructure Version 2002-Q2-aix installed (08/13/2003) DEOS v2002-3-aixuvscan (09/23/2002) deos_unix_ECCmstagt_prod_s-2003.1 installed on 10/14/2003 DEOS Infrastructure Version v2004-3-alerts installed (09/14/2004) I've run emacs under the debugger and single-stepped my way to the = general area where the signal happens. In rough outline, there is a variable = (__malloc_hook) found in src/gmalloc.c and this is supposed to contain the address of a = function. But when the program attempts to execute code at this derefeneced address, it = finds unreadable instructions: tlmitnu1:emacs-21.3> dbx src/emacs Type 'help' for help. reading symbolic information ... (dbx) stop in main [1] stop in main (dbx) run [1] stopped in main at line 714 in file "src/emacs.c" ($t1) 714 int skip_args =3D 0; (dbx) step stopped in main at line 737 in file "src/emacs.c" ($t1) 737 sort_args (argc, argv); (dbx) step stopped in sort_args at line 1651 in file "src/emacs.c" ($t1) 1651 char **new =3D (char **) xmalloc (sizeof (char *) * argc); (dbx) step stopped in xmalloc at line 519 in file "src/alloc.c" ($t1) 519 BLOCK_INPUT; (dbx) step stopped in xmalloc at line 520 in file "src/alloc.c" ($t1) 520 val =3D (POINTER_TYPE *) malloc (size); (dbx) step stopped in gmalloc.malloc at line 891 in file "src/gmalloc.c" ($t1) 891 if (!__malloc_initialized && !__malloc_initialize ()) (dbx) step stopped in gmalloc.malloc at line 894 in file "src/gmalloc.c" ($t1) 894 return (__malloc_hook !=3D NULL ? *__malloc_hook : = _malloc_internal) (size); (dbx) print __malloc_hook 0x200e0b9c=20 (dbx) print *__malloc_hook 0x2c030000=20 (dbx) step Unreadable instruction at address 0x2c030000 (dbx) where ptrgl.$PTRGL(??, ??, ??, ??, ??, ??, ??, ??, ??, ??, ??, ??, ??, ??, = ??, ??, ??, ??, ??, ??, ) at 0x100adf64 gmalloc.malloc(size =3D 0), line 894 in "gmalloc.c" xmalloc(size =3D 0), line 520 in "alloc.c" sort_args(argc =3D 42308, argv =3D 0x000c0002), line 1651 in = "emacs.c" main(argc =3D 0, argv =3D (nil), envp =3D (nil)), line 737 in = "emacs.c" (dbx) quit =20 The version of emacs that I've been using is 21-3. In desperation, I = downloaded, configured and compiled a new emacs.21-3 but this newly compiled version failed in = the same way as the original. Thanks in advance for any help that you might be able to provide! -Denny Dahl ------=_NextPart_000_0009_01C5D335.8DC19A50 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Have been hacking at this problem all = day and have=20 learned some interesting things
but do not have a solution yet.  I = was able to=20 successfully start the "bare impure emacs"
executable named temacs.  This = runs=20 successfully for a few minutes, then it goes
nuts attempting (unsuccessfully) to = create the=20 directory /.emacs.d over and over
again.
 
I also built an emacs using = "GNU_MALLOC=3Dno=20 ./configure" but this didn't do what
I expected it to do.  I've been = looking=20 through the INSTALL file and etc/PROBLEMS
to try to find some alternate ways to = build the=20 malloc() code.  I've seen interesting
references to DOUG_LEA_MALLOC, but no = indication of=20 how to turn this on at
configure time.
 
Currently, my best alternative is to = run emacs on=20 another machine and just start
making heavy use of ange-ftp and M-x = telnet. =20 I'd rather not, since M-x telnet does
not do filename completion.  And = I'd really=20 rather run my emacs on the same machine
where all my files are...  But = I've already=20 blown an entire day trying to get a working
build...  I know I'm going to lose = patience=20 soon...
"Denny Dahl" <ddahl@travelers.com> wrote = in message=20 news:qtmdnQkmk8s-SM7eRVn= -oQ@comcast.com...
I am data warehouse = consultant who=20 has been working at a large insurance company
for 18 months.  = On my first=20 week of work, I downloaded, configured and compiled
emacs for several of = the AIX boxes=20 here.  I have been using emacs on one particular
server quite = productively for the=20 last 18 months without any problems.  Up until
Thursday of last = week.
 
I took off Friday to = attend my 30th=20 high school reunion and returned to work this
morning.  The = box had been=20 booted during my absence: a pre-meditated re-boot so
that a particular = software package=20 (Ab Initio) could be upgraded.  Now, emacs no
longer works.  = In fact, it=20 dies a horrible death at start-up like this:
tlmitnu1:ddahl>=20 emacs
Segmentation fault(coredump)
tlmitnu1:ddahl> ls -l=20 core
-rw-r-----   1 ddahl   =20 abinitio   11360307 Oct 17 12:33 = core
If you can provide me = any clues or=20 ideas about things to investigate, I would be
very = appreciative.  Here is=20 some additional information.
 
OS = particulars:
tlmitnu1:ddahl> uname = -rv
1=20 5
tlmitnu1:ddahl> uname -a
AIX tlmitnu1 1 5=20 0029334A4C00
tlmitnu1:ddahl> cat=20 = /etc/motd
************************************************************= *******************
*        &= nbsp;           &n= bsp;           &nb= sp;           &nbs= p;            = ;            =        =20 = *
*           &= nbsp;           &n= bsp;           &nb= sp;           &nbs= p;            = ;            =     =20 *
*  Welcome to AIX Version=20 = 5.1!           &nb= sp;           &nbs= p;            = ;           =20 = *
*           &= nbsp;           &n= bsp;           &nb= sp;           &nbs= p;            = ;            =     =20 = *
*           &= nbsp;           &n= bsp;           &nb= sp;           &nbs= p;            = ;            =     =20 *
*  Please see the README file in /usr/lpp/bos for = information=20 pertinent to    *
*  this release of the AIX=20 Operating=20 = System.           =             &= nbsp;         =20 = *
*           &= nbsp;           &n= bsp;           &nb= sp;           &nbs= p;            = ;            =     =20 = *
*           &= nbsp;           &n= bsp;           &nb= sp;           &nbs= p;            = ;            =     =20 = *
********************************************************************= ***********
DEOS=20 Infrastructure Version 2002-Q2-aix installed (08/13/2003)
DEOS=20 v2002-3-aixuvscan (09/23/2002)
deos_unix_ECCmstagt_prod_s-2003.1=20 installed on 10/14/2003
DEOS Infrastructure Version = v2004-3-alerts=20 installed  (09/14/2004)
I've run emacs under = the debugger=20 and single-stepped my way to the general area
where the signal = happens.  In rough=20 outline, there is a variable (__malloc_hook) found
in src/gmalloc.c and this is = supposed to=20 contain the address of a function.  But when
the program attempts to = execute code at=20 this derefeneced address, it finds unreadable
instructions:
 
tlmitnu1:emacs-21.3> dbx=20 src/emacs
Type 'help' for help.
reading symbolic information=20 ...
(dbx) stop in main
[1] stop in main
(dbx) run
[1] = stopped in=20 main at line 714 in file "src/emacs.c" ($t1)
 =20 714     int skip_args =3D 0;
(dbx) = step
stopped in=20 main at line 737 in file "src/emacs.c" ($t1)
 =20 737     sort_args (argc, argv);
(dbx) = step
stopped=20 in sort_args at line 1651 in file "src/emacs.c"=20 ($t1)
 1651     char **new =3D (char **) = xmalloc=20 (sizeof (char *) * argc);
(dbx) step
stopped in xmalloc at = line 519 in=20 file "src/alloc.c" ($t1)
  519    =20 BLOCK_INPUT;
(dbx) step
stopped in xmalloc at line 520 in file = "src/alloc.c" ($t1)
  520     val =3D=20 (POINTER_TYPE *) malloc (size);
(dbx) step
stopped in = gmalloc.malloc=20 at line 891 in file "src/gmalloc.c" ($t1)
 =20 891     if (!__malloc_initialized &&=20 !__malloc_initialize ())
(dbx) step
stopped in gmalloc.malloc = at line=20 894 in file "src/gmalloc.c" ($t1)
  = 894    =20 return (__malloc_hook !=3D NULL ? *__malloc_hook : _malloc_internal) = (size);
(dbx) print __malloc_hook
0x200e0b9c
(dbx) print=20 *__malloc_hook
0x2c030000
(dbx) step
Unreadable = instruction at=20 address 0x2c030000
(dbx) where
ptrgl.$PTRGL(??, ??, ??, ??, = ??, ??,=20 ??, ??, ??, ??, ??, ??, ??, ??, ??, ??, ??, ??, ??, ??, ) at=20 0x100adf64
gmalloc.malloc(size =3D 0), line 894 in=20 "gmalloc.c"
xmalloc(size =3D 0), line 520 in = "alloc.c"
sort_args(argc =3D=20 42308, argv =3D 0x000c0002), line 1651 in "emacs.c"
main(argc =3D = 0, argv =3D=20 (nil), envp =3D (nil)), line 737 in "emacs.c"
(dbx)=20 quit
 
The version = of emacs that=20 I've been using is 21-3.  In desperation, I downloaded, = configured=20 and
compiled a new = emacs.21-3 but this=20 newly compiled version failed in the same way as the=20 original.
 
Thanks in advance = for any help=20 that you might be able to provide!
 
-Denny = Dahl
 
 
------=_NextPart_000_0009_01C5D335.8DC19A50-- --===============0670897490== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============0670897490==--