unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* emacsclient hangs
@ 2012-11-03 15:10 Fabian Ezequiel Gallina
  2012-11-03 15:34 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Fabian Ezequiel Gallina @ 2012-11-03 15:10 UTC (permalink / raw)
  To: Emacs-Devel devel

Hi all,

Since I upgraded glib from 2.32.1 to 2.34.1 on my system, I find
closing an emacsclient frame will first close all clients and then
make emacs hang. This happens to me with Emacs 24.2.1 and the latest
emacs-24 branch.

I can confirm that latest emacs-24 branch --with-x-toolkit=lucid works
fine, but since most gnu/linux users and distros compile emacs with
gtk, I think it's worth trying to fix whatever glib broke.

BTW I was trying to get a backtrace, but for some reason I can't
source the src/.gdbinit file, I get this all the time:

    .gdbinit:21: Error in sourced command file:
    No symbol table is loaded.  Use the "file" command.

gdb is version 7.5. Any help is appreciated.



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

* Re: emacsclient hangs
  2012-11-03 15:10 emacsclient hangs Fabian Ezequiel Gallina
@ 2012-11-03 15:34 ` Eli Zaretskii
       [not found]   ` <CABq4mQvzAsCuAiiE2zD1qg8JkU8H=-655cg+sbA9tYz3i4zs6g@mail.gmail.com>
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2012-11-03 15:34 UTC (permalink / raw)
  To: Fabian Ezequiel Gallina; +Cc: emacs-devel

> Date: Sat, 3 Nov 2012 12:10:48 -0300
> From: Fabian Ezequiel Gallina <galli.87@gmail.com>
> 
> BTW I was trying to get a backtrace, but for some reason I can't
> source the src/.gdbinit file, I get this all the time:
> 
>     .gdbinit:21: Error in sourced command file:
>     No symbol table is loaded.  Use the "file" command.

Please tell how you invoke GDB, and what commands did you type inside
GDB since its invocation until "source .gdbinit".



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

* Re: emacsclient hangs
       [not found]   ` <CABq4mQvzAsCuAiiE2zD1qg8JkU8H=-655cg+sbA9tYz3i4zs6g@mail.gmail.com>
@ 2012-11-05  3:39     ` Eli Zaretskii
  2012-11-06  0:12       ` Fabian Ezequiel Gallina
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2012-11-05  3:39 UTC (permalink / raw)
  To: Fabian Ezequiel Gallina; +Cc: emacs-devel

> Date: Sun, 4 Nov 2012 22:04:22 -0300
> From: Fabian Ezequiel Gallina <galli.87@gmail.com>
> 
> 2012/11/3 Eli Zaretskii <eliz@gnu.org>:
> >> Date: Sat, 3 Nov 2012 12:10:48 -0300
> >> From: Fabian Ezequiel Gallina <galli.87@gmail.com>
> >>
> >> BTW I was trying to get a backtrace, but for some reason I can't
> >> source the src/.gdbinit file, I get this all the time:
> >>
> >>     .gdbinit:21: Error in sourced command file:
> >>     No symbol table is loaded.  Use the "file" command.
> >
> > Please tell how you invoke GDB, and what commands did you type inside
> > GDB since its invocation until "source .gdbinit".
> 
> I just issue source .gdbinit or even better, I just start gdb like
> this so the .gdbinit file gets sourced automatically:
> 
>      gdb -iex "set auto-load safe-path /usr:/bin:$(pwd)"

You should do this:

  gdb -iex "set auto-load safe-path /usr:/bin:$(pwd)" ./emacs

IOW, you need to tell GDB from which executable to load the debug
info, including symbols.



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

* Re: emacsclient hangs
  2012-11-05  3:39     ` Eli Zaretskii
@ 2012-11-06  0:12       ` Fabian Ezequiel Gallina
  0 siblings, 0 replies; 4+ messages in thread
From: Fabian Ezequiel Gallina @ 2012-11-06  0:12 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 667 bytes --]

2012/11/5 Eli Zaretskii <eliz@gnu.org>:
> You should do this:
>
>   gdb -iex "set auto-load safe-path /usr:/bin:$(pwd)" ./emacs
>

Thanks, that helped.

Attached is the gdb session log, what I did is to start emacs as a
daemon, attach the process to gdb and then create two clients with
"emacsclient -c somefile". After closing the frame of one of these
created clients, emacs hangs. I have to kill it in order to get a
backtrace. Let me know if I could do something else to get better
information as I'm not knowledgeable at this.


BTW, what I'm using here is emacs compiled from emacs-24 branch, revno 110771.




Regards,
Fabián E. Gallina

[-- Attachment #2: gdb.txt --]
[-- Type: text/plain, Size: 8797 bytes --]

Continuing.
[New Thread 0x7f300f0cb700 (LWP 25796)]
[New Thread 0x7f300e4ba700 (LWP 25797)]

Program received signal SIGTERM, Terminated.
0x00007f301afee68d in _XReply () from /usr/lib/libX11.so.6

Thread 3 (Thread 0x7f300e4ba700 (LWP 25797)):
#0  0x00007f3017b5218d in poll () from /usr/lib/libc.so.6
#1  0x00007f301b750b34 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f301b750c54 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f300e4c14ad in ?? () from /usr/lib/gio/modules/libdconfsettings.so
#4  0x00007f301b7743c5 in ?? () from /usr/lib/libglib-2.0.so.0
#5  0x00007f3017e22e0f in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007f3017b5a31d in clone () from /usr/lib/libc.so.6

Lisp Backtrace:
"delete-frame" (0xb2d0fef8)
"server-delete-client" (0xb2d10098)
"server-save-buffers-kill-terminal" (0xb2d10210)
"save-buffers-kill-terminal" (0xb2d10418)
"call-interactively" (0xb2d105b8)

Thread 2 (Thread 0x7f300f0cb700 (LWP 25796)):
#0  0x00007f3017b5218d in poll () from /usr/lib/libc.so.6
#1  0x00007f301b750b34 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f301b750f92 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#3  0x00007f301c692316 in ?? () from /usr/lib/libgio-2.0.so.0
#4  0x00007f301b7743c5 in ?? () from /usr/lib/libglib-2.0.so.0
#5  0x00007f3017e22e0f in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007f3017b5a31d in clone () from /usr/lib/libc.so.6

Lisp Backtrace:
"delete-frame" (0xb2d0fef8)
"server-delete-client" (0xb2d10098)
"server-save-buffers-kill-terminal" (0xb2d10210)
"save-buffers-kill-terminal" (0xb2d10418)
"call-interactively" (0xb2d105b8)

Thread 1 (Thread 0x7f301e65a900 (LWP 25639)):
#0  0x00007f301afee68d in _XReply () from /usr/lib/libX11.so.6
#1  0x00007f301afea18d in XSync () from /usr/lib/libX11.so.6
#2  0x00007f301bce1810 in ?? () from /usr/lib/libcairo.so.2
#3  0x00007f301bcb13ff in cairo_surface_flush () from /usr/lib/libcairo.so.2
#4  0x00007f301bcddefd in ?? () from /usr/lib/libcairo.so.2
#5  0x00007f301bcde6c7 in ?? () from /usr/lib/libcairo.so.2
#6  0x00007f301bcb07f6 in ?? () from /usr/lib/libcairo.so.2
#7  0x00007f301bcb1100 in cairo_surface_destroy () from /usr/lib/libcairo.so.2
#8  0x00007f301cb92ad0 in ?? () from /usr/lib/libgdk-3.so.0
#9  0x00007f301cb95f74 in ?? () from /usr/lib/libgdk-3.so.0
#10 0x00007f301cb70e5f in ?? () from /usr/lib/libgdk-3.so.0
#11 0x00007f301cb70e9f in gdk_window_destroy () from /usr/lib/libgdk-3.so.0
#12 0x00007f301d07a690 in ?? () from /usr/lib/libgtk-3.so.0
#13 0x00007f301ba0f467 in ?? () from /usr/lib/libgobject-2.0.so.0
#14 0x00007f301ba27e66 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#15 0x00007f301ba286b2 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#16 0x00007f301d07e7d6 in gtk_widget_unrealize () from /usr/lib/libgtk-3.so.0
#17 0x00007f301d0840e0 in ?? () from /usr/lib/libgtk-3.so.0
#18 0x00007f301ba15200 in g_object_run_dispose () from /usr/lib/libgobject-2.0.so.0
#19 0x00000000004d3211 in xg_free_frame_widgets (f=0x113a5f0) at gtkutil.c:1298
#20 0x00000000004bd5ae in x_free_frame_resources (f=0x113a5f0) at xterm.c:9464
#21 0x00000000004bd86b in x_destroy_window (f=<optimized out>) at xterm.c:9534
#22 0x00000000004245c3 in delete_frame (frame=18064885, force=12252258) at frame.c:1323
#23 0x00000000004b3d11 in x_connection_closed (dpy=dpy@entry=0xe11630, error_message=<optimized out>, error_message@entry=
    0x7fffb2d0eed0 "X protocol error: BadWindow (invalid Window parameter) on protocol request 42") at xterm.c:7784
#24 0x00000000004b5c66 in x_error_quitter (display=0xe11630, event=<optimized out>, event=<optimized out>) at xterm.c:7897
#25 0x00000000004b5cb5 in x_error_handler (event=<optimized out>, display=<optimized out>) at xterm.c:7867
#26 x_error_handler (display=<optimized out>, event=<optimized out>) at xterm.c:7853
#27 0x00007f301aff0956 in _XError () from /usr/lib/libX11.so.6
#28 0x00007f301afedba1 in ?? () from /usr/lib/libX11.so.6
#29 0x00007f301afedbe5 in ?? () from /usr/lib/libX11.so.6
#30 0x00007f301afee7d8 in _XReply () from /usr/lib/libX11.so.6
#31 0x00007f301afea18d in XSync () from /usr/lib/libX11.so.6
#32 0x00007f301cb74739 in gdk_window_process_all_updates () from /usr/lib/libgdk-3.so.0
#33 0x00000000004b85d3 in x_catch_errors (dpy=dpy@entry=0xe11630) at xterm.c:7639
#34 0x00000000004c24a9 in x_real_positions (f=0x113a5f0, xptr=0x113a740, yptr=0x113a744) at xfns.c:430
#35 0x00000000004bac24 in handle_one_xevent (dpyinfo=dpyinfo@entry=0xc6fb30, eventptr=eventptr@entry=0x7fffb2d0fac0, finish=finish@entry=0xb031b4 <current_finish>, hold_quit=0x7fffb2d0fd20) at xterm.c:6865
#36 0x00000000004bbafc in event_handler_gdk (gxev=0x7fffb2d0fac0, ev=<optimized out>, data=<optimized out>) at xterm.c:5844
#37 0x00007f301cb87941 in ?? () from /usr/lib/libgdk-3.so.0
#38 0x00007f301cb87b17 in ?? () from /usr/lib/libgdk-3.so.0
#39 0x00007f301cb5d511 in gdk_display_get_event () from /usr/lib/libgdk-3.so.0
#40 0x00007f301cb87852 in ?? () from /usr/lib/libgdk-3.so.0
#41 0x00007f301b750865 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#42 0x00007f301b750b98 in ?? () from /usr/lib/libglib-2.0.so.0
#43 0x00007f301b750c54 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#44 0x00007f301cf4aca5 in gtk_main_iteration () from /usr/lib/libgtk-3.so.0
#45 0x00000000004b3e1b in XTread_socket (terminal=<optimized out>, hold_quit=0x7fffb2d0fd20) at xterm.c:7177
#46 0x00000000004e6329 in gobble_input () at keyboard.c:6766
#47 0x00000000004e5845 in handle_async_input () at keyboard.c:7079
#48 process_pending_signals () at keyboard.c:7093
#49 0x00000000004bd86b in x_destroy_window (f=<optimized out>) at xterm.c:9534
#50 0x00000000004245c3 in delete_frame (frame=18299253, force=12075506) at frame.c:1323
#51 0x0000000000553691 in Ffuncall (nargs=<optimized out>, args=<optimized out>) at eval.c:2777
#52 0x00000000005887d3 in exec_byte_code (bytestr=0, vector=142, maxdepth=0, args_template=4611686018695757824, nargs=4611686018430533632, args=0x0, args@entry=0x132e460) at bytecode.c:899
#53 0x00000000005530e9 in funcall_lambda (fun=18344925, nargs=nargs@entry=1, arg_vector=0x132e460, arg_vector@entry=0x7fffb2d10098) at eval.c:2940
#54 0x000000000055350b in Ffuncall (nargs=2, args=0x7fffb2d10090) at eval.c:2835
#55 0x00000000005887d3 in exec_byte_code (bytestr=0, vector=64, maxdepth=0, args_template=4611686018695757824, nargs=4611686018430533632, args=0x0, args@entry=0x1323df0) at bytecode.c:899
#56 0x00000000005530e9 in funcall_lambda (fun=17286597, nargs=nargs@entry=1, arg_vector=0x1323df0, arg_vector@entry=0x7fffb2d10210) at eval.c:2940
#57 0x000000000055350b in Ffuncall (nargs=2, args=0x7fffb2d10208) at eval.c:2835
#58 0x00000000005887d3 in exec_byte_code (bytestr=0, vector=12, maxdepth=0, args_template=4611686018695757824, nargs=4611686018430533632, args=args@entry=0x0) at bytecode.c:899
#59 0x00000000005531f1 in funcall_lambda (fun=9050165, nargs=nargs@entry=1, arg_vector=arg_vector@entry=0x7fffb2d10418) at eval.c:3006
#60 0x000000000055350b in Ffuncall (nargs=nargs@entry=2, args=args@entry=0x7fffb2d10410) at eval.c:2835
#61 0x000000000054fc7d in Fcall_interactively (function=16389970, record_flag=12075506, keys=12110725) at callint.c:852
#62 0x000000000055367f in Ffuncall (nargs=nargs@entry=4, args=args@entry=0x7fffb2d105b0) at eval.c:2781
#63 0x00000000005538b4 in call3 (fn=<optimized out>, arg1=<optimized out>, arg2=<optimized out>, arg3=<optimized out>) at eval.c:2599
#64 0x00000000004e07ed in Fcommand_execute (cmd=<optimized out>, record_flag=<optimized out>, keys=<optimized out>, special=<optimized out>) at keyboard.c:10240
#65 0x00000000004ed5da in command_loop_1 () at keyboard.c:1586
#66 0x0000000000551b03 in internal_condition_case (bfun=bfun@entry=0x4ed240 <command_loop_1>, handlers=12127186, hfun=hfun@entry=0x4e2aa0 <cmd_error>) at eval.c:1288
#67 0x00000000004e123e in command_loop_2 (ignore=ignore@entry=12075506) at keyboard.c:1167
#68 0x00000000005519e0 in internal_catch (tag=<error reading variable: Cannot access memory at address 0xffffffffffffffe0>, func=func@entry=0x4e1220 <command_loop_2>, arg=12075506) at eval.c:1059
#69 0x00000000004e2587 in command_loop () at keyboard.c:1146
#70 recursive_edit_1 () at keyboard.c:778
#71 0x00000000004e28a5 in Frecursive_edit () at keyboard.c:842
#72 0x0000000000416c0f in main (argc=3, argv=<optimized out>) at emacs.c:1547

Lisp Backtrace:
"delete-frame" (0xb2d0fef8)
"server-delete-client" (0xb2d10098)
"server-save-buffers-kill-terminal" (0xb2d10210)
"save-buffers-kill-terminal" (0xb2d10418)
"call-interactively" (0xb2d105b8)
A debugging session is active.

	Inferior 1 [process 25639] will be detached.

Quit anyway? (y or n) Detaching from program: /home/fgallina/Code/Projects/emacs/emacs-24/src/emacs, process 25639

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

end of thread, other threads:[~2012-11-06  0:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-03 15:10 emacsclient hangs Fabian Ezequiel Gallina
2012-11-03 15:34 ` Eli Zaretskii
     [not found]   ` <CABq4mQvzAsCuAiiE2zD1qg8JkU8H=-655cg+sbA9tYz3i4zs6g@mail.gmail.com>
2012-11-05  3:39     ` Eli Zaretskii
2012-11-06  0:12       ` Fabian Ezequiel Gallina

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).