bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#3708: marked as done (fails to dump or produces segfaults)


From: Emacs bug Tracking System
Subject: bug#3708: marked as done (fails to dump or produces segfaults)
Date: Fri, 18 Sep 2009 22:00:13 +0000

Your message dated Fri, 18 Sep 2009 17:56:25 -0400
with message-id <EDE40471-B918-4562-9911-75E88790BF52@gmail.com>
and subject line 
has caused the Emacs bug report #3708,
regarding fails to dump or produces segfaults
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com
immediately.)


-- 
3708: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3708
Emacs Bug Tracking System
Contact owner@emacsbugs.donarmstrong.com with problems
--- Begin Message --- Subject: fails to dump or produces segfaults Date: Sun, 28 Jun 2009 18:44:23 -0400
I'm having dump problems on a friend's OS X machine.

temacs runs fine. dumping either fails outright or produces binaries that don't work. I don't know much about dumping, but I'm posting three logs for those who know.

I tried increasing headerpad_extra in darwin.h.

Suggestions appreciated.


Loading lisp/language/thai.el (source)...
Loading language/tibetan...
temacs(31008) malloc: *** error for object 0x1009e2ff8: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug

Breakpoint 2, 0x00007fff80452ce4 in malloc_error_break ()
(gdb) bt
#0  0x00007fff80452ce4 in malloc_error_break ()
#1  0x00007fff80453f19 in szone_error ()
#2  0x00000001000ef45b in Fgarbage_collect () at alloc.c:5876
#3  0x0000000100105914 in Feval (form=4305256373) at eval.c:2268
#4 0x000000010012b63e in readevalloop (readcharfun=4320289497, stream=0x7fff700891b8, sourcename=4328769739, evalfun=0x100105640 <Feval>, printflag=0, unibyte=<value temporarily unavailable, due to optimizations>, readfun=4320133129, start=4320133129, end=4320133129) at lread.c:1785 #5 0x000000010012cf87 in Fload (file=4328763979, noerror=4320133129, nomessage=4320133129, nosuffix=4320133129, must_suffix=4320133129) at lread.c:1255 #6 0x0000000100105bc9 in Feval (form=<value temporarily unavailable, due to optimizations>) at eval.c:2390 #7 0x000000010012b63e in readevalloop (readcharfun=4320289497, stream=0x7fff70089120, sourcename=4316084971, evalfun=0x100105640 <Feval>, printflag=0, unibyte=<value temporarily unavailable, due to optimizations>, readfun=4320133129, start=4320133129, end=4320133129) at lread.c:1785 #8 0x000000010012cf87 in Fload (file=4316083627, noerror=4320133129, nomessage=4320133129, nosuffix=4320133129, must_suffix=4320133129) at lread.c:1255 #9 0x0000000100105bc9 in Feval (form=<value temporarily unavailable, due to optimizations>) at eval.c:2390 #10 0x0000000100104d47 in internal_condition_case (bfun=0x100096410 <top_level_2>, handlers=4320196025, hfun=0x10009a1a0 <cmd_error>) at eval.c:1512
#11 0x0000000100099e9c in top_level_1 () at keyboard.c:1376
#12 0x0000000100104e50 in internal_catch (tag=<value temporarily unavailable, due to optimizations>, func=0x100099e60 <top_level_1>, arg=4320133129) at eval.c:1248
#13 0x0000000100099fa3 in command_loop () at keyboard.c:1331
#14 0x000000010009a41f in recursive_edit_1 () at keyboard.c:953
#15 0x000000010009a5bf in Frecursive_edit () at keyboard.c:1015
#16 0x000000010008f6c2 in main (argc=5, argv=0x7fff5fbff170) at emacs.c:1852

Lisp Backtrace:
Argument to arithmetic operation not a number or boolean.


===


Loading vc-hooks...
Loading ediff-hook...
((62357 . 3637) (12433 . 0) (597 . 23) 84099 295731 (108 . 9) (6 . 13) (5694 . 5187))
Finding pointers to doc strings...
Finding pointers to doc strings...done
Dumping under the name emacs
--- List of All Regions ---
   address     size prot maxp
--- List of Regions to be Dumped ---
   address     size prot maxp
--- Header Information ---
Magic = 0xfeedfacf
CPUType = 16777223
CPUSubType = -2147483645
FileType = 0x2
NCmds = 12
SizeOfCmds = 1832
Flags = 0x00000085
Highest address of load commands in input file: 0x539000
Lowest offset of all sections in __TEXT segment:   0x1184
--- List of Load Commands in Input File ---
# cmd              cmdsize name                address     size
0 LC_SEGMENT_64          72 __PAGEZERO                0 0x100000000
1 LC_SEGMENT_64         632 __TEXT           0x100000000 0x21e000
                           __text           0x100001184 0x1e768a
                           __symbol_stub1   0x1001e880e    0x4d4
                           __stub_helper    0x1001e8ce2    0x81c
                           __cstring        0x1001e9500  0x112bc
                           __const          0x1001fa7c0    0x214
                           __unwind_info    0x1001fa9e0    0xabc
                           __eh_frame       0x1001fb4a0  0x22b50
2 LC_SEGMENT_64         552 __DATA           0x10021e000 0x27a000
                           __nl_symbol_ptr  0x10021e000     0x58
                           __la_symbol_ptr  0x10021e058    0x670
                           __program_vars   0x10021e6e0     0x28
                           __data           0x10021e720 0x212088
                           __bss            0x1004307c0  0x55db8
                           __common         0x100486580  0x10dd1
3 LC_SEGMENT_64          72 __LINKEDIT       0x100498000  0xa1000
4 unknown                48
5 LC_SYMTAB              24
6 LC_DYSYMTAB            80
7 LC_LOAD_DYLINKER       32
8 LC_UUID                24
9 LC_UNIXTHREAD         184
10 LC_LOAD_DYLIB          56
11 LC_LOAD_DYLIB          56
0x100efc080 (sz:   0x3f25/  0x3f28)
0x100e00000 (sz:  0xfc07f/ 0xfc080)
0x1020fc080 (sz:   0x3f24/  0x3f28)
0x102000000 (sz:  0xfc080/ 0xfc080)
0x100bfc080 (sz:   0x3f25/  0x3f28)
0x100b00000 (sz:  0xfc07d/ 0xfc080)
0x1017f8000 (sz:   0x430a/  0x7fa0)
0x101000000 (sz: 0x42e625/0x7f8000)
0x100575000 (sz:        0/  0x1000)
--- Load Commands written to Output File ---
Writing segment __PAGEZERO @ 0 ( 0/0x100000000 @ 0) Writing segment __TEXT @ 0 (0x21e000/0x21e000 @ 0x100000000) Writing segment __DATA @ 0x21e000 (0x27a000/0x27a000 @ 0x10021e000)
        section __nl_symbol_ptr  at 0x21e000 - 0x21e058 (sz:     0x58)
        section __la_symbol_ptr  at 0x21e058 - 0x21e6c8 (sz:    0x670)
unexec: unrecognized section name in __DATA segment
make: *** [emacs] Error 1






CFLAGS='-g -O0' CC=gcc-4.0 ./configure --without-ns --without-x:



Loading ediff-hook...
((85913 . 3543) (12401 . 1) (597 . 72) 1374892 334843 (127 . 4) (6 . 8) (26593 . 3962))
Finding pointers to doc strings...
Finding pointers to doc strings...done
Dumping under the name emacs
--- List of All Regions ---
   address     size prot maxp
         0   0x1000 none none
    0x1000 0x1d4000 r x  rwx
  0x1d5000 0x13f000 rw   rwx
  0x314000  0x40000 rw   rwx
  0x354000  0x8e000 r    rwx
  0x3e2000   0x1000 none rwx
  0x3e3000   0x1000 rw   rwx
  0x3e4000   0x1000 none rwx
  0x3e5000   0x1000 none rwx
  0x3e6000   0x6000 rw   rwx
  0x3ec000   0x1000 none rwx
  0x3ed000   0x1000 none rwx
  0x3ee000   0x6000 rw   rwx
  0x3f4000   0x1000 none rwx
  0x3f5000   0x1000 r    rwx
  0x3f6000   0x1000 none rwx
  0x3f7000   0x1000 rw   rwx
  0x3f8000   0x1000 none rwx
  0x3f9000   0x1000 r    rw
  0x3fa000   0x1000 rw   rwx
  0x400000 0x100000 rw   rwx
  0x500000 0x400000 rw   rwx
  0x900000   0x1000 none rwx
  0x901000   0x6000 rw   rwx
  0x907000   0x1000 none rwx
  0x908000   0x1000 none rwx
  0x909000   0x6000 rw   rwx
  0x90f000   0x1000 none rwx
  0x910000  0x41000 rw   rwx
  0xa00000 0x100000 rw   rwx
  0xb00000 0x12c000 rw   rwx
  0xd00000 0x100000 rw   rwx
 0x1000000 0x800000 rw   rwx
--- List of Regions to be Dumped ---
   address     size prot maxp
         0   0x1000 none none
    0x1000 0x1d4000 r x  rwx
  0x1d5000 0x17f000 rw   rwx
  0x354000  0x8e000 r    rwx
  0x3e2000   0x1000 none rwx
  0x3e3000   0x1000 rw   rwx
  0x3e4000   0x2000 none rwx
  0x3e6000   0x6000 rw   rwx
  0x3ec000   0x2000 none rwx
  0x3ee000   0x6000 rw   rwx
  0x3f4000   0x1000 none rwx
  0x3f5000   0x1000 r    rwx
  0x3f6000   0x1000 none rwx
  0x3f7000   0x1000 rw   rwx
  0x3f8000   0x1000 none rwx
  0x3f9000   0x1000 r    rw
  0x3fa000   0x1000 rw   rwx
  0x400000 0x500000 rw   rwx
  0x900000   0x1000 none rwx
  0x901000   0x6000 rw   rwx
  0x907000   0x2000 none rwx
  0x909000   0x6000 rw   rwx
  0x90f000   0x1000 none rwx
  0x910000  0x41000 rw   rwx
  0xa00000 0x22c000 rw   rwx
  0xd00000 0x100000 rw   rwx
 0x1000000 0x800000 rw   rwx
--- Header Information ---
Magic = 0xfeedface
CPUType = 7
CPUSubType = 3
FileType = 0x2
NCmds = 13
SizeOfCmds = 1484
Flags = 0x00000085
Highest address of load commands in input file: 0x3e2000
Lowest offset of all sections in __TEXT segment:   0x11bc
--- List of Load Commands in Input File ---
# cmd              cmdsize name                address     size
0 LC_SEGMENT             56 __PAGEZERO                0   0x1000
1 LC_SEGMENT            464 __TEXT               0x1000 0x1d4000
                           __text               0x21bc 0x1c10d7
                           __symbol_stub      0x1c3294    0x4bc
                           __stub_helper      0x1c3750    0x7f0
                           __const            0x1c3f40    0x320
                           __cstring          0x1c4260  0x10d3c
                           __unwind_info      0x1d4fa0     0x48
2 LC_SEGMENT            464 __DATA             0x1d5000 0x17f000
                           __dyld             0x1d5000     0x1c
                           __la_symbol_ptr    0x1d501c    0x328
                           __nl_symbol_ptr    0x1d5344   0x15d8
                           __data             0x1d6920 0x13c864
                           __bss              0x3131a0  0x34d99
                           __common           0x347f40   0xb95d
3 LC_SEGMENT             56 __LINKEDIT         0x354000  0x8e000
4 unknown                48
5 LC_SYMTAB              24
6 LC_DYSYMTAB            80
7 LC_LOAD_DYLINKER       28
8 LC_UUID                24
9 LC_UNIXTHREAD          80
10 LC_LOAD_DYLIB          56
11 LC_LOAD_DYLIB          52
12 LC_LOAD_DYLIB          52
  0xdfc080 (sz:   0x3f18/  0x3f1c)
  0xd00000 (sz:  0xfc080/ 0xfc080)
  0xafc080 (sz:   0x3f19/  0x3f1c)
  0xa00000 (sz:  0xfc07f/ 0xfc080)
 0x1ff8000 (sz:   0x4b1a/  0x7f94)
 0x1800000 (sz: 0x4b03ff/0x7f8000)
  0x3fa000 (sz:        0/  0x1000)
--- Load Commands written to Output File ---
Writing segment __PAGEZERO @ 0 ( 0/ 0x1000 @ 0) Writing segment __TEXT @ 0 (0x1d4000/0x1d4000 @ 0x1000) Writing segment __DATA @ 0x1d4000 (0x17f000/0x17f000 @ 0x1d5000)
        section __dyld           at 0x1d4000 - 0x1d401c (sz:     0x1c)
        section __la_symbol_ptr  at 0x1d401c - 0x1d4344 (sz:    0x328)
        section __nl_symbol_ptr  at 0x1d4344 - 0x1d591c (sz:   0x15d8)
        section __data           at 0x1d5920 - 0x312184 (sz: 0x13c864)
        section __bss            at 0x3121a0 - 0x346f39 (sz:  0x34d99)
        section __common         at 0x346f40 - 0x35289d (sz:   0xb95d)
Writing segment __DATA @ 0x353000 ( 0/ 0x1000 @ 0x3fa000) Writing segment __DATA @ 0x353000 ( 0xfff99/ 0xfff9c @ 0xa00000) Writing segment __DATA @ 0x453000 ( 0xfff98/ 0xfff9c @ 0xd00000) Writing segment __DATA @ 0x553000 (0x4b03ff/0x7f8000 @ 0x1800000) Writing segment __DATA @ 0xa04000 ( 0x4b1a/ 0x7f94 @ 0x1ff8000) Writing segment __LINKEDIT @ 0xa09000 ( 0x8dba0/ 0x8e000 @ 0x354000)
Writing unknown           command
Writing LC_SYMTAB command
Writing LC_DYSYMTAB command
Writing LC_LOAD_DYLINKER  command
Writing LC_UUID           command
Writing LC_UNIXTHREAD     command
Writing LC_LOAD_DYLIB     command
Writing LC_LOAD_DYLIB     command
Writing LC_LOAD_DYLIB     command
2748 unused bytes follow Mach-O header
67017 pure bytes used
mv -f emacs bootstrap-emacs
cd ../lisp; make  compile-first EMACS=../src/bootstrap-emacs
make[2]: Nothing to be done for `compile-first'.
cd ../lisp; make  autoloads EMACS=../src/bootstrap-emacs
EMACSLOADPATH=lisp LC_ALL=C ../src/bootstrap-emacs -batch --no-site- file --multibyte -l autoload \ --eval "(setq generate-autoload-cookie \";;;###cal-autoload \")" \ --eval "(setq generated-autoload-file \"/Users/wc/ emacs.git/lisp/calendar/cal-loaddefs.el\")" \
           --eval "(setq make-backup-files nil)" \
           -f batch-update-autoloads /Users/wc/emacs.git/lisp/calendar
make[2]: *** [/Users/wc/emacs.git/lisp/calendar/cal-loaddefs.el] Segmentation fault
make[1]: *** [/Users/wc/emacs.git/src/../lisp/loaddefs.el] Error 2
make: *** [src] Error 2
~/emacs.git$


$ gdb emacs
GNU gdb 6.3.50-20050815 (Apple version gdb-1339) (Sat May 23 05:39:07 UTC 2009)
Copyright 2004 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.

DISPLAY = localhost:0.0
TERM = linux
Breakpoint 1 at 0xc49e0: file sysdep.c, line 1145.
(gdb) run -Q
Starting program: /Users/wc/emacs.git/src/emacs -Q
Reading symbols for shared libraries ++. done

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0xffc5e000
0x8fe202b1 in __dyld__ZN26ImageLoaderMachOCompressed8eachBindERKN11ImageLoader11LinkContextEMS_FmS3_mhPKchliS5_PNS_10LastLookupEE ()
(gdb) bt
#0 0x8fe202b1 in __dyld__ZN26ImageLoaderMachOCompressed8eachBindERKN11ImageLoader11LinkContextEMS_FmS3_mhPKchliS5_PNS_10LastLookupEE () #1 0x8fe22c42 in __dyld__ZN26ImageLoaderMachOCompressed6doBindERKN11ImageLoader11LinkContextEb () #2 0x8fe0cc32 in __dyld__ZN11ImageLoader13recursiveBindERKNS_11LinkContextEb () #3 0x8fe0dea3 in __dyld__ZN11ImageLoader4linkERKNS_11LinkContextEbbRKNS_10RPathChainE () #4 0x8fe056af in __dyld__ZN4dyld4linkEP11ImageLoaderbRKNS0_10RPathChainE ()
#5  0x8fe0788d in __dyld__ZN4dyld5_mainEPK12macho_headermiPPKcS5_S5_ ()
#6 0x8fe018b1 in __dyld__ZN13dyldbootstrap5startEPK12macho_headeriPPKcl ()
#7  0x8fe01057 in __dyld__dyld_start ()

Lisp Backtrace:
Cannot access memory at address 0x0



I also tried gcc-4.0 -arch i386.




--- End Message ---
--- Begin Message --- Subject: Date: Fri, 18 Sep 2009 17:56:25 -0400
Closing, Mitsuharu's patch on 2009-08-28 seems to have fixed.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]