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

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

Re: GTK build crashes under X


From: Jan Djärv
Subject: Re: GTK build crashes under X
Date: Mon, 27 Nov 2006 21:11:38 +0100
User-agent: Thunderbird 1.5.0.8 (X11/20061115)

Stephen Berman skrev:
> I've been using the GTK build of the first pretest tarball for almost
> three weeks without any serious problems.  But as of today it
> immediately segfaults when I start it under X.  The only change to my
> system (SUSE 10.1) between today and the last time I started this
> build of Emacs is that I installed the following software packages:
> 
> qamix-0.0.7e-165              
> audacity-1.3.2-0.pm.beta      
> wxGTK-2.6.2.1-20              
> kstreamripper-0.3.4-1.pm.1    
> streamripper-1.61.18-1        
> apache2-doc-2.2.0-21          
> streamtuner-0.99.99-23        
> libmspack-0.0.20040308alpha-16
> 
> Could wxGTK be the culprit?  (There's no problem when I start this
> Emacs with -nw, nor with a Lucid build of the same pretest tarbell
> under X.)  Below are the gdb and lisp backtraces.  Please let me know
> if I should provide more information.

This is so deep into Gtk/Pango so I think it is a bug there.  The last call in
Emacs code is in frame 42, which calls gtk_widget_size_request.

Then Gtk tries to figure out the sizes of the widgets, apparently it tries to
 find a font in the final frames, (FcPatternBuild), but this fails.  You could
 recompile pango with debugging enabled (if not already) and see what
arguments are passed to strcmp, one is probably a NULL pointer.  Maybe there
is a font it doesn't find.  Have you tried removing ~/.fonts.cache-1?  You can
also try to rerun fc-cache.

What version of fontconfig do you have?  Mine (2.2.3 and 2.3.2 and 2.4.1) does
not have any FcObjectToPtr method.

        Jan D.

> 
> 
> In GNU Emacs 22.0.90.1 (i686-pc-linux-gnu, GTK+ Version 2.8.10)
>  of 2006-11-07 on escher
> configured using `configure '--with-x-toolkit=gtk''
> 
> Important settings:
>   value of $LC_ALL: nil
>   value of $LC_COLLATE: nil
>   value of $LC_CTYPE: nil
>   value of $LC_MESSAGES: nil
>   value of $LC_MONETARY: nil
>   value of $LC_NUMERIC: nil
>   value of $LC_TIME: nil
>   value of $LANG: en_US.UTF-8
>   locale-coding-system: utf-8
>   default-enable-multibyte-characters: t
> 
> 
> address@hidden:~/emacs-gtk/src> gdb emacs
> GNU gdb 6.4
> Copyright 2005 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 "i586-suse-linux"...Using host libthread_db 
> library "/lib/libthread_db.so.1".
> 
> DISPLAY = :0
> TERM = xterm
> Breakpoint 1 at 0x80f2556: file /home/steve/emacs-22.0.90/src/emacs.c, line 
> 464.
> Breakpoint 2 at 0x810b4f6: file /home/steve/emacs-22.0.90/src/sysdep.c, line 
> 1385.
> (gdb) r
> Starting program: /home/steve/emacs-gtk/src/emacs -geometry 80x40+0+0
> [Thread debugging using libthread_db enabled]
> [New Thread -1220643152 (LWP 4578)]
> [Switching to Thread -1220643152 (LWP 4578)]
> Breakpoint 3 at 0x80c7ba6: file /home/steve/emacs-22.0.90/src/xterm.c, line 
> 7833.
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0xb74b88fa in strcmp () from /lib/libc.so.6
> (gdb) bt
> #0  0xb74b88fa in strcmp () from /lib/libc.so.6
> #1  0xb79c1b45 in FcObjectToPtr () from /usr/lib/libfontconfig.so.1
> #2  0xb79c5741 in FcPatternAddWithBinding () from /usr/lib/libfontconfig.so.1
> #3  0xb79c5df8 in FcPatternAdd () from /usr/lib/libfontconfig.so.1
> #4  0xb79c5e84 in FcPatternBuild () from /usr/lib/libfontconfig.so.1
> #5  0xb74150b8 in pango_fc_font_map_get_type ()
>    from /opt/gnome/lib/libpangoft2-1.0.so.0
> #6  0xb7af0830 in pango_font_map_load_fontset ()
>    from /opt/gnome/lib/libpango-1.0.so.0
> #7  0xb7aee84a in pango_context_get_font_description ()
>    from /opt/gnome/lib/libpango-1.0.so.0
> #8  0xb7aeeb92 in pango_itemize_with_base_dir ()
>    from /opt/gnome/lib/libpango-1.0.so.0
> #9  0xb7af6b0b in pango_layout_iter_get_char_extents ()
>    from /opt/gnome/lib/libpango-1.0.so.0
> #10 0xb7af76dc in pango_layout_iter_get_char_extents ()
>    from /opt/gnome/lib/libpango-1.0.so.0
> #11 0xb7cefedd in gtk_label_new () from /opt/gnome/lib/libgtk-x11-2.0.so.0
> #12 0xb7c237c6 in gtk_accel_label_new ()
>    from /opt/gnome/lib/libgtk-x11-2.0.so.0
> #13 0xb7a66c09 in g_cclosure_marshal_VOID__BOXED ()
>    from /opt/gnome/lib/libgobject-2.0.so.0
> #14 0xb7a590c7 in g_value_set_static_boxed ()
>    from /opt/gnome/lib/libgobject-2.0.so.0
> #15 0xb7a5a9ac in g_closure_invoke () from /opt/gnome/lib/libgobject-2.0.so.0
> #16 0xb7a6b6da in g_signal_connect_closure_by_id ()
>    from /opt/gnome/lib/libgobject-2.0.so.0
> #17 0xb7a6cac7 in g_signal_emit_valist ()
>    from /opt/gnome/lib/libgobject-2.0.so.0
> #18 0xb7a6e16e in g_signal_emit_by_name ()
>    from /opt/gnome/lib/libgobject-2.0.so.0
> #19 0xb7d4b0f6 in gtk_signal_new () from /opt/gnome/lib/libgtk-x11-2.0.so.0
> #20 0xb7d4b347 in gtk_signal_new () from /opt/gnome/lib/libgtk-x11-2.0.so.0
> #21 0xb7df2c9c in gtk_widget_size_request ()
>    from /opt/gnome/lib/libgtk-x11-2.0.so.0
> #22 0xb7d0de2f in gtk_menu_item_new_with_label ()
>    from /opt/gnome/lib/libgtk-x11-2.0.so.0
> #23 0xb7a66c09 in g_cclosure_marshal_VOID__BOXED ()
>    from /opt/gnome/lib/libgobject-2.0.so.0
> ---Type <return> to continue, or q <return> to quit---
> #24 0xb7a590c7 in g_value_set_static_boxed ()
>    from /opt/gnome/lib/libgobject-2.0.so.0
> #25 0xb7a5a9ac in g_closure_invoke () from /opt/gnome/lib/libgobject-2.0.so.0
> #26 0xb7a6b6da in g_signal_connect_closure_by_id ()
>    from /opt/gnome/lib/libgobject-2.0.so.0
> #27 0xb7a6cac7 in g_signal_emit_valist ()
>    from /opt/gnome/lib/libgobject-2.0.so.0
> #28 0xb7a6e16e in g_signal_emit_by_name ()
>    from /opt/gnome/lib/libgobject-2.0.so.0
> #29 0xb7d4b0f6 in gtk_signal_new () from /opt/gnome/lib/libgtk-x11-2.0.so.0
> #30 0xb7d4b347 in gtk_signal_new () from /opt/gnome/lib/libgtk-x11-2.0.so.0
> #31 0xb7df2c9c in gtk_widget_size_request ()
>    from /opt/gnome/lib/libgtk-x11-2.0.so.0
> #32 0xb7d0b3b7 in gtk_menu_bar_new () from /opt/gnome/lib/libgtk-x11-2.0.so.0
> #33 0xb7a66c09 in g_cclosure_marshal_VOID__BOXED ()
>    from /opt/gnome/lib/libgobject-2.0.so.0
> #34 0xb7a590c7 in g_value_set_static_boxed ()
>    from /opt/gnome/lib/libgobject-2.0.so.0
> #35 0xb7a5a8bd in g_closure_invoke () from /opt/gnome/lib/libgobject-2.0.so.0
> #36 0xb7a6b6da in g_signal_connect_closure_by_id ()
>    from /opt/gnome/lib/libgobject-2.0.so.0
> #37 0xb7a6cac7 in g_signal_emit_valist ()
>    from /opt/gnome/lib/libgobject-2.0.so.0
> #38 0xb7a6e16e in g_signal_emit_by_name ()
>    from /opt/gnome/lib/libgobject-2.0.so.0
> #39 0xb7d4b0f6 in gtk_signal_new () from /opt/gnome/lib/libgtk-x11-2.0.so.0
> #40 0xb7d4b347 in gtk_signal_new () from /opt/gnome/lib/libgtk-x11-2.0.so.0
> #41 0xb7df2c9c in gtk_widget_size_request ()
>    from /opt/gnome/lib/libgtk-x11-2.0.so.0
> #42 0x080f181c in xg_update_frame_menubar (f=0x8644250)
>     at /home/steve/emacs-22.0.90/src/gtkutil.c:2924
> #43 0x0808bb95 in set_frame_menubar (f=0x8644250, first_time=1, deep_p=1)
>     at /home/steve/emacs-22.0.90/src/xmenu.c:2098
> #44 0x0808bd90 in initialize_frame_menubar (f=0x8644250)
>     at /home/steve/emacs-22.0.90/src/xmenu.c:2495
> #45 0x080d6735 in Fx_create_frame (parms=139409981)
>     at /home/steve/emacs-22.0.90/src/xfns.c:3368
> #46 0x08159461 in Ffuncall (nargs=2, args=0xbfe1dfa8)
>     at /home/steve/emacs-22.0.90/src/eval.c:2997
> ---Type <return> to continue, or q <return> to quit---
> #47 0x08183c97 in Fbyte_code (bytestr=136224779, vector=136224796, 
> maxdepth=40)
>     at /home/steve/emacs-22.0.90/src/bytecode.c:679
> #48 0x08158f0a in funcall_lambda (fun=136224732, nargs=1,
>     arg_vector=0xbfe1e0d4) at /home/steve/emacs-22.0.90/src/eval.c:3184
> #49 0x08159311 in Ffuncall (nargs=2, args=0xbfe1e0d0)
>     at /home/steve/emacs-22.0.90/src/eval.c:3054
> #50 0x08183c97 in Fbyte_code (bytestr=136468115, vector=136468132, 
> maxdepth=24)
>     at /home/steve/emacs-22.0.90/src/bytecode.c:679
> #51 0x08158f0a in funcall_lambda (fun=136468068, nargs=1,
>     arg_vector=0xbfe1e1f4) at /home/steve/emacs-22.0.90/src/eval.c:3184
> #52 0x08159311 in Ffuncall (nargs=2, args=0xbfe1e1f0)
>     at /home/steve/emacs-22.0.90/src/eval.c:3054
> #53 0x08183c97 in Fbyte_code (bytestr=136466083, vector=136466100, 
> maxdepth=32)
>     at /home/steve/emacs-22.0.90/src/bytecode.c:679
> #54 0x08158f0a in funcall_lambda (fun=136466052, nargs=0,
>     arg_vector=0xbfe1e314) at /home/steve/emacs-22.0.90/src/eval.c:3184
> #55 0x08159311 in Ffuncall (nargs=1, args=0xbfe1e310)
>     at /home/steve/emacs-22.0.90/src/eval.c:3054
> #56 0x08183c97 in Fbyte_code (bytestr=136581059, vector=136581076, 
> maxdepth=56)
>     at /home/steve/emacs-22.0.90/src/bytecode.c:679
> #57 0x08158f0a in funcall_lambda (fun=136581036, nargs=0,
>     arg_vector=0xbfe1e444) at /home/steve/emacs-22.0.90/src/eval.c:3184
> #58 0x08159311 in Ffuncall (nargs=1, args=0xbfe1e440)
>     at /home/steve/emacs-22.0.90/src/eval.c:3054
> #59 0x08183c97 in Fbyte_code (bytestr=136577979, vector=136577996, 
> maxdepth=48)
>     at /home/steve/emacs-22.0.90/src/bytecode.c:679
> #60 0x08158f0a in funcall_lambda (fun=136577956, nargs=0,
>     arg_vector=0xbfe1e510) at /home/steve/emacs-22.0.90/src/eval.c:3184
> #61 0x081590fe in apply_lambda (fun=136577956, args=137455817, eval_flag=1)
>     at /home/steve/emacs-22.0.90/src/eval.c:3108
> #62 0x081587e2 in Feval (form=139109317)
>     at /home/steve/emacs-22.0.90/src/eval.c:2370
> #63 0x080f9c53 in top_level_2 ()
>     at /home/steve/emacs-22.0.90/src/keyboard.c:1335
> #64 0x08157f52 in internal_condition_case (bfun=0x80f9c40 <top_level_2>,
>     handlers=137500521, hfun=0x80fd050 <cmd_error>)
>     at /home/steve/emacs-22.0.90/src/eval.c:1481
> #65 0x080fc3b0 in top_level_1 ()
>     at /home/steve/emacs-22.0.90/src/keyboard.c:1343
> ---Type <return> to continue, or q <return> to quit---
> #66 0x0815800a in internal_catch (tag=137496729, func=0x80fc380 <top_level_1>,
>     arg=137455817) at /home/steve/emacs-22.0.90/src/eval.c:1222
> #67 0x080fce69 in command_loop ()
>     at /home/steve/emacs-22.0.90/src/keyboard.c:1300
> #68 0x080fd22a in recursive_edit_1 ()
>     at /home/steve/emacs-22.0.90/src/keyboard.c:1003
> #69 0x080fd317 in Frecursive_edit ()
>     at /home/steve/emacs-22.0.90/src/keyboard.c:1064
> #70 0x080f32eb in main (argc=3, argv=0xbfe1ec44)
>     at /home/steve/emacs-22.0.90/src/emacs.c:1794
> 
> Lisp Backtrace:
> "x-create-frame" (0x84f3a3d)
> "x-create-frame-with-faces" (0x84f3a2d)
> "make-frame" (0x84f3a2d)
> "frame-initialize" (0x85359b9)
> "command-line" (0x85648eb)
> "normal-top-level" (0x83168c9)
> 
> 
> _______________________________________________
> emacs-pretest-bug mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug





reply via email to

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