* bug#24119: 25.1; suspend-frame "freezes" Emacs under i3-wm
@ 2016-07-31 14:03 Benjamin Riefenstahl
2016-07-31 14:22 ` Noam Postavsky
2016-07-31 14:35 ` Eli Zaretskii
0 siblings, 2 replies; 8+ messages in thread
From: Benjamin Riefenstahl @ 2016-07-31 14:03 UTC (permalink / raw)
To: 24119
When I incidentially press C-z under i3-wm, Emacs stops. The window
stays up (there is no "iconify" under i3-wm), but the cursor does not
blink any more and keystrokes do not have an effect. The menus still
seem to work and once I have dropped down a menu, I can again edit text.
Still the cursor does not blink and it is hollow. Usually all goes back
to normal when I switch buffers or when I go to another program and than
back to Emacs.
The output of gdb's "bt full" in this state is below, the output of
"xbacktrace" is empty.
This is with Emacs from git, branch emacs-25, i3-wm 4.8, X.org 1.16.4,
other info see below after the stacktrace.
#0 0xb6330dc3 in ?? () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
No symbol table info available.
#1 0xb6329533 in pselect () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
No symbol table info available.
#2 0x081fa8cc in xg_select (fds_lim=9, rfds=0xbff19e60, wfds=0xbff19ee0, efds=0x0,
timeout=0xbff19d88, sigmask=0x0) at xgselect.c:113
all_rfds = {
fds_bits = {464, 0 <repeats 31 times>}
}
all_wfds = {
fds_bits = {0 <repeats 32 times>}
}
tmo = {
tv_sec = -1074685848,
tv_nsec = 136045870
}
tmop = 0xbff19d88
context = 0x8544550
have_wfds = <optimized out>
gfds_buf = {{
fd = 7,
events = 1,
revents = 0
}, {
fd = 6,
events = 1,
revents = 0
}, {
fd = 8,
events = 1,
revents = 0
}, {
fd = -1074685644,
events = 0,
}, {
fd = 13,
events = 13,
revents = 0
}, {
fd = 137618340,
events = 39060,
revents = 49137
}, {
fd = 138352243,
events = 58260,
revents = 2099
}, {
fd = 138352200,
events = 39680,
revents = 49137
}, {
fd = 138913520,
events = 12288,
revents = 2131
}, {
fd = -1233116855,
events = 58232,
revents = 2099
}, {
fd = 4323416,
events = 2,
revents = 0
}, {
fd = -1074685284,
events = 50207,
revents = 2072
}, {
fd = 137618324,
events = 58277,
revents = 2099
}, {
fd = 14,
events = 2,
revents = 0
}, {
fd = 0,
events = 39580,
revents = 49137
}, {
fd = 150078773,
events = 22224,
revents = 0
}, {
fd = 150209891,
events = 0,
revents = 0
}, {
fd = 0,
revents = 49137
}, {
fd = 12,
events = 58237,
revents = 2099
}, {
fd = 151153496,
events = 27272,
revents = 2306
}, {
fd = -1232916480,
events = 576,
revents = 2192
}, {
fd = -1074685288,
events = 58232,
revents = 2099
}, {
fd = 4323416,
events = 0,
revents = 0
}, {
fd = -1074685284,
events = 29423,
revents = 2073
}, {
fd = 142850336,
events = 13704,
revents = 0
}, {
fd = -11,
events = 0,
revents = 0
}, {
fd = 139671880,
events = 65008,
revents = 46655
}, {
fd = -1237320194,
events = 11091,
revents = 46606
}, {
fd = 6,
events = 39428,
revents = 49137
}, {
fd = -1237308187,
events = 13509,
revents = 46606
}, {
fd = 22224,
events = 0,
revents = 0
}, {
events = 15585,
revents = 2055
}, {
fd = 142850296,
events = 13704,
revents = 0
}, {
fd = 0,
events = 56034,
revents = 2072
}, {
fd = 1,
events = 39576,
revents = 49137
}, {
fd = 0,
events = 46819,
revents = 2071
}, {
fd = -1,
events = 18900,
revents = 2131
}, {
fd = 1,
events = 1,
revents = 0
}, {
fd = 151153152,
events = 27464,
revents = 2306
}, {
fd = 1077244,
events = 14752,
revents = 2131
}, {
fd = 4096,
events = 0,
revents = 0
}, {
fd = 0,
events = 39420,
revents = 49137
}, {
fd = 1,
events = 39456,
revents = 49137
}, {
fd = 76,
events = 0,
revents = 0
}, {
fd = 13704,
events = 22224,
revents = 0
fd = 0,
events = 0,
revents = 0
}, {
fd = 11,
events = 112,
revents = 0
}, {
fd = -1074685292,
events = 47134,
revents = 2072
}, {
fd = 13704,
events = 22224,
revents = 0
}, {
fd = 151153400,
events = 38656,
revents = 27953
}, {
fd = 4309048,
events = 1333,
revents = 2290
}, {
fd = -1233153767,
events = 12288,
revents = 46723
}, {
fd = 139631384,
events = 17744,
revents = 2132
}, {
fd = -1,
events = 8491,
revents = 46720
}, {
fd = 139965504,
events = 39576,
revents = 49137
}, {
fd = -1240585527,
events = 38656,
revents = 27953
}, {
fd = -1240477696,
events = 14664,
revents = 2131
}, {
fd = -1233153767,
events = 12288,
revents = 46723
}, {
fd = 139631384,
events = 17744,
}, {
fd = -1,
events = 49184,
revents = 46655
}, {
fd = 139965504,
events = 39704,
revents = 2130
}, {
fd = 139740496,
events = 8651,
revents = 46720
}, {
fd = -1232916480,
events = 576,
revents = 2192
}, {
fd = 1,
events = 56216,
revents = 46720
}, {
fd = 143655640,
events = 12288,
revents = 2131
}, {
fd = -1233116855,
events = 38656,
revents = 27953
}, {
fd = -1232916480,
events = 56198,
revents = 46720
}, {
fd = -1232916480,
events = 24955,
revents = 46720
}, {
fd = -1074685160,
events = 17744,
revents = 2132
}, {
fd = -1,
events = 24940,
revents = 46720
}, {
fd = -1232916480,
events = 576,
revents = 2192
}, {
fd = -1074685160,
events = 31995,
revents = 46718
}, {
fd = -1074685160,
revents = 46720
}, {
fd = -1232916480,
events = 38656,
revents = 27953
}, {
fd = 143655640,
events = 0,
revents = 0
}, {
fd = 0,
events = 38656,
revents = 27953
}, {
fd = -1232916480,
events = 576,
revents = 2192
}, {
fd = 1,
events = 36457,
revents = 46718
}, {
fd = 143655488,
events = 2,
revents = 0
}, {
fd = 0,
events = 36412,
revents = 46718
}, {
fd = -1242148864,
events = 39852,
revents = 49137
}, {
fd = 139740496,
events = 2700,
revents = 46767
}, {
fd = 143662280,
events = 56122,
revents = 46655
}, {
fd = -1229414400,
events = 2652,
revents = 46767
}, {
fd = 143662280,
events = 40960,
revents = 46776
}, {
fd = -1074685012,
events = 38012,
revents = 46863
}, {
events = 40960,
revents = 46776
}, {
fd = 2,
events = 18858,
revents = 2071
}, {
fd = 0,
events = 731,
revents = 2292
}, {
fd = -1074685012,
events = 39303,
revents = 46762
}, {
fd = 2147483647,
events = 0,
revents = 0
}, {
fd = -1,
events = 38984,
revents = 46762
}, {
fd = 139740496,
events = 315,
revents = 2184
}, {
fd = 2,
events = 9430,
revents = 2073
}, {
fd = 10,
events = 0,
revents = 0
}, {
fd = 0,
events = 38656,
revents = 27953
}, {
fd = 139602528,
events = 27272,
revents = 2306
}, {
fd = 151153352,
events = 0,
revents = 0
}, {
fd = 0,
events = 0,
revents = 0
}, {
fd = 3,
events = 1,
revents = 0
fd = -1074684832,
events = 1,
revents = 0
}, {
fd = 150209243,
events = 0,
revents = 0
}, {
fd = 0,
events = 739,
revents = 2292
}, {
fd = 0,
events = 3,
revents = 0
}, {
fd = 0,
events = 2,
revents = 0
}, {
fd = 0,
events = 40128,
revents = 49137
}, {
fd = -1074684736,
events = 723,
revents = 2292
}, {
fd = 3,
events = 11415,
revents = 2066
}, {
fd = -1074684856,
events = 22430,
revents = 0
}, {
fd = 636,
events = 24511,
revents = 1
}, {
fd = 350000,
events = 0,
revents = 0
}, {
fd = -1074683784,
events = 9736,
revents = 2073
}, {
fd = 0,
events = 723,
revents = 2292
}, {
fd = 3,
events = 20635,
}, {
fd = -1074684744,
events = 636,
revents = 22430
}, {
fd = 90047350,
events = 635,
revents = 22430
}, {
fd = 590943078,
events = 0,
revents = 0
}, {
fd = 0,
events = 19956,
revents = 2066
}, {
fd = 0,
events = 40112,
revents = 49137
}, {
fd = 3,
events = 40231,
revents = 23
}, {
fd = 140889512,
events = 1333,
revents = 2290
}, {
fd = 499104272,
events = 0,
revents = 0
}, {
fd = 1547559,
events = 0,
revents = 0
}, {
fd = 1469973115,
events = 4966,
revents = 9017
}, {
fd = 150209235,
events = 739,
revents = 2292
}, {
fd = 3,
events = 3,
revents = 0
}, {
fd = 1469973115,
events = 4966,
revents = 9017
}, {
fd = 0,
revents = 7615
}}
gfds = <optimized out>
gfds_size = <optimized out>
n_gfds = <optimized out>
retval = 0
our_fds = 0
max_fds = 8
context_acquired = <optimized out>
i = <optimized out>
nfds = <optimized out>
tmo_in_millisec = -1
need_to_dispatch = <optimized out>
sa_avail = <optimized out>
sa_must_free = <optimized out>
#3 0x081c83fc in wait_reading_process_output (time_limit=<optimized out>, nsecs=0, read_kbd=-1,
do_display=true, wait_for_cell=0, wait_proc=0x0, just_wait_proc=0) at process.c:4831
process_skipped = <optimized out>
channel = <optimized out>
nfds = <optimized out>
Available = {
fds_bits = {80, 0 <repeats 31 times>}
}
Writeok = {
fds_bits = {0 <repeats 32 times>}
}
check_write = <optimized out>
check_delay = <optimized out>
no_avail = <optimized out>
xerrno = 11
proc = <optimized out>
timeout = {
tv_sec = 0,
tv_nsec = 499104272
}
end_time = {
tv_sec = 1469973142,
tv_nsec = 589870637
}
timer_delay = <optimized out>
got_output_end_time = <optimized out>
wait = TIMEOUT
got_some_output = -1
now = {
tv_sec = 0,
tv_nsec = -1
}
#4 0x08061849 in sit_for (timeout=122, reading=true, display_option=1) at dispnew.c:5762
sec = 30
nsec = 0
do_display = true
#5 0x0812ad7e in read_char (commandflag=1, map=150212091, prev_event=0, used_mouse_menu=0xbff1a52b,
end_time=0x0) at keyboard.c:2714
tem0 = -514
local_getcjmp = {{
__jmpbuf = {1, 0, 139996144, 0, 74246092, -1039961437},
__mask_was_saved = 0,
__saved_mask = {
__val = {1, 14736, 152122696, 3002, 3220284408, 1, 150706020, 749, 3220284144,
4294967295, 152122696, 3002, 3220284408, 136134786, 151957259, 14736, 1, 4294967295,
152122696, 3002, 4294967295, 135791145, 151957259, 14736, 152122701, 0, 3220284228,
3220284228, 3, 1833051, 152122696, 139986917}
}
}}
save_jump = {{
__jmpbuf = {0, 0, 0, 0, 0, 0},
__mask_was_saved = 0,
__saved_mask = {
__val = {0 <repeats 32 times>}
}
}}
save = 139045248
previous_echo_area_message = 0
also_record = 0
reread = false
recorded = false
polling_stopped_here = false
#6 0x0812ba04 in read_key_sequence (keybuf=0xfffffdfe, prompt=-1074685888, dont_downcase_last=192,
can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=false,
bufsize=<optimized out>) at keyboard.c:9063
interrupted_kboard = 0x0
used_mouse_menu = false
fkey = {
parent = 141434355,
map = 141434355,
start = 0,
end = 0
}
keytran = {
parent = 139348755,
map = 139348755,
start = 0,
end = 0
}
indec = {
parent = 141434363,
map = 141434363,
start = 0,
end = 0
}
#7 0x0812d37c in command_loop_1 () at keyboard.c:1365
keybuf = {106, 446, 14208, 152197003, -1074682345, 135415282, 215528, 152197003, 137017684, 0,
-1074682345, 0, 0, 135415545, 152197003, -1074682345, 1, 135415597, 141884563, 15842327,
-1074681992, 0, 141884563, 0, 1, 135836368, 9528, 1, -1074681992, 135397824}
i = 0
prev_buffer = 0x9113548
#8 0x0818b424 in internal_condition_case (bfun=0x812d1b0 <command_loop_1>, handlers=9528,
hfun=0x8124610 <cmd_error>) at eval.c:1309
c = <optimized out>
#9 0x0812019f in command_loop_2 (ignore=0) at keyboard.c:1107
val = -514
#10 0x0818b3bb in internal_catch (tag=22920, func=0x8120180 <command_loop_2>, arg=0) at eval.c:1074
val = -514
c = <optimized out>
#11 0x0812015a in command_loop () at keyboard.c:1086
No locals.
#12 0x08124282 in recursive_edit_1 () at keyboard.c:692
val = -514
#13 0x08124567 in Frecursive_edit () at keyboard.c:763
buffer = <optimized out>
#14 0x080580a9 in main (argc=<optimized out>, argv=0xbff1a824) at emacs.c:1626
dummy = -1235947096
stack_bottom_variable = 0 '\000'
do_initial_setlocale = <optimized out>
dumping = <optimized out>
skip_args = 0
rlim = {
rlim_cur = 8388608,
rlim_max = 18446744073709551615
}
no_loadup = <optimized out>
junk = 0x0
dname_arg = 0x0
ch_to_dir = 0x0
original_pwd = <optimized out>
In GNU Emacs 25.1.2 (i686-pc-linux-gnu, GTK+ Version 2.24.25)
of 2016-07-31 built on justinian
Repository revision: b275cc76f0c5ab49e81445fcc3420c8772aefd42
Windowing system distributor 'The X.Org Foundation', version 11.0.11604000
System Description: Debian GNU/Linux 8.5 (jessie)
Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GCONF GSETTINGS NOTIFY
LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK2 X11
Important settings:
value of $LANG: en_US.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.
Quit [2 times]
Type C-x 1 to delete the help window.
Load-path shadows:
None found.
Features:
(shadow sort mail-extr cl-extra 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 dbusbind inotify dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty make-network-process emacs)
Memory information:
((conses 8 88857 9362)
(symbols 24 20008 0)
(miscs 20 57 180)
(strings 16 14862 3408)
(string-bytes 1 413938)
(vectors 8 12494)
(vector-slots 4 447083 8134)
(floats 8 170 170)
(intervals 28 217 10)
(buffers 520 20)
(heap 1024 12141 1324))
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#24119: 25.1; suspend-frame "freezes" Emacs under i3-wm
2016-07-31 14:03 bug#24119: 25.1; suspend-frame "freezes" Emacs under i3-wm Benjamin Riefenstahl
@ 2016-07-31 14:22 ` Noam Postavsky
2016-07-31 14:35 ` Eli Zaretskii
1 sibling, 0 replies; 8+ messages in thread
From: Noam Postavsky @ 2016-07-31 14:22 UTC (permalink / raw)
To: Benjamin Riefenstahl; +Cc: 24119
On Sun, Jul 31, 2016 at 10:03 AM, Benjamin Riefenstahl
<b.riefenstahl@turtle-trading.net> wrote:
> When I incidentially press C-z under i3-wm, Emacs stops. The window
> stays up (there is no "iconify" under i3-wm), but the cursor does not
> blink any more and keystrokes do not have an effect. The menus still
> seem to work and once I have dropped down a menu, I can again edit text.
> Still the cursor does not blink and it is hollow. Usually all goes back
> to normal when I switch buffers or when I go to another program and than
> back to Emacs.
Similar to #23583, I have different (though still odd) behaviour. The
cursor stops blinking and turns hollow as if Emacs lost focus, but it
still reponds to keystrokes normally. Switching programs/workspaces
back and forth brings things back to normal. Also hitting C-g in a
minibuffer prompt(!?)
Same behaviour with both emacs-25 and master.
i3 4.12, X.org 1.18.3
I configured --with-x-toolkit=lucid, not gtk, perhaps that's important.
Configured using:
'configure --cache-file=../debug-config.cache 'CFLAGS=-O0 -g3
-march=native' --enable-checking MAKEINFO=makeinfo-4.13a
--with-x-toolkit=lucid --without-toolkit-scroll-bars --with-gif=no
--with-jpeg=no'
Configured features:
XPM TIFF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL
GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB LUCID X11 LIBSYSTEMD
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#24119: 25.1; suspend-frame "freezes" Emacs under i3-wm
2016-07-31 14:03 bug#24119: 25.1; suspend-frame "freezes" Emacs under i3-wm Benjamin Riefenstahl
2016-07-31 14:22 ` Noam Postavsky
@ 2016-07-31 14:35 ` Eli Zaretskii
2016-07-31 14:57 ` Benjamin Riefenstahl
1 sibling, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2016-07-31 14:35 UTC (permalink / raw)
To: Benjamin Riefenstahl; +Cc: 24119
> From: Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
> Date: Sun, 31 Jul 2016 16:03:33 +0200
>
> When I incidentially press C-z under i3-wm, Emacs stops. The window
> stays up (there is no "iconify" under i3-wm), but the cursor does not
> blink any more and keystrokes do not have an effect. The menus still
> seem to work and once I have dropped down a menu, I can again edit text.
> Still the cursor does not blink and it is hollow. Usually all goes back
> to normal when I switch buffers or when I go to another program and than
> back to Emacs.
>
> The output of gdb's "bt full" in this state is below, the output of
> "xbacktrace" is empty.
Thanks. Can you please recreate the problem in an unoptimized build,
and post a backtrace from that? Backtraces from optimized builds are
frequently misleading and/or missing vital information.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#24119: 25.1; suspend-frame "freezes" Emacs under i3-wm
2016-07-31 14:35 ` Eli Zaretskii
@ 2016-07-31 14:57 ` Benjamin Riefenstahl
2016-07-31 16:21 ` Eli Zaretskii
0 siblings, 1 reply; 8+ messages in thread
From: Benjamin Riefenstahl @ 2016-07-31 14:57 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 24119
Eli Zaretskii writes:
> Thanks. Can you please recreate the problem in an unoptimized build,
> and post a backtrace from that? Backtraces from optimized builds are
> frequently misleading and/or missing vital information.
Sure, see below.
#0 0xb6331dc3 in ?? () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
No symbol table info available.
#1 0xb632a533 in pselect () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
No symbol table info available.
#2 0x08280216 in xg_select (fds_lim=9, rfds=0xbfa5c204, wfds=0xbfa5c184, efds=0x0,
timeout=0xbfa5c178, sigmask=0x0) at xgselect.c:113
all_rfds = {
fds_bits = {464, 0 <repeats 31 times>}
}
all_wfds = {
fds_bits = {0 <repeats 32 times>}
}
tmo = {
tv_sec = 167607947,
tv_nsec = -1079656808
}
tmop = 0xbfa5c178
context = 0x9e6d5b0
have_wfds = true
gfds_buf = {{
fd = 7,
events = 1,
revents = 0
}, {
fd = 6,
events = 1,
revents = 0
}, {
fd = 8,
events = 1,
revents = 0
}, {
fd = 139526984,
events = 17565,
}, {
fd = 13704,
events = 47800,
revents = 49061
}, {
fd = 136168266,
events = 13704,
revents = 0
}, {
fd = 22224,
events = 0,
revents = 0
}, {
fd = 0,
events = 20606,
revents = 2070
}, {
fd = 22224,
events = 47864,
revents = 49061
}, {
fd = 136170433,
events = 13704,
revents = 0
}, {
fd = 22224,
events = 9,
revents = 0
}, {
fd = -1079657768,
events = 18740,
revents = 2070
}, {
fd = 167145149,
events = 47928,
revents = 49061
}, {
fd = 136176230,
events = 27108,
revents = 2127
}, {
fd = 0,
events = 0,
revents = 0
}, {
fd = -1079657736,
events = 17565,
revents = 2070
}, {
fd = 139513280,
events = 47928,
revents = 49061
}, {
fd = 136284775,
revents = 0
}, {
fd = 22224,
events = 47928,
revents = 49061
}, {
fd = 136168188,
events = 982,
revents = 0
}, {
fd = 6,
events = 47928,
revents = 49061
}, {
fd = 136283574,
events = 1691,
revents = 2556
}, {
fd = 0,
events = 13704,
revents = 0
}, {
fd = 0,
events = 17565,
revents = 2070
}, {
fd = 0,
events = 48488,
revents = 49061
}, {
fd = 136521996,
events = 7,
revents = 0
}, {
fd = 0,
events = 48488,
revents = 49061
}, {
fd = 136524951,
events = 41861,
revents = 2106
}, {
fd = 0,
events = 2,
revents = 0
}, {
fd = 0,
events = 26,
revents = 0
}, {
fd = 138060660,
events = 48488,
revents = 49061
}, {
events = 41844,
revents = 2106
}, {
fd = -1079657576,
events = 48488,
revents = 49061
}, {
fd = 136519287,
events = 65535,
revents = 32767
}, {
fd = 0,
events = 65535,
revents = 65535
}, {
fd = -1230329784,
events = 54704,
revents = 2534
}, {
fd = 3,
events = 62112,
revents = 2114
}, {
fd = 138060660,
events = 61930,
revents = 2114
}, {
fd = 0,
events = 0,
revents = 0
}, {
fd = 564762112,
events = 58568,
revents = 2160
}, {
fd = 3,
events = 40857,
revents = 46762
}, {
fd = -1229410304,
events = 54704,
revents = 2534
}, {
fd = 0,
events = 3,
revents = 0
}, {
fd = -1230327780,
events = 54704,
revents = 2534
}, {
fd = 2147483647,
events = 58568,
revents = 2160
fd = 3,
events = 46532,
revents = 46776
}, {
fd = -1230266224,
events = 0,
revents = 0
}, {
fd = 0,
events = 46532,
revents = 46776
}, {
fd = 2147483647,
events = 0,
revents = 0
}, {
fd = 564762112,
events = 16384,
revents = 46723
}, {
fd = 166443520,
events = 44763,
revents = 46762
}, {
fd = -1229410304,
events = 54704,
revents = 2534
}, {
fd = 0,
events = 48248,
revents = 49061
}, {
fd = -1230327474,
events = 54704,
revents = 2534
}, {
fd = -1229410304,
events = 0,
revents = 0
}, {
fd = -1230327451,
events = 11807,
revents = 2167
}, {
fd = 167511427,
events = 48216,
revents = 49061
}, {
fd = 135749784,
events = 0,
revents = 0
}, {
fd = -1229410304,
events = 48268,
}, {
fd = -1223711620,
events = 41911,
revents = 46888
}, {
fd = 0,
events = 48248,
revents = 49061
}, {
fd = 135503759,
events = 54704,
revents = 2534
}, {
fd = 166386016,
events = 65525,
revents = 65535
}, {
fd = 0,
events = 51528,
revents = 2533
}, {
fd = -1237316112,
events = 3582,
revents = 46656
}, {
fd = -1240581293,
events = 6,
revents = 0
}, {
fd = -1079657244,
events = 15589,
revents = 46656
}, {
fd = -1240578875,
events = 45600,
revents = 2532
}, {
fd = 134,
events = 2275,
revents = 2097
}, {
fd = 0,
events = 0,
revents = 0
}, {
fd = 0,
events = 0,
revents = 0
}, {
fd = 0,
events = 0,
revents = 0
}, {
fd = 0,
revents = 0
}, {
fd = 167145568,
events = 65535,
revents = 65535
}, {
fd = 166058452,
events = 0,
revents = 0
}, {
fd = 1,
events = 0,
revents = 0
}, {
fd = 167145149,
events = 22224,
revents = 0
}, {
fd = 166054304,
events = 4096,
revents = 0
}, {
fd = 0,
events = 0,
revents = 0
}, {
fd = -1079657252,
events = 1,
revents = 0
}, {
fd = -1079657216,
events = 76,
revents = 0
}, {
fd = 0,
events = 54704,
revents = 2534
}, {
fd = 0,
events = 48408,
revents = 49061
}, {
fd = 135749694,
events = 54704,
revents = 2534
}, {
fd = 13704,
events = 48456,
revents = 49061
}, {
fd = 136328803,
events = 13704,
revents = 0
}, {
events = 0,
revents = 0
}, {
fd = 564762112,
events = 18632,
revents = 2070
}, {
fd = 143268013,
events = 41241,
revents = 46719
}, {
fd = -1232912384,
events = 11840,
revents = 2533
}, {
fd = 166122928,
events = 65535,
revents = 65535
}, {
fd = -1233112789,
events = 17784,
revents = 2538
}, {
fd = 7,
events = 15049,
revents = 46606
}, {
fd = 564762112,
events = 57344,
revents = 46607
}, {
fd = 166054216,
events = 41241,
revents = 46719
}, {
fd = -1232912384,
events = 11840,
revents = 2533
}, {
fd = 166122928,
events = 65535,
revents = 65535
}, {
fd = -1237331936,
events = 17784,
revents = 2538
}, {
fd = 166014528,
events = 54704,
revents = 2534
}, {
fd = -1233112629,
events = 16384,
revents = 46723
fd = 166443520,
events = 1,
revents = 0
}, {
fd = -1233065064,
events = 47768,
revents = 2539
}, {
fd = 166051840,
events = 12617,
revents = 46720
}, {
fd = 564762112,
events = 16384,
revents = 46723
}, {
fd = -1233065082,
events = 16384,
revents = 46723
}, {
fd = -1233096325,
events = 48632,
revents = 49061
}, {
fd = 166122928,
events = 65535,
revents = 65535
}, {
fd = -1233096340,
events = 16384,
revents = 46723
}, {
fd = 166443520,
events = 48632,
revents = 49061
}, {
fd = -1233220357,
events = 48632,
revents = 49061
}, {
fd = -1233065146,
events = 16384,
revents = 46723
}, {
fd = 564762112,
events = 47768,
revents = 2539
}, {
fd = 0,
events = 0,
revents = 0
}, {
fd = 564762112,
events = 16384,
}, {
fd = 166443520,
events = 1,
revents = 0
}, {
fd = -1233215895,
events = 47616,
revents = 2539
}, {
fd = 2,
events = 40247,
revents = 13737
}, {
fd = -1233215940,
events = 24576,
revents = 46582
}, {
fd = -1079656820,
events = 54704,
revents = 2534
}, {
fd = -1230038388,
events = 11608,
revents = 2533
}, {
fd = -1237324998,
events = 45056,
revents = 46776
}, {
fd = -1230038436,
events = 11608,
revents = 2533
}, {
fd = -1229410304,
events = 48780,
revents = 49061
}, {
fd = -1223711620,
events = 6727,
revents = 46767
}, {
fd = -1229410304,
events = 54704,
revents = 2534
}, {
fd = -1079656856,
events = 17715,
revents = 2070
}, {
fd = 167607955,
events = 48792,
revents = 49061
}, {
fd = 136131980,
revents = 2557
}}
gfds = 0xbfa5ba74
gfds_size = 128
n_gfds = 3
retval = 0
our_fds = 0
max_fds = 8
context_acquired = true
i = 3
nfds = 139513280
tmo_in_millisec = -1
need_to_dispatch = 8
sa_avail = 16384
sa_count = 4
sa_must_free = false
#3 0x0823ec78 in wait_reading_process_output (time_limit=30, nsecs=0, read_kbd=-1, do_display=true,
wait_for_cell=0, wait_proc=0x0, just_wait_proc=0) at process.c:4831
process_skipped = false
channel = 1024
nfds = 0
Available = {
fds_bits = {80, 0 <repeats 31 times>}
}
Writeok = {
fds_bits = {0 <repeats 32 times>}
}
check_write = true
check_delay = 0
no_avail = false
xerrno = 11
proc = -1079655704
timeout = {
tv_sec = 0,
tv_nsec = 498959630
}
end_time = {
tv_sec = 1469976810,
tv_nsec = 399266284
}
timer_delay = {
tv_sec = 0,
tv_nsec = 498959630
}
got_output_end_time = {
tv_sec = 1469976810,
tv_nsec = 399266284
}
wait = TIMEOUT
got_some_output = -1
count = 3
now = {
tv_sec = 0,
tv_nsec = -1
#4 0x080629f2 in sit_for (timeout=122, reading=true, display_option=1) at dispnew.c:5762
sec = 30
nsec = 0
do_display = true
#5 0x0816e7ef in read_char (commandflag=1, map=167511299, prev_event=0, used_mouse_menu=0xbfa5c5df,
end_time=0x0) at keyboard.c:2714
tem0 = -1079655048
timeout = 30
delay_level = 4
buffer_size = 1
c = 0
jmpcount = 3
local_getcjmp = {{
__jmpbuf = {0, 8388608, 0, -1079655016, -1964718513, -324554976},
__mask_was_saved = 0,
__saved_mask = {
__val = {27640968, 40, 3215311808, 0, 3215312056, 136168112, 142272912, 142272912,
3215312088, 135787174, 0, 3, 0, 3215312056, 135677085, 139513280, 3215312152,
135796804, 0, 14736, 0, 3215312088, 135677085, 139513280, 3215312152, 136284775, 0,
167511291, 3215312152, 136131980, 167511291, 0}
}
}}
save_jump = {{
__jmpbuf = {0, 0, 0, 0, 0, 0},
__mask_was_saved = 0,
__saved_mask = {
__val = {0 <repeats 32 times>}
}
}}
tem = -1079655096
save = 135677085
previous_echo_area_message = 0
also_record = 0
reread = false
recorded = false
polling_stopped_here = false
orig_kboard = 0x9eabb08
#6 0x08179c54 in read_key_sequence (keybuf=0xbfa5c6e4, bufsize=30, prompt=0,
dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true,
prevent_redisplay=false) at keyboard.c:9063
interrupted_kboard = 0x9eabb08
interrupted_frame = 0x9f67060
key = -1079654756
used_mouse_menu = false
echo_local_start = 0
last_real_key_start = 0
keys_local_start = 0
new_binding = 0
count = 3
t = 0
echo_start = 0
keys_start = 0
current_binding = 167511299
first_event = 0
mock_input = 0
fkey = {
parent = 141781043,
map = 141781043,
start = 0,
end = 0
}
keytran = {
parent = 139692819,
map = 139692819,
start = 0,
end = 0
}
indec = {
parent = 141781139,
map = 141781139,
start = 0,
end = 0
}
shift_translated = false
delayed_switch_frame = 0
original_uppercase = -1079654911
original_uppercase_position = -1
dummyflag = false
starting_buffer = 0x85408f8
fake_prefixed_keys = 0
#7 0x0816ba86 in command_loop_1 () at keyboard.c:1365
cmd = 257264
keybuf = {442, 0, -1079654664, 135677085, 139513280, -1079654632, 135704696, 0, 142140523, 0,
-1079654632, 135677085, 139513280, -1079654584, 136268725, 0, -1079654593, -1079654584,
136268768, 8388608, 0, -1079654552, 165982544, 3, 141565579, -1079654536, 136268564, 9528,
1, 0}
i = 1
prev_modiff = 27
prev_buffer = 0x85408f8
already_adjusted = false
#8 0x081f4971 in internal_condition_case (bfun=0x816b641 <command_loop_1>, handlers=9528,
hfun=0x816ae1d <cmd_error>) at eval.c:1309
val = 9528
c = 0x9e4b150
#9 0x0816b332 in command_loop_2 (ignore=0) at keyboard.c:1107
val = 2
#10 0x081f438e in internal_catch (tag=22920, func=0x816b308 <command_loop_2>, arg=0) at eval.c:1074
val = 22920
c = 0x9e4b080
#11 0x0816b2c5 in command_loop () at keyboard.c:1086
No locals.
#12 0x0816aa49 in recursive_edit_1 () at keyboard.c:692
count = 1
val = -1079654296
#13 0x0816abdc in Frecursive_edit () at keyboard.c:763
count = 0
buffer = 0
#14 0x08168cbf in main (argc=2, argv=0xbfa5c9c4) at emacs.c:1626
stack_bottom_variable = 0 '\000'
do_initial_setlocale = true
dumping = false
skip_args = 0
rlim = {
rlim_cur = 8388608,
rlim_max = 18446744073709551615
}
no_loadup = false
junk = 0x0
dname_arg = 0x0
ch_to_dir = 0x0
original_pwd = 0x0
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#24119: 25.1; suspend-frame "freezes" Emacs under i3-wm
2016-07-31 14:57 ` Benjamin Riefenstahl
@ 2016-07-31 16:21 ` Eli Zaretskii
2016-07-31 16:39 ` Eli Zaretskii
0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2016-07-31 16:21 UTC (permalink / raw)
To: Benjamin Riefenstahl; +Cc: 24119
> From: Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
> Cc: 24119@debbugs.gnu.org
> Date: Sun, 31 Jul 2016 16:57:58 +0200
>
> Eli Zaretskii writes:
> > Thanks. Can you please recreate the problem in an unoptimized build,
> > and post a backtrace from that? Backtraces from optimized builds are
> > frequently misleading and/or missing vital information.
>
> Sure, see below.
>
> #0 0xb6331dc3 in ?? () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
> No symbol table info available.
> #1 0xb632a533 in pselect () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
> No symbol table info available.
> #2 0x08280216 in xg_select (fds_lim=9, rfds=0xbfa5c204, wfds=0xbfa5c184, efds=0x0,
> timeout=0xbfa5c178, sigmask=0x0) at xgselect.c:113
> all_rfds = {
> fds_bits = {464, 0 <repeats 31 times>}
> }
> all_wfds = {
> fds_bits = {0 <repeats 32 times>}
> }
> tmo = {
> tv_sec = 167607947,
> tv_nsec = -1079656808
> }
> [...]
> #3 0x0823ec78 in wait_reading_process_output (time_limit=30, nsecs=0, read_kbd=-1, do_display=true,
> wait_for_cell=0, wait_proc=0x0, just_wait_proc=0) at process.c:4831
> process_skipped = false
> channel = 1024
> nfds = 0
> Available = {
> fds_bits = {80, 0 <repeats 31 times>}
> }
> Writeok = {
> fds_bits = {0 <repeats 32 times>}
> }
> [...]
> #4 0x080629f2 in sit_for (timeout=122, reading=true, display_option=1) at dispnew.c:5762
> sec = 30
> nsec = 0
> do_display = true
> #5 0x0816e7ef in read_char (commandflag=1, map=167511299, prev_event=0, used_mouse_menu=0xbfa5c5df,
> end_time=0x0) at keyboard.c:2714
This looks like Emacs is just waiting for input. Could you look at
the status of the various threads in the process, and tell what you
see?
Thanks.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#24119: 25.1; suspend-frame "freezes" Emacs under i3-wm
2016-07-31 16:21 ` Eli Zaretskii
@ 2016-07-31 16:39 ` Eli Zaretskii
2016-07-31 18:00 ` Benjamin Riefenstahl
0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2016-07-31 16:39 UTC (permalink / raw)
To: b.riefenstahl; +Cc: 24119
> Date: Sun, 31 Jul 2016 19:21:46 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: 24119@debbugs.gnu.org
>
> Could you look at the status of the various threads in the process,
> and tell what you see?
In case it wasn't clear, I meant to look at the threads while Emacs is
left to its own devices, before attaching GDB. IOW, press C-z, and
then use some system tool to display what each thread does.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#24119: 25.1; suspend-frame "freezes" Emacs under i3-wm
2016-07-31 16:39 ` Eli Zaretskii
@ 2016-07-31 18:00 ` Benjamin Riefenstahl
2016-07-31 19:32 ` Benjamin Riefenstahl
0 siblings, 1 reply; 8+ messages in thread
From: Benjamin Riefenstahl @ 2016-07-31 18:00 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 24119
Eli Zaretskii writes:
> In case it wasn't clear, I meant to look at the threads while Emacs is
> left to its own devices, before attaching GDB. IOW, press C-z, and
> then use some system tool to display what each thread does.
Are you looking for something particular? This is what "ps -fL" says:
UID PID PPID LWP C NLWP STIME TTY STAT TIME CMD
benny 7989 3441 7989 0 4 16:52 pts/1 Sl 0:06 ./emacs -Q
benny 7989 3441 8004 0 4 16:52 pts/1 Sl 0:00 ./emacs -Q
benny 7989 3441 8016 0 4 16:52 pts/1 Sl 0:00 ./emacs -Q
benny 7989 3441 8017 0 4 16:52 pts/1 Sl 0:00 ./emacs -Q
The first of these is the main thread, its TIME goes up when I type.
When I press C-z not much happens. In HTOP tool, which I also tried,
the columns RES and SHR temporarily go up when I press C-z, but that is
hardly surprising.
> This looks like Emacs is just waiting for input.
Yeah.
C-z boils down to iconify-frame, and calling that directly does indeed
show the same behaviour.
To speculate, I would guess that Emacs just disables some stuff inside
iconify-frame, because it expects its request for iconification to be
honored by the WM. I will try to trace that further.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#24119: 25.1; suspend-frame "freezes" Emacs under i3-wm
2016-07-31 18:00 ` Benjamin Riefenstahl
@ 2016-07-31 19:32 ` Benjamin Riefenstahl
0 siblings, 0 replies; 8+ messages in thread
From: Benjamin Riefenstahl @ 2016-07-31 19:32 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 24119
Benjamin Riefenstahl writes:
> To speculate, I would guess that Emacs just disables some stuff inside
> iconify-frame, because it expects its request for iconification to be
> honored by the WM. I will try to trace that further.
iconify-frame calls x_iconify_frame. This calls in order
FRAME_DISPLAY_INFO (f)->x_highlight_frame = 0;
x_set_bitmap_icon (f);
SET_FRAME_VISIBLE (f, 0);
SET_FRAME_ICONIFIED (f, true);
I commented these out individually, and the result is that setting
x_highlight_frame causes the cursor to stop blinking and stay hollow and
SET_FRAME_VISIBLE (f,0) causes further keyboard input to be buffered and
not yet executed. There are three implementations inside this function,
for GTK, for Xt and without any toolkit, but all versions call these
functions.
The GTK documentation says to register for the signal
"window-state-event" to wait for the WM to react. But Emacs already
handles the underlying relevant X11-Event "UnmappedNotify" and it calls
SET_FRAME_VISIBLE (f, 0) and SET_FRAME_ICONIFIED (f, true) there again.
x_highlight_frame seems to be structured the same as
x_make_frame_visible and x_make_frame_invisible just above it. I have
not yet investigated where and how those functions are used.
I would suggest to remove the calls to SET_FRAME_VISIBLE and
SET_FRAME_ICONIFIED from x_iconify_frame and to move the setting of
x_highlight_frame to the handling of "UnmappedNotify". I would do this
for all three implementations of x_iconify_frame.
I just did preliminary tests with the GTK implementation (i.e. USE_GTK)
and with the Mate-WM and it seems to work. Of course, this would have
to be tested with the other implementations of x_highlight_frame and
with other WMs, at least Gnome 3 and KDE.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2016-07-31 19:32 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-31 14:03 bug#24119: 25.1; suspend-frame "freezes" Emacs under i3-wm Benjamin Riefenstahl
2016-07-31 14:22 ` Noam Postavsky
2016-07-31 14:35 ` Eli Zaretskii
2016-07-31 14:57 ` Benjamin Riefenstahl
2016-07-31 16:21 ` Eli Zaretskii
2016-07-31 16:39 ` Eli Zaretskii
2016-07-31 18:00 ` Benjamin Riefenstahl
2016-07-31 19:32 ` Benjamin Riefenstahl
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).