[Bug 58856] Re: xemacs segfaults on edgy powerpc system

2007-09-20 Thread Timo Aaltonen
*** This bug is a duplicate of bug 57586 ***
https://bugs.launchpad.net/bugs/57586

** This bug has been marked a duplicate of bug 57586
   XEmacs segfaults on startup in Edgy

-- 
xemacs segfaults on edgy powerpc system
https://bugs.launchpad.net/bugs/58856
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 58856] Re: xemacs segfaults on edgy powerpc system

2006-12-13 Thread Brian O'Reilly
well, this bug is not confined to powerpc systems, and it still exists
on all machines that are upgraded from breezy to edgy. Please confirm
this bug and push it out to the X11 maintainers so they can check for
the condition of an upgrade and do something intelligent about the font
paths in the xorg.conf file.

Brian

-- 
xemacs segfaults on edgy powerpc system
https://launchpad.net/bugs/58856

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 58856] Re: xemacs segfaults on edgy powerpc system

2006-10-10 Thread Brian O'Reilly
Okay... I have a functional workaround for this bug, but the segfault
itself should still be pushed upstream so that the xemacs devs can fix
it. The application is choking when it can't populate a font struct
during initialisation; I guess they never try to clean up for this
condition, which is causing the app to throw a segmentation fault...
anyhow, on ubuntu the reason this is happening is that when you have a
machine that has been carried forward from an older version of ubuntu
(dapper, or breezy), the xorg.conf will have bad loadpath lines for
fonts. Before and after clauses from my xorg.conf:

#Section "Files"
#   FontPath"/usr/share/X11/fonts/misc"
#   FontPath"/usr/share/X11/fonts/cyrillic"
#   FontPath"/usr/share/X11/fonts/100dpi/:unscaled"
#   FontPath"/usr/share/X11/fonts/75dpi/:unscaled"
#   FontPath"/usr/share/X11/fonts/Type1"
#   FontPath"/usr/share/X11/fonts/100dpi"
#   FontPath"/usr/share/X11/fonts/75dpi"
#   # path to defoma fonts
#   FontPath"/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
#   FontPath"/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
#EndSection

Section "Files"
 # paths to defoma fonts
 FontPath "/usr/share/fonts/X11/misc"
 FontPath "/usr/share/fonts/X11/cyrillic"
 FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
 FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
 FontPath "/usr/share/fonts/X11/Type1"
 FontPath "/usr/share/fonts/X11/CID"
 FontPath "/usr/share/fonts/X11/100dpi"
 FontPath "/usr/share/fonts/X11/75dpi"
 FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
 FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
EndSection

... the faulty fontpath  clause is commented out. The new one is below
it. Once this change was made to my xorg.conf and the server was
restarted, XEmacs and GNUEmacs both worked again as advertised. The fact
that this exposes a segfault in xemacs is a bug for upstream in my
oppinion. This should be something that is checked for when doing a
dist-upgrade from breezy or dapper.

Brian

-- 
xemacs segfaults on edgy powerpc system
https://launchpad.net/bugs/58856

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 58856] Re: xemacs segfaults on edgy powerpc system

2006-09-30 Thread Brian O'Reilly
this appears to duplicate the bug at:

https://launchpad.net/distros/ubuntu/+source/xemacs21/+bug/57586

... although the traces there aren't complete. I think these two reports
should be merged, and probably the bug marked as verified.

Brian

-- 
xemacs segfaults on edgy powerpc system
https://launchpad.net/bugs/58856

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 58856] Re: xemacs segfaults on edgy powerpc system

2006-09-11 Thread Brian O'Reilly
At the request of Mithrandir in #ubuntu-dev, I rebuilt my xemacs package
with unstripped binaries. This is the backtrace he requested.

Reading symbols from /usr/lib/libXaw.so.7...done.
Loaded symbols for /usr/lib/libXaw.so.7
Reading symbols from /usr/lib/libtiff.so.4...done.
Loaded symbols for /usr/lib/libtiff.so.4
Reading symbols from /usr/lib/libpng12.so.0...done.
Loaded symbols for /usr/lib/libpng12.so.0
Reading symbols from /usr/lib/libjpeg.so.62...done.
Loaded symbols for /usr/lib/libjpeg.so.62
Reading symbols from /usr/lib/libcompface.so.1...done.
Loaded symbols for /usr/lib/libcompface.so.1
Reading symbols from /usr/lib/libXpm.so.4...done.
Loaded symbols for /usr/lib/libXpm.so.4
Reading symbols from /usr/lib/libXmu.so.6...done.
Loaded symbols for /usr/lib/libXmu.so.6
Reading symbols from /usr/lib/libXt.so.6...done.
Loaded symbols for /usr/lib/libXt.so.6
Reading symbols from /usr/lib/libXext.so.6...done.
Loaded symbols for /usr/lib/libXext.so.6
Reading symbols from /usr/lib/libX11.so.6...done.
Loaded symbols for /usr/lib/libX11.so.6
Reading symbols from /usr/lib/libSM.so.6...done.
Loaded symbols for /usr/lib/libSM.so.6
Reading symbols from /usr/lib/libICE.so.6...done.
Loaded symbols for /usr/lib/libICE.so.6
Reading symbols from /usr/lib/libdb3.so.3...done.
Loaded symbols for /usr/lib/libdb3.so.3
Reading symbols from /lib/libncurses.so.5...done.
Loaded symbols for /lib/libncurses.so.5
Reading symbols from /usr/lib/libldap_r.so.2...done.
Loaded symbols for /usr/lib/libldap_r.so.2
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libutil.so.1...done.
Loaded symbols for /lib/libutil.so.1
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /usr/lib/libXau.so.6...done.
Loaded symbols for /usr/lib/libXau.so.6
Reading symbols from /usr/lib/libXdmcp.so.6...done.
Loaded symbols for /usr/lib/libXdmcp.so.6
Reading symbols from /usr/lib/liblber.so.2...done.
Loaded symbols for /usr/lib/liblber.so.2
Reading symbols from /lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /lib/libcrypt.so.1...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /usr/lib/libsasl2.so.2...done.
Loaded symbols for /usr/lib/libsasl2.so.2
Reading symbols from /usr/lib/libgnutls.so.13...done.
Loaded symbols for /usr/lib/libgnutls.so.13
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/ld.so.1...done.
Loaded symbols for /lib/ld.so.1
Reading symbols from /usr/lib/libtasn1.so.3...done.
Loaded symbols for /usr/lib/libtasn1.so.3
Reading symbols from /usr/lib/libgcrypt.so.11...done.
Loaded symbols for /usr/lib/libgcrypt.so.11
Reading symbols from /usr/lib/libgpg-error.so.0...done.
Loaded symbols for /usr/lib/libgpg-error.so.0
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /lib/libnss_compat.so.2...done.
Loaded symbols for /lib/libnss_compat.so.2
Reading symbols from /lib/libnss_nis.so.2...done.
Loaded symbols for /lib/libnss_nis.so.2
Reading symbols from /usr/lib/X11/locale/common/xlibi18n.so.2...done.
Loaded symbols for /usr/lib/X11/locale/common/xlibi18n.so.2
Reading symbols from /usr/lib/libXcursor.so.1...done.
Loaded symbols for /usr/lib/libXcursor.so.1
Reading symbols from /usr/lib/libXrender.so.1...done.
Loaded symbols for /usr/lib/libXrender.so.1
Reading symbols from /usr/lib/libXfixes.so.3...done.
Loaded symbols for /usr/lib/libXfixes.so.3
Failed to read a valid object file image from memory.
Core was generated by `/usr/bin/xemacs'.
Program terminated with signal 11, Segmentation fault.
#0  0x0f7d50d8 in kill () from /lib/libc.so.6
(gdb) where
#0  0x0f7d50d8 in kill () from /lib/libc.so.6
#1  0x10073ec0 in fatal_error_signal (sig=11) at emacs.c:642
#2  0x00100374 in ?? ()
#3  0x7fb3feb8 in ?? ()
#4  0x101cb7d8 in XlwMenuInitialize (request=, new=, args=, num_args=) at 
xlwmenu.c:3040
#5  0x0fd7db04 in XtCvtStringToBoolean () from /usr/lib/libXt.so.6
#6  0x0fd7e7c4 in _XtCreateHookObj () from /usr/lib/libXt.so.6
#7  0x0fd7f22c in _XtCreateWidget () from /usr/lib/libXt.so.6
#8  0x0fd7f660 in XtCreateWidget () from /usr/lib/libXt.so.6
#9  0x101d1ad4 in xlw_create_menubar (instance=0x104938b8) at lwlib-Xlw.c:132
#10 0x101c43e8 in lw_make_widget (id=, parent=0x10451aa8, 
pop_up_p=0 '\0') at lwlib.c:941
#11 0x1009b09c in set_frame_menubar (f=0x10412fe8, deep_p=1, 
first_time_p=) at menubar-x.c:607
#12 0x1019c330 in x_create_widgets (f=0x10412fe8, lisp_window_id=, parent=dwarf2_read_address: Corrupted DWARF expression.
) at frame-x.c:2001
#13 0x100f5878 in Fmake_frame (props=805713136, device=) 
at frame.c:399
#14 0x100798

[Bug 58856] Re: xemacs segfaults on edgy powerpc system

2006-09-05 Thread Brian O'Reilly
update...

Okay, I have relinked this package on my own system in a clean pbuilder
chroot, and the symbol complaint is gone, but the failure is the same,
although the stack trace seems to have moved out to another lib:

[fade]tantive:~
[Tue Sep 05 <15:44:03>]\>xemacs
Warning: Cannot convert string 
"-*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*" to type FontStruct
Warning: Unable to load any usable ISO8859 font
Warning: Unable to load any usable ISO8859 font

Fatal error (11).

Your files have been auto-saved.
Use `M-x recover-session' to recover them.

[ ...snip xemacs generated debugging info/advice... ]

Lisp backtrace follows:

  # bind (frame-being-created)
  make-frame(nil #)
  frame-initialize()
  # bind (debugger debug-on-error command-line-args-left)
  command-line()
  # (condition-case ... . ((t (byte-code "  " ... 1
  # bind (error-data)
  normal-top-level()
  # (condition-case ... . error)
  # (catch top-level ...)
zsh: segmentation fault (core dumped)  xemacs


and this is the c stack trace from gdb:

[Tue Sep 05 <15:44:15>]\>gdb /usr/bin/xemacs ./core
GNU gdb 6.4.90-debian
Copyright (C) 2006 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 "powerpc-linux-gnu"...(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".

Failed to read a valid object file image from memory.
Core was generated by `xemacs'.
Program terminated with signal 11, Segmentation fault.
#0  0x0f7690d8 in ?? ()
(gdb) where
#0  0x0f7690d8 in ?? ()
#1  0x10073c60 in xemacs_21_4_19_powerpc_debian_linux ()
#2  0x00100374 in ?? ()
#3  0x7f844e98 in ?? ()
#4  0x101c7f08 in xlw_display_menu ()
#5  0x0fd43b04 in ?? ()
#6  0x0fd447c4 in ?? ()
#7  0x0fd4522c in ?? ()
#8  0x0fd45660 in ?? ()
#9  0x101cb334 in xlw_pop_up_menu ()
#10 0x101c1458 in lw_internal_update_other_instances ()
#11 0x1009ebfc in console_type_create_toolbar_x ()
#12 0x1019b4b0 in x_any_window_to_frame ()
#13 0x100f4da8 in syms_of_general ()
#14 0x100f4da8 in syms_of_general ()
#15 0x100f4da8 in syms_of_general ()
#16 0x100f4da8 in syms_of_general ()
#17 0x100f4da8 in syms_of_general ()
#18 0x100f4da8 in syms_of_general ()
#19 0x100f4da8 in syms_of_general ()
#20 0x100f4da8 in syms_of_general ()
#21 0x100f4da8 in syms_of_general ()
#22 0x100f4da8 in syms_of_general ()
#23 0x100f4da8 in syms_of_general ()
#24 0x100f4da8 in syms_of_general ()
#25 0x100f4da8 in syms_of_general ()
#26 0x100f4da8 in syms_of_general ()
#27 0x100f4da8 in syms_of_general ()
#28 0x100f4da8 in syms_of_general ()
#29 0x100f4da8 in syms_of_general ()
#30 0x100f4da8 in syms_of_general ()
#31 0x100f4da8 in syms_of_general ()
#32 0x100f4da8 in syms_of_general ()
#33 0x100f4da8 in syms_of_general ()
#34 0x100f4da8 in syms_of_general ()
Previous frame inner to this frame (corrupt stack?)


also interesting, and probably should be the subject of another bug report is 
that GNUEmacs fails in a very similar fasion with a complaint about fonts. In 
the GNUEmacs case, however, the frame comes up, but it is full of hollow 
rectangles instead of glyphs. Here is the stderr output from a terminal 
starting emacs:

Warning: Cannot convert string 
"-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*" to type FontStruct
Warning: Unable to load any usable ISO8859 font
Warning: Cannot convert string 
"-*-helvetica-medium-r-*--*-120-*-*-*-*-iso8859-1" to type FontStruct
Warning: Unable to load any usable ISO8859 font
Warning: Unable to load any usable ISO8859 font

I have attached a screenshot of the resulting emacs frame.

** Attachment added: "screenshot of an emacs frame without any useful fonts."
   http://librarian.launchpad.net/4132345/bad_emacs.png

-- 
xemacs segfaults on edgy powerpc system
https://launchpad.net/bugs/58856

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs