unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: German Pacenza <germanp82@hotmail.com>
Cc: 59452@debbugs.gnu.org
Subject: bug#59452: 29.0.50; [PGTK] SIGSEV Args out of range: 6, 6
Date: Wed, 23 Nov 2022 08:38:21 +0800	[thread overview]
Message-ID: <87v8n633pe.fsf@yahoo.com> (raw)
In-Reply-To: <DM5PR2201MB1161AA1D8B7A51349B839634A70D9@DM5PR2201MB1161.namprd22.prod.outlook.com> (German Pacenza's message of "Tue, 22 Nov 2022 10:48:34 -0300")

German Pacenza <germanp82@hotmail.com> writes:

> Something like this?:

Thanks!

> Thread 1 "emacs" hit Breakpoint 1, args_out_of_range (a1=a1@entry=0x1a, a2=a2@entry=0x1a) at data.c:155
> 155	 xsignal2 (Qargs_out_of_range, a1, a2);
> (gdb) bt full
> #0  args_out_of_range (a1=a1@entry=0x1a, a2=a2@entry=0x1a) at data.c:155
> #1  0x00005555555dd84e in validate_interval_range
>     (object=0x555555e7e984, begin=0x7fffffffc658, end=<optimized out>, force=<optimized out>)
>     at textprop.c:173
>         len = <optimized out>
>         i = <optimized out>
>         searchpos = <optimized out>
>         begin0 = 0x1a
>         end0 = 0x1a
> #2  0x00005555557cd0f0 in Ftext_properties_at (position=<optimized out>, 
>     position@entry=0x1a, object=<optimized out>, object@entry=0x555555e7e984) at textprop.c:580
>         i = <optimized out>
> #3  0x00005555557cd15c in Fget_text_property
>     (position=position@entry=0x1a, prop=prop@entry=0x8820, object=object@entry=0x555555e7e984)
>     at textprop.c:604
> #4  0x000055555564093f in note_mode_line_or_margin_highlight
>     (area=<optimized out>, y=<optimized out>, x=<optimized out>, window=<optimized out>)
>     at xdisp.c:34594
>         f = 0x5555562dd9d0
>         hlinfo = 0x5555564c00d0
>         charpos = 6
>         pos = 0x1a
>         help = 0x0
>         mouse_face_shown = <optimized out>
>         w = 0x555556d41f18
>         pointer = <optimized out>

This is not ok for code run from a read_socket_hook.  If you type the
following in gdb:

  (gdb) up
  (gdb) p BUF_ZV (XBUFFER (object))
  (gdb) p BUF_BEGV (XBUFFER (object))

what does it say?

(If the above does not work, build Emacs with -g3 -O0.)





  reply	other threads:[~2022-11-23  0:38 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-21 18:46 bug#59452: 29.0.50; [PGTK] SIGSEV Args out of range: 6, 6 German Pacenza
2022-11-22  0:32 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-11-22 13:48   ` German Pacenza
2022-11-23  0:38     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2022-11-23 11:58       ` German Pacenza
2022-11-23 14:20         ` Eli Zaretskii
2022-11-23 14:52           ` German Pacenza
2022-11-23 15:17             ` Eli Zaretskii
2022-11-24  0:37           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-11-24  7:14             ` Eli Zaretskii
2022-11-24 10:37               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87v8n633pe.fsf@yahoo.com \
    --to=bug-gnu-emacs@gnu.org \
    --cc=59452@debbugs.gnu.org \
    --cc=germanp82@hotmail.com \
    --cc=luangruo@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).