Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

emacs broken in leopard?

when I run emacs from the command line I get the following error:

Fatal malloc_jumpstart() error

I just installed leopard. Emacs worked fine before the upgrade. Emacs is installed in /usr/bin. I can't run it from root either.

-help

MBP Boyeee, Mac OS X (10.4.6), My 'puter is better then yours!

Posted on Nov 1, 2007 12:35 PM

Reply
51 replies

Nov 4, 2007 6:57 AM in response to Brian P. Campbell

Mac-the-puter:bin babu$ sudo mv /usr/bin/emacs-i386 /usr/bin/emacs-i386.bak

Mac-the-puter:bin babu$ sudo /usr/libexec/dumpemacs -d
Checking if emacs is up-to-date
emacs is not up-to-date. Needs dumping
....bunches-o-crap.....
emacs dumped as /tmp/emacs.H8N8Ml/src/emacs
Installing dumped emacs

Mac-the-puter:bin babu$ emacs --version
GNU Emacs 22.1.1
Copyright (C) 2007 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
Mac-the-puter:bin babu$ emacs
Mac-the-puter:bin babu$ WHOOOAA!!!!

-------------
Sweet works like a champ now. Thanks. My computer shipped with Tiger installed and I did the upgrade install of Leopard. I never tried updating emacs or any BSD files. Other people are having this problem, over at Macrumors there is a discussion about the same problem.

thanks again

Nov 4, 2007 10:41 AM in response to Brian P. Campbell

After taking the aforementioned advice, my emacs (version 22.1.1) when I run it in the term window, but when I run it in the background, the job invariably gets suspended. E.g.,

JayBeeKool@private-comp [~]
% emacs test.txt &
[1] 272
JayBeeKool@private-comp [~]
%
[1] + suspended (tty output) emacs test.txt

Is this an X11-related problem? Any ways to fix it?

Nov 4, 2007 1:04 PM in response to JayBeeKool

This version of emacs is built without X support. That means that if you put it in the background, it has nowhere to display, so it is suspended. You can put it back into the foreground by typing fg (assuming you are using bash), but that will continue to run it in the terminal.

If you want to run emacs in a separate window, not in the terminal, you have two choices. You can install a version of emacs with X support, or you can use the Carbon support to use emacs as a regular Mac application. For X support, the best choice is probably to install it via fink or MacPorts. For the carbon version, the version that ships with Leopard actually has been built to support carbon, you just need to put an Emacs.app wrapper around it.

Here's how you do that:

cvs -f -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/emacs co emacs/mac/Emacs.app
cp /usr/bin/emacs emacs/mac/Emacs.app/Contents/MacOS/
mv emacs/mac/Emacs.app/ /Applications/


I haven't yet figured out a good way to allow "emacs" from the command line to properly launch this version of Emacs.app, however. You could run 'alias emacs="open -a Emacs.app"', but this doesn't quite get the case right when you want to edit a new file by typing "emacs filename".

Nov 6, 2007 4:42 PM in response to mistersquid

I have a ppc mac, just updated to leopard and receive the same error when starting emacs. I have tried some of the recommendations under this posting, without success. Any ideas? Also unrelated terminal/x11 problems with leopard that need solving:why does it open two x11 icons on my dock, why can I no longer get it to start up in tcsh, and my IDL is having display problems with x11, more ideas?
Thanks

Nov 7, 2007 6:32 AM in response to engelwurt

When you followed the advice above, did you replace emacs-i386 in the commands with emacs-ppc? You need to do that, otherwise it won't work. You need to delete or move /usr/bin/emacs-ppc, then run 'sudo /usr/libexec/dumpemacs -d', then it should work. If it doesn't work, please paste in the output of the dumpemacs command.

X11 on Leopard has many issues, because they upgraded to a new version of X that didn't have many of the patches Apple had previously applied. To solve the multiple items in the dock problem, what you have to do is not launch X from the dock. In this version of X, it launches as soon as something tries to connect to it. So instead of launching it from the dock (you should just remove all of the icons from the dock), you can launch it by just opening any program that needs to use X from the terminal (make sure you don't override the default for $DISPLAY in your .profile or anything).

For your issue with your IDL, you might want to try recompiling it with the current version of X. Other than that, you may have to wait for Apple to release a version of X that fixes some of the bugs. If you'd like, you can try out pre-release versions of the X server that fix several problems; they may or may not fix the problem that you're having: http://wiki.x.org/wiki/XDarwin

And for tcsh, you need to go into System Preferences, choose Accounts, and click the lock and enter your password. Then, right-click or control-click on your account name, and choose "Advanced Options..." from the menu. Then you'll get a screen where you can change your account's shell.

Nov 7, 2007 2:52 PM in response to TouchOfClass

hi everyone,

i have the same problem with x11 and emacs after i installed leopard and hope that people here can help me.
typing "emacs" at the prompt brings up the "Fatal malloc_jumpstart() error". typing "emacs-i386" runs emacs, but inside the terminal window, which is not what i want.
here is the output from "terminal":




----

[Macintosh:~] ssulger% emacs
Fatal malloc_jumpstart() error
[Macintosh:~] ssulger% sudo mv /usr/bin/emacs-i386 /usr/bin/emacs-i386.backup
Password:
[Macintosh:~] ssulger% sudo /usr/libexec/dumpemacs -d
Checking if emacs is up-to-date
emacs is not up-to-date. Needs dumping
Generating random directory with template /tmp/emacs.XXXXXX
Directory is /tmp/emacs.uAHBKb
Making directory /tmp/emacs.uAHBKb/etc
Making directory /tmp/emacs.uAHBKb/lib-src
Making directory /tmp/emacs.uAHBKb/src
Making symlink /tmp/emacs.uAHBKb/etc/GNU -> /usr/share/emacs/22.1/etc/GNU
Making symlink /tmp/emacs.uAHBKb/etc/DOC -> /usr/share/emacs/22.1/etc/DOC-22.1.1
Thinning /usr/bin/emacs-undumped to /tmp/emacs.uAHBKb/src/temacs
Attempting to dump emacs
Loading loadup.el (source)...
Using load-path (/usr/share/emacs/22.1/site-lisp /usr/share/emacs/site-lisp /usr/share/emacs/22.1/lisp /usr/share/emacs/22.1/leim)
Loading emacs-lisp/byte-run...
Loading emacs-lisp/backquote...
Loading subr...
Loading version.el (source)...
Loading widget...
Loading custom...
Loading emacs-lisp/map-ynp...
Loading env...
Loading cus-start...
Loading international/mule...
Loading international/mule-conf.el (source)...
Loading format...
Loading bindings...
Loading files...
Loading cus-face...
Loading faces...
Lists of integers (garbage collection statistics) are normal output
while building Emacs; they do not indicate a problem.
((10157 . 6835) (4583 . 0) (577 . 4) 15750 15428 (8 . 5) (17 . 0) (849 . 2175))
Loading loaddefs.el (source)...
((28020 . 11589) (7535 . 0) (586 . 10) 41822 15428 (34 . 33) (17 . 0) (3702 . 1464))
Loading simple...
Loading help...
Loading jka-cmpr-hook...
Loading international/mule-cmds...
Loading case-table...
Loading international/utf-8...
Loading international/utf-16...
Loading international/characters...
Loading international/latin-1.el (source)...
Loading international/latin-2.el (source)...
Loading international/latin-3.el (source)...
Loading international/latin-4.el (source)...
Loading international/latin-5.el (source)...
Loading international/latin-8.el (source)...
Loading international/latin-9.el (source)...
Loading language/chinese...
Loading language/cyrillic...
Loading language/indian...
Loading language/devanagari.el (source)...
Loading language/malayalam.el (source)...
Loading language/tamil.el (source)...
Loading language/kannada.el (source)...
Loading language/english.el (source)...
Loading language/ethiopic...
Loading language/european...
Loading language/czech.el (source)...
Loading language/slovak.el (source)...
Loading language/romanian.el (source)...
Loading language/greek.el (source)...
Loading language/hebrew.el (source)...
Loading language/japanese.el (source)...
Loading language/korean.el (source)...
Loading language/lao.el (source)...
Loading language/thai.el (source)...
Loading language/tibetan...
Loading language/vietnamese...
Loading language/misc-lang.el (source)...
Loading language/utf-8-lang.el (source)...
Loading language/georgian.el (source)...
Loading international/ucs-tables...
Loading indent...
Loading window...
Loading frame...
Loading term/tty-colors...
Loading font-core...
Loading facemenu...
Loading emacs-lisp/syntax...
Loading font-lock...
Loading jit-lock...
Loading mouse...
Loading scroll-bar...
Loading select...
Loading emacs-lisp/timer...
Loading isearch...
Loading rfn-eshadow...
((48186 . 18707) (10477 . 0) (620 . 69) 62978 159484 (64 . 3) (18 . 12) (4968 . 1899))
Loading menu-bar...
Loading paths.el (source)...
Loading startup...
Loading emacs-lisp/lisp...
Loading textmodes/page...
Loading register...
Loading textmodes/paragraphs...
Loading emacs-lisp/lisp-mode...
Loading textmodes/text-mode...
Loading textmodes/fill...
((55042 . 11851) (11132 . 0) (622 . 67) 76230 161154 (64 . 3) (18 . 12) (5507 . 2494))
Loading replace...
Loading abbrev...
Loading buff-menu...
Loading fringe...
Loading image...
Loading international/fontset...
Loading dnd...
Loading mwheel...
Loading tool-bar...
((56679 . 10214) (11557 . 0) (623 . 66) 77181 161729 (66 . 8) (18 . 12) (5551 . 2324))
Loading emacs-lisp/float-sup...
((56706 . 10187) (11561 . 0) (623 . 66) 77495 161729 (67 . 9) (18 . 12) (5559 . 2316))
Loading vc-hooks...
Loading ediff-hook...
Loading tooltip...
((58012 . 8881) (11703 . 0) (624 . 65) 78482 161780 (69 . 7) (18 . 12) (5624 . 2251))
Finding pointers to doc strings...
Finding pointers to doc strings...done
Dumping under names emacs and emacs-22.1.1
--- List of All Regions ---
address size prot maxp
0 0x1000 none none
0x1000 0x145000 r x rwx
0x146000 0x11d000 rw rwx
0x263000 0x3d000 rw rwx
0x2a0000 0x3000 rwx rwx
0x2a3000 0xc000 r rwx
0x2af000 0x1000 none rwx
0x2b0000 0x1000 rw rwx
0x2b1000 0x1000 none rwx
0x2b2000 0x6000 rw rwx
0x2b8000 0x1000 none rwx
0x2b9000 0x1000 rw rwx
0x2ba000 0x1000 none rwx
0x2bb000 0x5000 rw rwx
0x2c0000 0x3000 rw rwx
0x2c3000 0x5000 r rwx
0x2c8000 0x1000 rw rwx
0x2c9000 0x1c000 rw rwx
0x2e5000 0x2000 rw rwx
0x2e7000 0x1000 rw rwx
0x2e8000 0x1000 rw rwx
0x2e9000 0x2000 rw rwx
0x2eb000 0x1000 rw rwx
0x2ec000 0x1000 rw rwx
0x2ed000 0x1000 rw rwx
0x2ee000 0x1000 rw rwx
0x2ef000 0x1000 rw rwx
0x2f0000 0x1000 rw rwx
0x2f1000 0x1000 rw rwx
0x2f2000 0x1000 rw rwx
0x2f3000 0x1000 rw rwx
0x2f4000 0x1000 rw rwx
0x2f5000 0xa000 rw rwx
0x2ff000 0x1000 r rw
0x300000 0x100000 rw rwx
0x400000 0x400000 rw rwx
0x800000 0x800000 rw rwx
0x1000000 0x100000 rw rwx
0x1100000 0x1000 rw rwx
0x1101000 0x1000 rw rwx
0x1102000 0x1000 rw rwx
0x1103000 0x1000 rw rwx
0x1104000 0x1000 rw rwx
0x1105000 0x1000 rw rwx
0x1106000 0x1000 rw rwx
0x1107000 0x1000 rw rwx
0x1108000 0x1000 rw rwx
0x1109000 0x1000 rw rwx
0x110a000 0x1000 rw rwx
0x110b000 0x1000 rw rwx
0x110c000 0x1000 rw rwx
0x110d000 0x1000 rw rwx
0x110e000 0x1000 rw rwx
0x110f000 0x1000 rw rwx
0x1110000 0x1000 rw rwx
0x1111000 0x1000 rw rwx
0x1112000 0x1000 rw rwx
0x1113000 0x1000 rw rwx
0x1114000 0x1000 rw rwx
0x1115000 0x1000 rw rwx
0x1116000 0x1000 rw rwx
0x1117000 0x1000 rw rwx
0x1118000 0x1000 rw rwx
0x1119000 0x1000 rw rwx
0x111a000 0x1000 rw rwx
0x111b000 0x1000 rw rwx
0x111c000 0x1000 rw rwx
0x111d000 0x1000 rw rwx
0x111e000 0x1000 rw rwx
0x111f000 0x1000 rw rwx
0x1120000 0x1000 rw rwx
0x1121000 0x1000 rw rwx
0x1122000 0x1000 rw rwx
0x1123000 0x1000 rw rwx
0x1124000 0x1000 rw rwx
0x1125000 0x1000 rw rwx
0x1126000 0x1e000 rw rwx
0x1144000 0x1e000 rw rwx
0x1162000 0x1e000 rw rwx
0x1180000 0x1e000 rw rwx
0x1270000 0x1e000 rw rwx
0x128e000 0x19000 rw rwx
0x12a7000 0xc000 rw rwx
--- List of Regions to be Dumped ---
address size prot maxp
0 0x1000 none none
0x1000 0x145000 r x rwx
0x146000 0x15a000 rw rwx
0x2a0000 0x3000 rwx rwx
0x2a3000 0xc000 r rwx
0x2af000 0x1000 none rwx
0x2b0000 0x1000 rw rwx
0x2b1000 0x1000 none rwx
0x2b2000 0x6000 rw rwx
0x2b8000 0x1000 none rwx
0x2b9000 0x1000 rw rwx
0x2ba000 0x1000 none rwx
0x2bb000 0x8000 rw rwx
0x2c3000 0x5000 r rwx
0x2c8000 0x37000 rw rwx
0x2ff000 0x1000 r rw
0x300000 0xe9e000 rw rwx
0x1270000 0x43000 rw rwx
--- Header Information ---
Magic = 0xfeedface
CPUType = 7
CPUSubType = 3
FileType = 0x2
NCmds = 19
SizeOfCmds = 2072
Flags = 0x00000085
Highest address of load commands in input file: 0x2af000
Lowest offset of all sections in __TEXT segment: 0x1934
--- List of Load Commands in Input File ---
# cmd cmdsize name address size
0 LC_SEGMENT 56 __PAGEZERO 0 0x1000
1 LC_SEGMENT 396 __TEXT 0x1000 0x145000
__text 0x2934 0x12d4b9
__cstring 0x12fdf0 0x1395f
__literal8 0x143750 0xf0
__const 0x143840 0x27a0
__literal4 0x145fe0 0x1c
2 LC_SEGMENT 464 __DATA 0x146000 0x15a000
__data 0x146000 0x11aee6
__dyld 0x260ee8 0x1c
__const 0x260f20 0x17c0
__cfstring 0x2626e0 0xa0
__bss 0x262780 0x31e8d
__common 0x294620 0xac91
3 LC_SEGMENT 192 __IMPORT 0x2a0000 0x3000
__pointers 0x2a0000 0x17c4
_jumptable 0x2a1800 0xe6a
4 LC_SEGMENT 56 __LINKEDIT 0x2a3000 0xc000
5 LC_SYMTAB 24
6 LC_DYSYMTAB 80
7 LC LOADDYLINKER 28
8 LC_UUID 24
9 LC_UNIXTHREAD 80
10 LC LOADDYLIB 88
11 LC LOADDYLIB 92
12 LC LOADDYLIB 104
13 LC LOADDYLIB 56
14 LC LOADDYLIB 52
15 LC LOADDYLIB 52
16 LC LOADDYLIB 100
17 LC LOADDYLIB 112
18 LC CODESIGNATURE 16
0x10fc080 (sz: 0/ 0x3f0a)
0x1000000 (sz: 0x1/ 0xfc080)
0x1ff8000 (sz: 0x2/ 0x7f80)
0x1800000 (sz: 0x3/0x7f8000)
0x2fa000 (sz: 0x4/ 0x5000)
0x2f5000 (sz: 0x5/ 0x5000)
0x12ae000 (sz: 0x6/ 0x5000)
0x2bb000 (sz: 0x7/ 0x5000)
0x12a7000 (sz: 0x8/ 0x7000)
0x12a2000 (sz: 0x9/ 0x5000)
0x129d000 (sz: 0xa/ 0x5000)
0x1199000 (sz: 0xb/ 0x5000)
0x1298000 (sz: 0xc/ 0x5000)
0x1194000 (sz: 0xd/ 0x5000)
0x1293000 (sz: 0xe/ 0x5000)
0x118f000 (sz: 0xf/ 0x5000)
0x128e000 (sz: 0x10/ 0x5000)
0x118a000 (sz: 0x11/ 0x5000)
0x1289000 (sz: 0x12/ 0x5000)
0x1185000 (sz: 0x13/ 0x5000)
0x1284000 (sz: 0x14/ 0x5000)
0x1180000 (sz: 0x15/ 0x5000)
0x127f000 (sz: 0x16/ 0x5000)
0x117b000 (sz: 0x17/ 0x5000)
0x127a000 (sz: 0x18/ 0x5000)
0x1176000 (sz: 0x19/ 0x5000)
0x1275000 (sz: 0x1a/ 0x5000)
0x1171000 (sz: 0x1b/ 0x5000)
0x1270000 (sz: 0x1c/ 0x5000)
0x116c000 (sz: 0x1d/ 0x5000)
0x1167000 (sz: 0x1e/ 0x5000)
0x1162000 (sz: 0x1f/ 0x5000)
0x115d000 (sz: 0x20/ 0x5000)
0x1158000 (sz: 0x21/ 0x5000)
0x1153000 (sz: 0x22/ 0x5000)
0x114e000 (sz: 0x23/ 0x5000)
0x1149000 (sz: 0x24/ 0x5000)
0x1144000 (sz: 0x25/ 0x5000)
0x113f000 (sz: 0x26/ 0x5000)
0x113a000 (sz: 0x27/ 0x5000)
0x1135000 (sz: 0x28/ 0x5000)
0x1130000 (sz: 0x29/ 0x5000)
0x112b000 (sz: 0x2a/ 0x5000)
0x1126000 (sz: 0x2b/ 0x5000)
Page ( 0x1000) aligning region @0x1000000 size from 0xfff8a to 0x100000
Page ( 0x1000) aligning region @0x1800000 size from 0x7fff80 to 0x800000
--- Load Commands written to Output File ---
Writing segment __PAGEZERO @ 0 ( 0/ 0x1000 @ 0)
Writing segment __TEXT @ 0 (0x145000/0x145000 @ 0x1000)
Writing segment __DATA @ 0x145000 (0x15a000/0x15a000 @ 0x146000)
section __data at 0x145000 - 0x25fee6 (sz: 0x11aee6)
section __dyld at 0x25fee8 - 0x25ff04 (sz: 0x1c)
section __const at 0x25ff20 - 0x2616e0 (sz: 0x17c0)
section __cfstring at 0x2616e0 - 0x261780 (sz: 0xa0)
section __bss at 0x261780 - 0x29360d (sz: 0x31e8d)
section __common at 0x293620 - 0x29e2b1 (sz: 0xac91)
Writing segment __DATA @ 0x29f000 ( 0x5000/ 0x5000 @ 0x2bb000)
Writing segment __DATA @ 0x2a4000 ( 0xa000/ 0xa000 @ 0x2f5000)
Writing segment __DATA @ 0x2ae000 (0x100000/0x100000 @ 0x1000000)
Writing segment __DATA @ 0x3ae000 ( 0x78000/ 0x78000 @ 0x1126000)
Writing segment __DATA @ 0x426000 ( 0x43000/ 0x43000 @ 0x1270000)
Writing segment __DATA @ 0x469000 (0x800000/0x800000 @ 0x1800000)
Writing segment __IMPORT @ 0xc69000 ( 0x3000/ 0x3000 @ 0x2a0000)
Writing segment __LINKEDIT @ 0xc6c000 ( 0xb860/ 0xc000 @ 0x2a3000)
Writing LC_SYMTAB command
Fixed up 10/10 external relocation entries in data segment.
Writing LC_DYSYMTAB command
Writing LC LOADDYLINKER command
Writing LC_UUID command
Writing LC_UNIXTHREAD command
Writing LC LOADDYLIB command
Writing LC LOADDYLIB command
Writing LC LOADDYLIB command
Writing LC LOADDYLIB command
Writing LC LOADDYLIB command
Writing LC LOADDYLIB command
Writing LC LOADDYLIB command
Writing LC LOADDYLIB command
Writing LC CODESIGNATURE command
4016 unused bytes follow Mach-O header
1100919 pure bytes used
emacs dumped as /tmp/emacs.uAHBKb/src/emacs
Installing dumped emacs
[Macintosh:~] ssulger% emacs --version
GNU Emacs 21.2.1
Copyright (C) 2001 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
[Macintosh:~] ssulger% emacs
Fatal malloc_jumpstart() error
[Macintosh:~] ssulger%

----


this is really freaking me out at the moment, as i use the combination x11/emacs every day.
if you need more details about my system or some more output from the shell, just let me know.

please help me!

greetings from germany,
sebastian

Nov 9, 2007 1:12 PM in response to hjaxela

Were you trying su or sudo? The instructions I gave listed sudo. If sudo isn't working for you, what error is it giving? You need to make sure your account is in the admin group to use sudo. In the "Accounts" panel in System Preferences, make sure "Allow user to administer this computer" is checked in the account that you are trying to use sudo from.

If you are not an administrator on the computer, you won't be able to follow these instructions. Try asking your administrator to help.

Nov 9, 2007 6:52 PM in response to sebastiansulger

I'm not sure I can help you with emacs on Fink; their package will be ready whenever it's ready. You have two other options than waiting for Fink to update it's package. MacPorts generally has very close to the latest version of packages, so you could try using MacPorts instead of Fink. Or, you could just download, build, and install Emacs yourself; it's really pretty simple. Here's a sequence of steps you can use to download and build Emacs yourself with X support:

curl -O http://ftp.gnu.org/pub/gnu/emacs/emacs-22.1.tar.gz
tar xvzf emacs-22.1.tar.gz
cd emacs-22.1
./configure --without-carbon --with-x
make
sudo make install


I actually use Carbon emacs instead of X11 emacs, and I gave advice earlier in this thread on how to set that up using the version of emacs 22 that ships with Leopard. You can also use the steps I gave earlier to build Carbon emacs, but substitute the following line for the configure line in the above:

./configure


Hope this helps!

emacs broken in leopard?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.