unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Weird behavior and crash with X and TTY frame
@ 2013-04-06 13:03 Dmitry Antipov
  2013-04-07 12:06 ` Jan Djärv
  0 siblings, 1 reply; 6+ messages in thread
From: Dmitry Antipov @ 2013-04-06 13:03 UTC (permalink / raw)
  To: Emacs development discussions

On r112235 configured with --with-x-toolkit=gtk3 --enable-checking:

1. ./src/emacs -Q -nw
2. M-x make-frame-on-display :0.0
3. On X frame, eval: (x-popup-dialog t '("Test" ("yes" . 1)))
4. Do not touch popup, but go back to TTY frame and press C-g C-g.
5. Shell responds with:

[1]+  Stopped                 ./src/emacs -Q -nw

6. At shell prompt, resume Emacs with %1. Response is:

./src/emacs -Q -nw
Auto-save? (y or n) [answer y]
Auto-save done
Abort (and dump core)? (y or n) [answer y]

==> crash:

#0  0x0000003daf40eedb in raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:41
#1  0x000000000051da46 in terminate_due_to_signal (sig=sig@entry=6, backtrace_limit=backtrace_limit@entry=40)
     at src/emacs.c:343
#2  0x000000000053d583 in emacs_abort () at src/sysdep.c:2148
#3  0x00000000005206f9 in handle_interrupt (in_signal_handler=<optimized out>)
     at src/keyboard.c:10389
#4  0x000000000053d215 in deliver_process_signal (sig=2, handler=0x520700 <handle_interrupt_signal>)
     at src/sysdep.c:1591
#5  <signal handler called>
#6  0x0000003dae8eb889 in __pselect (nfds=nfds@entry=8, readfds=readfds@entry=0x7fffcf24d6f0, writefds=writefds@entry=0x0,
     exceptfds=exceptfds@entry=0x0, timeout=<optimized out>, timeout@entry=0x0, sigmask=sigmask@entry=0x0)
     at ../sysdeps/unix/sysv/linux/pselect.c:78
#7  0x000000000050bc5b in xg_select (fds_lim=8, rfds=0x7fffcf24d6f0, wfds=0x0, efds=0x0, timeout=0x0, sigmask=0x0)
     at src/xgselect.c:48
#8  0x0000000000479d88 in x_menu_wait_for_event (data=<optimized out>) at src/xmenu.c:407
#9  popup_widget_loop (widget=<optimized out>, do_timers=<optimized out>) at src/xmenu.c:606
#10 0x000000000047a2f3 in create_and_show_dialog (first_wv=<optimized out>, f=0x12cf948)
     at src/xmenu.c:1934
#11 xdialog_show (keymaps=false, error_name=<synthetic pointer>, header=..., f=0x12cf948, title=...)
     at src/xmenu.c:2142
#12 Fx_popup_dialog (position=..., contents=..., header=...) at src/xmenu.c:329
#13 0x00000000005a87fe in eval_sub (form=..., form@entry=...) at src/eval.c:2045
#14 0x00000000005ac3b2 in Feval (form=..., lexical=...) at src/eval.c:1901
#15 0x00000000005a95e6 in Ffuncall (nargs=<optimized out>, args=<optimized out>) at src/eval.c:2677
#16 0x00000000005ef203 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=140736668686848, args=
     0x7fffcf24d110, args@entry=0x7fffcf24db98) at src/bytecode.c:900
#17 0x00000000005a8e79 in funcall_lambda (fun=..., nargs=nargs@entry=2, arg_vector=arg_vector@entry=0x7fffcf24db98)
     at src/eval.c:2840
#18 0x00000000005a941b in Ffuncall (nargs=nargs@entry=3, args=0x7fffcf24db90) at src/eval.c:2735
#19 0x00000000005aac3b in Fapply (nargs=nargs@entry=2, args=args@entry=0x7fffcf24dc40)
     at src/eval.c:2208
#20 0x00000000005aadae in apply1 (fn=..., arg=..., arg@entry=...) at src/eval.c:2442
#21 0x00000000005a4fe2 in Fcall_interactively (function=..., record_flag=..., keys=...)
     at src/callint.c:377
#22 0x00000000005a95d5 in Ffuncall (nargs=<optimized out>, args=<optimized out>) at src/eval.c:2681
#23 0x00000000005ef203 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=140736668687872, args=
     0x7fffcf24d110, args@entry=0x7fffcf24dfb8) at src/bytecode.c:900
#24 0x00000000005a8e79 in funcall_lambda (fun=..., nargs=nargs@entry=1, arg_vector=arg_vector@entry=0x7fffcf24dfb8)
     at src/eval.c:2840
#25 0x00000000005a941b in Ffuncall (nargs=nargs@entry=2, args=args@entry=0x7fffcf24dfb0)
     at src/eval.c:2735
#26 0x00000000005a974a in call1 (fn=..., arg1=...) at src/eval.c:2468
#27 0x0000000000530a1c in command_loop_1 () at src/keyboard.c:1578
#28 0x00000000005a7603 in internal_condition_case (bfun=bfun@entry=0x530580 <command_loop_1>, handlers=..., hfun=hfun@entry=
     0x523e60 <cmd_error>) at src/eval.c:1193
#29 0x000000000051dd0e in command_loop_2 (ignore=..., ignore@entry=...) at src/keyboard.c:1167
#30 0x00000000005a74de in internal_catch (tag=..., func=func@entry=0x51dcf0 <command_loop_2>, arg=...)
     at src/eval.c:964
#31 0x000000000052380e in command_loop () at src/keyboard.c:1146
#32 recursive_edit_1 () at src/keyboard.c:779
#33 0x0000000000523b8e in Frecursive_edit () at src/keyboard.c:843
#34 0x000000000041a2a5 in main (argc=<optimized out>, argv=0x7fffcf24e5d8) at src/emacs.c:1531

Dmitry



^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: Weird behavior and crash with X and TTY frame
@ 2013-04-07 15:02 grischka
  0 siblings, 0 replies; 6+ messages in thread
From: grischka @ 2013-04-07 15:02 UTC (permalink / raw)
  To: jan.h.d; +Cc: emacs-devel

> This would be solvable if we had an independent Lisp loop per terminal, but it 
> is not so.
> There is only one Lisp loop, shared by all frames/terminals, and if one 
> frame/terminal suspends the loop, it is suspended for all frames/terminals.

Maybe you say "Lisp loop" because you think there can't be lisp
without a loop.  Thus you want to solve the problem with even
more loops while the problem is actually caused by the loop that
you already have.

--- gr




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

end of thread, other threads:[~2013-04-07 15:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-06 13:03 Weird behavior and crash with X and TTY frame Dmitry Antipov
2013-04-07 12:06 ` Jan Djärv
2013-04-07 15:18   ` Dmitry Antipov
2013-04-07 15:40     ` Eli Zaretskii
2013-04-07 15:36   ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2013-04-07 15:02 grischka

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