unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Emacs crash backtrace.
@ 2022-11-08  5:59 Vladimir Nikishkin
  2022-11-08 12:24 ` Po Lu
  0 siblings, 1 reply; 12+ messages in thread
From: Vladimir Nikishkin @ 2022-11-08  5:59 UTC (permalink / raw)
  To: emacs-devel

Dear Emacs developers,

I am not sure this particular crash warrants a bug, and I do not know
how to reproduce it, but maybe having a crashdump may help someone debug
their code.

This is emacs-master f7816c94b61f87919afccbedbea5270ca5db4e15
built with pgtk and native-comp
mic-paren is a package from melpa

#0  0x00007fc4226f1258 in raise () at /lib64/libpthread.so.0
#1  0x000000000045d2a4 in terminate_due_to_signal ()
#2  0x000000000045d7d4 in  ()
#3  0x000000000056abcd in  ()
#4  0x000000000056acc9 in  ()
#5  0x00007fc4226f13a0 in <signal handler called> () at /lib64/libpthread.so.0
#6  0x00007fc4294831af in g_log_writer_default () at /usr/lib64/libglib-2.0.so.0
#7  0x00007fc4294813f3 in g_log_structured_array () at /usr/lib64/libglib-2.0.so.0
#8  0x00007fc429481e74 in g_log_structured_standard () at /usr/lib64/libglib-2.0.so.0
#9  0x00007fc429b21d96 in  () at /usr/lib64/libgdk-3.so.0
#10 0x00007fc429b2e9e3 in  () at /usr/lib64/libgdk-3.so.0
#11 0x00007fc420488e54 in _XError () at /usr/lib64/libX11.so.6
#12 0x00007fc420485ce7 in  () at /usr/lib64/libX11.so.6
#13 0x00007fc420485d75 in  () at /usr/lib64/libX11.so.6
#14 0x00007fc420486cdd in _XReply () at /usr/lib64/libX11.so.6
#15 0x00007fc4204826cd in XSync () at /usr/lib64/libX11.so.6
#16 0x00007fc429b2ed11 in  () at /usr/lib64/libgdk-3.so.0
#17 0x00007fc429b332bd in  () at /usr/lib64/libgdk-3.so.0
#18 0x00000000006996d5 in pgtk_handle_selection_event ()
#19 0x0000000000558487 in  ()
#20 0x000000000055882e in Finput_pending_p ()
#21 0x00000000005d5e77 in Ffuncall ()
#22 0x00007fc4180d7ee9 in F6d69632d706172656e2d636f6d6d616e642d686f6f6b_mic_paren_command_hook_0 ()
    at /home/lockywolf/.emacs.d/eln-cache/29.0.50-0b4e8e7d/mic-paren-07dd96c3-67eaf92f.eln
#23 0x00000000005d5e77 in Ffuncall ()
#24 0x00000000005d495d in internal_condition_case_n ()
#25 0x000000000054be69 in  ()
#26 0x00000000005d4fbd in run_hook_with_args ()
#27 0x000000000054fc48 in safe_run_hooks_maybe_narrowed ()
#28 0x000000000055f3ec in  ()



-- 
Your sincerely,
Vladimir Nikishkin (MiEr, lockywolf)
(Laptop)



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

* Re: Emacs crash backtrace.
  2022-11-08  5:59 Emacs crash backtrace Vladimir Nikishkin
@ 2022-11-08 12:24 ` Po Lu
  2022-11-08 13:13   ` Andrea Corallo
  0 siblings, 1 reply; 12+ messages in thread
From: Po Lu @ 2022-11-08 12:24 UTC (permalink / raw)
  To: Vladimir Nikishkin; +Cc: emacs-devel

Vladimir Nikishkin <lockywolf@gmail.com> writes:

> Dear Emacs developers,
>
> I am not sure this particular crash warrants a bug, and I do not know
> how to reproduce it, but maybe having a crashdump may help someone debug
> their code.
>
> This is emacs-master f7816c94b61f87919afccbedbea5270ca5db4e15
> built with pgtk and native-comp
> mic-paren is a package from melpa

You're using PGTK on X.  That is unsupported and will lead to problems.

> #0  0x00007fc4226f1258 in raise () at /lib64/libpthread.so.0
> #1  0x000000000045d2a4 in terminate_due_to_signal ()
> #2  0x000000000045d7d4 in  ()
> #3  0x000000000056abcd in  ()
> #4  0x000000000056acc9 in  ()
> #5  0x00007fc4226f13a0 in <signal handler called> () at /lib64/libpthread.so.0
> #6  0x00007fc4294831af in g_log_writer_default () at /usr/lib64/libglib-2.0.so.0
> #7  0x00007fc4294813f3 in g_log_structured_array () at /usr/lib64/libglib-2.0.so.0
> #8  0x00007fc429481e74 in g_log_structured_standard () at /usr/lib64/libglib-2.0.so.0
> #9  0x00007fc429b21d96 in  () at /usr/lib64/libgdk-3.so.0
> #10 0x00007fc429b2e9e3 in  () at /usr/lib64/libgdk-3.so.0
> #11 0x00007fc420488e54 in _XError () at /usr/lib64/libX11.so.6
> #12 0x00007fc420485ce7 in  () at /usr/lib64/libX11.so.6
> #13 0x00007fc420485d75 in  () at /usr/lib64/libX11.so.6
> #14 0x00007fc420486cdd in _XReply () at /usr/lib64/libX11.so.6
> #15 0x00007fc4204826cd in XSync () at /usr/lib64/libX11.so.6
> #16 0x00007fc429b2ed11 in  () at /usr/lib64/libgdk-3.so.0
> #17 0x00007fc429b332bd in  () at /usr/lib64/libgdk-3.so.0
> #18 0x00000000006996d5 in pgtk_handle_selection_event ()

Such as the above.  The PGTK port is only intended to support platforms
other than X, and does not implement very convoluted features, such as
INCR selection transfer, that are only needed with the GDK X11 backend.

Without INCR selection transfer, large X selection transfers will lead
to Alloc errors being generated by the X server as it rejects attempts
by Emacs to store large amounts of data in window properties.

Running the PGTK port on X also leads to various other problems with
keyboard input, frame focus, and child frames.

You should build with the regular X11 support (without PGTK) instead.



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

* Re: Emacs crash backtrace.
  2022-11-08 12:24 ` Po Lu
@ 2022-11-08 13:13   ` Andrea Corallo
  2022-11-08 13:42     ` Po Lu
  0 siblings, 1 reply; 12+ messages in thread
From: Andrea Corallo @ 2022-11-08 13:13 UTC (permalink / raw)
  To: Po Lu; +Cc: Vladimir Nikishkin, emacs-devel

Po Lu <luangruo@yahoo.com> writes:

> Vladimir Nikishkin <lockywolf@gmail.com> writes:
>
>> Dear Emacs developers,
>>
>> I am not sure this particular crash warrants a bug, and I do not know
>> how to reproduce it, but maybe having a crashdump may help someone debug
>> their code.
>>
>> This is emacs-master f7816c94b61f87919afccbedbea5270ca5db4e15
>> built with pgtk and native-comp
>> mic-paren is a package from melpa
>
> You're using PGTK on X.  That is unsupported and will lead to problems.

Hi,

not sure if this was discussed already but, shouldn't we warn the user
running an Emacs in such unsupported configuration?

BR

  Andrea



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

* Re: Emacs crash backtrace.
  2022-11-08 13:13   ` Andrea Corallo
@ 2022-11-08 13:42     ` Po Lu
  2022-11-08 13:55       ` Andrea Corallo
  2022-11-08 14:18       ` Stefan Monnier
  0 siblings, 2 replies; 12+ messages in thread
From: Po Lu @ 2022-11-08 13:42 UTC (permalink / raw)
  To: Andrea Corallo; +Cc: Vladimir Nikishkin, emacs-devel

Andrea Corallo <akrl@sdf.org> writes:

> not sure if this was discussed already but, shouldn't we warn the user
> running an Emacs in such unsupported configuration?

That's already done so, in NEWS and other associated documentation.



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

* Re: Emacs crash backtrace.
  2022-11-08 13:42     ` Po Lu
@ 2022-11-08 13:55       ` Andrea Corallo
  2022-11-08 14:18       ` Stefan Monnier
  1 sibling, 0 replies; 12+ messages in thread
From: Andrea Corallo @ 2022-11-08 13:55 UTC (permalink / raw)
  To: Po Lu; +Cc: Vladimir Nikishkin, emacs-devel

Po Lu <luangruo@yahoo.com> writes:

> Andrea Corallo <akrl@sdf.org> writes:
>
>> not sure if this was discussed already but, shouldn't we warn the user
>> running an Emacs in such unsupported configuration?
>
> That's already done so, in NEWS and other associated documentation.

I'm talking about a run-time warning.  We do it for other dangerous confs
like using emacsclient with GTK/Emacs.

  Andrea



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

* Re: Emacs crash backtrace.
  2022-11-08 13:42     ` Po Lu
  2022-11-08 13:55       ` Andrea Corallo
@ 2022-11-08 14:18       ` Stefan Monnier
  2022-11-09  9:13         ` Andrea Corallo
  1 sibling, 1 reply; 12+ messages in thread
From: Stefan Monnier @ 2022-11-08 14:18 UTC (permalink / raw)
  To: Po Lu; +Cc: Andrea Corallo, Vladimir Nikishkin, emacs-devel

Po Lu [2022-11-08 21:42:47] wrote:
> Andrea Corallo <akrl@sdf.org> writes:
>> not sure if this was discussed already but, shouldn't we warn the user
>> running an Emacs in such unsupported configuration?
> That's already done so, in NEWS and other associated documentation.

I think Andrea was thinking of something more "in your face", like on
the splash screen or in the *scratch* buffer's initial text, or as
a `display-warning`, ...


        Stefan




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

* Re: Emacs crash backtrace.
  2022-11-08 14:18       ` Stefan Monnier
@ 2022-11-09  9:13         ` Andrea Corallo
  2022-11-09 12:43           ` Eli Zaretskii
  2022-11-09 13:05           ` Po Lu
  0 siblings, 2 replies; 12+ messages in thread
From: Andrea Corallo @ 2022-11-09  9:13 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Po Lu, Vladimir Nikishkin, emacs-devel

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> Po Lu [2022-11-08 21:42:47] wrote:
>> Andrea Corallo <akrl@sdf.org> writes:
>>> not sure if this was discussed already but, shouldn't we warn the user
>>> running an Emacs in such unsupported configuration?
>> That's already done so, in NEWS and other associated documentation.
>
> I think Andrea was thinking of something more "in your face", like on
> the splash screen or in the *scratch* buffer's initial text, or as
> a `display-warning`, ...

Exactly, if Emacs is not supposed to work properly in a certain
configuration I believe we definitely should inform the user of this.

  Andrea



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

* Re: Emacs crash backtrace.
  2022-11-09  9:13         ` Andrea Corallo
@ 2022-11-09 12:43           ` Eli Zaretskii
  2022-11-09 13:52             ` Po Lu
  2022-11-09 15:17             ` Andrea Corallo
  2022-11-09 13:05           ` Po Lu
  1 sibling, 2 replies; 12+ messages in thread
From: Eli Zaretskii @ 2022-11-09 12:43 UTC (permalink / raw)
  To: Andrea Corallo; +Cc: monnier, luangruo, lockywolf, emacs-devel

> From: Andrea Corallo <akrl@sdf.org>
> Cc: Po Lu <luangruo@yahoo.com>, Vladimir Nikishkin <lockywolf@gmail.com>,
>  emacs-devel@gnu.org
> Date: Wed, 09 Nov 2022 09:13:13 +0000
> 
> Stefan Monnier <monnier@iro.umontreal.ca> writes:
> 
> > Po Lu [2022-11-08 21:42:47] wrote:
> >> Andrea Corallo <akrl@sdf.org> writes:
> >>> not sure if this was discussed already but, shouldn't we warn the user
> >>> running an Emacs in such unsupported configuration?
> >> That's already done so, in NEWS and other associated documentation.
> >
> > I think Andrea was thinking of something more "in your face", like on
> > the splash screen or in the *scratch* buffer's initial text, or as
> > a `display-warning`, ...
> 
> Exactly, if Emacs is not supposed to work properly in a certain
> configuration I believe we definitely should inform the user of this.

Why not simply refuse to start in that case?  We could add a special
command-line option to override that, to leave users a "fire escape".



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

* Re: Emacs crash backtrace.
  2022-11-09  9:13         ` Andrea Corallo
  2022-11-09 12:43           ` Eli Zaretskii
@ 2022-11-09 13:05           ` Po Lu
  2022-11-09 15:17             ` Andrea Corallo
  1 sibling, 1 reply; 12+ messages in thread
From: Po Lu @ 2022-11-09 13:05 UTC (permalink / raw)
  To: Andrea Corallo; +Cc: Stefan Monnier, Vladimir Nikishkin, emacs-devel

Andrea Corallo <akrl@sdf.org> writes:

> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>
>> Po Lu [2022-11-08 21:42:47] wrote:
>>> Andrea Corallo <akrl@sdf.org> writes:
>>>> not sure if this was discussed already but, shouldn't we warn the user
>>>> running an Emacs in such unsupported configuration?
>>> That's already done so, in NEWS and other associated documentation.
>>
>> I think Andrea was thinking of something more "in your face", like on
>> the splash screen or in the *scratch* buffer's initial text, or as
>> a `display-warning`, ...
>
> Exactly, if Emacs is not supposed to work properly in a certain
> configuration I believe we definitely should inform the user of this.
>
>   Andrea

Sounds reasonable, now done.



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

* Re: Emacs crash backtrace.
  2022-11-09 12:43           ` Eli Zaretskii
@ 2022-11-09 13:52             ` Po Lu
  2022-11-09 15:17             ` Andrea Corallo
  1 sibling, 0 replies; 12+ messages in thread
From: Po Lu @ 2022-11-09 13:52 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Andrea Corallo, monnier, lockywolf, emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

> Why not simply refuse to start in that case?  We could add a special
> command-line option to override that, to leave users a "fire escape".

I made it display a large dialog box upon startup on X instead.  But
that would be fine with me too.



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

* Re: Emacs crash backtrace.
  2022-11-09 12:43           ` Eli Zaretskii
  2022-11-09 13:52             ` Po Lu
@ 2022-11-09 15:17             ` Andrea Corallo
  1 sibling, 0 replies; 12+ messages in thread
From: Andrea Corallo @ 2022-11-09 15:17 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: monnier, luangruo, lockywolf, emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Andrea Corallo <akrl@sdf.org>
>> Cc: Po Lu <luangruo@yahoo.com>, Vladimir Nikishkin <lockywolf@gmail.com>,
>>  emacs-devel@gnu.org
>> Date: Wed, 09 Nov 2022 09:13:13 +0000
>> 
>> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> 
>> > Po Lu [2022-11-08 21:42:47] wrote:
>> >> Andrea Corallo <akrl@sdf.org> writes:
>> >>> not sure if this was discussed already but, shouldn't we warn the user
>> >>> running an Emacs in such unsupported configuration?
>> >> That's already done so, in NEWS and other associated documentation.
>> >
>> > I think Andrea was thinking of something more "in your face", like on
>> > the splash screen or in the *scratch* buffer's initial text, or as
>> > a `display-warning`, ...
>> 
>> Exactly, if Emacs is not supposed to work properly in a certain
>> configuration I believe we definitely should inform the user of this.
>
> Why not simply refuse to start in that case?  We could add a special
> command-line option to override that, to leave users a "fire escape".

That's good as well, I've no strong preference over the two options.

Thanks

  Andrea



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

* Re: Emacs crash backtrace.
  2022-11-09 13:05           ` Po Lu
@ 2022-11-09 15:17             ` Andrea Corallo
  0 siblings, 0 replies; 12+ messages in thread
From: Andrea Corallo @ 2022-11-09 15:17 UTC (permalink / raw)
  To: Po Lu; +Cc: Stefan Monnier, Vladimir Nikishkin, emacs-devel

Po Lu <luangruo@yahoo.com> writes:

> Andrea Corallo <akrl@sdf.org> writes:
>
>> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>>
>>> Po Lu [2022-11-08 21:42:47] wrote:
>>>> Andrea Corallo <akrl@sdf.org> writes:
>>>>> not sure if this was discussed already but, shouldn't we warn the user
>>>>> running an Emacs in such unsupported configuration?
>>>> That's already done so, in NEWS and other associated documentation.
>>>
>>> I think Andrea was thinking of something more "in your face", like on
>>> the splash screen or in the *scratch* buffer's initial text, or as
>>> a `display-warning`, ...
>>
>> Exactly, if Emacs is not supposed to work properly in a certain
>> configuration I believe we definitely should inform the user of this.
>>
>>   Andrea
>
> Sounds reasonable, now done.

Thanks Po Lu

  Andrea



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

end of thread, other threads:[~2022-11-09 15:17 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-08  5:59 Emacs crash backtrace Vladimir Nikishkin
2022-11-08 12:24 ` Po Lu
2022-11-08 13:13   ` Andrea Corallo
2022-11-08 13:42     ` Po Lu
2022-11-08 13:55       ` Andrea Corallo
2022-11-08 14:18       ` Stefan Monnier
2022-11-09  9:13         ` Andrea Corallo
2022-11-09 12:43           ` Eli Zaretskii
2022-11-09 13:52             ` Po Lu
2022-11-09 15:17             ` Andrea Corallo
2022-11-09 13:05           ` Po Lu
2022-11-09 15:17             ` Andrea Corallo

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).