all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#62291: 30.0.50; PGTK copy + paste to other app problem
@ 2023-03-20 10:33 Andrew Tropin
  2023-03-20 11:05 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 26+ messages in thread
From: Andrew Tropin @ 2023-03-20 10:33 UTC (permalink / raw)
  To: 62291

Hello dear maintainers!

I use pgtk emacs on wayland (sway) and a few months ago started facing a
problem with copy/pasting to ungoogled-chromium.  Tried to find relevant
reports on bug-gun-emacs, but didn't succeed.

Way to reproduce and observed behavior:

0. guix shell emacs-next-pgtk (or build a fresh emacs with pgtk from master).
1. Launch emacs -Q.
2. Select any text and optionally copy it with M-w.
3. Paste it to chromium address bar with middle mouse or C-v if it was
copied with M-w.
4. Both chromium and emacs get frozen for some time.
5. After some time Emacs crashes, chromium unfreezes.
6. A few times I saw "waiting for reply from selection owner." in emacs
echo area, but can't reproduce it right now.

- The same workflow, but with foot terminal instead of emacs works fine.
- The same version of Emacs, but built without PGTK, works fine too:
guix shell emacs-next-tree-sitter -- emacs -Q
- Copy pasting from emacs-next-pgtk to alacritty and icecat works fine.

The report of this problem on bug-guix and a backtrace of segfault:
https://yhetil.org/guix-bugs/871qqwfr5d.fsf@trop.in/

A temporary workaround we use (it solves M-w + C-v, but not selection +
middle mouse):
https://git.sr.ht/~abcdw/rde/commit/b6aef2d8b34d1166f33629b4b3a1a0f5751f90f9

Let me know if I can provide any additional information or testing.


In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.30, cairo version 1.16.0)
System Description: Guix System

Configured using:
 'configure
 CONFIG_SHELL=/gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8/bin/bash
 SHELL=/gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8/bin/bash
 --prefix=/gnu/store/701xsj5ngwasz7i962q5mdyqklvfhvx0-emacs-next-pgtk-30.0.50-0.ac7ec87
 --enable-fast-install --with-pgtk --with-modules --with-cairo
 --with-native-compilation --disable-build-details'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP
NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER XIM GTK3 ZLIB

Important settings:
  value of $EMACSLOADPATH: /home/bob/.guix-home/profile/share/emacs/site-lisp:/gnu/store/701xsj5ngwasz7i962q5mdyqklvfhvx0-emacs-next-pgtk-30.0.50-0.ac7ec87/share/emacs/30.0.50/lisp:/gnu/store/701xsj5ngwasz7i962q5mdyqklvfhvx0-emacs-next-pgtk-30.0.50-0.ac7ec87/share/emacs/30.0.50/lisp
  value of $EMACSNATIVELOADPATH: /home/bob/.guix-home/profile/lib/emacs/native-site-lisp
  value of $LANG: en_US.utf8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-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
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Memory information:
((conses 16 77880 5562)
 (symbols 48 7125 0)
 (strings 32 19872 2975)
 (string-bytes 1 650293)
 (vectors 16 16564)
 (vector-slots 8 328550 6303)
 (floats 8 27 24)
 (intervals 56 222 0)
 (buffers 984 11))

-- 
Best regards,
Andrew Tropin





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

* bug#62291: 30.0.50; PGTK copy + paste to other app problem
  2023-03-20 10:33 bug#62291: 30.0.50; PGTK copy + paste to other app problem Andrew Tropin
@ 2023-03-20 11:05 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-03-20 11:17   ` Andrew Tropin
  0 siblings, 1 reply; 26+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-03-20 11:05 UTC (permalink / raw)
  To: Andrew Tropin; +Cc: 62291

Andrew Tropin <andrew@trop.in> writes:

> Hello dear maintainers!
>
> I use pgtk emacs on wayland (sway) and a few months ago started facing a
> problem with copy/pasting to ungoogled-chromium.  Tried to find relevant
> reports on bug-gun-emacs, but didn't succeed.
>
> Way to reproduce and observed behavior:
>
> 0. guix shell emacs-next-pgtk (or build a fresh emacs with pgtk from master).
> 1. Launch emacs -Q.
> 2. Select any text and optionally copy it with M-w.
> 3. Paste it to chromium address bar with middle mouse or C-v if it was
> copied with M-w.
> 4. Both chromium and emacs get frozen for some time.
> 5. After some time Emacs crashes, chromium unfreezes.
> 6. A few times I saw "waiting for reply from selection owner." in emacs
> echo area, but can't reproduce it right now.
>
> - The same workflow, but with foot terminal instead of emacs works fine.
> - The same version of Emacs, but built without PGTK, works fine too:
> guix shell emacs-next-tree-sitter -- emacs -Q
> - Copy pasting from emacs-next-pgtk to alacritty and icecat works fine.
>
> The report of this problem on bug-guix and a backtrace of segfault:
> https://yhetil.org/guix-bugs/871qqwfr5d.fsf@trop.in/

Unfortunately, the backtrace is not helpful, because it does not include
symbols from the crashing Emacs.

Would you please run Emacs under GDB and reproduce the crash there?
Then, when Emacs crashes, type:

  (gdb) bt

then type return, and send the output here.  Thanks.





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

* bug#62291: 30.0.50; PGTK copy + paste to other app problem
  2023-03-20 11:05 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-03-20 11:17   ` Andrew Tropin
  2023-03-20 12:36     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 26+ messages in thread
From: Andrew Tropin @ 2023-03-20 11:17 UTC (permalink / raw)
  To: Po Lu; +Cc: 62291

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

On 2023-03-20 19:05, Po Lu wrote:

> Andrew Tropin <andrew@trop.in> writes:
>
>> Hello dear maintainers!
>>
>> I use pgtk emacs on wayland (sway) and a few months ago started facing a
>> problem with copy/pasting to ungoogled-chromium.  Tried to find relevant
>> reports on bug-gun-emacs, but didn't succeed.
>>
>> Way to reproduce and observed behavior:
>>
>> 0. guix shell emacs-next-pgtk (or build a fresh emacs with pgtk from master).
>> 1. Launch emacs -Q.
>> 2. Select any text and optionally copy it with M-w.
>> 3. Paste it to chromium address bar with middle mouse or C-v if it was
>> copied with M-w.
>> 4. Both chromium and emacs get frozen for some time.
>> 5. After some time Emacs crashes, chromium unfreezes.
>> 6. A few times I saw "waiting for reply from selection owner." in emacs
>> echo area, but can't reproduce it right now.
>>
>> - The same workflow, but with foot terminal instead of emacs works fine.
>> - The same version of Emacs, but built without PGTK, works fine too:
>> guix shell emacs-next-tree-sitter -- emacs -Q
>> - Copy pasting from emacs-next-pgtk to alacritty and icecat works fine.
>>
>> The report of this problem on bug-guix and a backtrace of segfault:
>> https://yhetil.org/guix-bugs/871qqwfr5d.fsf@trop.in/
>
> Unfortunately, the backtrace is not helpful, because it does not include
> symbols from the crashing Emacs.
>
> Would you please run Emacs under GDB and reproduce the crash there?
> Then, when Emacs crashes, type:
>
>   (gdb) bt
>
> then type return, and send the output here.  Thanks.

Sure!

--8<---------------cut here---------------start------------->8---
#0  0x00007ffff71a9424 in signal_emit_unlocked_R.isra.0 () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
#1  0x00007ffff71af21b in g_signal_emit_valist () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
#2  0x00007ffff71af722 in g_signal_emit () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
#3  0x00007ffff719b884 in g_object_dispatch_properties_changed () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
#4  0x00007ffff719d834 in g_object_notify_by_pspec () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
#5  0x00007ffff79afbcd in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgtk-3.so.0
#6  0x00007ffff79de357 in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgtk-3.so.0
#7  0x00007ffff71974af in g_closure_invoke () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
#8  0x00007ffff71a89e9 in signal_emit_unlocked_R.isra.0 () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
#9  0x00007ffff71aed65 in g_signal_emit_valist () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
#10 0x00007ffff71af722 in g_signal_emit () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
#11 0x00007ffff798ac04 in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgtk-3.so.0
#12 0x00007ffff784b37a in gtk_main_do_event () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgtk-3.so.0
#13 0x00007ffff7ef23c5 in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgdk-3.so.0
#14 0x00007ffff7f4f352 in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgdk-3.so.0
#15 0x00007ffff70a34cb in g_main_context_dispatch () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libglib-2.0.so.0
#16 0x000000000064c548 in pgtk_read_socket ()
#17 0x0000000000515762 in gobble_input ()
#18 0x0000000000515b85 in unblock_input_to ()
#19 0x0000000000516a38 in timer_check ()
#20 0x0000000000516f75 in readable_events ()
#21 0x0000000000517138 in get_input_pending ()
#22 0x000000000051beb8 in detect_input_pending_run_timers ()
#23 0x00000000005f40c8 in wait_reading_process_output ()
#24 0x0000000000437bd0 in sit_for ()
#25 0x000000000051ea0f in read_char ()
#26 0x000000000051f2ed in read_key_sequence ()
#27 0x0000000000520f12 in command_loop_1 ()
#28 0x0000000000596757 in internal_condition_case ()
#29 0x000000000050d13a in command_loop_2 ()
#30 0x00000000005966b1 in internal_catch ()
#31 0x000000000050d0df in command_loop ()
#32 0x0000000000513f43 in recursive_edit_1 ()
#33 0x00000000005142ba in Frecursive_edit ()
#34 0x000000000042d022 in main ()
--8<---------------cut here---------------end--------------->8---

-- 
Best regards,
Andrew Tropin

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* bug#62291: 30.0.50; PGTK copy + paste to other app problem
  2023-03-20 11:17   ` Andrew Tropin
@ 2023-03-20 12:36     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-03-21  9:10       ` Andrew Tropin
  0 siblings, 1 reply; 26+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-03-20 12:36 UTC (permalink / raw)
  To: Andrew Tropin; +Cc: 62291

Andrew Tropin <andrew@trop.in> writes:

> #0  0x00007ffff71a9424 in signal_emit_unlocked_R.isra.0 () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
> #1  0x00007ffff71af21b in g_signal_emit_valist () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
> #2  0x00007ffff71af722 in g_signal_emit () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
> #3  0x00007ffff719b884 in g_object_dispatch_properties_changed () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
> #4  0x00007ffff719d834 in g_object_notify_by_pspec () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
> #5  0x00007ffff79afbcd in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgtk-3.so.0
> #6  0x00007ffff79de357 in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgtk-3.so.0
> #7  0x00007ffff71974af in g_closure_invoke () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
> #8  0x00007ffff71a89e9 in signal_emit_unlocked_R.isra.0 () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
> #9  0x00007ffff71aed65 in g_signal_emit_valist () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
> #10 0x00007ffff71af722 in g_signal_emit () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
> #11 0x00007ffff798ac04 in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgtk-3.so.0
> #12 0x00007ffff784b37a in gtk_main_do_event () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgtk-3.so.0
> #13 0x00007ffff7ef23c5 in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgdk-3.so.0
> #14 0x00007ffff7f4f352 in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgdk-3.so.0
> #15 0x00007ffff70a34cb in g_main_context_dispatch () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libglib-2.0.so.0
> #16 0x000000000064c548 in pgtk_read_socket ()
> #17 0x0000000000515762 in gobble_input ()
> #18 0x0000000000515b85 in unblock_input_to ()
> #19 0x0000000000516a38 in timer_check ()
> #20 0x0000000000516f75 in readable_events ()
> #21 0x0000000000517138 in get_input_pending ()
> #22 0x000000000051beb8 in detect_input_pending_run_timers ()
> #23 0x00000000005f40c8 in wait_reading_process_output ()
> #24 0x0000000000437bd0 in sit_for ()
> #25 0x000000000051ea0f in read_char ()
> #26 0x000000000051f2ed in read_key_sequence ()
> #27 0x0000000000520f12 in command_loop_1 ()
> #28 0x0000000000596757 in internal_condition_case ()
> #29 0x000000000050d13a in command_loop_2 ()
> #30 0x00000000005966b1 in internal_catch ()
> #31 0x000000000050d0df in command_loop ()
> #32 0x0000000000513f43 in recursive_edit_1 ()
> #33 0x00000000005142ba in Frecursive_edit ()
> #34 0x000000000042d022 in main ()

Thanks.  What this says is that GDK has emitted an event, which is being
dispatched to what it thinks is a widget, but either the widget's signal
handler or the widget itself is invalid, causing GObject to crash during
signal dispatch.

Would you please install debuginfo for libgdk-3.so.0, libgtk-3.so.0 and
libgobject-2.0.so.0 (I'm not sure how to this in the GuixSD) and try to
figure out what event is causing the crash?

I suggest going up to frame #12 and typing:

  (gdb) p *event

after the debuginfo is installed and loaded by GDB.





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

* bug#62291: 30.0.50; PGTK copy + paste to other app problem
  2023-03-20 12:36     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-03-21  9:10       ` Andrew Tropin
  2023-03-21 10:30         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 26+ messages in thread
From: Andrew Tropin @ 2023-03-21  9:10 UTC (permalink / raw)
  To: Po Lu; +Cc: 62291

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

On 2023-03-20 20:36, Po Lu wrote:

> Andrew Tropin <andrew@trop.in> writes:
>
>> #0  0x00007ffff71a9424 in signal_emit_unlocked_R.isra.0 () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
>> #1  0x00007ffff71af21b in g_signal_emit_valist () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
>> #2  0x00007ffff71af722 in g_signal_emit () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
>> #3  0x00007ffff719b884 in g_object_dispatch_properties_changed () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
>> #4  0x00007ffff719d834 in g_object_notify_by_pspec () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
>> #5  0x00007ffff79afbcd in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgtk-3.so.0
>> #6  0x00007ffff79de357 in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgtk-3.so.0
>> #7  0x00007ffff71974af in g_closure_invoke () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
>> #8  0x00007ffff71a89e9 in signal_emit_unlocked_R.isra.0 () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
>> #9  0x00007ffff71aed65 in g_signal_emit_valist () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
>> #10 0x00007ffff71af722 in g_signal_emit () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
>> #11 0x00007ffff798ac04 in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgtk-3.so.0
>> #12 0x00007ffff784b37a in gtk_main_do_event () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgtk-3.so.0
>> #13 0x00007ffff7ef23c5 in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgdk-3.so.0
>> #14 0x00007ffff7f4f352 in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgdk-3.so.0
>> #15 0x00007ffff70a34cb in g_main_context_dispatch () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libglib-2.0.so.0
>> #16 0x000000000064c548 in pgtk_read_socket ()
>> #17 0x0000000000515762 in gobble_input ()
>> #18 0x0000000000515b85 in unblock_input_to ()
>> #19 0x0000000000516a38 in timer_check ()
>> #20 0x0000000000516f75 in readable_events ()
>> #21 0x0000000000517138 in get_input_pending ()
>> #22 0x000000000051beb8 in detect_input_pending_run_timers ()
>> #23 0x00000000005f40c8 in wait_reading_process_output ()
>> #24 0x0000000000437bd0 in sit_for ()
>> #25 0x000000000051ea0f in read_char ()
>> #26 0x000000000051f2ed in read_key_sequence ()
>> #27 0x0000000000520f12 in command_loop_1 ()
>> #28 0x0000000000596757 in internal_condition_case ()
>> #29 0x000000000050d13a in command_loop_2 ()
>> #30 0x00000000005966b1 in internal_catch ()
>> #31 0x000000000050d0df in command_loop ()
>> #32 0x0000000000513f43 in recursive_edit_1 ()
>> #33 0x00000000005142ba in Frecursive_edit ()
>> #34 0x000000000042d022 in main ()
>
> Thanks.  What this says is that GDK has emitted an event, which is being
> dispatched to what it thinks is a widget, but either the widget's signal
> handler or the widget itself is invalid, causing GObject to crash during
> signal dispatch.
>
> Would you please install debuginfo for libgdk-3.so.0, libgtk-3.so.0 and
> libgobject-2.0.so.0 (I'm not sure how to this in the GuixSD) and try to
> figure out what event is causing the crash?
>
> I suggest going up to frame #12 and typing:
>
>   (gdb) p *event
>
> after the debuginfo is installed and loaded by GDB.

Sorry for the long response, I was figuring out some GDB settings :)

For the record and maybe future readers, my ~/.gdbinit:
--8<---------------cut here---------------start------------->8---
# Tell GDB where to look for separate debugging files.
guile
(use-modules (gdb))
(execute (string-append "set debug-file-directory "
                        (string-join
                          (filter file-exists?
                                  (append
                                    (if (getenv "GDB_DEBUG_FILE_DIRECTORY")
                                      (list (getenv "GDB_DEBUG_FILE_DIRECTORY"))
                                      '())
                                    (list "~/.guix-home/profile/lib/debug"
                                          "~/.guix-profile/lib/debug"
                                          "/run/current-system/profile/lib/debug")))
                          ":")))
end

# Authorize extensions found in the store, such as the
# pretty-printers of libstdc++.
set auto-load safe-path /gnu/store/*/lib
set history filename ~/.cache/gdb_history
set history save on
--8<---------------cut here---------------end--------------->8---

I run gdb the following way:

guix shell gdb glib:debug gtk+:debug emacs-next-pgtk \
--with-debug-info=emacs-next-pgtk -- \
gdb --args sh -c 'exec emacs -Q'

The result I got:
--8<---------------cut here---------------start------------->8---
#0  0x00007ffff71a9424 in signal_emit_unlocked_R.isra.0 () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
#1  0x00007ffff71af21b in g_signal_emit_valist () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
#2  0x00007ffff71af722 in g_signal_emit () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
#3  0x00007ffff719b884 in g_object_dispatch_properties_changed () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
#4  0x00007ffff719d834 in g_object_notify_by_pspec () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
#5  0x00007ffff79afbcd in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgtk-3.so.0
#6  0x00007ffff79de357 in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgtk-3.so.0
#7  0x00007ffff71974af in g_closure_invoke () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
#8  0x00007ffff71a89e9 in signal_emit_unlocked_R.isra.0 () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
#9  0x00007ffff71aed65 in g_signal_emit_valist () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
#10 0x00007ffff71af722 in g_signal_emit () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
#11 0x00007ffff798ac04 in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgtk-3.so.0
#12 0x00007ffff784b37a in gtk_main_do_event () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgtk-3.so.0
#13 0x00007ffff7ef23c5 in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgdk-3.so.0
#14 0x00007ffff7f4f352 in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgdk-3.so.0
#15 0x00007ffff70a34cb in g_main_context_dispatch () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libglib-2.0.so.0
#16 0x000000000064c548 in pgtk_read_socket (terminal=<optimized out>, hold_quit=0x7fffffffba00) at pgtkterm.c:3840
#17 pgtk_read_socket (terminal=<optimized out>, hold_quit=0x7fffffffba00) at pgtkterm.c:3819
#18 0x0000000000515762 in gobble_input () at keyboard.c:7416
#19 0x0000000000515b85 in handle_async_input () at keyboard.c:7647
#20 process_pending_signals () at keyboard.c:7661
#21 unblock_input_to (level=0) at keyboard.c:7676
#22 unblock_input_to (level=<optimized out>) at keyboard.c:7670
#23 0x0000000000516a38 in unblock_input () at keyboard.c:7695
#24 timer_check () at keyboard.c:4741
#25 0x0000000000516f75 in readable_events (flags=flags@entry=1) at keyboard.c:3523
#26 0x0000000000517138 in get_input_pending (flags=flags@entry=1) at keyboard.c:7366
#27 0x000000000051beb8 in detect_input_pending_run_timers (do_display=do_display@entry=true) at keyboard.c:10896
#28 0x00000000005f40c8 in wait_reading_process_output (time_limit=time_limit@entry=30, nsecs=nsecs@entry=0, read_kbd=read_kbd@entry=-1, do_display=do_display@entry=true, 
    wait_for_cell=wait_for_cell@entry=0x0, wait_proc=wait_proc@entry=0x0, just_wait_proc=<optimized out>) at process.c:5779
#29 0x0000000000437bd0 in sit_for (timeout=timeout@entry=0x7a, reading=reading@entry=true, display_option=display_option@entry=1) at dispnew.c:6256
#30 0x000000000051ea0f in read_char (commandflag=1, map=0xdecb23, prev_event=0x0, used_mouse_menu=0x7fffffffc55b, end_time=0x0) at lisp.h:759
#31 0x000000000051f2ed in read_key_sequence (keybuf=<optimized out>, prompt=0x0, dont_downcase_last=<optimized out>, can_return_switch_frame=true, fix_current_buffer=true, 
    prevent_redisplay=<optimized out>) at keyboard.c:10073
#32 0x0000000000520f12 in command_loop_1 () at lisp.h:1164
--Type <RET> for more, q to quit, c to continue without paging--
#33 0x0000000000596757 in internal_condition_case (bfun=bfun@entry=0x520d40 <command_loop_1>, handlers=handlers@entry=0x90, hfun=hfun@entry=0x514390 <cmd_error>) at eval.c:1474
#34 0x000000000050d13a in command_loop_2 (handlers=handlers@entry=0x90) at keyboard.c:1124
#35 0x00000000005966b1 in internal_catch (tag=tag@entry=0xfea0, func=func@entry=0x50d120 <command_loop_2>, arg=arg@entry=0x90) at eval.c:1197
#36 0x000000000050d0df in command_loop () at lisp.h:1164
#37 0x0000000000513f43 in recursive_edit_1 () at keyboard.c:711
#38 0x00000000005142ba in Frecursive_edit () at keyboard.c:794
#39 0x000000000042d022 in main (argc=<optimized out>, argv=<optimized out>) at emacs.c:2529
(gdb) frame 12
#12 0x00007ffff784b37a in gtk_main_do_event () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgtk-3.so.0
(gdb) p *event
No symbol "event" in current context.
(gdb) p *event<TAB>
event_arm_timer                                        event_head                                             event_queue_insert_if_intersect_below_current_y[part]
event_callback                                         event_inotify_data_drop                                event_queue_t
event_check                                            event_insert_if_intersect_below_current_y              event_source_type_table
event_dispatch                                         event_kind                                             event_to_kboard
event_free[part]                                       event_listeners                                        event_unmask_signal_data
event_free_inode_data                                  event_log_delays                                       eventfd
event_free_inotify_data                                event_make_inode_data                                  eventfd@got[plt]
event_free_signal_data                                 event_make_inotify_data                                eventfd@plt
event_funcs                                            event_make_signal_data                                 eventfd_read
event_gc_inode_data                                    event_next_pending                                     eventfd_write
event_gc_signal_data                                   event_prepare                                          
event_get_clock_data                                   event_q 
--8<---------------cut here---------------end--------------->8---

It complains `No symbol "event" in current context.`, am I did something
wrong?

-- 
Best regards,
Andrew Tropin

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* bug#62291: 30.0.50; PGTK copy + paste to other app problem
  2023-03-21  9:10       ` Andrew Tropin
@ 2023-03-21 10:30         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-03-21 13:25           ` Andrew Tropin
  2023-03-21 16:13           ` Andrew Tropin
  0 siblings, 2 replies; 26+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-03-21 10:30 UTC (permalink / raw)
  To: Andrew Tropin; +Cc: 62291

Andrew Tropin <andrew@trop.in> writes:

> #0  0x00007ffff71a9424 in signal_emit_unlocked_R.isra.0 () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
> #1  0x00007ffff71af21b in g_signal_emit_valist () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
> #2  0x00007ffff71af722 in g_signal_emit () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
> #3  0x00007ffff719b884 in g_object_dispatch_properties_changed () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
> #4  0x00007ffff719d834 in g_object_notify_by_pspec () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
> #5  0x00007ffff79afbcd in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgtk-3.so.0
> #6  0x00007ffff79de357 in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgtk-3.so.0
> #7  0x00007ffff71974af in g_closure_invoke () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
> #8  0x00007ffff71a89e9 in signal_emit_unlocked_R.isra.0 () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
> #9  0x00007ffff71aed65 in g_signal_emit_valist () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
> #10 0x00007ffff71af722 in g_signal_emit () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
> #11 0x00007ffff798ac04 in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgtk-3.so.0
> #12 0x00007ffff784b37a in gtk_main_do_event () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgtk-3.so.0
> #13 0x00007ffff7ef23c5 in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgdk-3.so.0
> #14 0x00007ffff7f4f352 in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgdk-3.so.0
> #15 0x00007ffff70a34cb in g_main_context_dispatch () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libglib-2.0.so.0
> #16 0x000000000064c548 in pgtk_read_socket (terminal=<optimized out>, hold_quit=0x7fffffffba00) at pgtkterm.c:3840
> #17 pgtk_read_socket (terminal=<optimized out>, hold_quit=0x7fffffffba00) at pgtkterm.c:3819
> #18 0x0000000000515762 in gobble_input () at keyboard.c:7416
> #19 0x0000000000515b85 in handle_async_input () at keyboard.c:7647
> #20 process_pending_signals () at keyboard.c:7661
> #21 unblock_input_to (level=0) at keyboard.c:7676
> #22 unblock_input_to (level=<optimized out>) at keyboard.c:7670
> #23 0x0000000000516a38 in unblock_input () at keyboard.c:7695
> #24 timer_check () at keyboard.c:4741
> #25 0x0000000000516f75 in readable_events (flags=flags@entry=1) at keyboard.c:3523
> #26 0x0000000000517138 in get_input_pending (flags=flags@entry=1) at keyboard.c:7366
> #27 0x000000000051beb8 in detect_input_pending_run_timers (do_display=do_display@entry=true) at keyboard.c:10896
> #28 0x00000000005f40c8 in wait_reading_process_output (time_limit=time_limit@entry=30, nsecs=nsecs@entry=0, read_kbd=read_kbd@entry=-1, do_display=do_display@entry=true, 
>     wait_for_cell=wait_for_cell@entry=0x0, wait_proc=wait_proc@entry=0x0, just_wait_proc=<optimized out>) at process.c:5779
> #29 0x0000000000437bd0 in sit_for (timeout=timeout@entry=0x7a, reading=reading@entry=true, display_option=display_option@entry=1) at dispnew.c:6256
> #30 0x000000000051ea0f in read_char (commandflag=1, map=0xdecb23, prev_event=0x0, used_mouse_menu=0x7fffffffc55b, end_time=0x0) at lisp.h:759
> #31 0x000000000051f2ed in read_key_sequence (keybuf=<optimized out>, prompt=0x0, dont_downcase_last=<optimized out>, can_return_switch_frame=true, fix_current_buffer=true, 
>     prevent_redisplay=<optimized out>) at keyboard.c:10073
> #32 0x0000000000520f12 in command_loop_1 () at lisp.h:1164
> --Type <RET> for more, q to quit, c to continue without paging--
> #33 0x0000000000596757 in internal_condition_case (bfun=bfun@entry=0x520d40 <command_loop_1>, handlers=handlers@entry=0x90, hfun=hfun@entry=0x514390 <cmd_error>) at eval.c:1474
> #34 0x000000000050d13a in command_loop_2 (handlers=handlers@entry=0x90) at keyboard.c:1124
> #35 0x00000000005966b1 in internal_catch (tag=tag@entry=0xfea0, func=func@entry=0x50d120 <command_loop_2>, arg=arg@entry=0x90) at eval.c:1197
> #36 0x000000000050d0df in command_loop () at lisp.h:1164
> #37 0x0000000000513f43 in recursive_edit_1 () at keyboard.c:711
> #38 0x00000000005142ba in Frecursive_edit () at keyboard.c:794
> #39 0x000000000042d022 in main (argc=<optimized out>, argv=<optimized out>) at emacs.c:2529
> (gdb) frame 12
> #12 0x00007ffff784b37a in gtk_main_do_event () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgtk-3.so.0
> (gdb) p *event
> No symbol "event" in current context.
> (gdb) p *event<TAB>
> event_arm_timer                                        event_head                                             event_queue_insert_if_intersect_below_current_y[part]
> event_callback                                         event_inotify_data_drop                                event_queue_t
> event_check                                            event_insert_if_intersect_below_current_y              event_source_type_table
> event_dispatch                                         event_kind                                             event_to_kboard
> event_free[part]                                       event_listeners                                        event_unmask_signal_data
> event_free_inode_data                                  event_log_delays                                       eventfd
> event_free_inotify_data                                event_make_inode_data                                  eventfd@got[plt]
> event_free_signal_data                                 event_make_inotify_data                                eventfd@plt
> event_funcs                                            event_make_signal_data                                 eventfd_read
> event_gc_inode_data                                    event_next_pending                                     eventfd_write
> event_gc_signal_data                                   event_prepare                                          
> event_get_clock_data                                   event_q 
>
> It complains `No symbol "event" in current context.`, am I did something
> wrong?

Yes, you didn't get debug information loaded in GDB.

What does:

  (gdb) info sharedlibrary

say?





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

* bug#62291: 30.0.50; PGTK copy + paste to other app problem
  2023-03-21 10:30         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-03-21 13:25           ` Andrew Tropin
  2023-03-21 16:13           ` Andrew Tropin
  1 sibling, 0 replies; 26+ messages in thread
From: Andrew Tropin @ 2023-03-21 13:25 UTC (permalink / raw)
  To: Po Lu; +Cc: 62291

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

On 2023-03-21 18:30, Po Lu wrote:

> Andrew Tropin <andrew@trop.in> writes:
>
>> #0  0x00007ffff71a9424 in signal_emit_unlocked_R.isra.0 () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
>> #1  0x00007ffff71af21b in g_signal_emit_valist () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
>> #2  0x00007ffff71af722 in g_signal_emit () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
>> #3  0x00007ffff719b884 in g_object_dispatch_properties_changed () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
>> #4  0x00007ffff719d834 in g_object_notify_by_pspec () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
>> #5  0x00007ffff79afbcd in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgtk-3.so.0
>> #6  0x00007ffff79de357 in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgtk-3.so.0
>> #7  0x00007ffff71974af in g_closure_invoke () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
>> #8  0x00007ffff71a89e9 in signal_emit_unlocked_R.isra.0 () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
>> #9  0x00007ffff71aed65 in g_signal_emit_valist () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
>> #10 0x00007ffff71af722 in g_signal_emit () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
>> #11 0x00007ffff798ac04 in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgtk-3.so.0
>> #12 0x00007ffff784b37a in gtk_main_do_event () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgtk-3.so.0
>> #13 0x00007ffff7ef23c5 in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgdk-3.so.0
>> #14 0x00007ffff7f4f352 in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgdk-3.so.0
>> #15 0x00007ffff70a34cb in g_main_context_dispatch () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libglib-2.0.so.0
>> #16 0x000000000064c548 in pgtk_read_socket (terminal=<optimized out>, hold_quit=0x7fffffffba00) at pgtkterm.c:3840
>> #17 pgtk_read_socket (terminal=<optimized out>, hold_quit=0x7fffffffba00) at pgtkterm.c:3819
>> #18 0x0000000000515762 in gobble_input () at keyboard.c:7416
>> #19 0x0000000000515b85 in handle_async_input () at keyboard.c:7647
>> #20 process_pending_signals () at keyboard.c:7661
>> #21 unblock_input_to (level=0) at keyboard.c:7676
>> #22 unblock_input_to (level=<optimized out>) at keyboard.c:7670
>> #23 0x0000000000516a38 in unblock_input () at keyboard.c:7695
>> #24 timer_check () at keyboard.c:4741
>> #25 0x0000000000516f75 in readable_events (flags=flags@entry=1) at keyboard.c:3523
>> #26 0x0000000000517138 in get_input_pending (flags=flags@entry=1) at keyboard.c:7366
>> #27 0x000000000051beb8 in detect_input_pending_run_timers (do_display=do_display@entry=true) at keyboard.c:10896
>> #28 0x00000000005f40c8 in wait_reading_process_output (time_limit=time_limit@entry=30, nsecs=nsecs@entry=0, read_kbd=read_kbd@entry=-1, do_display=do_display@entry=true, 
>>     wait_for_cell=wait_for_cell@entry=0x0, wait_proc=wait_proc@entry=0x0, just_wait_proc=<optimized out>) at process.c:5779
>> #29 0x0000000000437bd0 in sit_for (timeout=timeout@entry=0x7a, reading=reading@entry=true, display_option=display_option@entry=1) at dispnew.c:6256
>> #30 0x000000000051ea0f in read_char (commandflag=1, map=0xdecb23, prev_event=0x0, used_mouse_menu=0x7fffffffc55b, end_time=0x0) at lisp.h:759
>> #31 0x000000000051f2ed in read_key_sequence (keybuf=<optimized out>, prompt=0x0, dont_downcase_last=<optimized out>, can_return_switch_frame=true, fix_current_buffer=true, 
>>     prevent_redisplay=<optimized out>) at keyboard.c:10073
>> #32 0x0000000000520f12 in command_loop_1 () at lisp.h:1164
>> --Type <RET> for more, q to quit, c to continue without paging--
>> #33 0x0000000000596757 in internal_condition_case (bfun=bfun@entry=0x520d40 <command_loop_1>, handlers=handlers@entry=0x90, hfun=hfun@entry=0x514390 <cmd_error>) at eval.c:1474
>> #34 0x000000000050d13a in command_loop_2 (handlers=handlers@entry=0x90) at keyboard.c:1124
>> #35 0x00000000005966b1 in internal_catch (tag=tag@entry=0xfea0, func=func@entry=0x50d120 <command_loop_2>, arg=arg@entry=0x90) at eval.c:1197
>> #36 0x000000000050d0df in command_loop () at lisp.h:1164
>> #37 0x0000000000513f43 in recursive_edit_1 () at keyboard.c:711
>> #38 0x00000000005142ba in Frecursive_edit () at keyboard.c:794
>> #39 0x000000000042d022 in main (argc=<optimized out>, argv=<optimized out>) at emacs.c:2529
>> (gdb) frame 12
>> #12 0x00007ffff784b37a in gtk_main_do_event () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgtk-3.so.0
>> (gdb) p *event
>> No symbol "event" in current context.
>> (gdb) p *event<TAB>
>> event_arm_timer                                        event_head                                             event_queue_insert_if_intersect_below_current_y[part]
>> event_callback                                         event_inotify_data_drop                                event_queue_t
>> event_check                                            event_insert_if_intersect_below_current_y              event_source_type_table
>> event_dispatch                                         event_kind                                             event_to_kboard
>> event_free[part]                                       event_listeners                                        event_unmask_signal_data
>> event_free_inode_data                                  event_log_delays                                       eventfd
>> event_free_inotify_data                                event_make_inode_data                                  eventfd@got[plt]
>> event_free_signal_data                                 event_make_inotify_data                                eventfd@plt
>> event_funcs                                            event_make_signal_data                                 eventfd_read
>> event_gc_inode_data                                    event_next_pending                                     eventfd_write
>> event_gc_signal_data                                   event_prepare                                          
>> event_get_clock_data                                   event_q 
>>
>> It complains `No symbol "event" in current context.`, am I did something
>> wrong?
>
> Yes, you didn't get debug information loaded in GDB.
>
> What does:
>
>   (gdb) info sharedlibrary
>
> say?

--8<---------------cut here---------------start------------->8---
From                To                  Syms Read   Shared Object Library
0x00007ffff7fcf050  0x00007ffff7ff15ee  Yes (*)     /gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/ld-linux-x86-64.so.2
0x00007ffff769c070  0x00007ffff79e9936  Yes (*)     /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgtk-3.so.0
0x00007ffff7ee6190  0x00007ffff7f5efdd  Yes (*)     /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgdk-3.so.0
0x00007ffff7ea9b20  0x00007ffff7eaf8c0  Yes (*)     /gnu/store/1ijx88zsj8vbp72a2bc5vi2k525b3m21-pango-1.48.10/lib/libpangocairo-1.0.so.0
0x00007ffff7e61c80  0x00007ffff7e8711e  Yes (*)     /gnu/store/1ijx88zsj8vbp72a2bc5vi2k525b3m21-pango-1.48.10/lib/libpango-1.0.so.0
0x00007ffff751fec0  0x00007ffff75c462e  Yes (*)     /gnu/store/klcavahwyssm268jy3hr7wk4kz5ymgzs-harfbuzz-2.8.2/lib/libharfbuzz.so.0
0x00007ffff7e316b0  0x00007ffff7e3ed44  Yes (*)     /gnu/store/n2iz3biwjgqf5lpcbcyzm6krdcvpl9wn-atk-2.36.0/lib/libatk-1.0.so.0
0x00007ffff750d0a0  0x00007ffff750e20d  Yes (*)     /gnu/store/j7msijipwyj8m6j7fdadwpai9k87j4fk-cairo-1.16.0/lib/libcairo-gobject.so.2
0x00007ffff73fc680  0x00007ffff74c3a97  Yes (*)     /gnu/store/j7msijipwyj8m6j7fdadwpai9k87j4fk-cairo-1.16.0/lib/libcairo.so.2
0x00007ffff73c9b50  0x00007ffff73dccde  Yes (*)     /gnu/store/7zs12l3k07nic6v2ksx7amsyj4k5clv1-gdk-pixbuf-2.42.4/lib/libgdk_pixbuf-2.0.so.0
0x00007ffff721e980  0x00007ffff73267e6  Yes (*)     /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgio-2.0.so.0
0x00007ffff7191760  0x00007ffff71be826  Yes (*)     /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
0x00007ffff706ed40  0x00007ffff70f4a7e  Yes (*)     /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libglib-2.0.so.0
0x00007ffff6fd5dc0  0x00007ffff7018105  Yes (*)     /gnu/store/qx38nc2wg6d5287pwbm2xnbk04nybnbc-libtiff-4.3.0/lib/libtiff.so.5
0x00007ffff6f39500  0x00007ffff6f8e0c5  Yes (*)     /gnu/store/g5hf1zhqlcyx9vw3q1xa52bgddaqsfm5-libjpeg-turbo-2.0.5/lib/libjpeg.so.62
0x00007ffff6f05900  0x00007ffff6f2739a  Yes (*)     /gnu/store/1cb3vvxkhrsffkwa9kpgn9wv1s48vcd8-libpng-1.6.37/lib/libpng16.so.16
0x00007ffff6ee4320  0x00007ffff6ef5444  Yes (*)     /gnu/store/v8d7j5i02nfz951x1szbl9xrd873vc3l-zlib-1.2.12/lib/libz.so.1
0x00007ffff6ed8390  0x00007ffff6edc58b  Yes (*)     /gnu/store/4d0ssibbd2glk1vc93zj738awmy22xad-giflib-5.2.1/lib/libgif.so.7
0x00007ffff6e0ecc0  0x00007ffff6e92bd6  Yes (*)     /gnu/store/nfxcjvv9c2q6in9x52kkkayqv38k00ai-alsa-lib-1.2.4/lib/libasound.so.2
0x00007ffff6512070  0x00007ffff6a2df5c  Yes (*)     /gnu/store/pllwdhc04m0yixbz8svgw4mrj55l5l30-librsvg-2.50.7/lib/librsvg-2.so.2
0x00007ffff62cc200  0x00007ffff6362d11  Yes (*)     /gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/libm.so.6
0x00007ffff6dd3370  0x00007ffff6dd7340  Yes (*)     /gnu/store/a38k2v29l6l0iz6pmlk4dmzwdbvl10lq-acl-2.3.1/lib/libacl.so.1
0x00007ffff6dc93f0  0x00007ffff6dcc1b1  Yes (*)     /gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/librt.so.1
0x00007ffff626dd20  0x00007ffff62a636a  Yes (*)     /gnu/store/5kwg6lh2nrvd7baya0lqj7047jsiashn-dbus-1.12.20/lib/libdbus-1.so.3
0x00007ffff6122bd0  0x00007ffff62068ce  Yes (*)     /gnu/store/59gqwyrp5wkj50gd49yjn1alha7yvrl9-libxml2-2.9.12/lib/libxml2.so.2
0x00007ffff6097cc0  0x00007ffff60d13e8  Yes (*)     /gnu/store/9rrnm5hdjw7cy96a2a9rfgh6y08wsbmf-ncurses-6.2.20210619/lib/libncursesw.so.6
0x00007ffff6052f80  0x00007ffff6071dd1  Yes (*)     /gnu/store/7iggw1173k98i4b13claciks6xl3b5i4-libselinux-3.4/lib/libselinux.so.1
0x00007ffff5fa79c0  0x00007ffff6018c0d  Yes (*)     /gnu/store/aiikc9rv0pcicgklvbfn8bni3rad7zb2-freetype-2.10.4/lib/libfreetype.so.6
0x00007ffff5f577a0  0x00007ffff5f7d05a  Yes (*)     /gnu/store/zmrcbfcwq56krlr4qj6flgy2q0x4vw75-fontconfig-minimal-2.13.94/lib/libfontconfig.so.1
0x00007ffff5f38230  0x00007ffff5f49380  Yes (*)     /gnu/store/d9j6x2l4l4sya0zb3i168qkrzq8im1n7-libotf-0.9.16/lib/libotf.so.1
0x00007ffff5d76940  0x00007ffff5e89670  Yes (*)     /gnu/store/zl9wf0zwq2ka9rpmayp53hnp2mn460xf-gnutls-3.7.2/lib/libgnutls.so.30
--Type <RET> for more, q to quit, c to continue without paging--
0x00007ffff5d22540  0x00007ffff5d2fba1  Yes (*)     /gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/libpthread.so.0
0x00007ffff5d17200  0x00007ffff5d18301  Yes (*)     /gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/libanl.so.1
0x00007ffff5cc3280  0x00007ffff5cf9bfa  Yes (*)     /gnu/store/75d5i0nfja1hr9kiqk5q1akpwkchgkv7-lcms-2.12/lib/liblcms2.so.2
0x00007ffff5cb2130  0x00007ffff5cb2f31  Yes (*)     /gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/libdl.so.2
0x00007ffff5c1b830  0x00007ffff5c8537c  Yes (*)     /gnu/store/7sq4qp09fl1pn72jw828ndm13nbpknhv-elogind-246.10/lib/libelogind.so.0
0x00007ffff5bfb1f0  0x00007ffff5c02f2b  Yes (*)     /gnu/store/nprljhh7a86351vg6h23va3kfdnkwnd4-jansson-2.13.1/lib/libjansson.so.4
0x00007ffff5b6d440  0x00007ffff5bde0ab  Yes (*)     /gnu/store/fwbiihd2sbhai63y1pvvdh0f2bakfzrf-gmp-6.2.1/lib/libgmp.so.10
0x00007ffff4219c50  0x00007ffff508025e  Yes (*)     /gnu/store/j8wlnhzkzsza37c7dnvayxanfvfp58av-libgccjit-10.3.0/lib/libgccjit.so.0
0x00007ffff5b2c8c0  0x00007ffff5b4fe83  Yes (*)     /gnu/store/cbviswij2rbqnbsc889166wm7ri5pc2r-tree-sitter-0.20.7/lib/libtree-sitter.so.0
0x00007ffff3ed5ca0  0x00007ffff3fc4c36  Yes (*)     /gnu/store/xmzx5mzv4863yw9kmr2ykndgp37p8if0-sqlite-3.36.0/lib/libsqlite3.so.0
0x00007ffff5b10310  0x00007ffff5b20b1d  Yes (*)     /gnu/store/094bbaq6glba86h1d4cj16xhdi6fk2jl-gcc-10.3.0-lib/lib/libgcc_s.so.1
0x00007ffff3d25330  0x00007ffff3e64389  Yes (*)     /gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/libc.so.6
0x00007ffff5b07100  0x00007ffff5b079ec  Yes (*)     /gnu/store/6h8skg2n4gpbi0bwfmw6qyh03phic6dm-libxinerama-1.1.4/lib/libXinerama.so.1
0x00007ffff5afb210  0x00007ffff5b011f5  Yes (*)     /gnu/store/25k894kwhf4ljw1nl9rz6rm0c9sz5qaz-libxrandr-1.5.2/lib/libXrandr.so.2
0x00007ffff5af05e0  0x00007ffff5af4e37  Yes (*)     /gnu/store/mx0bsijgajia8b0s7zfsc135ichy111d-libxcursor-1.2.0/lib/libXcursor.so.1
0x00007ffff5addf50  0x00007ffff5ae5f35  Yes (*)     /gnu/store/cyjff1kx60h5z41jmxdzmac71ayxj5m5-libcloudproviders-minimal-0.3.1/lib/libcloudproviders.so.0
0x00007ffff5ad1260  0x00007ffff5ad2183  Yes (*)     /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgmodule-2.0.so.0
0x00007ffff5abf260  0x00007ffff5ac9242  Yes (*)     /gnu/store/3s0xcy15rkh08y8cd50skbs5b4js8zb5-libxi-1.7.10/lib/libXi.so.6
0x00007ffff5ab60c0  0x00007ffff5ab6aa5  Yes (*)     /gnu/store/qzyp6p8gmxlpvd7wmijz5zn3cqmg4342-libxcomposite-0.4.5/lib/libXcomposite.so.1
0x00007ffff5ab10f0  0x00007ffff5ab1a3b  Yes (*)     /gnu/store/i4yh9pwl39qvl9nf8q48gmjgq3wxi36b-libxdamage-1.1.5/lib/libXdamage.so.1
0x00007ffff5aa91b0  0x00007ffff5aab576  Yes (*)     /gnu/store/7rwz6yjir4ysnhskcw5k8azksjwqd6pa-libxfixes-6.0.0/lib/libXfixes.so.3
0x00007ffff3c66590  0x00007ffff3ce7bce  Yes (*)     /gnu/store/j8x167zaka2h6pxk7wiq5zkg67hzf8a2-pixman-0.40.0/lib/libpixman-1.so.0
0x00007ffff5aa3080  0x00007ffff5aa3923  Yes (*)     /gnu/store/v8raqm2shh9azkl71107p53j55hir306-libxcb-1.14/lib/libxcb-shm.so.0
0x00007ffff5a96220  0x00007ffff5a9a17e  Yes (*)     /gnu/store/v8raqm2shh9azkl71107p53j55hir306-libxcb-1.14/lib/libxcb-render.so.0
0x00007ffff5a85260  0x00007ffff5a8b05d  Yes (*)     /gnu/store/jh778dla5w316bsfc63q8fnhn87j81lw-libxrender-0.9.10/lib/libXrender.so.1
0x00007ffff5a733c0  0x00007ffff5a7cd0a  Yes (*)     /gnu/store/4fhg8f8c6q647v7pysbng3j30frg0hcl-libxext-1.3.4/lib/libXext.so.6
0x00007ffff3b3a8f0  0x00007ffff3bbe5ea  Yes (*)     /gnu/store/fa43ijbrb96x08621qigxxiphp503lsi-libx11-1.7.3.1/lib/libX11.so.6
0x00007ffff3afe710  0x00007ffff3b0e4d5  Yes (*)     /gnu/store/v8raqm2shh9azkl71107p53j55hir306-libxcb-1.14/lib/libxcb.so.1
0x00007ffff5a6b1f0  0x00007ffff5a6bd8e  Yes (*)     /gnu/store/9k6slxs8ynz46h85bcy3zk2mx0nn8rpf-libxau-1.0.9/lib/libXau.so.6
0x00007ffff5a621c0  0x00007ffff5a63912  Yes (*)     /gnu/store/dfzp4rhkzqqagx3djn2kcnaflz1m8446-libxdmcp-1.1.3/lib/libXdmcp.so.6
0x00007ffff3adc870  0x00007ffff3ae9d9b  Yes (*)     /gnu/store/7b5qsjh2cbhwnqbdicvl81496k7b0g0j-libbsd-0.10.0/lib/libbsd.so.0
0x00007ffff3ab0cf0  0x00007ffff3ac48fe  Yes (*)     /gnu/store/nplkqbp4fvwzq0hvcq32js3nyj8rni1p-at-spi2-atk-2.38.0/lib/libatk-bridge-2.0.so.0
--Type <RET> for more, q to quit, c to continue without paging--
0x00007ffff3a614d0  0x00007ffff3a7c3c3  Yes (*)     /gnu/store/bahr69aixvy64q43a6a57q3b92s243xq-libxkbcommon-1.3.0/lib/libxkbcommon.so.0
0x00007ffff3a54260  0x00007ffff3a55ef4  Yes (*)     /gnu/store/gyxsakza7gjbsg4iaj25c48fx1z6c8k4-wayland-1.20.0/lib/libwayland-cursor.so.0
0x00007ffff3a4e060  0x00007ffff3a4e1e5  Yes (*)     /gnu/store/gyxsakza7gjbsg4iaj25c48fx1z6c8k4-wayland-1.20.0/lib/libwayland-egl.so.1
0x00007ffff3a41490  0x00007ffff3a46312  Yes (*)     /gnu/store/gyxsakza7gjbsg4iaj25c48fx1z6c8k4-wayland-1.20.0/lib/libwayland-client.so.0
0x00007ffff396a120  0x00007ffff39ccca4  Yes (*)     /gnu/store/8hxznjcdh24harp8228dh9jl35mpdpwc-libepoxy-1.5.10/lib/libepoxy.so.0
0x00007ffff38e9170  0x00007ffff38ed1c1  Yes (*)     /gnu/store/v5x6f3dml69pmn4pfkl51j6y03v6rlsg-fribidi-1.0.9/lib/libfribidi.so.0
0x00007ffff38d6110  0x00007ffff38df9ab  Yes (*)     /gnu/store/1ijx88zsj8vbp72a2bc5vi2k525b3m21-pango-1.48.10/lib/libpangoft2-1.0.so.0
0x00007ffff38ad190  0x00007ffff38c4aba  Yes (*)     /gnu/store/z6d288h1g876vypda400nhh224yz49im-graphite2-1.3.13/lib/libgraphite2.so.3
0x00007ffff387d190  0x00007ffff389a863  Yes (*)     /gnu/store/52zhpralb3iimrm7xbc1vf3qsy4gy1vl-expat-2.4.9/lib/libexpat.so.1
0x00007ffff38682c0  0x00007ffff38742d2  Yes (*)     /gnu/store/s3hl12jxz9ybs7nsy7kq7ybzz7qnzmsg-bzip2-1.0.8/lib/libbz2.so.1.0
0x00007ffff385d280  0x00007ffff3860b43  Yes (*)     /gnu/store/2zlx5p93icsrqvc0w3lzgkc6dd3wd4jl-libthai-0.1.28/lib/libthai.so.0
0x00007ffff38089f0  0x00007ffff38402ae  Yes (*)     /gnu/store/cw542z2xn36m52baflr8mb7l6y9lgic3-util-linux-2.37.2-lib/lib/libmount.so.1
0x00007ffff37e63b0  0x00007ffff37f2e71  Yes (*)     /gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/libresolv.so.2
0x00007ffff37d72b0  0x00007ffff37dd06e  Yes (*)     /gnu/store/wgqhlc12qvlwiklam7hz2r311fdcqfim-libffi-3.3/lib/libffi.so.7
0x00007ffff375f1d0  0x00007ffff37b3a14  Yes (*)     /gnu/store/di5bqb45hi5lvp2q08hlxqjdcl9phjb1-pcre-8.45/lib/libpcre.so.1
0x00007ffff3738500  0x00007ffff374efe2  Yes (*)     /gnu/store/c8isj4jq6knv0icfgr43di6q3nvdzkx7-xz-5.2.5/lib/liblzma.so.5
0x00007ffff372c290  0x00007ffff372e15a  Yes (*)     /gnu/store/jkjs0inmzhj4vsvclbf08nmh0shm7lrf-attr-2.5.1/lib/libattr.so.1
0x00007ffff3694260  0x00007ffff36fe2f6  Yes (*)     /gnu/store/mqz2h2v1i7lx555yaz89sqd06kpgdr62-pcre2-10.37/lib/libpcre2-8.so.0
0x00007ffff358a870  0x00007ffff361e13c  Yes (*)     /gnu/store/x1jd7pqfn9ilb6x97azcfq1fhjr63p0z-p11-kit-0.23.22/lib/libp11-kit.so.0
0x00007ffff353f300  0x00007ffff3542f7a  Yes (*)     /gnu/store/fjq8aca46v502mrgvrfhvif0xb6m4fz0-libidn2-2.3.1/lib/libidn2.so.0
0x00007ffff33cb0a0  0x00007ffff33fd77e  Yes (*)     /gnu/store/hkhbq2q1gfs970gsp2nhsmcqb4vmv2xr-libunistring-0.9.10/lib/libunistring.so.2
0x00007ffff33a6340  0x00007ffff33b0ebf  Yes (*)     /gnu/store/4gcznd9r1r3hlmkb2m7s1a37radgnspn-libtasn1-4.17.0/lib/libtasn1.so.6
0x00007ffff3368c20  0x00007ffff3388b68  Yes (*)     /gnu/store/manq4lcakkcakcg14rsi7467qw4c5frj-nettle-3.7.3/lib/libnettle.so.8
0x00007ffff331cee0  0x00007ffff332de5d  Yes (*)     /gnu/store/manq4lcakkcakcg14rsi7467qw4c5frj-nettle-3.7.3/lib/libhogweed.so.6
0x00007ffff33094c0  0x00007ffff330d6c6  Yes (*)     /gnu/store/a7ggx0af69gv4k5mr1k617p4vy9kgx2v-libcap-2.62/lib/libcap.so.2
0x00007ffff30743a0  0x00007ffff319e417  Yes (*)     /gnu/store/ajw8nnrnd6hr183skwqdgc8c7mazg97h-isl-0.23/lib/libisl.so.23
0x00007ffff32edcf0  0x00007ffff32fec34  Yes (*)     /gnu/store/ba02g5xkqiss6s5z8mbj9cvkal6l7b9g-mpc-1.2.1/lib/libmpc.so.3
0x00007ffff2c10500  0x00007ffff2c98630  Yes (*)     /gnu/store/pmq05n0q25v4qjyibxfrp53v4391k7vh-mpfr-4.1.0/lib/libmpfr.so.6
0x00007ffff32bc760  0x00007ffff32d1248  Yes (*)     /gnu/store/bhgmja3j0s22m9ac7kph9zmmxm6540ly-at-spi2-core-2.40.0/lib/libatspi.so.0
0x00007ffff32a2200  0x00007ffff32a57f4  Yes (*)     /gnu/store/qlz21x91bs9n3f8nangfsk6g5rfqxvaz-libdatrie-0.2.13/lib/libdatrie.so.1
0x00007ffff3257e80  0x00007ffff32887de  Yes (*)     /gnu/store/cw542z2xn36m52baflr8mb7l6y9lgic3-util-linux-2.37.2-lib/lib/libblkid.so.1
0x00007ffff2ee4060  0x00007ffff2f2ac40  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50---Type <RET> for more, q to quit, c to continue without paging--
e9a90b77/preloaded/window-0d1b8b93-4fa40494.eln
0x00007ffff1ca7060  0x00007ffff1cc2007  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/mouse-15f283fa-65a06e63.eln
0x00007ffff1bed090  0x00007ffff1c186f6  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/subr-13adf6a6-fb11dd87.eln
0x00007ffff3221060  0x00007ffff322af79  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/lisp-mode-410874a4-e02c3273.eln
0x00007ffff2ebe060  0x00007ffff2ec3f4f  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/eldoc-d20a5fe9-67ab08f4.eln
0x00007ffff1af30c0  0x00007ffff1b31e89  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/simple-fab5b0cf-2e7563e6.eln
0x00007ffff3208060  0x00007ffff320c884  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/byte-run-79ff048e-5bc92572.eln
0x00007ffff1acd0b0  0x00007ffff1ad5381  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/macroexp-2c3e1495-7fe573fd.eln
0x00007ffff1a1c060  0x00007ffff1a4cbdd  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/files-1e8937b2-1b5e6a3a.eln
0x00007ffff19f4050  0x00007ffff19fd377  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/newcomment-678006bb-f025a419.eln
0x00007ffff19dc050  0x00007ffff19e1d2d  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/tabulated-list-552ba1e5-0286342e.eln
0x00007ffff1996060  0x00007ffff19a4b50  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/faces-b9447c93-2850ee7d.eln
0x00007ffff7fbd050  0x00007ffff7fbeb6c  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/backquote-d5b20f7c-12335336.eln
0x00007ffff1952070  0x00007ffff1964c38  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/replace-fc551dbc-582fc18b.eln
0x00007ffff1933060  0x00007ffff193a94c  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/syntax-bf4e4bc4-34d5fac7.eln
0x00007ffff1920050  0x00007ffff1924506  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/uniquify-0fb233ac-905b038c.eln
0x00007ffff18dd060  0x00007ffff18ef73d  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50---Type <RET> for more, q to quit, c to continue without paging--
e9a90b77/preloaded/tab-bar-f81d329c-aa6a4706.eln
0x00007ffff18a3060  0x00007ffff18b6307  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/help-59d8049f-dd5b55f6.eln
0x00007ffff1871060  0x00007ffff187d608  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/custom-c166a157-2f4d198a.eln
0x00007ffff2eb0050  0x00007ffff2eb11ef  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/fringe-d5d49a60-c0441738.eln
0x00007ffff1838070  0x00007ffff184a3a5  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/startup-bbc6ea72-1783e454.eln
0x00007ffff1801060  0x00007ffff180ec61  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/mule-3352613d-1fec1ce7.eln
0x00007ffff17e7060  0x00007ffff17ebcd3  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/vc-hooks-cfa0878e-042cdc4f.eln
0x00007ffff17c5050  0x00007ffff17c9c77  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/bindings-d30713c5-ccc70923.eln
0x00007ffff1781060  0x00007ffff1792c46  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/mule-cmds-c8553014-f94cc7d5.eln
0x00007ffff1771050  0x00007ffff1772d9b  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/cus-face-74f1689e-e975f99d.eln
0x00007ffff175b060  0x00007ffff17600cf  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/keymap-b4249274-d948d268.eln
0x00007ffff1711060  0x00007ffff1725e07  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/frame-b40fc590-08d0792a.eln
0x00007ffff16a90b0  0x00007ffff16c772a  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/minibuffer-1b0f548b-a7624858.eln
0x00007ffff169a060  0x00007ffff169aeb9  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/epa-hook-99ab3afb-65e80994.eln
0x00007ffff1660080  0x00007ffff1675dc1  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/elisp-mode-90dbfe40-7910dc10.eln
0x00007ffff1640050  0x00007ffff1646276  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/register-80045398-74c9598f.eln
0x00007ffff15ff060  0x00007ffff1610957  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50---Type <RET> for more, q to quit, c to continue without paging--
e9a90b77/preloaded/cl-generic-be68ad15-5c514263.eln
0x00007ffff15e3050  0x00007ffff15e7832  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/cl-preloaded-6e6a1f4e-3ab436c0.eln
0x00007ffff156c060  0x00007ffff158d03b  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/isearch-693bdd75-2ee30d0b.eln
0x00007ffff154a050  0x00007ffff154e2ed  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/characters-45232aae-461c8e57.eln
0x00007ffff1544050  0x00007ffff1544432  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/widget-5b69ebb0-f2151df1.eln
0x00007ffff1536060  0x00007ffff1537c6e  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/jka-cmpr-hook-ff630d3e-7faaee46.eln
0x00007ffff1521060  0x00007ffff1526f96  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/easymenu-1fb41c0e-c8daf6b0.eln
0x00007ffff14fe060  0x00007ffff1506250  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/abbrev-2af30c9a-c08788e8.eln
0x00007ffff14ec060  0x00007ffff14ef4fd  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/paren-0f414553-4221ba92.eln
0x00007ffff14be080  0x00007ffff14c8cfd  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/font-lock-895216f6-6cafc1e6.eln
0x00007ffff14a4060  0x00007ffff14aa204  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/oclosure-b279097d-e6802564.eln
0x00007ffff1497050  0x00007ffff149974c  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/tool-bar-ae0b5bc0-2100bc40.eln
0x00007ffff1482060  0x00007ffff1486a4b  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/timer-3ee7cfd9-7286ad5c.eln
0x00007ffff146b050  0x00007ffff146d2a6  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/tty-colors-b7804baf-4c9f637b.eln
0x00007ffff145a050  0x00007ffff145eee5  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/scroll-bar-20650688-c89305e3.eln
0x00007ffff1439060  0x00007ffff143f971  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/seq-c314b42f-2019ac31.eln
0x00007ffff141f070  0x00007ffff1425b1e  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50---Type <RET> for more, q to quit, c to continue without paging--
e9a90b77/preloaded/nadvice-64630aaa-6d0a5207.eln
0x00007ffff140d060  0x00007ffff14102ea  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/prog-mode-642b2411-7a75844b.eln
0x00007ffff1403050  0x00007ffff1405378  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/regexp-opt-d2355c94-59498e32.eln
0x00007ffff13e9060  0x00007ffff13f0a3c  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/composite-beea1fd5-6028ab37.eln
0x00007ffff13df050  0x00007ffff13e048f  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/env-72406999-9c6395ca.eln
0x00007ffff13ce060  0x00007ffff13d2da7  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/dnd-12d90309-018b4344.eln
0x00007ffff13b6050  0x00007ffff13bccfd  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/format-c5b23b0d-bb653605.eln
0x00007ffff13ad060  0x00007ffff13ae09d  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/version-025f5cb3-b454efa3.eln
0x00007ffff13a8050  0x00007ffff13a8591  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/obarray-318a5d56-99c3ddb9.eln
0x00007ffff1393060  0x00007ffff13992fe  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/lisp-1e88867d-68925824.eln
0x00007ffff1373060  0x00007ffff137ae5e  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/image-f221b419-d6a9140a.eln
0x00007ffff135f050  0x00007ffff1362cbf  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/button-747c9d6e-f1e1dcc9.eln
0x00007ffff1352050  0x00007ffff1353af7  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/font-core-c3bff1fd-834a0f96.eln
0x00007ffff133f060  0x00007ffff1343bd5  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/jit-lock-8a988e43-651f5ec8.eln
0x00007ffff1326060  0x00007ffff132ba20  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/select-784d9bb7-efd4d263.eln
0x00007ffff131a060  0x00007ffff131b731  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/rfn-eshadow-25788e78-cfaff2d4.eln
0x00007ffff12d7070  0x00007ffff12e17b6  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50---Type <RET> for more, q to quit, c to continue without paging--
e9a90b77/preloaded/menu-bar-4f46ea94-59575aca.eln
0x00007ffff12bc060  0x00007ffff12c0239  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/buff-menu-da4b0b04-f9de971e.eln
0x00007ffff129e050  0x00007ffff12a583c  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/fill-19d89c43-ff5985ac.eln
0x00007ffff128e060  0x00007ffff1290fd3  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/paragraphs-faf2e9b4-0c04ea34.eln
0x00007ffff1277060  0x00007ffff127c7de  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/electric-a9ca6cdd-df8c4d49.eln
0x00007ffff1261050  0x00007ffff1265baa  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/indent-396b3792-4c878d88.eln
0x00007ffff1254050  0x00007ffff1255ca0  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/common-win-4b869e38-e45e9a3a.eln
0x00007ffff1248050  0x00007ffff1249bf2  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/text-mode-7f741068-e610ba61.eln
0x00007ffff1239060  0x00007ffff123b40e  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/pgtk-win-9e6b24f1-72bd48d8.eln
0x00007ffff122b060  0x00007ffff122db9f  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/pgtk-dnd-6859c677-23dfb949.eln
0x00007ffff1210070  0x00007ffff121512b  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/fontset-da863153-0f7b9bbe.eln
0x00007ffff1200060  0x00007ffff12021e7  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/tooltip-29462ede-2a67f34c.eln
0x00007ffff11f7050  0x00007ffff11f80c3  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/case-table-3a8e2808-5e98b061.eln
0x00007ffff11f0050  0x00007ffff11f1065  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/page-ee7241cc-3a324cb4.eln
0x00007ffff11e2060  0x00007ffff11e598f  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/map-ynp-990591b5-4ed41887.eln
0x00007ffff11d0050  0x00007ffff11d0ca9  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/cus-start-26315480-c381dd9d.eln
0x00007ffff11be060  0x00007ffff11c206a  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50---Type <RET> for more, q to quit, c to continue without paging--
e9a90b77/preloaded/mwheel-168e9ec3-f1225697.eln
0x00007ffff11b0050  0x00007ffff11b0cc3  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/european-369de593-05389032.eln
0x00007ffff11ab050  0x00007ffff11ab817  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/shorthands-1dc1e95e-1a94337e.eln
0x00007ffff1192130  0x00007ffff119e04e  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/cconv-3b1f1f98-703fd547.eln
0x00007ffff118a050  0x00007ffff118aa33  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/iso-transl-466860a2-970c19c5.eln
0x00007ffff1180060  0x00007ffff1181c7d  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/misc-lang-7cb33d20-bcb018cf.eln
0x00007ffff1174060  0x00007ffff1176bd8  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/rmc-9c382b5d-100c7d80.eln
0x00007ffff116f050  0x00007ffff116fa1b  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/dynamic-setting-55f80457-43cc97d6.eln
0x00007ffff116a050  0x00007ffff116a78c  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/debug-early-d734b212-1d650c79.eln
0x00007ffff115d050  0x00007ffff115da3a  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/indian-0c4ce628-3242b0c1.eln
0x00007ffff1155050  0x00007ffff11566ef  Yes (*)     /gnu/store/53i9x21a95h60fxkisvai94l9zmw1zgs-emacs-next-pgtk-30.0.50-0.ac7ec87/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-e9a90b77/preloaded/hebrew-b9ed6a0d-135c9dc3.eln
0x00007ffff10e32d0  0x00007ffff10e8ca1  Yes (*)     /gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/libnss_files.so.2
0x00007ffff10b52e0  0x00007ffff10b66c3  Yes (*)     /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/gtk-3.0/3.0.0/immodules/im-wayland.so
0x00007ffff0016110  0x00007ffff0016519  Yes (*)     /gnu/store/h535chkkqnw1zhbn4sy6l7g052n2p2vs-librsvg-2.50.7/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so
0x00007ffff0007300  0x00007ffff0008719  Yes (*)     /gnu/store/pd5dzxy8qr22ccmicp6dvmxvwsc7j1jj-gdk-pixbuf-2.42.4/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xpm.so
(*): Shared library is missing debugging information.
--8<---------------cut here---------------end--------------->8---

It seems the debugging information is missing for libgtk, trying to
figure out how to load it, but with no success yet.

-- 
Best regards,
Andrew Tropin

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* bug#62291: 30.0.50; PGTK copy + paste to other app problem
  2023-03-21 10:30         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-03-21 13:25           ` Andrew Tropin
@ 2023-03-21 16:13           ` Andrew Tropin
  2023-03-22  0:39             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 1 reply; 26+ messages in thread
From: Andrew Tropin @ 2023-03-21 16:13 UTC (permalink / raw)
  To: Po Lu; +Cc: 62291

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

On 2023-03-21 18:30, Po Lu wrote:

> Andrew Tropin <andrew@trop.in> writes:
>
>> #0  0x00007ffff71a9424 in signal_emit_unlocked_R.isra.0 () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
>> #1  0x00007ffff71af21b in g_signal_emit_valist () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
>> #2  0x00007ffff71af722 in g_signal_emit () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
>> #3  0x00007ffff719b884 in g_object_dispatch_properties_changed () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
>> #4  0x00007ffff719d834 in g_object_notify_by_pspec () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
>> #5  0x00007ffff79afbcd in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgtk-3.so.0
>> #6  0x00007ffff79de357 in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgtk-3.so.0
>> #7  0x00007ffff71974af in g_closure_invoke () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
>> #8  0x00007ffff71a89e9 in signal_emit_unlocked_R.isra.0 () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
>> #9  0x00007ffff71aed65 in g_signal_emit_valist () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
>> #10 0x00007ffff71af722 in g_signal_emit () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0
>> #11 0x00007ffff798ac04 in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgtk-3.so.0
>> #12 0x00007ffff784b37a in gtk_main_do_event () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgtk-3.so.0
>> #13 0x00007ffff7ef23c5 in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgdk-3.so.0
>> #14 0x00007ffff7f4f352 in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgdk-3.so.0
>> #15 0x00007ffff70a34cb in g_main_context_dispatch () from /gnu/store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libglib-2.0.so.0
>> #16 0x000000000064c548 in pgtk_read_socket (terminal=<optimized out>, hold_quit=0x7fffffffba00) at pgtkterm.c:3840
>> #17 pgtk_read_socket (terminal=<optimized out>, hold_quit=0x7fffffffba00) at pgtkterm.c:3819
>> #18 0x0000000000515762 in gobble_input () at keyboard.c:7416
>> #19 0x0000000000515b85 in handle_async_input () at keyboard.c:7647
>> #20 process_pending_signals () at keyboard.c:7661
>> #21 unblock_input_to (level=0) at keyboard.c:7676
>> #22 unblock_input_to (level=<optimized out>) at keyboard.c:7670
>> #23 0x0000000000516a38 in unblock_input () at keyboard.c:7695
>> #24 timer_check () at keyboard.c:4741
>> #25 0x0000000000516f75 in readable_events (flags=flags@entry=1) at keyboard.c:3523
>> #26 0x0000000000517138 in get_input_pending (flags=flags@entry=1) at keyboard.c:7366
>> #27 0x000000000051beb8 in detect_input_pending_run_timers (do_display=do_display@entry=true) at keyboard.c:10896
>> #28 0x00000000005f40c8 in wait_reading_process_output (time_limit=time_limit@entry=30, nsecs=nsecs@entry=0, read_kbd=read_kbd@entry=-1, do_display=do_display@entry=true, 
>>     wait_for_cell=wait_for_cell@entry=0x0, wait_proc=wait_proc@entry=0x0, just_wait_proc=<optimized out>) at process.c:5779
>> #29 0x0000000000437bd0 in sit_for (timeout=timeout@entry=0x7a, reading=reading@entry=true, display_option=display_option@entry=1) at dispnew.c:6256
>> #30 0x000000000051ea0f in read_char (commandflag=1, map=0xdecb23, prev_event=0x0, used_mouse_menu=0x7fffffffc55b, end_time=0x0) at lisp.h:759
>> #31 0x000000000051f2ed in read_key_sequence (keybuf=<optimized out>, prompt=0x0, dont_downcase_last=<optimized out>, can_return_switch_frame=true, fix_current_buffer=true, 
>>     prevent_redisplay=<optimized out>) at keyboard.c:10073
>> #32 0x0000000000520f12 in command_loop_1 () at lisp.h:1164
>> --Type <RET> for more, q to quit, c to continue without paging--
>> #33 0x0000000000596757 in internal_condition_case (bfun=bfun@entry=0x520d40 <command_loop_1>, handlers=handlers@entry=0x90, hfun=hfun@entry=0x514390 <cmd_error>) at eval.c:1474
>> #34 0x000000000050d13a in command_loop_2 (handlers=handlers@entry=0x90) at keyboard.c:1124
>> #35 0x00000000005966b1 in internal_catch (tag=tag@entry=0xfea0, func=func@entry=0x50d120 <command_loop_2>, arg=arg@entry=0x90) at eval.c:1197
>> #36 0x000000000050d0df in command_loop () at lisp.h:1164
>> #37 0x0000000000513f43 in recursive_edit_1 () at keyboard.c:711
>> #38 0x00000000005142ba in Frecursive_edit () at keyboard.c:794
>> #39 0x000000000042d022 in main (argc=<optimized out>, argv=<optimized out>) at emacs.c:2529
>> (gdb) frame 12
>> #12 0x00007ffff784b37a in gtk_main_do_event () from /gnu/store/1y2rd23xx129v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgtk-3.so.0
>> (gdb) p *event
>> No symbol "event" in current context.
>> (gdb) p *event<TAB>
>> event_arm_timer                                        event_head                                             event_queue_insert_if_intersect_below_current_y[part]
>> event_callback                                         event_inotify_data_drop                                event_queue_t
>> event_check                                            event_insert_if_intersect_below_current_y              event_source_type_table
>> event_dispatch                                         event_kind                                             event_to_kboard
>> event_free[part]                                       event_listeners                                        event_unmask_signal_data
>> event_free_inode_data                                  event_log_delays                                       eventfd
>> event_free_inotify_data                                event_make_inode_data                                  eventfd@got[plt]
>> event_free_signal_data                                 event_make_inotify_data                                eventfd@plt
>> event_funcs                                            event_make_signal_data                                 eventfd_read
>> event_gc_inode_data                                    event_next_pending                                     eventfd_write
>> event_gc_signal_data                                   event_prepare                                          
>> event_get_clock_data                                   event_q 
>>
>> It complains `No symbol "event" in current context.`, am I did something
>> wrong?
>
> Yes, you didn't get debug information loaded in GDB.
>
> What does:
>
>   (gdb) info sharedlibrary
>
> say?

Ok, with the help of apteryx, I was able to figure it out, there were a
problem in grafts mechanism, so A proper command is:

guix shell gdb emacs-next-pgtk --with-debug-info=emacs-next-pgtk \
--with-debug-info=gtk+ --with-debug-info=glib --no-grafts

The output is here:
--8<---------------cut here---------------start------------->8---
(gdb) frame 12
#12 0x00007ffff798ac04 in gtk_widget_event_internal (widget=widget@entry=0xfee500, event=event@entry=0xfdb4a0) at gtkwidget.c:7808
7808    in gtkwidget.c
(gdb) p *event
$3 = {type = GDK_FOCUS_CHANGE, any = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000'}, expose = {type = GDK_FOCUS_CHANGE, window = 0xefc450, 
    send_event = 0 '\000', area = {x = 0, y = 0, width = 0, height = 0}, region = 0x0, count = 0}, visibility = {type = GDK_FOCUS_CHANGE, window = 0xefc450, 
    send_event = 0 '\000', state = GDK_VISIBILITY_UNOBSCURED}, motion = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, x = 0, y = 0, axes = 0x0, 
    state = 0, is_hint = 0, device = 0x0, x_root = 0, y_root = 0}, button = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, x = 0, y = 0, 
    axes = 0x0, state = 0, button = 0, device = 0x0, x_root = 0, y_root = 0}, touch = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, x = 0, 
    y = 0, axes = 0x0, state = 0, sequence = 0x0, emulating_pointer = 0, device = 0x0, x_root = 0, y_root = 0}, scroll = {type = GDK_FOCUS_CHANGE, window = 0xefc450, 
    send_event = 0 '\000', time = 0, x = 0, y = 0, state = 0, direction = GDK_SCROLL_UP, device = 0x0, x_root = 0, y_root = 0, delta_x = 0, delta_y = 0, is_stop = 0}, key = {
    type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, state = 0, keyval = 0, length = 0, string = 0x0, hardware_keycode = 0, group = 0 '\000', 
    is_modifier = 0}, crossing = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', subwindow = 0x0, time = 0, x = 0, y = 0, x_root = 0, y_root = 0, 
    mode = GDK_CROSSING_NORMAL, detail = GDK_NOTIFY_ANCESTOR, focus = 0, state = 0}, focus_change = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', in = 1}, 
  configure = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', x = 0, y = 0, width = 0, height = 0}, property = {type = GDK_FOCUS_CHANGE, window = 0xefc450, 
    send_event = 0 '\000', atom = 0x0, time = 0, state = 0}, selection = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', selection = 0x0, target = 0x0, 
    property = 0x0, time = 0, requestor = 0x0}, owner_change = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', owner = 0x0, 
    reason = GDK_OWNER_CHANGE_NEW_OWNER, selection = 0x0, time = 0, selection_time = 0}, proximity = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', 
    time = 0, device = 0x0}, dnd = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', context = 0x0, time = 0, x_root = 0, y_root = 0}, window_state = {
    type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', changed_mask = 0, new_window_state = 0}, setting = {type = GDK_FOCUS_CHANGE, window = 0xefc450, 
    send_event = 0 '\000', action = GDK_SETTING_ACTION_NEW, name = 0x0}, grab_broken = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', keyboard = 0, 
    implicit = 0, grab_window = 0x0}, touchpad_swipe = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', phase = 0 '\000', n_fingers = 1 '\001', time = 0, 
    x = 0, y = 0, dx = 0, dy = 0, x_root = 0, y_root = 0, state = 0}, touchpad_pinch = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', phase = 0 '\000', 
    n_fingers = 1 '\001', time = 0, x = 0, y = 0, dx = 0, dy = 0, angle_delta = 0, scale = 0, x_root = 0, y_root = 0, state = 0}, pad_button = {type = GDK_FOCUS_CHANGE, 
    window = 0xefc450, send_event = 0 '\000', time = 0, group = 0, button = 0, mode = 0}, pad_axis = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', 
    time = 0, group = 0, index = 0, mode = 0, value = 0}, pad_group_mode = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, group = 0, mode = 0}}
--8<---------------cut here---------------end--------------->8---

Thank you for your patience :)

-- 
Best regards,
Andrew Tropin

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* bug#62291: 30.0.50; PGTK copy + paste to other app problem
  2023-03-21 16:13           ` Andrew Tropin
@ 2023-03-22  0:39             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-03-22  4:42               ` Andrew Tropin
  0 siblings, 1 reply; 26+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-03-22  0:39 UTC (permalink / raw)
  To: Andrew Tropin; +Cc: 62291

Andrew Tropin <andrew@trop.in> writes:

> (gdb) frame 12
> #12 0x00007ffff798ac04 in gtk_widget_event_internal (widget=widget@entry=0xfee500, event=event@entry=0xfdb4a0) at gtkwidget.c:7808
> 7808    in gtkwidget.c
> (gdb) p *event
> $3 = {type = GDK_FOCUS_CHANGE, any = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000'}, expose = {type = GDK_FOCUS_CHANGE, window = 0xefc450, 
>     send_event = 0 '\000', area = {x = 0, y = 0, width = 0, height = 0}, region = 0x0, count = 0}, visibility = {type = GDK_FOCUS_CHANGE, window = 0xefc450, 
>     send_event = 0 '\000', state = GDK_VISIBILITY_UNOBSCURED}, motion = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, x = 0, y = 0, axes = 0x0, 
>     state = 0, is_hint = 0, device = 0x0, x_root = 0, y_root = 0}, button = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, x = 0, y = 0, 
>     axes = 0x0, state = 0, button = 0, device = 0x0, x_root = 0, y_root = 0}, touch = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, x = 0, 
>     y = 0, axes = 0x0, state = 0, sequence = 0x0, emulating_pointer = 0, device = 0x0, x_root = 0, y_root = 0}, scroll = {type = GDK_FOCUS_CHANGE, window = 0xefc450, 
>     send_event = 0 '\000', time = 0, x = 0, y = 0, state = 0, direction = GDK_SCROLL_UP, device = 0x0, x_root = 0, y_root = 0, delta_x = 0, delta_y = 0, is_stop = 0}, key = {
>     type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, state = 0, keyval = 0, length = 0, string = 0x0, hardware_keycode = 0, group = 0 '\000', 
>     is_modifier = 0}, crossing = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', subwindow = 0x0, time = 0, x = 0, y = 0, x_root = 0, y_root = 0, 
>     mode = GDK_CROSSING_NORMAL, detail = GDK_NOTIFY_ANCESTOR, focus = 0, state = 0}, focus_change = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', in = 1}, 
>   configure = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', x = 0, y = 0, width = 0, height = 0}, property = {type = GDK_FOCUS_CHANGE, window = 0xefc450, 
>     send_event = 0 '\000', atom = 0x0, time = 0, state = 0}, selection = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', selection = 0x0, target = 0x0, 
>     property = 0x0, time = 0, requestor = 0x0}, owner_change = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', owner = 0x0, 
>     reason = GDK_OWNER_CHANGE_NEW_OWNER, selection = 0x0, time = 0, selection_time = 0}, proximity = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', 
>     time = 0, device = 0x0}, dnd = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', context = 0x0, time = 0, x_root = 0, y_root = 0}, window_state = {
>     type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', changed_mask = 0, new_window_state = 0}, setting = {type = GDK_FOCUS_CHANGE, window = 0xefc450, 
>     send_event = 0 '\000', action = GDK_SETTING_ACTION_NEW, name = 0x0}, grab_broken = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', keyboard = 0, 
>     implicit = 0, grab_window = 0x0}, touchpad_swipe = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', phase = 0 '\000', n_fingers = 1 '\001', time = 0, 
>     x = 0, y = 0, dx = 0, dy = 0, x_root = 0, y_root = 0, state = 0}, touchpad_pinch = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', phase = 0 '\000', 
>     n_fingers = 1 '\001', time = 0, x = 0, y = 0, dx = 0, dy = 0, angle_delta = 0, scale = 0, x_root = 0, y_root = 0, state = 0}, pad_button = {type = GDK_FOCUS_CHANGE, 
>     window = 0xefc450, send_event = 0 '\000', time = 0, group = 0, button = 0, mode = 0}, pad_axis = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', 
>     time = 0, group = 0, index = 0, mode = 0, value = 0}, pad_group_mode = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, group = 0, mode = 0}}
>
> Thank you for your patience :)

OK, thanks.  This is quite odd.  If you type:

  (gdb) p G_OBJECT_TYPE_NAME (widget)

what do you see?





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

* bug#62291: 30.0.50; PGTK copy + paste to other app problem
  2023-03-22  0:39             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-03-22  4:42               ` Andrew Tropin
  2023-03-22  6:11                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 26+ messages in thread
From: Andrew Tropin @ 2023-03-22  4:42 UTC (permalink / raw)
  To: Po Lu; +Cc: 62291

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

On 2023-03-22 08:39, Po Lu wrote:

> Andrew Tropin <andrew@trop.in> writes:
>
>> (gdb) frame 12
>> #12 0x00007ffff798ac04 in gtk_widget_event_internal (widget=widget@entry=0xfee500, event=event@entry=0xfdb4a0) at gtkwidget.c:7808
>> 7808    in gtkwidget.c
>> (gdb) p *event
>> $3 = {type = GDK_FOCUS_CHANGE, any = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000'}, expose = {type = GDK_FOCUS_CHANGE, window = 0xefc450, 
>>     send_event = 0 '\000', area = {x = 0, y = 0, width = 0, height = 0}, region = 0x0, count = 0}, visibility = {type = GDK_FOCUS_CHANGE, window = 0xefc450, 
>>     send_event = 0 '\000', state = GDK_VISIBILITY_UNOBSCURED}, motion = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, x = 0, y = 0, axes = 0x0, 
>>     state = 0, is_hint = 0, device = 0x0, x_root = 0, y_root = 0}, button = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, x = 0, y = 0, 
>>     axes = 0x0, state = 0, button = 0, device = 0x0, x_root = 0, y_root = 0}, touch = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, x = 0, 
>>     y = 0, axes = 0x0, state = 0, sequence = 0x0, emulating_pointer = 0, device = 0x0, x_root = 0, y_root = 0}, scroll = {type = GDK_FOCUS_CHANGE, window = 0xefc450, 
>>     send_event = 0 '\000', time = 0, x = 0, y = 0, state = 0, direction = GDK_SCROLL_UP, device = 0x0, x_root = 0, y_root = 0, delta_x = 0, delta_y = 0, is_stop = 0}, key = {
>>     type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, state = 0, keyval = 0, length = 0, string = 0x0, hardware_keycode = 0, group = 0 '\000', 
>>     is_modifier = 0}, crossing = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', subwindow = 0x0, time = 0, x = 0, y = 0, x_root = 0, y_root = 0, 
>>     mode = GDK_CROSSING_NORMAL, detail = GDK_NOTIFY_ANCESTOR, focus = 0, state = 0}, focus_change = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', in = 1}, 
>>   configure = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', x = 0, y = 0, width = 0, height = 0}, property = {type = GDK_FOCUS_CHANGE, window = 0xefc450, 
>>     send_event = 0 '\000', atom = 0x0, time = 0, state = 0}, selection = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', selection = 0x0, target = 0x0, 
>>     property = 0x0, time = 0, requestor = 0x0}, owner_change = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', owner = 0x0, 
>>     reason = GDK_OWNER_CHANGE_NEW_OWNER, selection = 0x0, time = 0, selection_time = 0}, proximity = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', 
>>     time = 0, device = 0x0}, dnd = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', context = 0x0, time = 0, x_root = 0, y_root = 0}, window_state = {
>>     type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', changed_mask = 0, new_window_state = 0}, setting = {type = GDK_FOCUS_CHANGE, window = 0xefc450, 
>>     send_event = 0 '\000', action = GDK_SETTING_ACTION_NEW, name = 0x0}, grab_broken = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', keyboard = 0, 
>>     implicit = 0, grab_window = 0x0}, touchpad_swipe = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', phase = 0 '\000', n_fingers = 1 '\001', time = 0, 
>>     x = 0, y = 0, dx = 0, dy = 0, x_root = 0, y_root = 0, state = 0}, touchpad_pinch = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', phase = 0 '\000', 
>>     n_fingers = 1 '\001', time = 0, x = 0, y = 0, dx = 0, dy = 0, angle_delta = 0, scale = 0, x_root = 0, y_root = 0, state = 0}, pad_button = {type = GDK_FOCUS_CHANGE, 
>>     window = 0xefc450, send_event = 0 '\000', time = 0, group = 0, button = 0, mode = 0}, pad_axis = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', 
>>     time = 0, group = 0, index = 0, mode = 0, value = 0}, pad_group_mode = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, group = 0, mode = 0}}
>>
>> Thank you for your patience :)
>
> OK, thanks.  This is quite odd.  If you type:
>
>   (gdb) p G_OBJECT_TYPE_NAME (widget)
>
> what do you see?

(gdb) p G_OBJECT_TYPE_NAME (widget)
No symbol "G_OBJECT_TYPE_NAME" in current context.

-- 
Best regards,
Andrew Tropin

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* bug#62291: 30.0.50; PGTK copy + paste to other app problem
  2023-03-22  4:42               ` Andrew Tropin
@ 2023-03-22  6:11                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-03-22  7:28                   ` Andrew Tropin
  0 siblings, 1 reply; 26+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-03-22  6:11 UTC (permalink / raw)
  To: Andrew Tropin; +Cc: 62291

Andrew Tropin <andrew@trop.in> writes:

> On 2023-03-22 08:39, Po Lu wrote:
>
>> Andrew Tropin <andrew@trop.in> writes:
>>
>>> (gdb) frame 12
>>> #12 0x00007ffff798ac04 in gtk_widget_event_internal (widget=widget@entry=0xfee500, event=event@entry=0xfdb4a0) at gtkwidget.c:7808
>>> 7808    in gtkwidget.c
>>> (gdb) p *event
>>> $3 = {type = GDK_FOCUS_CHANGE, any = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000'}, expose = {type = GDK_FOCUS_CHANGE, window = 0xefc450, 
>>>     send_event = 0 '\000', area = {x = 0, y = 0, width = 0, height = 0}, region = 0x0, count = 0}, visibility = {type = GDK_FOCUS_CHANGE, window = 0xefc450, 
>>>     send_event = 0 '\000', state = GDK_VISIBILITY_UNOBSCURED}, motion = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, x = 0, y = 0, axes = 0x0, 
>>>     state = 0, is_hint = 0, device = 0x0, x_root = 0, y_root = 0}, button = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, x = 0, y = 0, 
>>>     axes = 0x0, state = 0, button = 0, device = 0x0, x_root = 0, y_root = 0}, touch = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, x = 0, 
>>>     y = 0, axes = 0x0, state = 0, sequence = 0x0, emulating_pointer = 0, device = 0x0, x_root = 0, y_root = 0}, scroll = {type = GDK_FOCUS_CHANGE, window = 0xefc450, 
>>>     send_event = 0 '\000', time = 0, x = 0, y = 0, state = 0, direction = GDK_SCROLL_UP, device = 0x0, x_root = 0, y_root = 0, delta_x = 0, delta_y = 0, is_stop = 0}, key = {
>>>     type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, state = 0, keyval = 0, length = 0, string = 0x0, hardware_keycode = 0, group = 0 '\000', 
>>>     is_modifier = 0}, crossing = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', subwindow = 0x0, time = 0, x = 0, y = 0, x_root = 0, y_root = 0, 
>>>     mode = GDK_CROSSING_NORMAL, detail = GDK_NOTIFY_ANCESTOR, focus = 0, state = 0}, focus_change = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', in = 1}, 
>>>   configure = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', x = 0, y = 0, width = 0, height = 0}, property = {type = GDK_FOCUS_CHANGE, window = 0xefc450, 
>>>     send_event = 0 '\000', atom = 0x0, time = 0, state = 0}, selection = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', selection = 0x0, target = 0x0, 
>>>     property = 0x0, time = 0, requestor = 0x0}, owner_change = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', owner = 0x0, 
>>>     reason = GDK_OWNER_CHANGE_NEW_OWNER, selection = 0x0, time = 0, selection_time = 0}, proximity = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', 
>>>     time = 0, device = 0x0}, dnd = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', context = 0x0, time = 0, x_root = 0, y_root = 0}, window_state = {
>>>     type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', changed_mask = 0, new_window_state = 0}, setting = {type = GDK_FOCUS_CHANGE, window = 0xefc450, 
>>>     send_event = 0 '\000', action = GDK_SETTING_ACTION_NEW, name = 0x0}, grab_broken = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', keyboard = 0, 
>>>     implicit = 0, grab_window = 0x0}, touchpad_swipe = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', phase = 0 '\000', n_fingers = 1 '\001', time = 0, 
>>>     x = 0, y = 0, dx = 0, dy = 0, x_root = 0, y_root = 0, state = 0}, touchpad_pinch = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', phase = 0 '\000', 
>>>     n_fingers = 1 '\001', time = 0, x = 0, y = 0, dx = 0, dy = 0, angle_delta = 0, scale = 0, x_root = 0, y_root = 0, state = 0}, pad_button = {type = GDK_FOCUS_CHANGE, 
>>>     window = 0xefc450, send_event = 0 '\000', time = 0, group = 0, button = 0, mode = 0}, pad_axis = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', 
>>>     time = 0, group = 0, index = 0, mode = 0, value = 0}, pad_group_mode = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, group = 0, mode = 0}}
>>>
>>> Thank you for your patience :)
>>
>> OK, thanks.  This is quite odd.  If you type:
>>
>>   (gdb) p G_OBJECT_TYPE_NAME (widget)
>>
>> what do you see?
>
> (gdb) p G_OBJECT_TYPE_NAME (widget)
> No symbol "G_OBJECT_TYPE_NAME" in current context.

Hmm.  Would you please try this instead?

  (gdb) p g_type_name (((GTypeInstance *) widget)->g_class->g_type)





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

* bug#62291: 30.0.50; PGTK copy + paste to other app problem
  2023-03-22  6:11                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-03-22  7:28                   ` Andrew Tropin
  2023-03-22 10:33                     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 26+ messages in thread
From: Andrew Tropin @ 2023-03-22  7:28 UTC (permalink / raw)
  To: Po Lu; +Cc: 62291

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

On 2023-03-22 14:11, Po Lu wrote:

> Andrew Tropin <andrew@trop.in> writes:
>
>> On 2023-03-22 08:39, Po Lu wrote:
>>
>>> Andrew Tropin <andrew@trop.in> writes:
>>>
>>>> (gdb) frame 12
>>>> #12 0x00007ffff798ac04 in gtk_widget_event_internal (widget=widget@entry=0xfee500, event=event@entry=0xfdb4a0) at gtkwidget.c:7808
>>>> 7808    in gtkwidget.c
>>>> (gdb) p *event
>>>> $3 = {type = GDK_FOCUS_CHANGE, any = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000'}, expose = {type = GDK_FOCUS_CHANGE, window = 0xefc450, 
>>>>     send_event = 0 '\000', area = {x = 0, y = 0, width = 0, height = 0}, region = 0x0, count = 0}, visibility = {type = GDK_FOCUS_CHANGE, window = 0xefc450, 
>>>>     send_event = 0 '\000', state = GDK_VISIBILITY_UNOBSCURED}, motion = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, x = 0, y = 0, axes = 0x0, 
>>>>     state = 0, is_hint = 0, device = 0x0, x_root = 0, y_root = 0}, button = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, x = 0, y = 0, 
>>>>     axes = 0x0, state = 0, button = 0, device = 0x0, x_root = 0, y_root = 0}, touch = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, x = 0, 
>>>>     y = 0, axes = 0x0, state = 0, sequence = 0x0, emulating_pointer = 0, device = 0x0, x_root = 0, y_root = 0}, scroll = {type = GDK_FOCUS_CHANGE, window = 0xefc450, 
>>>>     send_event = 0 '\000', time = 0, x = 0, y = 0, state = 0, direction = GDK_SCROLL_UP, device = 0x0, x_root = 0, y_root = 0, delta_x = 0, delta_y = 0, is_stop = 0}, key = {
>>>>     type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, state = 0, keyval = 0, length = 0, string = 0x0, hardware_keycode = 0, group = 0 '\000', 
>>>>     is_modifier = 0}, crossing = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', subwindow = 0x0, time = 0, x = 0, y = 0, x_root = 0, y_root = 0, 
>>>>     mode = GDK_CROSSING_NORMAL, detail = GDK_NOTIFY_ANCESTOR, focus = 0, state = 0}, focus_change = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', in = 1}, 
>>>>   configure = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', x = 0, y = 0, width = 0, height = 0}, property = {type = GDK_FOCUS_CHANGE, window = 0xefc450, 
>>>>     send_event = 0 '\000', atom = 0x0, time = 0, state = 0}, selection = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', selection = 0x0, target = 0x0, 
>>>>     property = 0x0, time = 0, requestor = 0x0}, owner_change = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', owner = 0x0, 
>>>>     reason = GDK_OWNER_CHANGE_NEW_OWNER, selection = 0x0, time = 0, selection_time = 0}, proximity = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', 
>>>>     time = 0, device = 0x0}, dnd = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', context = 0x0, time = 0, x_root = 0, y_root = 0}, window_state = {
>>>>     type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', changed_mask = 0, new_window_state = 0}, setting = {type = GDK_FOCUS_CHANGE, window = 0xefc450, 
>>>>     send_event = 0 '\000', action = GDK_SETTING_ACTION_NEW, name = 0x0}, grab_broken = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', keyboard = 0, 
>>>>     implicit = 0, grab_window = 0x0}, touchpad_swipe = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', phase = 0 '\000', n_fingers = 1 '\001', time = 0, 
>>>>     x = 0, y = 0, dx = 0, dy = 0, x_root = 0, y_root = 0, state = 0}, touchpad_pinch = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', phase = 0 '\000', 
>>>>     n_fingers = 1 '\001', time = 0, x = 0, y = 0, dx = 0, dy = 0, angle_delta = 0, scale = 0, x_root = 0, y_root = 0, state = 0}, pad_button = {type = GDK_FOCUS_CHANGE, 
>>>>     window = 0xefc450, send_event = 0 '\000', time = 0, group = 0, button = 0, mode = 0}, pad_axis = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', 
>>>>     time = 0, group = 0, index = 0, mode = 0, value = 0}, pad_group_mode = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, group = 0, mode = 0}}
>>>>
>>>> Thank you for your patience :)
>>>
>>> OK, thanks.  This is quite odd.  If you type:
>>>
>>>   (gdb) p G_OBJECT_TYPE_NAME (widget)
>>>
>>> what do you see?
>>
>> (gdb) p G_OBJECT_TYPE_NAME (widget)
>> No symbol "G_OBJECT_TYPE_NAME" in current context.
>
> Hmm.  Would you please try this instead?
>
>   (gdb) p g_type_name (((GTypeInstance *) widget)->g_class->g_type)

(gdb)  p g_type_name (((GTypeInstance *) widget)->g_class->g_type)
'g_type_name' has unknown return type; cast the call to its declared return type

-- 
Best regards,
Andrew Tropin

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* bug#62291: 30.0.50; PGTK copy + paste to other app problem
  2023-03-22  7:28                   ` Andrew Tropin
@ 2023-03-22 10:33                     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-03-22 11:02                       ` Andrew Tropin
  0 siblings, 1 reply; 26+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-03-22 10:33 UTC (permalink / raw)
  To: Andrew Tropin; +Cc: 62291

Andrew Tropin <andrew@trop.in> writes:

> On 2023-03-22 14:11, Po Lu wrote:
>
>> Andrew Tropin <andrew@trop.in> writes:
>>
>>> On 2023-03-22 08:39, Po Lu wrote:
>>>
>>>> Andrew Tropin <andrew@trop.in> writes:
>>>>
>>>>> (gdb) frame 12
>>>>> #12 0x00007ffff798ac04 in gtk_widget_event_internal (widget=widget@entry=0xfee500, event=event@entry=0xfdb4a0) at gtkwidget.c:7808
>>>>> 7808    in gtkwidget.c
>>>>> (gdb) p *event
>>>>> $3 = {type = GDK_FOCUS_CHANGE, any = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000'}, expose = {type = GDK_FOCUS_CHANGE, window = 0xefc450, 
>>>>>     send_event = 0 '\000', area = {x = 0, y = 0, width = 0, height = 0}, region = 0x0, count = 0}, visibility = {type = GDK_FOCUS_CHANGE, window = 0xefc450, 
>>>>>     send_event = 0 '\000', state = GDK_VISIBILITY_UNOBSCURED}, motion = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, x = 0, y = 0, axes = 0x0, 
>>>>>     state = 0, is_hint = 0, device = 0x0, x_root = 0, y_root = 0}, button = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, x = 0, y = 0, 
>>>>>     axes = 0x0, state = 0, button = 0, device = 0x0, x_root = 0, y_root = 0}, touch = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, x = 0, 
>>>>>     y = 0, axes = 0x0, state = 0, sequence = 0x0, emulating_pointer = 0, device = 0x0, x_root = 0, y_root = 0}, scroll = {type = GDK_FOCUS_CHANGE, window = 0xefc450, 
>>>>>     send_event = 0 '\000', time = 0, x = 0, y = 0, state = 0, direction = GDK_SCROLL_UP, device = 0x0, x_root = 0, y_root = 0, delta_x = 0, delta_y = 0, is_stop = 0}, key = {
>>>>>     type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, state = 0, keyval = 0, length = 0, string = 0x0, hardware_keycode = 0, group = 0 '\000', 
>>>>>     is_modifier = 0}, crossing = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', subwindow = 0x0, time = 0, x = 0, y = 0, x_root = 0, y_root = 0, 
>>>>>     mode = GDK_CROSSING_NORMAL, detail = GDK_NOTIFY_ANCESTOR, focus = 0, state = 0}, focus_change = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', in = 1}, 
>>>>>   configure = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', x = 0, y = 0, width = 0, height = 0}, property = {type = GDK_FOCUS_CHANGE, window = 0xefc450, 
>>>>>     send_event = 0 '\000', atom = 0x0, time = 0, state = 0}, selection = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', selection = 0x0, target = 0x0, 
>>>>>     property = 0x0, time = 0, requestor = 0x0}, owner_change = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', owner = 0x0, 
>>>>>     reason = GDK_OWNER_CHANGE_NEW_OWNER, selection = 0x0, time = 0, selection_time = 0}, proximity = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', 
>>>>>     time = 0, device = 0x0}, dnd = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', context = 0x0, time = 0, x_root = 0, y_root = 0}, window_state = {
>>>>>     type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', changed_mask = 0, new_window_state = 0}, setting = {type = GDK_FOCUS_CHANGE, window = 0xefc450, 
>>>>>     send_event = 0 '\000', action = GDK_SETTING_ACTION_NEW, name = 0x0}, grab_broken = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', keyboard = 0, 
>>>>>     implicit = 0, grab_window = 0x0}, touchpad_swipe = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', phase = 0 '\000', n_fingers = 1 '\001', time = 0, 
>>>>>     x = 0, y = 0, dx = 0, dy = 0, x_root = 0, y_root = 0, state = 0}, touchpad_pinch = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', phase = 0 '\000', 
>>>>>     n_fingers = 1 '\001', time = 0, x = 0, y = 0, dx = 0, dy = 0, angle_delta = 0, scale = 0, x_root = 0, y_root = 0, state = 0}, pad_button = {type = GDK_FOCUS_CHANGE, 
>>>>>     window = 0xefc450, send_event = 0 '\000', time = 0, group = 0, button = 0, mode = 0}, pad_axis = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', 
>>>>>     time = 0, group = 0, index = 0, mode = 0, value = 0}, pad_group_mode = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, group = 0, mode = 0}}
>>>>>
>>>>> Thank you for your patience :)
>>>>
>>>> OK, thanks.  This is quite odd.  If you type:
>>>>
>>>>   (gdb) p G_OBJECT_TYPE_NAME (widget)
>>>>
>>>> what do you see?
>>>
>>> (gdb) p G_OBJECT_TYPE_NAME (widget)
>>> No symbol "G_OBJECT_TYPE_NAME" in current context.
>>
>> Hmm.  Would you please try this instead?
>>
>>   (gdb) p g_type_name (((GTypeInstance *) widget)->g_class->g_type)
>
> (gdb)  p g_type_name (((GTypeInstance *) widget)->g_class->g_type)
> 'g_type_name' has unknown return type; cast the call to its declared return type

Ah, I guess you have to cast it to (char *):

  (gdb) p (char *) g_type_name ...





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

* bug#62291: 30.0.50; PGTK copy + paste to other app problem
  2023-03-22 10:33                     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-03-22 11:02                       ` Andrew Tropin
  2023-03-23  0:44                         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 26+ messages in thread
From: Andrew Tropin @ 2023-03-22 11:02 UTC (permalink / raw)
  To: Po Lu; +Cc: 62291

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

On 2023-03-22 18:33, Po Lu wrote:

> Andrew Tropin <andrew@trop.in> writes:
>
>> On 2023-03-22 14:11, Po Lu wrote:
>>
>>> Andrew Tropin <andrew@trop.in> writes:
>>>
>>>> On 2023-03-22 08:39, Po Lu wrote:
>>>>
>>>>> Andrew Tropin <andrew@trop.in> writes:
>>>>>
>>>>>> (gdb) frame 12
>>>>>> #12 0x00007ffff798ac04 in gtk_widget_event_internal (widget=widget@entry=0xfee500, event=event@entry=0xfdb4a0) at gtkwidget.c:7808
>>>>>> 7808    in gtkwidget.c
>>>>>> (gdb) p *event
>>>>>> $3 = {type = GDK_FOCUS_CHANGE, any = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000'}, expose = {type = GDK_FOCUS_CHANGE, window = 0xefc450, 
>>>>>>     send_event = 0 '\000', area = {x = 0, y = 0, width = 0, height = 0}, region = 0x0, count = 0}, visibility = {type = GDK_FOCUS_CHANGE, window = 0xefc450, 
>>>>>>     send_event = 0 '\000', state = GDK_VISIBILITY_UNOBSCURED}, motion = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, x = 0, y = 0, axes = 0x0, 
>>>>>>     state = 0, is_hint = 0, device = 0x0, x_root = 0, y_root = 0}, button = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, x = 0, y = 0, 
>>>>>>     axes = 0x0, state = 0, button = 0, device = 0x0, x_root = 0, y_root = 0}, touch = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, x = 0, 
>>>>>>     y = 0, axes = 0x0, state = 0, sequence = 0x0, emulating_pointer = 0, device = 0x0, x_root = 0, y_root = 0}, scroll = {type = GDK_FOCUS_CHANGE, window = 0xefc450, 
>>>>>>     send_event = 0 '\000', time = 0, x = 0, y = 0, state = 0, direction = GDK_SCROLL_UP, device = 0x0, x_root = 0, y_root = 0, delta_x = 0, delta_y = 0, is_stop = 0}, key = {
>>>>>>     type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, state = 0, keyval = 0, length = 0, string = 0x0, hardware_keycode = 0, group = 0 '\000', 
>>>>>>     is_modifier = 0}, crossing = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', subwindow = 0x0, time = 0, x = 0, y = 0, x_root = 0, y_root = 0, 
>>>>>>     mode = GDK_CROSSING_NORMAL, detail = GDK_NOTIFY_ANCESTOR, focus = 0, state = 0}, focus_change = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', in = 1}, 
>>>>>>   configure = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', x = 0, y = 0, width = 0, height = 0}, property = {type = GDK_FOCUS_CHANGE, window = 0xefc450, 
>>>>>>     send_event = 0 '\000', atom = 0x0, time = 0, state = 0}, selection = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', selection = 0x0, target = 0x0, 
>>>>>>     property = 0x0, time = 0, requestor = 0x0}, owner_change = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', owner = 0x0, 
>>>>>>     reason = GDK_OWNER_CHANGE_NEW_OWNER, selection = 0x0, time = 0, selection_time = 0}, proximity = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', 
>>>>>>     time = 0, device = 0x0}, dnd = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', context = 0x0, time = 0, x_root = 0, y_root = 0}, window_state = {
>>>>>>     type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', changed_mask = 0, new_window_state = 0}, setting = {type = GDK_FOCUS_CHANGE, window = 0xefc450, 
>>>>>>     send_event = 0 '\000', action = GDK_SETTING_ACTION_NEW, name = 0x0}, grab_broken = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', keyboard = 0, 
>>>>>>     implicit = 0, grab_window = 0x0}, touchpad_swipe = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', phase = 0 '\000', n_fingers = 1 '\001', time = 0, 
>>>>>>     x = 0, y = 0, dx = 0, dy = 0, x_root = 0, y_root = 0, state = 0}, touchpad_pinch = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', phase = 0 '\000', 
>>>>>>     n_fingers = 1 '\001', time = 0, x = 0, y = 0, dx = 0, dy = 0, angle_delta = 0, scale = 0, x_root = 0, y_root = 0, state = 0}, pad_button = {type = GDK_FOCUS_CHANGE, 
>>>>>>     window = 0xefc450, send_event = 0 '\000', time = 0, group = 0, button = 0, mode = 0}, pad_axis = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', 
>>>>>>     time = 0, group = 0, index = 0, mode = 0, value = 0}, pad_group_mode = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, group = 0, mode = 0}}
>>>>>>
>>>>>> Thank you for your patience :)
>>>>>
>>>>> OK, thanks.  This is quite odd.  If you type:
>>>>>
>>>>>   (gdb) p G_OBJECT_TYPE_NAME (widget)
>>>>>
>>>>> what do you see?
>>>>
>>>> (gdb) p G_OBJECT_TYPE_NAME (widget)
>>>> No symbol "G_OBJECT_TYPE_NAME" in current context.
>>>
>>> Hmm.  Would you please try this instead?
>>>
>>>   (gdb) p g_type_name (((GTypeInstance *) widget)->g_class->g_type)
>>
>> (gdb)  p g_type_name (((GTypeInstance *) widget)->g_class->g_type)
>> 'g_type_name' has unknown return type; cast the call to its declared return type
>
> Ah, I guess you have to cast it to (char *):
>
>   (gdb) p (char *) g_type_name ...

(gdb) p (char *) g_type_name (((GTypeInstance *) widget)->g_class->g_type)
$1 = 0x7ffff7a6dda2 "GtkWindow"

-- 
Best regards,
Andrew Tropin

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* bug#62291: 30.0.50; PGTK copy + paste to other app problem
  2023-03-22 11:02                       ` Andrew Tropin
@ 2023-03-23  0:44                         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-03-23  5:18                           ` Andrew Tropin
  0 siblings, 1 reply; 26+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-03-23  0:44 UTC (permalink / raw)
  To: Andrew Tropin; +Cc: 62291

Andrew Tropin <andrew@trop.in> writes:

> (gdb) p (char *) g_type_name (((GTypeInstance *) widget)->g_class->g_type)
> $1 = 0x7ffff7a6dda2 "GtkWindow"

OK, thanks.  Would you please type the following:

  (gdb) p widget
  (gdb) p Vframe_list
  (gdb) xcar
  (gdb) xframe
  $N = ...
  (gdb) p *$N->output.pgtk

thanks.





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

* bug#62291: 30.0.50; PGTK copy + paste to other app problem
  2023-03-23  0:44                         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-03-23  5:18                           ` Andrew Tropin
  2023-03-23  7:16                             ` Eli Zaretskii
  0 siblings, 1 reply; 26+ messages in thread
From: Andrew Tropin @ 2023-03-23  5:18 UTC (permalink / raw)
  To: Po Lu; +Cc: 62291

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

On 2023-03-23 08:44, Po Lu wrote:

> Andrew Tropin <andrew@trop.in> writes:
>
>> (gdb) p (char *) g_type_name (((GTypeInstance *) widget)->g_class->g_type)
>> $1 = 0x7ffff7a6dda2 "GtkWindow"
>
> OK, thanks.  Would you please type the following:
>
>   (gdb) p widget
>   (gdb) p Vframe_list
>   (gdb) xcar
>   (gdb) xframe
>   $N = ...
>   (gdb) p *$N->output.pgtk
>
> thanks.

(gdb) frame 12
#12 0x00007ffff798ac04 in gtk_widget_event_internal (widget=widget@entry=0xf04510, even7808    in gtkwidget.c
(gdb) p widget
$2 = (GtkWidget *) 0xf04510
(gdb) p Vframe_list
'Vframe_list' has unknown type; cast it to its declared type
(gdb) xcar
Undefined command: "xcar".  Try "help".
(gdb) xframe
Undefined command: "xframe".  Try "help".

-- 
Best regards,
Andrew Tropin

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* bug#62291: 30.0.50; PGTK copy + paste to other app problem
  2023-03-23  5:18                           ` Andrew Tropin
@ 2023-03-23  7:16                             ` Eli Zaretskii
  2023-03-23 18:22                               ` Andrew Tropin
  0 siblings, 1 reply; 26+ messages in thread
From: Eli Zaretskii @ 2023-03-23  7:16 UTC (permalink / raw)
  To: Andrew Tropin; +Cc: luangruo, 62291

> Cc: 62291@debbugs.gnu.org
> From: Andrew Tropin <andrew@trop.in>
> Date: Thu, 23 Mar 2023 09:18:45 +0400
> 
> (gdb) frame 12
> #12 0x00007ffff798ac04 in gtk_widget_event_internal (widget=widget@entry=0xf04510, even7808    in gtkwidget.c
> (gdb) p widget
> $2 = (GtkWidget *) 0xf04510
> (gdb) p Vframe_list
> 'Vframe_list' has unknown type; cast it to its declared type
> (gdb) xcar
> Undefined command: "xcar".  Try "help".
> (gdb) xframe
> Undefined command: "xframe".  Try "help".

To solve the last two problems, do this:

  (gdb) source /path/to/emacs/src/.gdbinit

These are commands we define in .gdbinit which comes with Emacs.





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

* bug#62291: 30.0.50; PGTK copy + paste to other app problem
  2023-03-23  7:16                             ` Eli Zaretskii
@ 2023-03-23 18:22                               ` Andrew Tropin
  2023-03-24  1:00                                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 26+ messages in thread
From: Andrew Tropin @ 2023-03-23 18:22 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: luangruo, 62291

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

On 2023-03-23 09:16, Eli Zaretskii wrote:

>> Cc: 62291@debbugs.gnu.org
>> From: Andrew Tropin <andrew@trop.in>
>> Date: Thu, 23 Mar 2023 09:18:45 +0400
>> 
>> (gdb) frame 12
>> #12 0x00007ffff798ac04 in gtk_widget_event_internal (widget=widget@entry=0xf04510, even7808    in gtkwidget.c
>> (gdb) p widget
>> $2 = (GtkWidget *) 0xf04510
>> (gdb) p Vframe_list
>> 'Vframe_list' has unknown type; cast it to its declared type
>> (gdb) xcar
>> Undefined command: "xcar".  Try "help".
>> (gdb) xframe
>> Undefined command: "xframe".  Try "help".
>
> To solve the last two problems, do this:
>
>   (gdb) source /path/to/emacs/src/.gdbinit
>
> These are commands we define in .gdbinit which comes with Emacs.

Thank you very much. I updated my debugging setup and will write down a
note for future readers of this thread:

Downloaded latest emacs source code.

guix shell -D emacs-next-pgtk --with-debug-info=glib \ 
--with-debug-info=gtk+ --no-grafts -- \
./configure --enable-checking='yes,glyphs' \
--enable-check-lisp-object-type --with-pgtk \
CFLAGS='-O0 -g3'

guix shell -D emacs-next-pgtk --with-debug-info=glib \ 
--with-debug-info=gtk+ --no-grafts -- make

cd src
gdb emacs

--8<---------------cut here---------------start------------->8---
GNU gdb (GDB) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from emacs...
SIGINT is used by the debugger.
Are you sure you want to change it? (y or n) [answered Y; input not from terminal]
DISPLAY = :0
WAYLAND_DISPLAY = wayland-1
TERM = xterm-256color
Breakpoint 1 at 0x57d3f4: file emacs.c, line 427.
(gdb) r -Q
Starting program: /home/bob/work/gnu/emacs/src/emacs -Q
warning: Unable to find libthread_db matching inferior's thread library, thread debu
[New LWP 9978]
[New LWP 9979]
[New LWP 9980]
Gdk-Message: 22:14:56.365: Unable to load sb_v_double_arrow from the cursor theme
Gdk-Message: 22:14:56.365: Unable to load sb_h_double_arrow from the cursor theme
Gdk-Message: 22:14:56.403: Unable to load hand2 from the cursor theme
Gdk-Message: 22:14:56.403: Unable to load sb_h_double_arrow from the cursor theme
Gdk-Message: 22:14:56.403: Unable to load sb_v_double_arrow from the cursor theme
[New LWP 9981]
[LWP 9981 exited]
[New LWP 9982]
[New LWP 9983]
[LWP 9982 exited]
[LWP 9983 exited]
[New LWP 9984]
[New LWP 9985]
[LWP 9984 exited]
[LWP 9985 exited]
[LWP 9979 exited]

Thread 1 "emacs" received signal SIGSEGV, Segmentation fault.
0x00007ffff71b5424 in signal_emit_unlocked_R.isra.0 () from /gnu/store/96srhmpmxa20w
msck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
(gdb) bt
#0  0x00007ffff71b5424 in signal_emit_unlocked_R.isra.0 () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
#1  0x00007ffff71bb21b in g_signal_emit_valist () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
#2  0x00007ffff71bb722 in g_signal_emit () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
#3  0x00007ffff71a7884 in g_object_dispatch_properties_changed () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
#4  0x00007ffff71a9834 in g_object_notify_by_pspec () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
#5  0x00007ffff79afbcd in gtk_window_focus_in_event (event=<optimized out>, widget=0x1014500) at gtkwindow.c:8503
#6  gtk_window_focus_in_event (widget=widget@entry=0x1014500, event=<optimized out>) at gtkwindow.c:8491
#7  0x00007ffff79de357 in _gtk_marshal_BOOLEAN__BOXED (closure=0x10aedd0, return_value=0x7fffffffb570, n_param_values=<optimized out>, param_values=0x7fffffffb620, 
    invocation_hint=<optimized out>, marshal_data=<optimized out>) at gtkmarshalers.c:83
#8  0x00007ffff71a34af in g_closure_invoke () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
#9  0x00007ffff71b49e9 in signal_emit_unlocked_R.isra.0 () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
#10 0x00007ffff71bad65 in g_signal_emit_valist () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
#11 0x00007ffff71bb722 in g_signal_emit () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
#12 0x00007ffff798ac04 in gtk_widget_event_internal (widget=widget@entry=0x1014500, event=event@entry=0x7fffe4007b50) at gtkwidget.c:7808
#13 0x00007ffff798d472 in gtk_widget_event_internal (event=0x7fffe4007b50, widget=0x1014500) at gtkwidget.c:7379
#14 0x00007ffff784b37a in gtk_main_do_event (event=0x7fffe4007b50) at gtkmain.c:1861
#15 gtk_main_do_event (event=<optimized out>) at gtkmain.c:1691
#16 0x00007ffff7efc3c5 in _gdk_event_emit (event=event@entry=0x7fffe4007b50) at gdkevents.c:73
#17 0x00007ffff7f59352 in gdk_event_source_dispatch (base=<optimized out>, callback=<optimized out>, data=<optimized out>) at gdkeventsource.c:124
#18 0x00007ffff70af4cb in g_main_context_dispatch () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libglib-2.0.so.0
#19 0x00000000007771e4 in pgtk_read_socket (terminal=0x1079530, hold_quit=0x7fffffffba10) at pgtkterm.c:3840
#20 0x000000000059703c in gobble_input () at keyboard.c:7424
#21 0x0000000000597580 in handle_async_input () at keyboard.c:7655
#22 0x000000000059759f in process_pending_signals () at keyboard.c:7669
#23 0x00000000005975df in unblock_input_to (level=0) at keyboard.c:7684
#24 0x0000000000597603 in unblock_input () at keyboard.c:7703
#25 0x000000000058fe19 in timer_check () at keyboard.c:4749
#26 0x000000000058ce8a in readable_events (flags=1) at keyboard.c:3531
#27 0x0000000000596f04 in get_input_pending (flags=1) at keyboard.c:7374
#28 0x00000000005a0201 in detect_input_pending_run_timers (do_display=true) at keyboard.c:10904
#29 0x00000000006de504 in wait_reading_process_output (time_limit=30, nsecs=0, read_kbd=-1, do_display=true, wait_for_cell=XIL(0), wait_proc=0x0, just_wait_proc=0)
    at process.c:5779
#30 0x0000000000431ef3 in sit_for (timeout=make_fixnum(30), reading=true, display_option=1) at dispnew.c:6256
#31 0x000000000058a731 in read_char (commandflag=1, map=XIL(0x7ffff41b4703), prev_event=XIL(0), used_mouse_menu=0x7fffffffc42f, end_time=0x0) at keyboard.c:2879
#32 0x000000000059e2ee in read_key_sequence (keybuf=0x7fffffffc5c0, prompt=XIL(0), dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true, 
--Type <RET> for more, q to quit, c to continue without paging--c
    prevent_redisplay=false) at keyboard.c:10081
#33 0x0000000000585bc7 in command_loop_1 () at keyboard.c:1382
#34 0x0000000000667131 in internal_condition_case (bfun=0x5857bc <command_loop_1>, handlers=XIL(0x90), hfun=0x584c7f <cmd_error>) at eval.c:1474
#35 0x00000000005853cc in command_loop_2 (handlers=XIL(0x90)) at keyboard.c:1131
#36 0x00000000006663ad in internal_catch (tag=XIL(0xff60), func=0x5853a9 <command_loop_2>, arg=XIL(0x90)) at eval.c:1197
#37 0x0000000000585365 in command_loop () at keyboard.c:1109
#38 0x000000000058476d in recursive_edit_1 () at keyboard.c:718
#39 0x0000000000584974 in Frecursive_edit () at keyboard.c:801
#40 0x000000000058034c in main (argc=2, argv=0x7fffffffcb08) at emacs.c:2530
(gdb) frame 12
#12 0x00007ffff798ac04 in gtk_widget_event_internal (widget=widget@entry=0x1014500, event=event@entry=0x7fffe4007b50) at gtkwidget.c:7808
7808    gtkwidget.c: No such file or directory.
(gdb) frame 12
#12 0x00007ffff798ac04 in gtk_widget_event_internal (widget=widget@entry=0x1014500, event=event@entry=0x7fffe4007b50) at gtkwidget.c:7808
7808    in gtkwidget.c
(gdb) p widget
$1 = (GtkWidget *) 0x1014500
(gdb) p Vframe_list 
$2 = XIL(0x7ffff41d3213)
(gdb) xcar
$3 = XIL(0x107975d)
(gdb) xframe
$4 = (struct frame *) 0x1079758
"*scratch* - GNU Emacs at ixy"
--8<---------------cut here---------------end--------------->8---


-- 
Best regards,
Andrew Tropin

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* bug#62291: 30.0.50; PGTK copy + paste to other app problem
  2023-03-23 18:22                               ` Andrew Tropin
@ 2023-03-24  1:00                                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-03-24  4:31                                   ` Andrew Tropin
  0 siblings, 1 reply; 26+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-03-24  1:00 UTC (permalink / raw)
  To: Andrew Tropin; +Cc: Eli Zaretskii, 62291

Andrew Tropin <andrew@trop.in> writes:

> On 2023-03-23 09:16, Eli Zaretskii wrote:
>
>>> Cc: 62291@debbugs.gnu.org
>>> From: Andrew Tropin <andrew@trop.in>
>>> Date: Thu, 23 Mar 2023 09:18:45 +0400
>>> 
>>> (gdb) frame 12
>>> #12 0x00007ffff798ac04 in gtk_widget_event_internal (widget=widget@entry=0xf04510, even7808    in gtkwidget.c
>>> (gdb) p widget
>>> $2 = (GtkWidget *) 0xf04510
>>> (gdb) p Vframe_list
>>> 'Vframe_list' has unknown type; cast it to its declared type
>>> (gdb) xcar
>>> Undefined command: "xcar".  Try "help".
>>> (gdb) xframe
>>> Undefined command: "xframe".  Try "help".
>>
>> To solve the last two problems, do this:
>>
>>   (gdb) source /path/to/emacs/src/.gdbinit
>>
>> These are commands we define in .gdbinit which comes with Emacs.
>
> Thank you very much. I updated my debugging setup and will write down a
> note for future readers of this thread:
>
> Downloaded latest emacs source code.
>
> guix shell -D emacs-next-pgtk --with-debug-info=glib \ 
> --with-debug-info=gtk+ --no-grafts -- \
> ./configure --enable-checking='yes,glyphs' \
> --enable-check-lisp-object-type --with-pgtk \
> CFLAGS='-O0 -g3'
>
> guix shell -D emacs-next-pgtk --with-debug-info=glib \ 
> --with-debug-info=gtk+ --no-grafts -- make
>
> cd src
> gdb emacs
>
> GNU gdb (GDB) 12.1
> Copyright (C) 2022 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
> Type "show copying" and "show warranty" for details.
> This GDB was configured as "x86_64-unknown-linux-gnu".
> Type "show configuration" for configuration details.
> For bug reporting instructions, please see:
> <https://www.gnu.org/software/gdb/bugs/>.
> Find the GDB manual and other documentation resources online at:
>     <http://www.gnu.org/software/gdb/documentation/>.
>
> For help, type "help".
> Type "apropos word" to search for commands related to "word"...
> Reading symbols from emacs...
> SIGINT is used by the debugger.
> Are you sure you want to change it? (y or n) [answered Y; input not from terminal]
> DISPLAY = :0
> WAYLAND_DISPLAY = wayland-1
> TERM = xterm-256color
> Breakpoint 1 at 0x57d3f4: file emacs.c, line 427.
> (gdb) r -Q
> Starting program: /home/bob/work/gnu/emacs/src/emacs -Q
> warning: Unable to find libthread_db matching inferior's thread library, thread debu
> [New LWP 9978]
> [New LWP 9979]
> [New LWP 9980]
> Gdk-Message: 22:14:56.365: Unable to load sb_v_double_arrow from the cursor theme
> Gdk-Message: 22:14:56.365: Unable to load sb_h_double_arrow from the cursor theme
> Gdk-Message: 22:14:56.403: Unable to load hand2 from the cursor theme
> Gdk-Message: 22:14:56.403: Unable to load sb_h_double_arrow from the cursor theme
> Gdk-Message: 22:14:56.403: Unable to load sb_v_double_arrow from the cursor theme
> [New LWP 9981]
> [LWP 9981 exited]
> [New LWP 9982]
> [New LWP 9983]
> [LWP 9982 exited]
> [LWP 9983 exited]
> [New LWP 9984]
> [New LWP 9985]
> [LWP 9984 exited]
> [LWP 9985 exited]
> [LWP 9979 exited]
>
> Thread 1 "emacs" received signal SIGSEGV, Segmentation fault.
> 0x00007ffff71b5424 in signal_emit_unlocked_R.isra.0 () from /gnu/store/96srhmpmxa20w
> msck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
> (gdb) bt
> #0  0x00007ffff71b5424 in signal_emit_unlocked_R.isra.0 () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
> #1  0x00007ffff71bb21b in g_signal_emit_valist () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
> #2  0x00007ffff71bb722 in g_signal_emit () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
> #3  0x00007ffff71a7884 in g_object_dispatch_properties_changed () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
> #4  0x00007ffff71a9834 in g_object_notify_by_pspec () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
> #5  0x00007ffff79afbcd in gtk_window_focus_in_event (event=<optimized out>, widget=0x1014500) at gtkwindow.c:8503
> #6  gtk_window_focus_in_event (widget=widget@entry=0x1014500, event=<optimized out>) at gtkwindow.c:8491
> #7  0x00007ffff79de357 in _gtk_marshal_BOOLEAN__BOXED (closure=0x10aedd0, return_value=0x7fffffffb570, n_param_values=<optimized out>, param_values=0x7fffffffb620, 
>     invocation_hint=<optimized out>, marshal_data=<optimized out>) at gtkmarshalers.c:83
> #8  0x00007ffff71a34af in g_closure_invoke () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
> #9  0x00007ffff71b49e9 in signal_emit_unlocked_R.isra.0 () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
> #10 0x00007ffff71bad65 in g_signal_emit_valist () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
> #11 0x00007ffff71bb722 in g_signal_emit () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
> #12 0x00007ffff798ac04 in gtk_widget_event_internal (widget=widget@entry=0x1014500, event=event@entry=0x7fffe4007b50) at gtkwidget.c:7808
> #13 0x00007ffff798d472 in gtk_widget_event_internal (event=0x7fffe4007b50, widget=0x1014500) at gtkwidget.c:7379
> #14 0x00007ffff784b37a in gtk_main_do_event (event=0x7fffe4007b50) at gtkmain.c:1861
> #15 gtk_main_do_event (event=<optimized out>) at gtkmain.c:1691
> #16 0x00007ffff7efc3c5 in _gdk_event_emit (event=event@entry=0x7fffe4007b50) at gdkevents.c:73
> #17 0x00007ffff7f59352 in gdk_event_source_dispatch (base=<optimized out>, callback=<optimized out>, data=<optimized out>) at gdkeventsource.c:124
> #18 0x00007ffff70af4cb in g_main_context_dispatch () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libglib-2.0.so.0
> #19 0x00000000007771e4 in pgtk_read_socket (terminal=0x1079530, hold_quit=0x7fffffffba10) at pgtkterm.c:3840
> #20 0x000000000059703c in gobble_input () at keyboard.c:7424
> #21 0x0000000000597580 in handle_async_input () at keyboard.c:7655
> #22 0x000000000059759f in process_pending_signals () at keyboard.c:7669
> #23 0x00000000005975df in unblock_input_to (level=0) at keyboard.c:7684
> #24 0x0000000000597603 in unblock_input () at keyboard.c:7703
> #25 0x000000000058fe19 in timer_check () at keyboard.c:4749
> #26 0x000000000058ce8a in readable_events (flags=1) at keyboard.c:3531
> #27 0x0000000000596f04 in get_input_pending (flags=1) at keyboard.c:7374
> #28 0x00000000005a0201 in detect_input_pending_run_timers (do_display=true) at keyboard.c:10904
> #29 0x00000000006de504 in wait_reading_process_output (time_limit=30, nsecs=0, read_kbd=-1, do_display=true, wait_for_cell=XIL(0), wait_proc=0x0, just_wait_proc=0)
>     at process.c:5779
> #30 0x0000000000431ef3 in sit_for (timeout=make_fixnum(30), reading=true, display_option=1) at dispnew.c:6256
> #31 0x000000000058a731 in read_char (commandflag=1, map=XIL(0x7ffff41b4703), prev_event=XIL(0), used_mouse_menu=0x7fffffffc42f, end_time=0x0) at keyboard.c:2879
> #32 0x000000000059e2ee in read_key_sequence (keybuf=0x7fffffffc5c0, prompt=XIL(0), dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true, 
> --Type <RET> for more, q to quit, c to continue without paging--c
>     prevent_redisplay=false) at keyboard.c:10081
> #33 0x0000000000585bc7 in command_loop_1 () at keyboard.c:1382
> #34 0x0000000000667131 in internal_condition_case (bfun=0x5857bc <command_loop_1>, handlers=XIL(0x90), hfun=0x584c7f <cmd_error>) at eval.c:1474
> #35 0x00000000005853cc in command_loop_2 (handlers=XIL(0x90)) at keyboard.c:1131
> #36 0x00000000006663ad in internal_catch (tag=XIL(0xff60), func=0x5853a9 <command_loop_2>, arg=XIL(0x90)) at eval.c:1197
> #37 0x0000000000585365 in command_loop () at keyboard.c:1109
> #38 0x000000000058476d in recursive_edit_1 () at keyboard.c:718
> #39 0x0000000000584974 in Frecursive_edit () at keyboard.c:801
> #40 0x000000000058034c in main (argc=2, argv=0x7fffffffcb08) at emacs.c:2530
> (gdb) frame 12
> #12 0x00007ffff798ac04 in gtk_widget_event_internal (widget=widget@entry=0x1014500, event=event@entry=0x7fffe4007b50) at gtkwidget.c:7808
> 7808    gtkwidget.c: No such file or directory.
> (gdb) frame 12
> #12 0x00007ffff798ac04 in gtk_widget_event_internal (widget=widget@entry=0x1014500, event=event@entry=0x7fffe4007b50) at gtkwidget.c:7808
> 7808    in gtkwidget.c
> (gdb) p widget
> $1 = (GtkWidget *) 0x1014500
> (gdb) p Vframe_list 
> $2 = XIL(0x7ffff41d3213)
> (gdb) xcar
> $3 = XIL(0x107975d)
> (gdb) xframe
> $4 = (struct frame *) 0x1079758
> "*scratch* - GNU Emacs at ixy"

You forgot:

  (gdb) p *$4->output_data.pgtk

Thanks.





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

* bug#62291: 30.0.50; PGTK copy + paste to other app problem
  2023-03-24  1:00                                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-03-24  4:31                                   ` Andrew Tropin
  2023-03-24  7:51                                     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 26+ messages in thread
From: Andrew Tropin @ 2023-03-24  4:31 UTC (permalink / raw)
  To: Po Lu; +Cc: Eli Zaretskii, 62291

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

On 2023-03-24 09:00, Po Lu wrote:

> Andrew Tropin <andrew@trop.in> writes:
>
>> On 2023-03-23 09:16, Eli Zaretskii wrote:
>>
>>>> Cc: 62291@debbugs.gnu.org
>>>> From: Andrew Tropin <andrew@trop.in>
>>>> Date: Thu, 23 Mar 2023 09:18:45 +0400
>>>> 
>>>> (gdb) frame 12
>>>> #12 0x00007ffff798ac04 in gtk_widget_event_internal (widget=widget@entry=0xf04510, even7808    in gtkwidget.c
>>>> (gdb) p widget
>>>> $2 = (GtkWidget *) 0xf04510
>>>> (gdb) p Vframe_list
>>>> 'Vframe_list' has unknown type; cast it to its declared type
>>>> (gdb) xcar
>>>> Undefined command: "xcar".  Try "help".
>>>> (gdb) xframe
>>>> Undefined command: "xframe".  Try "help".
>>>
>>> To solve the last two problems, do this:
>>>
>>>   (gdb) source /path/to/emacs/src/.gdbinit
>>>
>>> These are commands we define in .gdbinit which comes with Emacs.
>>
>> Thank you very much. I updated my debugging setup and will write down a
>> note for future readers of this thread:
>>
>> Downloaded latest emacs source code.
>>
>> guix shell -D emacs-next-pgtk --with-debug-info=glib \ 
>> --with-debug-info=gtk+ --no-grafts -- \
>> ./configure --enable-checking='yes,glyphs' \
>> --enable-check-lisp-object-type --with-pgtk \
>> CFLAGS='-O0 -g3'
>>
>> guix shell -D emacs-next-pgtk --with-debug-info=glib \ 
>> --with-debug-info=gtk+ --no-grafts -- make
>>
>> cd src
>> gdb emacs
>>
>> GNU gdb (GDB) 12.1
>> Copyright (C) 2022 Free Software Foundation, Inc.
>> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
>> This is free software: you are free to change and redistribute it.
>> There is NO WARRANTY, to the extent permitted by law.
>> Type "show copying" and "show warranty" for details.
>> This GDB was configured as "x86_64-unknown-linux-gnu".
>> Type "show configuration" for configuration details.
>> For bug reporting instructions, please see:
>> <https://www.gnu.org/software/gdb/bugs/>.
>> Find the GDB manual and other documentation resources online at:
>>     <http://www.gnu.org/software/gdb/documentation/>.
>>
>> For help, type "help".
>> Type "apropos word" to search for commands related to "word"...
>> Reading symbols from emacs...
>> SIGINT is used by the debugger.
>> Are you sure you want to change it? (y or n) [answered Y; input not from terminal]
>> DISPLAY = :0
>> WAYLAND_DISPLAY = wayland-1
>> TERM = xterm-256color
>> Breakpoint 1 at 0x57d3f4: file emacs.c, line 427.
>> (gdb) r -Q
>> Starting program: /home/bob/work/gnu/emacs/src/emacs -Q
>> warning: Unable to find libthread_db matching inferior's thread library, thread debu
>> [New LWP 9978]
>> [New LWP 9979]
>> [New LWP 9980]
>> Gdk-Message: 22:14:56.365: Unable to load sb_v_double_arrow from the cursor theme
>> Gdk-Message: 22:14:56.365: Unable to load sb_h_double_arrow from the cursor theme
>> Gdk-Message: 22:14:56.403: Unable to load hand2 from the cursor theme
>> Gdk-Message: 22:14:56.403: Unable to load sb_h_double_arrow from the cursor theme
>> Gdk-Message: 22:14:56.403: Unable to load sb_v_double_arrow from the cursor theme
>> [New LWP 9981]
>> [LWP 9981 exited]
>> [New LWP 9982]
>> [New LWP 9983]
>> [LWP 9982 exited]
>> [LWP 9983 exited]
>> [New LWP 9984]
>> [New LWP 9985]
>> [LWP 9984 exited]
>> [LWP 9985 exited]
>> [LWP 9979 exited]
>>
>> Thread 1 "emacs" received signal SIGSEGV, Segmentation fault.
>> 0x00007ffff71b5424 in signal_emit_unlocked_R.isra.0 () from /gnu/store/96srhmpmxa20w
>> msck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
>> (gdb) bt
>> #0  0x00007ffff71b5424 in signal_emit_unlocked_R.isra.0 () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
>> #1  0x00007ffff71bb21b in g_signal_emit_valist () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
>> #2  0x00007ffff71bb722 in g_signal_emit () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
>> #3  0x00007ffff71a7884 in g_object_dispatch_properties_changed () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
>> #4  0x00007ffff71a9834 in g_object_notify_by_pspec () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
>> #5  0x00007ffff79afbcd in gtk_window_focus_in_event (event=<optimized out>, widget=0x1014500) at gtkwindow.c:8503
>> #6  gtk_window_focus_in_event (widget=widget@entry=0x1014500, event=<optimized out>) at gtkwindow.c:8491
>> #7  0x00007ffff79de357 in _gtk_marshal_BOOLEAN__BOXED (closure=0x10aedd0, return_value=0x7fffffffb570, n_param_values=<optimized out>, param_values=0x7fffffffb620, 
>>     invocation_hint=<optimized out>, marshal_data=<optimized out>) at gtkmarshalers.c:83
>> #8  0x00007ffff71a34af in g_closure_invoke () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
>> #9  0x00007ffff71b49e9 in signal_emit_unlocked_R.isra.0 () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
>> #10 0x00007ffff71bad65 in g_signal_emit_valist () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
>> #11 0x00007ffff71bb722 in g_signal_emit () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
>> #12 0x00007ffff798ac04 in gtk_widget_event_internal (widget=widget@entry=0x1014500, event=event@entry=0x7fffe4007b50) at gtkwidget.c:7808
>> #13 0x00007ffff798d472 in gtk_widget_event_internal (event=0x7fffe4007b50, widget=0x1014500) at gtkwidget.c:7379
>> #14 0x00007ffff784b37a in gtk_main_do_event (event=0x7fffe4007b50) at gtkmain.c:1861
>> #15 gtk_main_do_event (event=<optimized out>) at gtkmain.c:1691
>> #16 0x00007ffff7efc3c5 in _gdk_event_emit (event=event@entry=0x7fffe4007b50) at gdkevents.c:73
>> #17 0x00007ffff7f59352 in gdk_event_source_dispatch (base=<optimized out>, callback=<optimized out>, data=<optimized out>) at gdkeventsource.c:124
>> #18 0x00007ffff70af4cb in g_main_context_dispatch () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libglib-2.0.so.0
>> #19 0x00000000007771e4 in pgtk_read_socket (terminal=0x1079530, hold_quit=0x7fffffffba10) at pgtkterm.c:3840
>> #20 0x000000000059703c in gobble_input () at keyboard.c:7424
>> #21 0x0000000000597580 in handle_async_input () at keyboard.c:7655
>> #22 0x000000000059759f in process_pending_signals () at keyboard.c:7669
>> #23 0x00000000005975df in unblock_input_to (level=0) at keyboard.c:7684
>> #24 0x0000000000597603 in unblock_input () at keyboard.c:7703
>> #25 0x000000000058fe19 in timer_check () at keyboard.c:4749
>> #26 0x000000000058ce8a in readable_events (flags=1) at keyboard.c:3531
>> #27 0x0000000000596f04 in get_input_pending (flags=1) at keyboard.c:7374
>> #28 0x00000000005a0201 in detect_input_pending_run_timers (do_display=true) at keyboard.c:10904
>> #29 0x00000000006de504 in wait_reading_process_output (time_limit=30, nsecs=0, read_kbd=-1, do_display=true, wait_for_cell=XIL(0), wait_proc=0x0, just_wait_proc=0)
>>     at process.c:5779
>> #30 0x0000000000431ef3 in sit_for (timeout=make_fixnum(30), reading=true, display_option=1) at dispnew.c:6256
>> #31 0x000000000058a731 in read_char (commandflag=1, map=XIL(0x7ffff41b4703), prev_event=XIL(0), used_mouse_menu=0x7fffffffc42f, end_time=0x0) at keyboard.c:2879
>> #32 0x000000000059e2ee in read_key_sequence (keybuf=0x7fffffffc5c0, prompt=XIL(0), dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true, 
>> --Type <RET> for more, q to quit, c to continue without paging--c
>>     prevent_redisplay=false) at keyboard.c:10081
>> #33 0x0000000000585bc7 in command_loop_1 () at keyboard.c:1382
>> #34 0x0000000000667131 in internal_condition_case (bfun=0x5857bc <command_loop_1>, handlers=XIL(0x90), hfun=0x584c7f <cmd_error>) at eval.c:1474
>> #35 0x00000000005853cc in command_loop_2 (handlers=XIL(0x90)) at keyboard.c:1131
>> #36 0x00000000006663ad in internal_catch (tag=XIL(0xff60), func=0x5853a9 <command_loop_2>, arg=XIL(0x90)) at eval.c:1197
>> #37 0x0000000000585365 in command_loop () at keyboard.c:1109
>> #38 0x000000000058476d in recursive_edit_1 () at keyboard.c:718
>> #39 0x0000000000584974 in Frecursive_edit () at keyboard.c:801
>> #40 0x000000000058034c in main (argc=2, argv=0x7fffffffcb08) at emacs.c:2530
>> (gdb) frame 12
>> #12 0x00007ffff798ac04 in gtk_widget_event_internal (widget=widget@entry=0x1014500, event=event@entry=0x7fffe4007b50) at gtkwidget.c:7808
>> 7808    gtkwidget.c: No such file or directory.
>> (gdb) frame 12
>> #12 0x00007ffff798ac04 in gtk_widget_event_internal (widget=widget@entry=0x1014500, event=event@entry=0x7fffe4007b50) at gtkwidget.c:7808
>> 7808    in gtkwidget.c
>> (gdb) p widget
>> $1 = (GtkWidget *) 0x1014500
>> (gdb) p Vframe_list 
>> $2 = XIL(0x7ffff41d3213)
>> (gdb) xcar
>> $3 = XIL(0x107975d)
>> (gdb) xframe
>> $4 = (struct frame *) 0x1079758
>> "*scratch* - GNU Emacs at ixy"
>
> You forgot:
>
>   (gdb) p *$4->output_data.pgtk
>
> Thanks.

Right, completely forgot about this one :)

--8<---------------cut here---------------start------------->8---
(gdb) p *$4->output_data.pgtk
$5 = {
  foreground_color = 0,
  background_color = 16777215,
  toolbar = 0x0,
  last_user_time = 0,
  current_cursor = 0x1232460,
  text_cursor = 0x12a56a0,
  nontext_cursor = 0x1232460,
  modeline_cursor = 0x12a56a0,
  hand_cursor = 0x0,
  hourglass_cursor = 0x12a5760,
  horizontal_drag_cursor = 0x0,
  vertical_drag_cursor = 0x0,
  left_edge_cursor = 0x12a5700,
  top_left_corner_cursor = 0x12a5580,
  top_edge_cursor = 0x12a5860,
  top_right_corner_cursor = 0x1275760,
  right_edge_cursor = 0x12a5800,
  bottom_right_corner_cursor = 0x12a55e0,
  bottom_edge_cursor = 0x12a5460,
  bottom_left_corner_cursor = 0x12a5520,
  current_pointer = 0x0,
  border_pixel = 0,
  border_color_css_provider = 0x19f14a0,
  scrollbar_foreground_css_provider = 0x1275440,
  scrollbar_background_css_provider = 0x1255840,
  hourglass_widget = 0x0,
  cursor_xgcv = {
    foreground = 16777215,
    background = 0
  },
  window_desc = 0,
  parent_desc = 42,
  explicit_parent = 0 '\000',
  icon_bitmap = 0,
  font = 0x13957a8,
  baseline_offset = 0,
  fontset = 2,
  mouse_color = 0,
  cursor_color = 0,
  cursor_foreground_color = 16777215,
  icon_top = 0,
  icon_left = 0,
  vertical_scroll_bar_extra = 0,
  titlebar_height = 0,
  toolbar_height = 0,
  display_info = 0x118ee20,
  zooming = 0,
  in_animation = 0,
  size_hints = {
    min_width = 0,
    min_height = 0,
    max_width = 0,
    max_height = 0,
    base_width = 0,
    base_height = 0,
    width_inc = 0,
    height_inc = 0,
    min_aspect = 0,
    max_aspect = 0,
    win_gravity = 0
  },
  hint_flags = 0,
  preferred_width = 672,
  preferred_height = 612,
  widget = 0x1014540,
  edit_widget = 0x1421130,
  vbox_widget = 0x14201c0,
  hbox_widget = 0x1420320,
  menubar_widget = 0x14541a0,
  toolbar_widget = 0x1422260,
  toolbar_in_hbox = false,
  toolbar_is_packed = true,
  ttip_widget = 0x0,
  ttip_lbl = 0x0,
  ttip_window = 0x0,
  menubar_height = 25,
  toolbar_top_height = 41,
  toolbar_bottom_height = 0,
  toolbar_left_width = 0,
  toolbar_right_width = 0,
  cr_context = 0x1345e00,
  cr_active = 0x1345e00,
  cr_surface_desired_width = 624,
  cr_surface_desired_height = 604,
  cr_surface_visible_bell = 0x0,
  atimer_visible_bell = 0x0,
  has_been_visible = 1,
  black_relief = {
    xgcv = {
      foreground = 7566195,
      background = 7779407
    },
    pixel = 7566195
  },
  white_relief = {
    xgcv = {
      foreground = 15132390,
      background = 7779407
    },
    pixel = 15132390
  },
  relief_background = 12566463,
  relief_background_valid_p = true,
  focus_state = 0,
  watched_scale_factor = 2,
  scale_factor_atimer = 0x1734890
}
--8<---------------cut here---------------end--------------->8---


-- 
Best regards,
Andrew Tropin

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* bug#62291: 30.0.50; PGTK copy + paste to other app problem
  2023-03-24  4:31                                   ` Andrew Tropin
@ 2023-03-24  7:51                                     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-03-24 10:39                                       ` Andrew Tropin
  0 siblings, 1 reply; 26+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-03-24  7:51 UTC (permalink / raw)
  To: Andrew Tropin; +Cc: Eli Zaretskii, 62291

Andrew Tropin <andrew@trop.in> writes:

>   preferred_width = 672,
>   preferred_height = 612,
>   widget = 0x1014540,
>   edit_widget = 0x1421130,
>   vbox_widget = 0x14201c0,
>   hbox_widget = 0x1420320,

So, the window which is getting this focus in event is 0x1014500, which
is not any window created by Emacs, assuming that you have only one
frame.

Perhaps this is a pseudo window created by the GDK Wayland backend to
``send'' selection requests to Emacs.

Would you please:

  (gdb) p (GdkWindow *) gtk_widget_get_window ((GtkWidget *) 0x1014500);
  $NN = ...

and then:

  (gdb) p (GdkWindowType) gdk_window_get_window_type ($NN);

thanks.





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

* bug#62291: 30.0.50; PGTK copy + paste to other app problem
  2023-03-24  7:51                                     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-03-24 10:39                                       ` Andrew Tropin
  2023-03-24 11:40                                         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 26+ messages in thread
From: Andrew Tropin @ 2023-03-24 10:39 UTC (permalink / raw)
  To: Po Lu; +Cc: Eli Zaretskii, 62291

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

On 2023-03-24 15:51, Po Lu wrote:

> Andrew Tropin <andrew@trop.in> writes:
>
>>   preferred_width = 672,
>>   preferred_height = 612,
>>   widget = 0x1014540,
>>   edit_widget = 0x1421130,
>>   vbox_widget = 0x14201c0,
>>   hbox_widget = 0x1420320,
>
> So, the window which is getting this focus in event is 0x1014500, which
> is not any window created by Emacs, assuming that you have only one
> frame.
>
> Perhaps this is a pseudo window created by the GDK Wayland backend to
> ``send'' selection requests to Emacs.
>
> Would you please:
>
>   (gdb) p (GdkWindow *) gtk_widget_get_window ((GtkWidget *) 0x1014500);
>   $NN = ...
>
> and then:
>
>   (gdb) p (GdkWindowType) gdk_window_get_window_type ($NN);
>
> thanks.

I restart the debbugger every time because otherwise my clipboard is
"locked", so the widget from p widget and from output_data.pgtk are the
same.  Sorry for the confusion.

--8<---------------cut here---------------start------------->8---
Thread 1 "emacs" received signal SIGSEGV, Segmentation fault.
0x00007ffff71b5424 in signal_emit_unlocked_R.isra.0 () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
(gdb) bt
#0  0x00007ffff71b5424 in signal_emit_unlocked_R.isra.0 () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
#1  0x00007ffff71bb21b in g_signal_emit_valist () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
#2  0x00007ffff71bb722 in g_signal_emit () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
#3  0x00007ffff71a7884 in g_object_dispatch_properties_changed () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
#4  0x00007ffff71a9834 in g_object_notify_by_pspec () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
#5  0x00007ffff79afbcd in gtk_window_focus_in_event (event=<optimized out>, widget=0x109a500) at gtkwindow.c:8503
#6  gtk_window_focus_in_event (widget=widget@entry=0x109a500, event=<optimized out>) at gtkwindow.c:8491
#7  0x00007ffff79de357 in _gtk_marshal_BOOLEAN__BOXED (closure=0x10b73e0, return_value=0x7fffffffb570, n_param_values=<optimized out>, param_values=0x7fffffffb620, 
    invocation_hint=<optimized out>, marshal_data=<optimized out>) at gtkmarshalers.c:83
#8  0x00007ffff71a34af in g_closure_invoke () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
#9  0x00007ffff71b49e9 in signal_emit_unlocked_R.isra.0 () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
#10 0x00007ffff71bad65 in g_signal_emit_valist () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
#11 0x00007ffff71bb722 in g_signal_emit () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
#12 0x00007ffff798ac04 in gtk_widget_event_internal (widget=widget@entry=0x109a500, event=event@entry=0xfbde80) at gtkwidget.c:7808
#13 0x00007ffff798d472 in gtk_widget_event_internal (event=0xfbde80, widget=0x109a500) at gtkwidget.c:7379
#14 0x00007ffff784b37a in gtk_main_do_event (event=0xfbde80) at gtkmain.c:1861
#15 gtk_main_do_event (event=<optimized out>) at gtkmain.c:1691
#16 0x00007ffff7efc3c5 in _gdk_event_emit (event=event@entry=0xfbde80) at gdkevents.c:73
#17 0x00007ffff7f59352 in gdk_event_source_dispatch (base=<optimized out>, callback=<optimized out>, data=<optimized out>) at gdkeventsource.c:124
#18 0x00007ffff70af4cb in g_main_context_dispatch () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libglib-2.0.so.0
#19 0x00000000007771e4 in pgtk_read_socket (terminal=0x1079a00, hold_quit=0x7fffffff
ba10) at pgtkterm.c:3840
#20 0x000000000059703c in gobble_input () at keyboard.c:7424
#21 0x0000000000597580 in handle_async_input () at keyboard.c:7655
#22 0x000000000059759f in process_pending_signals () at keyboard.c:7669
#23 0x00000000005975df in unblock_input_to (level=0) at keyboard.c:7684
#24 0x0000000000597603 in unblock_input () at keyboard.c:7703
#25 0x000000000058fe19 in timer_check () at keyboard.c:4749
#26 0x000000000058ce8a in readable_events (flags=1) at keyboard.c:3531
#27 0x0000000000596f04 in get_input_pending (flags=1) at keyboard.c:7374
#28 0x00000000005a0201 in detect_input_pending_run_timers (do_display=true) at keybo
ard.c:10904
#29 0x00000000006de504 in wait_reading_process_output (time_limit=30, nsecs=0, read_
kbd=-1, do_display=true, wait_for_cell=XIL(0), wait_proc=0x0, just_wait_proc=0)
    at process.c:5779
#30 0x0000000000431ef3 in sit_for (timeout=make_fixnum(30), reading=true, display_op
tion=1) at dispnew.c:6256
#31 0x000000000058a731 in read_char (commandflag=1, map=XIL(0x7ffff41bdb93), prev_ev
ent=XIL(0), used_mouse_menu=0x7fffffffc42f, end_time=0x0) at keyboard.c:2879
#32 0x000000000059e2ee in read_key_sequence (keybuf=0x7fffffffc5c0, prompt=XIL(0), d
ont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true, 
    prevent_redisplay=false) at keyboard.c:10081
#33 0x0000000000585bc7 in command_loop_1 () at keyboard.c:1382
#34 0x0000000000667131 in internal_condition_case (bfun=0x5857bc <command_loop_1>, h
andlers=XIL(0x90), hfun=0x584c7f <cmd_error>) at eval.c:1474
#35 0x00000000005853cc in command_loop_2 (handlers=XIL(0x90)) at keyboard.c:1131
#36 0x00000000006663ad in internal_catch (tag=XIL(0xff60), func=0x5853a9 <command_lo
op_2>, arg=XIL(0x90)) at eval.c:1197
#37 0x0000000000585365 in command_loop () at keyboard.c:1109
#38 0x000000000058476d in recursive_edit_1 () at keyboard.c:718
#39 0x0000000000584974 in Frecursive_edit () at keyboard.c:801
#40 0x000000000058034c in main (argc=2, argv=0x7fffffffcb08) at emacs.c:2530
(gdb) bt
#0  0x00007ffff71b5424 in signal_emit_unlocked_R.isra.0 () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
#1  0x00007ffff71bb21b in g_signal_emit_valist () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
#2  0x00007ffff71bb722 in g_signal_emit () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
#3  0x00007ffff71a7884 in g_object_dispatch_properties_changed () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
#4  0x00007ffff71a9834 in g_object_notify_by_pspec () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
#5  0x00007ffff79afbcd in gtk_window_focus_in_event (event=<optimized out>, widget=0x109a500) at gtkwindow.c:8503
#6  gtk_window_focus_in_event (widget=widget@entry=0x109a500, event=<optimized out>) at gtkwindow.c:8491
#7  0x00007ffff79de357 in _gtk_marshal_BOOLEAN__BOXED (closure=0x10b73e0, return_value=0x7fffffffb570, n_param_values=<optimized out>, param_values=0x7fffffffb620, 
    invocation_hint=<optimized out>, marshal_data=<optimized out>) at gtkmarshalers.c:83
#8  0x00007ffff71a34af in g_closure_invoke () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
#9  0x00007ffff71b49e9 in signal_emit_unlocked_R.isra.0 () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
#10 0x00007ffff71bad65 in g_signal_emit_valist () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
#11 0x00007ffff71bb722 in g_signal_emit () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
#12 0x00007ffff798ac04 in gtk_widget_event_internal (widget=widget@entry=0x109a500, event=event@entry=0xfbde80) at gtkwidget.c:7808
#13 0x00007ffff798d472 in gtk_widget_event_internal (event=0xfbde80, widget=0x109a500) at gtkwidget.c:7379
#14 0x00007ffff784b37a in gtk_main_do_event (event=0xfbde80) at gtkmain.c:1861
#15 gtk_main_do_event (event=<optimized out>) at gtkmain.c:1691
#16 0x00007ffff7efc3c5 in _gdk_event_emit (event=event@entry=0xfbde80) at gdkevents.c:73
#17 0x00007ffff7f59352 in gdk_event_source_dispatch (base=<optimized out>, callback=<optimized out>, data=<optimized out>) at gdkeventsource.c:124
#18 0x00007ffff70af4cb in g_main_context_dispatch () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libglib-2.0.so.0
#19 0x00000000007771e4 in pgtk_read_socket (terminal=0x1079a00, hold_quit=0x7fffffffba10) at pgtkterm.c:3840
#20 0x000000000059703c in gobble_input () at keyboard.c:7424
#21 0x0000000000597580 in handle_async_input () at keyboard.c:7655
#22 0x000000000059759f in process_pending_signals () at keyboard.c:7669
#23 0x00000000005975df in unblock_input_to (level=0) at keyboard.c:7684
#24 0x0000000000597603 in unblock_input () at keyboard.c:7703
#25 0x000000000058fe19 in timer_check () at keyboard.c:4749
#26 0x000000000058ce8a in readable_events (flags=1) at keyboard.c:3531
#27 0x0000000000596f04 in get_input_pending (flags=1) at keyboard.c:7374
#28 0x00000000005a0201 in detect_input_pending_run_timers (do_display=true) at keyboard.c:10904
#29 0x00000000006de504 in wait_reading_process_output (time_limit=30, nsecs=0, read_kbd=-1, do_display=true, wait_for_cell=XIL(0), wait_proc=0x0, just_wait_proc=0)
    at process.c:5779
--Type <RET> for more, q to quit, c to continue without paging--c
#30 0x0000000000431ef3 in sit_for (timeout=make_fixnum(30), reading=true, display_option=1) at dispnew.c:6256
#31 0x000000000058a731 in read_char (commandflag=1, map=XIL(0x7ffff41bdb93), prev_event=XIL(0), used_mouse_menu=0x7fffffffc42f, end_time=0x0) at keyboard.c:2879
#32 0x000000000059e2ee in read_key_sequence (keybuf=0x7fffffffc5c0, prompt=XIL(0), dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=false) at keyboard.c:10081
#33 0x0000000000585bc7 in command_loop_1 () at keyboard.c:1382
#34 0x0000000000667131 in internal_condition_case (bfun=0x5857bc <command_loop_1>, handlers=XIL(0x90), hfun=0x584c7f <cmd_error>) at eval.c:1474
#35 0x00000000005853cc in command_loop_2 (handlers=XIL(0x90)) at keyboard.c:1131
#36 0x00000000006663ad in internal_catch (tag=XIL(0xff60), func=0x5853a9 <command_loop_2>, arg=XIL(0x90)) at eval.c:1197
#37 0x0000000000585365 in command_loop () at keyboard.c:1109
#38 0x000000000058476d in recursive_edit_1 () at keyboard.c:718
#39 0x0000000000584974 in Frecursive_edit () at keyboard.c:801
#40 0x000000000058034c in main (argc=2, argv=0x7fffffffcb08) at emacs.c:2530
(gdb) frame 12
#12 0x00007ffff798ac04 in gtk_widget_event_internal (widget=widget@entry=0x109a500, event=event@entry=0xfbde80) at gtkwidget.c:7808
7808    gtkwidget.c: No such file or directory.
(gdb) p widget
$1 = (GtkWidget *) 0x109a500
(gdb) p Vframe_list 
$2 = XIL(0x7ffff41d3203)
(gdb) xcar
$3 = XIL(0x1079c2d)
(gdb) xframe
$4 = (struct frame *) 0x1079c28
"*scratch* - GNU Emacs at ixy"
(gdb) p *$4->output_data.pgtk
$5 = {
  foreground_color = 0,
  background_color = 16777215,
  toolbar = 0x0,
  last_user_time = 0,
  current_cursor = 0x1230860,
  text_cursor = 0x12a36a0,
  nontext_cursor = 0x1230860,
  modeline_cursor = 0x12a36a0,
  hand_cursor = 0x0,
  hourglass_cursor = 0x12a3760,
  horizontal_drag_cursor = 0x0,
  vertical_drag_cursor = 0x0,
  left_edge_cursor = 0x12a3700,
  top_left_corner_cursor = 0x12a3580,
  top_edge_cursor = 0x12a3860,
  top_right_corner_cursor = 0x1273760,
  right_edge_cursor = 0x12a3800,
  bottom_right_corner_cursor = 0x12a35e0,
  bottom_edge_cursor = 0x12a3460,
  bottom_left_corner_cursor = 0x12a3520,
  current_pointer = 0x0,
  border_pixel = 0,
  border_color_css_provider = 0x19a3500,
  scrollbar_foreground_css_provider = 0x1273440,
  scrollbar_background_css_provider = 0x1253440,
  hourglass_widget = 0x0,
  cursor_xgcv = {
    foreground = 16777215,
    background = 0
  },
  window_desc = 0,
--Type <RET> for more, q to quit, c to continue without paging--c
  parent_desc = 42,
  explicit_parent = 0 '\000',
  icon_bitmap = 0,
  font = 0x138eb38,
  baseline_offset = 0,
  fontset = 2,
  mouse_color = 0,
  cursor_color = 0,
  cursor_foreground_color = 16777215,
  icon_top = 0,
  icon_left = 0,
  vertical_scroll_bar_extra = 0,
  titlebar_height = 0,
  toolbar_height = 0,
  display_info = 0x12a3000,
  zooming = 0,
  in_animation = 0,
  size_hints = {
    min_width = 0,
    min_height = 0,
    max_width = 0,
    max_height = 0,
    base_width = 0,
    base_height = 0,
    width_inc = 0,
    height_inc = 0,
    min_aspect = 0,
    max_aspect = 0,
    win_gravity = 0
  },
  hint_flags = 0,
  preferred_width = 672,
  preferred_height = 612,
  widget = 0x109a500,
  edit_widget = 0x141f130,
  vbox_widget = 0x141e1c0,
  hbox_widget = 0x141e320,
  menubar_widget = 0x146b1a0,
  toolbar_widget = 0x1420260,
  toolbar_in_hbox = false,
  toolbar_is_packed = true,
  ttip_widget = 0x0,
  ttip_lbl = 0x0,
  ttip_window = 0x0,
  menubar_height = 25,
  toolbar_top_height = 41,
  toolbar_bottom_height = 0,
  toolbar_left_width = 0,
  toolbar_right_width = 0,
  cr_context = 0x14255e0,
  cr_active = 0x14255e0,
  cr_surface_desired_width = 624,
  cr_surface_desired_height = 604,
  cr_surface_visible_bell = 0x0,
  atimer_visible_bell = 0x0,
  has_been_visible = 1,
  black_relief = {
    xgcv = {
      foreground = 7566195,
      background = 7779407
    },
    pixel = 7566195
  },
  white_relief = {
    xgcv = {
      foreground = 15132390,
      background = 7779407
    },
    pixel = 15132390
  },
  relief_background = 12566463,
  relief_background_valid_p = true,
  focus_state = 0,
  watched_scale_factor = 2,
  scale_factor_atimer = 0x104ecd0
}
(gdb) p (gdkWindow *) gtk_widget_get_window ((GtkWidget *) 0x109a500)
No symbol "gdkWindow" in current context.
(gdb) p (GdkWindow *) gtk_widget_get_window ((GtkWidget *) 0x109a500)
$6 = (GdkWindow *) 0x107e450
(gdb) p (GdkWindowType) gdk_window_get_window_type ($6)
$7 = GDK_WINDOW_TOPLEVEL
(gdb) 
--8<---------------cut here---------------end--------------->8---

Additional info about the actions I do:

run emacs -Q
copy text from scratch buffer
try to insert in chromium address bar
C-g on frozen emacs
Try to toggle full screen frozen chromium
Emacs usually crashes with seg fault we are exploring right now

It seems there are some timeouts involved, because it reproduces from
time to time: sometimes it unfreezes both chromium and emacs without
crash (at least immediate crash), sometimes it crashes differently (can
show logs if you want).

-- 
Best regards,
Andrew Tropin

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* bug#62291: 30.0.50; PGTK copy + paste to other app problem
  2023-03-24 10:39                                       ` Andrew Tropin
@ 2023-03-24 11:40                                         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-09-12  0:11                                           ` Stefan Kangas
  0 siblings, 1 reply; 26+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-03-24 11:40 UTC (permalink / raw)
  To: Andrew Tropin; +Cc: Eli Zaretskii, 62291

Andrew Tropin <andrew@trop.in> writes:

> I restart the debbugger every time because otherwise my clipboard is
> "locked", so the widget from p widget and from output_data.pgtk are the
> same.  Sorry for the confusion.
>
> Thread 1 "emacs" received signal SIGSEGV, Segmentation fault.
> 0x00007ffff71b5424 in signal_emit_unlocked_R.isra.0 () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
> (gdb) bt
> #0  0x00007ffff71b5424 in signal_emit_unlocked_R.isra.0 () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
> #1  0x00007ffff71bb21b in g_signal_emit_valist () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
> #2  0x00007ffff71bb722 in g_signal_emit () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
> #3  0x00007ffff71a7884 in g_object_dispatch_properties_changed () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
> #4  0x00007ffff71a9834 in g_object_notify_by_pspec () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
> #5  0x00007ffff79afbcd in gtk_window_focus_in_event (event=<optimized out>, widget=0x109a500) at gtkwindow.c:8503
> #6  gtk_window_focus_in_event (widget=widget@entry=0x109a500, event=<optimized out>) at gtkwindow.c:8491
> #7  0x00007ffff79de357 in _gtk_marshal_BOOLEAN__BOXED (closure=0x10b73e0, return_value=0x7fffffffb570, n_param_values=<optimized out>, param_values=0x7fffffffb620, 
>     invocation_hint=<optimized out>, marshal_data=<optimized out>) at gtkmarshalers.c:83
> #8  0x00007ffff71a34af in g_closure_invoke () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
> #9  0x00007ffff71b49e9 in signal_emit_unlocked_R.isra.0 () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0

Right, thanks for clarifying that.
Perhaps this crash is not related to the widget being destroyed.
If you install debuginfo and debug source for libgobject, then type `l',
where does it show the crash occurs?





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

* bug#62291: 30.0.50; PGTK copy + paste to other app problem
  2023-03-24 11:40                                         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-09-12  0:11                                           ` Stefan Kangas
  2023-09-12 11:24                                             ` Andrew Tropin
  0 siblings, 1 reply; 26+ messages in thread
From: Stefan Kangas @ 2023-09-12  0:11 UTC (permalink / raw)
  To: Po Lu; +Cc: Eli Zaretskii, 62291, Andrew Tropin

tags 62291 + moreinfo
thanks

Po Lu <luangruo@yahoo.com> writes:

> Andrew Tropin <andrew@trop.in> writes:
>
>> I restart the debbugger every time because otherwise my clipboard is
>> "locked", so the widget from p widget and from output_data.pgtk are the
>> same.  Sorry for the confusion.
>>
>> Thread 1 "emacs" received signal SIGSEGV, Segmentation fault.
>> 0x00007ffff71b5424 in signal_emit_unlocked_R.isra.0 () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
>> (gdb) bt
>> #0  0x00007ffff71b5424 in signal_emit_unlocked_R.isra.0 () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
>> #1  0x00007ffff71bb21b in g_signal_emit_valist () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
>> #2  0x00007ffff71bb722 in g_signal_emit () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
>> #3  0x00007ffff71a7884 in g_object_dispatch_properties_changed () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
>> #4  0x00007ffff71a9834 in g_object_notify_by_pspec () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
>> #5  0x00007ffff79afbcd in gtk_window_focus_in_event (event=<optimized out>, widget=0x109a500) at gtkwindow.c:8503
>> #6  gtk_window_focus_in_event (widget=widget@entry=0x109a500, event=<optimized out>) at gtkwindow.c:8491
>> #7 0x00007ffff79de357 in _gtk_marshal_BOOLEAN__BOXED (closure=0x10b73e0,
>> return_value=0x7fffffffb570, n_param_values=<optimized out>,
>> param_values=0x7fffffffb620,
>>     invocation_hint=<optimized out>, marshal_data=<optimized out>) at gtkmarshalers.c:83
>> #8  0x00007ffff71a34af in g_closure_invoke () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
>> #9  0x00007ffff71b49e9 in signal_emit_unlocked_R.isra.0 () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
>
> Right, thanks for clarifying that.
> Perhaps this crash is not related to the widget being destroyed.
> If you install debuginfo and debug source for libgobject, then type `l',
> where does it show the crash occurs?

Ping.  Andrew, did you get any further with this?





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

* bug#62291: 30.0.50; PGTK copy + paste to other app problem
  2023-09-12  0:11                                           ` Stefan Kangas
@ 2023-09-12 11:24                                             ` Andrew Tropin
  2023-09-12 14:50                                               ` Stefan Kangas
  0 siblings, 1 reply; 26+ messages in thread
From: Andrew Tropin @ 2023-09-12 11:24 UTC (permalink / raw)
  To: Stefan Kangas, Po Lu; +Cc: Eli Zaretskii, 62291

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

On 2023-09-11 17:11, Stefan Kangas wrote:

> tags 62291 + moreinfo
> thanks
>
> Po Lu <luangruo@yahoo.com> writes:
>
>> Andrew Tropin <andrew@trop.in> writes:
>>
>>> I restart the debbugger every time because otherwise my clipboard is
>>> "locked", so the widget from p widget and from output_data.pgtk are the
>>> same.  Sorry for the confusion.
>>>
>>> Thread 1 "emacs" received signal SIGSEGV, Segmentation fault.
>>> 0x00007ffff71b5424 in signal_emit_unlocked_R.isra.0 () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
>>> (gdb) bt
>>> #0  0x00007ffff71b5424 in signal_emit_unlocked_R.isra.0 () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
>>> #1  0x00007ffff71bb21b in g_signal_emit_valist () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
>>> #2  0x00007ffff71bb722 in g_signal_emit () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
>>> #3  0x00007ffff71a7884 in g_object_dispatch_properties_changed () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
>>> #4  0x00007ffff71a9834 in g_object_notify_by_pspec () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
>>> #5  0x00007ffff79afbcd in gtk_window_focus_in_event (event=<optimized out>, widget=0x109a500) at gtkwindow.c:8503
>>> #6  gtk_window_focus_in_event (widget=widget@entry=0x109a500, event=<optimized out>) at gtkwindow.c:8491
>>> #7 0x00007ffff79de357 in _gtk_marshal_BOOLEAN__BOXED (closure=0x10b73e0,
>>> return_value=0x7fffffffb570, n_param_values=<optimized out>,
>>> param_values=0x7fffffffb620,
>>>     invocation_hint=<optimized out>, marshal_data=<optimized out>) at gtkmarshalers.c:83
>>> #8  0x00007ffff71a34af in g_closure_invoke () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
>>> #9  0x00007ffff71b49e9 in signal_emit_unlocked_R.isra.0 () from /gnu/store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
>>
>> Right, thanks for clarifying that.
>> Perhaps this crash is not related to the widget being destroyed.
>> If you install debuginfo and debug source for libgobject, then type `l',
>> where does it show the crash occurs?
>
> Ping.  Andrew, did you get any further with this?

I couldn't get debug symbols for libgobject, probably cause of grafts
and kinda gave up on this issue, sorry.

For the whole time we were using this fix in rde:
https://git.sr.ht/~abcdw/rde/tree/8d6a6b47/src/rde/features/emacs.scm#L217

And recently (a few minutes ago) I found out that the problem
dissapeared, so I don't need this fix anymore.  IDK, if it is due to
chromium version update or emacs.

Thank you very much for pinging! :)

I will report further in case it reappears.

-- 
Best regards,
Andrew Tropin

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* bug#62291: 30.0.50; PGTK copy + paste to other app problem
  2023-09-12 11:24                                             ` Andrew Tropin
@ 2023-09-12 14:50                                               ` Stefan Kangas
  0 siblings, 0 replies; 26+ messages in thread
From: Stefan Kangas @ 2023-09-12 14:50 UTC (permalink / raw)
  To: Andrew Tropin, Po Lu; +Cc: Eli Zaretskii, 62291-done

Andrew Tropin <andrew@trop.in> writes:

>> Ping.  Andrew, did you get any further with this?
>
> I couldn't get debug symbols for libgobject, probably cause of grafts
> and kinda gave up on this issue, sorry.
>
> For the whole time we were using this fix in rde:
> https://git.sr.ht/~abcdw/rde/tree/8d6a6b47/src/rde/features/emacs.scm#L217
>
> And recently (a few minutes ago) I found out that the problem
> dissapeared, so I don't need this fix anymore.  IDK, if it is due to
> chromium version update or emacs.

Great, and thank you for reporting back.

I'm therefore closing this bug report.

> Thank you very much for pinging! :)
>
> I will report further in case it reappears.

Please do, thanks in advance.





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

end of thread, other threads:[~2023-09-12 14:50 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-20 10:33 bug#62291: 30.0.50; PGTK copy + paste to other app problem Andrew Tropin
2023-03-20 11:05 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-20 11:17   ` Andrew Tropin
2023-03-20 12:36     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-21  9:10       ` Andrew Tropin
2023-03-21 10:30         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-21 13:25           ` Andrew Tropin
2023-03-21 16:13           ` Andrew Tropin
2023-03-22  0:39             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-22  4:42               ` Andrew Tropin
2023-03-22  6:11                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-22  7:28                   ` Andrew Tropin
2023-03-22 10:33                     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-22 11:02                       ` Andrew Tropin
2023-03-23  0:44                         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-23  5:18                           ` Andrew Tropin
2023-03-23  7:16                             ` Eli Zaretskii
2023-03-23 18:22                               ` Andrew Tropin
2023-03-24  1:00                                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-24  4:31                                   ` Andrew Tropin
2023-03-24  7:51                                     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-24 10:39                                       ` Andrew Tropin
2023-03-24 11:40                                         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-12  0:11                                           ` Stefan Kangas
2023-09-12 11:24                                             ` Andrew Tropin
2023-09-12 14:50                                               ` Stefan Kangas

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.