unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#50339: master creashed in compact_small_strings
@ 2021-09-02 16:04 Richard Stallman
  2021-09-02 16:12 ` Eli Zaretskii
  0 siblings, 1 reply; 12+ messages in thread
From: Richard Stallman @ 2021-09-02 16:04 UTC (permalink / raw)
  To: 50339

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

Master from May 11 crashed in __memmove_ssse3, called from
compact_small_strings.  Is there any debugging I can do,
before that gdb session is lost when my laptop next crashes?

-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)







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

* bug#50339: master creashed in compact_small_strings
  2021-09-02 16:04 bug#50339: master creashed in compact_small_strings Richard Stallman
@ 2021-09-02 16:12 ` Eli Zaretskii
  2021-09-04 17:18   ` Richard Stallman
  0 siblings, 1 reply; 12+ messages in thread
From: Eli Zaretskii @ 2021-09-02 16:12 UTC (permalink / raw)
  To: rms; +Cc: 50339

> From: Richard Stallman <rms@gnu.org>
> Date: Thu, 02 Sep 2021 12:04:34 -0400
> 
> Master from May 11 crashed in __memmove_ssse3, called from
> compact_small_strings.  Is there any debugging I can do,
> before that gdb session is lost when my laptop next crashes?

Can you tell why it crashed?  Which of the arguments to memmove were
bogus?





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

* bug#50339: master creashed in compact_small_strings
  2021-09-02 16:12 ` Eli Zaretskii
@ 2021-09-04 17:18   ` Richard Stallman
  2021-09-04 17:35     ` Eli Zaretskii
  0 siblings, 1 reply; 12+ messages in thread
From: Richard Stallman @ 2021-09-04 17:18 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 50339

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > Can you tell why it crashed?  Which of the arguments to memmove were
  > bogus?

s is nonzero.  It is 0x555556fb4bc0.
from is 0x5555570edcc0

Is s supposed to be > from?

from->string is 0.  Strange.

size is 0x511be45adaa18398
nbytes is 0x511be45adaa1838d

That value of size was used to calculate from_end and to_end.

I am guessing how
to find out in GDB what the data at s says nbytes ought to be.
But s->u.s.size is 6.


-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)







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

* bug#50339: master creashed in compact_small_strings
  2021-09-04 17:18   ` Richard Stallman
@ 2021-09-04 17:35     ` Eli Zaretskii
  2021-09-06  3:08       ` Richard Stallman
  0 siblings, 1 reply; 12+ messages in thread
From: Eli Zaretskii @ 2021-09-04 17:35 UTC (permalink / raw)
  To: rms; +Cc: 50339

> From: Richard Stallman <rms@gnu.org>
> Cc: 50339@debbugs.gnu.org
> Date: Sat, 04 Sep 2021 13:18:28 -0400
> 
> s is nonzero.  It is 0x555556fb4bc0.
> from is 0x5555570edcc0
> 
> Is s supposed to be > from?

No, I think it's supposed to be equal to from.

> from->string is 0.  Strange.

Yes, because s = from->string != 0.

> size is 0x511be45adaa18398
> nbytes is 0x511be45adaa1838d
> 
> That value of size was used to calculate from_end and to_end.

Look like bogus values.

Very strange.

Does anyone have any idea how this could happen?





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

* bug#50339: master creashed in compact_small_strings
  2021-09-04 17:35     ` Eli Zaretskii
@ 2021-09-06  3:08       ` Richard Stallman
  2021-09-06  5:42         ` Eli Zaretskii
  0 siblings, 1 reply; 12+ messages in thread
From: Richard Stallman @ 2021-09-06  3:08 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 50339

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > > That value of size was used to calculate from_end and to_end.

  > Look like bogus values.

  > Very strange.

  > Does anyone have any idea how this could happen?

It could be a random hardware failure.
Such things have happened.

-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)







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

* bug#50339: master creashed in compact_small_strings
  2021-09-06  3:08       ` Richard Stallman
@ 2021-09-06  5:42         ` Eli Zaretskii
  2021-09-07  3:17           ` Richard Stallman
  0 siblings, 1 reply; 12+ messages in thread
From: Eli Zaretskii @ 2021-09-06  5:42 UTC (permalink / raw)
  To: rms; +Cc: 50339

> From: Richard Stallman <rms@gnu.org>
> Cc: 50339@debbugs.gnu.org
> Date: Sun, 05 Sep 2021 23:08:11 -0400
> 
>   > Look like bogus values.
> 
>   > Very strange.
> 
>   > Does anyone have any idea how this could happen?
> 
> It could be a random hardware failure.
> Such things have happened.

Yes, that's one thing that crossed my mind.  Did you have hardware
problems on this machine in the past?





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

* bug#50339: master creashed in compact_small_strings
  2021-09-06  5:42         ` Eli Zaretskii
@ 2021-09-07  3:17           ` Richard Stallman
  2021-09-07  6:14             ` Eli Zaretskii
  2021-09-08  3:27             ` Richard Stallman
  0 siblings, 2 replies; 12+ messages in thread
From: Richard Stallman @ 2021-09-07  3:17 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 50339

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > Yes, that's one thing that crossed my mind.  Did you have hardware
  > problems on this machine in the past?

Yes, though I don't know if they involved incorrect execution on the CPU.
I have no evidence for that specific kind of problem.

-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)







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

* bug#50339: master creashed in compact_small_strings
  2021-09-07  3:17           ` Richard Stallman
@ 2021-09-07  6:14             ` Eli Zaretskii
  2021-09-08  3:27             ` Richard Stallman
  1 sibling, 0 replies; 12+ messages in thread
From: Eli Zaretskii @ 2021-09-07  6:14 UTC (permalink / raw)
  To: rms; +Cc: 50339

> From: Richard Stallman <rms@gnu.org>
> Cc: 50339@debbugs.gnu.org
> Date: Mon, 06 Sep 2021 23:17:39 -0400
> 
>   > Yes, that's one thing that crossed my mind.  Did you have hardware
>   > problems on this machine in the past?
> 
> Yes, though I don't know if they involved incorrect execution on the CPU.
> I have no evidence for that specific kind of problem.

A memory-related problem could also explain that.





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

* bug#50339: master creashed in compact_small_strings
  2021-09-07  3:17           ` Richard Stallman
  2021-09-07  6:14             ` Eli Zaretskii
@ 2021-09-08  3:27             ` Richard Stallman
  2021-09-19 16:05               ` Stefan Kangas
  1 sibling, 1 reply; 12+ messages in thread
From: Richard Stallman @ 2021-09-08  3:27 UTC (permalink / raw)
  To: eliz, 50339; +Cc: rms

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

Alas, my machine crashed and that session was lost.

-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)







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

* bug#50339: master creashed in compact_small_strings
  2021-09-08  3:27             ` Richard Stallman
@ 2021-09-19 16:05               ` Stefan Kangas
  2021-09-20 23:48                 ` Richard Stallman
  0 siblings, 1 reply; 12+ messages in thread
From: Stefan Kangas @ 2021-09-19 16:05 UTC (permalink / raw)
  To: Richard Stallman; +Cc: 50339

Richard Stallman <rms@gnu.org> writes:

> Alas, my machine crashed and that session was lost.

Should this bug remain open, or does that preclude us making any further
progress here?  I can see that you discussed that this might have been
caused by a hardware issue.





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

* bug#50339: master creashed in compact_small_strings
  2021-09-19 16:05               ` Stefan Kangas
@ 2021-09-20 23:48                 ` Richard Stallman
  2021-09-21  7:41                   ` Stefan Kangas
  0 siblings, 1 reply; 12+ messages in thread
From: Richard Stallman @ 2021-09-20 23:48 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: 50339

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > > Alas, my machine crashed and that session was lost.

  > Should this bug remain open, or does that preclude us making any further
  > progress here?

I can't do any further debugging on the process which crashed.
So I can't contribute any further for the moment.
Whether to close the ticket isup to you.

  >   I can see that you discussed that this might have been
  > caused by a hardware issue.

That was just speculation, of course.  But I could not see how obeying
the instructions in that code could have produced this result.

Perhaps a bug in a signal handler could have done it.

-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)







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

* bug#50339: master creashed in compact_small_strings
  2021-09-20 23:48                 ` Richard Stallman
@ 2021-09-21  7:41                   ` Stefan Kangas
  0 siblings, 0 replies; 12+ messages in thread
From: Stefan Kangas @ 2021-09-21  7:41 UTC (permalink / raw)
  To: rms; +Cc: 50339-done

Richard Stallman <rms@gnu.org> writes:

>   > > Alas, my machine crashed and that session was lost.
>
>   > Should this bug remain open, or does that preclude us making any further
>   > progress here?
>
> I can't do any further debugging on the process which crashed.
> So I can't contribute any further for the moment.
> Whether to close the ticket isup to you.
>
>   >   I can see that you discussed that this might have been
>   > caused by a hardware issue.
>
> That was just speculation, of course.  But I could not see how obeying
> the instructions in that code could have produced this result.
>
> Perhaps a bug in a signal handler could have done it.

OK, let's close it for now then, under the assumption that there is not
much we can do to make any progress here given that the session was
lost.

I suppose that our best chance to catch it, if it is indeed a bug in our
code, would be for someone to run into this crash again.  For better or
for worse.





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

end of thread, other threads:[~2021-09-21  7:41 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-02 16:04 bug#50339: master creashed in compact_small_strings Richard Stallman
2021-09-02 16:12 ` Eli Zaretskii
2021-09-04 17:18   ` Richard Stallman
2021-09-04 17:35     ` Eli Zaretskii
2021-09-06  3:08       ` Richard Stallman
2021-09-06  5:42         ` Eli Zaretskii
2021-09-07  3:17           ` Richard Stallman
2021-09-07  6:14             ` Eli Zaretskii
2021-09-08  3:27             ` Richard Stallman
2021-09-19 16:05               ` Stefan Kangas
2021-09-20 23:48                 ` Richard Stallman
2021-09-21  7:41                   ` Stefan Kangas

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