unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#23766: 25.0.95; crashes on Mac OS X 10.6.8. Snow Leopard
@ 2016-06-13 21:18 Peter Dyballa
  2016-06-13 21:34 ` Peter Dyballa
  2016-06-14  2:37 ` Eli Zaretskii
  0 siblings, 2 replies; 9+ messages in thread
From: Peter Dyballa @ 2016-06-13 21:18 UTC (permalink / raw)
  To: 23766

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello!

When I'm launching GNU Emacs 25.0.95 with the same options as GNU Emacs 25.0.50 it crashes with

	lisp.h:1539: Emacs fatal error: assertion failed: 0 <= size

In GDB I set

	set args "-xrm 'Emacs*iconName: TeX Live-2015' -T 'TeX Live 2015@25.0.95' -geometry 133x75+1111+81 --debug-init -fn 'Lucida Sans Typewriter:autohint=true:antialias=true:size=9'"

and run it. After much output about missing debug information in packages GNU Emacs uses I get:

. done
Reading symbols for shared libraries . done

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x00000000000048b0
0x00000001012547da in FT_Done_Size ()
(gdb) bt full
#0  0x00000001012547da in FT_Done_Size ()
No symbol table info available.
#1  0x00000001002cd613 in ftcrfont_close ()
No symbol table info available.
#2  0x00000001002021c5 in cleanup_vector ()
No symbol table info available.
#3  0x000000010020230a in sweep_vectors ()
No symbol table info available.
#4  0x0000000100209c63 in gc_sweep ()
No symbol table info available.
#5  0x00000001002070c0 in garbage_collect_1 ()
No symbol table info available.
#6  0x0000000100207718 in Fgarbage_collect ()
No symbol table info available.
#7  0x000000010016f192 in maybe_gc ()
No symbol table info available.
#8  0x0000000100231273 in Ffuncall ()
No symbol table info available.
#9  0x000000010028c1b6 in exec_byte_code ()
No symbol table info available.
#10 0x0000000100231f03 in funcall_lambda ()
No symbol table info available.
#11 0x00000001002317e1 in Ffuncall ()
No symbol table info available.
#12 0x000000010028c1b6 in exec_byte_code ()
No symbol table info available.
#13 0x0000000100231f03 in funcall_lambda ()
No symbol table info available.
#14 0x00000001002317e1 in Ffuncall ()
No symbol table info available.
#15 0x000000010028c1b6 in exec_byte_code ()
No symbol table info available.
#16 0x0000000100231f03 in funcall_lambda ()
No symbol table info available.
#17 0x00000001002317e1 in Ffuncall ()
No symbol table info available.
#18 0x000000010028c1b6 in exec_byte_code ()
No symbol table info available.
#19 0x0000000100231f03 in funcall_lambda ()
No symbol table info available.
#20 0x00000001002317e1 in Ffuncall ()
No symbol table info available.
#21 0x000000010028c1b6 in exec_byte_code ()
No symbol table info available.
#22 0x0000000100231f03 in funcall_lambda ()
No symbol table info available.
#23 0x00000001002317e1 in Ffuncall ()
No symbol table info available.
#24 0x000000010028c1b6 in exec_byte_code ()
No symbol table info available.
#25 0x0000000100231f03 in funcall_lambda ()
No symbol table info available.
#26 0x00000001002317e1 in Ffuncall ()
No symbol table info available.
#27 0x0000000100230894 in funcall_nil ()
No symbol table info available.
#28 0x0000000100230d85 in run_hook_with_args ()
No symbol table info available.
#29 0x000000010023090c in Frun_hook_with_args ()
No symbol table info available.
#30 0x0000000100230e1b in run_hook ()
No symbol table info available.
#31 0x00000001002308ce in Frun_hooks ()
No symbol table info available.
#32 0x0000000100231404 in Ffuncall ()
No symbol table info available.
#33 0x000000010028c1b6 in exec_byte_code ()
No symbol table info available.
#34 0x0000000100231f03 in funcall_lambda ()
No symbol table info available.
#35 0x00000001002317e1 in Ffuncall ()
No symbol table info available.
#36 0x000000010028c1b6 in exec_byte_code ()
No symbol table info available.
#37 0x0000000100231f03 in funcall_lambda ()
No symbol table info available.
#38 0x0000000100231ba2 in apply_lambda ()
No symbol table info available.
#39 0x000000010022febd in eval_sub ()
No symbol table info available.
#40 0x000000010022f24e in Feval ()
No symbol table info available.
#41 0x0000000100176b12 in top_level_2 ()
No symbol table info available.
#42 0x000000010022d6ba in internal_condition_case ()
No symbol table info available.
#43 0x0000000100176b5e in top_level_1 ()
No symbol table info available.
#44 0x000000010022cbab in internal_catch ()
No symbol table info available.
#45 0x0000000100176a33 in command_loop ()
No symbol table info available.
#46 0x0000000100175ede in recursive_edit_1 ()
No symbol table info available.
#47 0x00000001001760fd in Frecursive_edit ()
No symbol table info available.
#48 0x0000000100173d93 in main ()
No symbol table info available.
Unable to call function "backtrace_p" at 0x100229cc7: no return type information available.
To call this function anyway, you can cast the return type explicitly (e.g. 'print (float) fabs (3.0)')
(gdb) xbacktrace
Unable to call function "backtrace_p" at 0x100229cc7: no return type information available.
To call this function anyway, you can cast the return type explicitly (e.g. 'print (float) fabs (3.0)')
(gdb) The program is running.  Exit anyway? (y or n) y
#

The following comes from "./emacs-25.0.95.2 -Q":

In GNU Emacs 25.0.95.2 (x86_64-apple-darwin10.8.0, X toolkit, cairo version 1.14.6, Xaw3d scroll bars)
 of 2016-06-13 built on sumac
Windowing system distributor 'The X.Org Foundation', version 11.0.11899001
Configured using:
 'configure --disable-dependency-tracking --disable-ns-self-contained
 --without-ns --without-pop --without-sound --without-gpm --without-dbus
 --without-selinux --without-imagemagick --with-x-toolkit=athena
 --with-cairo --with-modules --enable-checking
 --x-libraries=/opt/local/lib --x-includes=/opt/local/include/X11
 '--enable-locallisppath=/Library/Application
 Support/Emacs/calendar25:/Library/Application Support/Emacs' 'CFLAGS=-H
 -pipe -fPIC -fno-common -O0 -std=c99' 'LDFLAGS=-Wl,-dead_strip_dylibs
 -Wl,-bind_at_load -Wl,-t'
 PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig:/opt/X11/share/pkgconfig:/opt/local/lib/pkgconfig:/opt/local/share/pkgconfig:/usr/X11/lib/pkgconfig:/usr/X11/share/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:/opt/local/lib/nspr/pkgconfig:/usr/local/clamXav/lib/pkgconfig:/opt/local/libexec/qt4/lib/pkgconfig'

Configured features:
XAW3D XPM JPEG TIFF GIF PNG RSVG CAIRO GCONF GSETTINGS NOTIFY ACL GNUTLS
LIBXML2 FREETYPE LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 MODULES

Important settings:
  value of $LC_CTYPE: de_DE.UTF-8
  value of $LANG: de_DE.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message dired format-spec rfc822 mml
mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu
cl-loaddefs pcase cl-lib mail-prsvr mail-utils time-date mule-util
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt
fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register
page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core frame cl-generic cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese charscript case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote kqueue dynamic-setting
system-font-setting font-render-setting cairo x-toolkit x multi-tty
make-network-process emacs)

Memory information:
((conses 16 86995 5041)
 (symbols 48 19595 0)
 (miscs 40 82 72)
 (strings 32 14926 5224)
 (string-bytes 1 424913)
 (vectors 16 11757)
 (vector-slots 8 429393 5358)
 (floats 8 165 55)
 (intervals 56 262 8)
 (buffers 976 12))


- --
Greetings

  Pete

Give a man a fish, and you've fed him for a day. Teach him to fish, and you've depleted the lake.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0
Comment: GPGTools - http://gpgtools.org

iEYEARECAAYFAldfI0wACgkQ+Z8cB9x5ExPSZQCgnr+BBKFitXLGW9IYL7CKLi7B
dH0Anj7bPROs9UEPN0S/RU0bTejfCWig
=P9Xr
-----END PGP SIGNATURE-----





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#23766: 25.0.95; crashes on Mac OS X 10.6.8. Snow Leopard
  2016-06-13 21:18 bug#23766: 25.0.95; crashes on Mac OS X 10.6.8. Snow Leopard Peter Dyballa
@ 2016-06-13 21:34 ` Peter Dyballa
  2016-06-14  2:37 ` Eli Zaretskii
  1 sibling, 0 replies; 9+ messages in thread
From: Peter Dyballa @ 2016-06-13 21:34 UTC (permalink / raw)
  To: 23766

Configuring without "--with-cairo" inhibits the crashes.

--
Greetings

  Pete

Mac OS X is like a wigwam: no fences, no gates, but an apache inside.






^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#23766: 25.0.95; crashes on Mac OS X 10.6.8. Snow Leopard
  2016-06-13 21:18 bug#23766: 25.0.95; crashes on Mac OS X 10.6.8. Snow Leopard Peter Dyballa
  2016-06-13 21:34 ` Peter Dyballa
@ 2016-06-14  2:37 ` Eli Zaretskii
  2016-06-14  5:40   ` Peter Dyballa
  2016-06-14  5:55   ` Glenn Morris
  1 sibling, 2 replies; 9+ messages in thread
From: Eli Zaretskii @ 2016-06-14  2:37 UTC (permalink / raw)
  To: Peter Dyballa; +Cc: 23766

> From: Peter Dyballa <peter_dyballa@freenet.de>
> Date: Mon, 13 Jun 2016 23:18:50 +0200
> 
> When I'm launching GNU Emacs 25.0.95 with the same options as GNU Emacs 25.0.50 it crashes with
> 
> 	lisp.h:1539: Emacs fatal error: assertion failed: 0 <= size

This means some code called from GC uses ASIZE instead of gc_asize.

> In GDB I set
> 
> 	set args "-xrm 'Emacs*iconName: TeX Live-2015' -T 'TeX Live 2015@25.0.95' -geometry 133x75+1111+81 --debug-init -fn 'Lucida Sans Typewriter:autohint=true:antialias=true:size=9'"
> 
> and run it. After much output about missing debug information in packages GNU Emacs uses I get:
> 
> . done
> Reading symbols for shared libraries . done
> 
> Program received signal EXC_BAD_ACCESS, Could not access memory.
> Reason: KERN_INVALID_ADDRESS at address: 0x00000000000048b0
> 0x00000001012547da in FT_Done_Size ()
> (gdb) bt full
> #0  0x00000001012547da in FT_Done_Size ()
> No symbol table info available.
> #1  0x00000001002cd613 in ftcrfont_close ()
> No symbol table info available.

Sounds like a different problem, and it's hard to say anything without
information about the data involved in this crash.  Please compile
with debugging and show more data about both problems.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#23766: 25.0.95; crashes on Mac OS X 10.6.8. Snow Leopard
  2016-06-14  2:37 ` Eli Zaretskii
@ 2016-06-14  5:40   ` Peter Dyballa
  2016-06-14 14:40     ` Eli Zaretskii
  2016-06-14  5:55   ` Glenn Morris
  1 sibling, 1 reply; 9+ messages in thread
From: Peter Dyballa @ 2016-06-14  5:40 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 23766


Am 14.06.2016 um 04:37 schrieb Eli Zaretskii:

> Sounds like a different problem, and it's hard to say anything without
> information about the data involved in this crash.

Both went away when I left out Cairo…

> Please compile with debugging and show more data about both problems.

I was already using 'CFLAGS=-g -H -pipe -fPIC -fno-common -O0' with the (almost) recommended C compiler

	i686-apple-darwin10-gcc-apple-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3) (MacPorts apple-gcc42 5666.3_15)
	Copyright (C) 2007 Free Software Foundation, Inc.

(Almost, because it received some patches after Apple released the latest Xcode for Snow Leopard, Mac OS X 10.6.x.) This compiler offers these switches related to debugging. Which of them should I add? Do you mean just -ggdb?

  -g                          		Generate debug information in default format
  -gcoff                      		Generate debug information in COFF format
  -gdwarf-2                   		Generate debug information in DWARF v2 format
  -ggdb                       		Generate debug information in default extended format
  -gstabs                     		Generate debug information in STABS format
  -gstabs+                    		Generate debug information in extended STABS format
  -gvms                       		Generate debug information in VMS format
  -gxcoff                     		Generate debug information in XCOFF format
  -gxcoff+                    		Generate debug information in extended XCOFF format

  -feliminate-dwarf2-dups     		Perform DWARF2 duplicate elimination
  -feliminate-unused-debug-symbols	Perform unused type elimination in debug info
  -feliminate-unused-debug-types	Perform unused type elimination in debug info
  -femit-class-debug-always		Do not suppress C++ class debug information.
  -mfix-and-continue			Generate code suitable for fast turn around debugging

--
Greetings

  Pete

Our enemies are innovative and resourceful, and so are we. They never stop thinking about new ways to harm our country and our people, and neither do we.
				– Georges W. Bush






^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#23766: 25.0.95; crashes on Mac OS X 10.6.8. Snow Leopard
  2016-06-14  2:37 ` Eli Zaretskii
  2016-06-14  5:40   ` Peter Dyballa
@ 2016-06-14  5:55   ` Glenn Morris
  2016-06-14 14:41     ` Eli Zaretskii
  1 sibling, 1 reply; 9+ messages in thread
From: Glenn Morris @ 2016-06-14  5:55 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Peter Dyballa, 23766


Cairo support is experimental, and IMO frankly unmaintained even on GNU/Linux.
I suggest that trying to debug this remotely on a Mac isn't going to be
productive.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#23766: 25.0.95; crashes on Mac OS X 10.6.8. Snow Leopard
  2016-06-14  5:40   ` Peter Dyballa
@ 2016-06-14 14:40     ` Eli Zaretskii
  2016-06-14 21:59       ` Peter Dyballa
  0 siblings, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2016-06-14 14:40 UTC (permalink / raw)
  To: Peter Dyballa; +Cc: 23766

> From: Peter Dyballa <peter_dyballa@freenet.de>
> Date: Tue, 14 Jun 2016 07:40:15 +0200
> Cc: 23766@debbugs.gnu.org
> 
> > Sounds like a different problem, and it's hard to say anything without
> > information about the data involved in this crash.
> 
> Both went away when I left out Cairo…

Yes, because ftcrfont.c is only compiled in the Cairo build, and the
problem is evidently related to it.

> > Please compile with debugging and show more data about both problems.
> 
> I was already using 'CFLAGS=-g -H -pipe -fPIC -fno-common -O0' with the (almost) recommended C compiler
> 
> 	i686-apple-darwin10-gcc-apple-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3) (MacPorts apple-gcc42 5666.3_15)
> 	Copyright (C) 2007 Free Software Foundation, Inc.
> 
> (Almost, because it received some patches after Apple released the latest Xcode for Snow Leopard, Mac OS X 10.6.x.) This compiler offers these switches related to debugging. Which of them should I add? Do you mean just -ggdb?

Yes, -ggdb should help, but I think there's something else here,
because this kind of backtrace:

  #0  0x00000001012547da in FT_Done_Size ()
  No symbol table info available.
  #1  0x00000001002cd613 in ftcrfont_close ()
  No symbol table info available.
  #2  0x00000001002021c5 in cleanup_vector ()
  No symbol table info available.
  #3  0x000000010020230a in sweep_vectors ()
  No symbol table info available.
  #4  0x0000000100209c63 in gc_sweep ()
  No symbol table info available.
  #5  0x00000001002070c0 in garbage_collect_1 ()
  No symbol table info available.
  #6  0x0000000100207718 in Fgarbage_collect ()
  No symbol table info available.
  #7  0x000000010016f192 in maybe_gc ()
  No symbol table info available.

means there are no debugging symbols in the binary.  Perhaps the
binary was stripped at link time, or when you installed it?





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#23766: 25.0.95; crashes on Mac OS X 10.6.8. Snow Leopard
  2016-06-14  5:55   ` Glenn Morris
@ 2016-06-14 14:41     ` Eli Zaretskii
  2016-12-07 20:08       ` Glenn Morris
  0 siblings, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2016-06-14 14:41 UTC (permalink / raw)
  To: Glenn Morris; +Cc: peter_dyballa, 23766

> From: Glenn Morris <rgm@gnu.org>
> Cc: Peter Dyballa <peter_dyballa@freenet.de>,  23766@debbugs.gnu.org
> Date: Tue, 14 Jun 2016 01:55:08 -0400
> 
> 
> Cairo support is experimental, and IMO frankly unmaintained even on GNU/Linux.
> I suggest that trying to debug this remotely on a Mac isn't going to be
> productive.

Maybe so, but I don't see why we shouldn't try.  In particular,
solutions for assertion violations in ASIZE are well understood, as
soon as the code that calls ASIZE during GC is identified.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#23766: 25.0.95; crashes on Mac OS X 10.6.8. Snow Leopard
  2016-06-14 14:40     ` Eli Zaretskii
@ 2016-06-14 21:59       ` Peter Dyballa
  0 siblings, 0 replies; 9+ messages in thread
From: Peter Dyballa @ 2016-06-14 21:59 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 23766


Am 14.06.2016 um 16:40 schrieb Eli Zaretskii:

> Yes, -ggdb should help, but I think there's something else here,
> because this kind of backtrace:
> 
>  #0  0x00000001012547da in FT_Done_Size ()
>  No symbol table info available.
>  #1  0x00000001002cd613 in ftcrfont_close ()
>  No symbol table info available.
>  #2  0x00000001002021c5 in cleanup_vector ()
>  No symbol table info available.
>  #3  0x000000010020230a in sweep_vectors ()
>  No symbol table info available.
>  #4  0x0000000100209c63 in gc_sweep ()
>  No symbol table info available.
>  #5  0x00000001002070c0 in garbage_collect_1 ()
>  No symbol table info available.
>  #6  0x0000000100207718 in Fgarbage_collect ()
>  No symbol table info available.
>  #7  0x000000010016f192 in maybe_gc ()
>  No symbol table info available.
> 
> means there are no debugging symbols in the binary.  Perhaps the
> binary was stripped at link time, or when you installed it?

The software packages providing these functions are installed as productive versions on my Mac, i.e. stripped. When Gdb loads GNU Emacs it complains about a lot more, for example:

	Reading symbols for shared libraries .+++++++++++++++++++++++++++++++++...............warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_bzip2/bzip2/work/bzip2-1.0.6/blocksort.o" - no debug information available for "blocksort.c".

Anyway, since I changed -g to -ggdb the built emacs binary runs OK! No complaints. Even the mistake I had when I was tellings Gdb

	set args "-xrm 'Emacs*iconName: TeX Live-2015' -T 'TeX Live 2015@25.0.95' -geometry 133x75+1111+81 --debug-init -fn 'Lucida Sans Typewriter:autohint=true:antialias=true:size=9'"

the double quotes, is not causing any reaction! The calendar setup with Easter related local holidays produces a warning, which is clearly not related to the earlier crashes.

--
Greetings

  Pete

We have to expect it, otherwise we would be surprised.






^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#23766: 25.0.95; crashes on Mac OS X 10.6.8. Snow Leopard
  2016-06-14 14:41     ` Eli Zaretskii
@ 2016-12-07 20:08       ` Glenn Morris
  0 siblings, 0 replies; 9+ messages in thread
From: Glenn Morris @ 2016-12-07 20:08 UTC (permalink / raw)
  To: 23766-done


I don't see this leading anywhere, so closing.





^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-12-07 20:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-13 21:18 bug#23766: 25.0.95; crashes on Mac OS X 10.6.8. Snow Leopard Peter Dyballa
2016-06-13 21:34 ` Peter Dyballa
2016-06-14  2:37 ` Eli Zaretskii
2016-06-14  5:40   ` Peter Dyballa
2016-06-14 14:40     ` Eli Zaretskii
2016-06-14 21:59       ` Peter Dyballa
2016-06-14  5:55   ` Glenn Morris
2016-06-14 14:41     ` Eli Zaretskii
2016-12-07 20:08       ` Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).