unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Fabrice Popineau <fabrice.popineau@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: Emacs-26 threads problem [win64]
Date: Tue, 10 Oct 2017 18:13:19 +0200	[thread overview]
Message-ID: <CAFgFV9P2Srsy7LsGpW83_XrD0F-Xn1bv4M9iDC9=73j_gJb=eA@mail.gmail.com> (raw)
In-Reply-To: <83h8v7r02e.fsf@gnu.org>

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

Here it is :

[New Thread 21364.0x3eb8]

Thread 15 received signal SIGSEGV, Segmentation fault.
[Switching to Thread 21364.0x3eb8]
0x00000004001ecb07 in run_thread (state=0x400ae5068 <dumped_data+4654312>)
at ../../emacs/src/thread.c:700
700       self->m_stack_bottom = self->stack_top = (char *) &stack_pos;
(gdb) p self
$1 = (struct thread_state *) 0x400ae5068 <dumped_data+4654312>
(gdb) p *self
$2 = {header = {size = 4611686018662539271}, m_last_thing_searched = {i =
0}, m_saved_last_thing_searched = {i = 0}, name = {
    i = 0}, function = {i = -17087155184}, error_symbol = {i = 0},
error_data = {i = 0}, event_object = {i = 0},
  m_stack_bottom = 0x0, stack_top = 0x0, m_catchlist = 0x0, m_handlerlist =
0x0, m_handlerlist_sentinel = 0x0,
  m_specpdl_size = 50, m_specpdl = 0x5f270b8, m_specpdl_ptr = 0x5f270b8,
m_lisp_eval_depth = 0, m_current_buffer = 0x5f26c80,
  m_search_regs = {num_regs = 0, start = 0x0, end = 0x0},
m_search_regs_saved = false, m_saved_search_regs = {num_regs = 0,
    start = 0x0, end = 0x0}, m_re_match_object = {i = 0},
m_waiting_for_user_input_p = 0, m_waiting_for_input = false,
  m_getcjmp = {{Part = {0, 0}} <repeats 16 times>}, thread_id = 0,
thread_condvar = {wait_count = 0, wait_count_lock = {
      DebugInfo = 0xffffffffffffffff, LockCount = -1, RecursionCount = 0,
OwningThread = 0x0, LockSemaphore = 0x0,
      SpinCount = 33556432}, events = {0x40c, 0x410}, initialized = true},
wait_condvar = 0x0, not_holding_lock = 0,
  next_thread = 0x400664500 <main_thread>}
(gdb) p stack_pos
$3 = {__max_align_ll = 0, __max_align_ld =
3.587554638101247699761989924457637e-4943}

I am not sure what causes the segfault.
m_stack_bottom is of type char* but stack_top is of type void*. Could that
be a problem ?

Fabrice


2017-10-10 8:25 GMT+02:00 Eli Zaretskii <eliz@gnu.org>:

> > From: Fabrice Popineau <fabrice.popineau@gmail.com>
> > Date: Mon, 9 Oct 2017 21:48:39 +0200
> >
> > passed 18/28 threads-let-binding
> > Segmentation fault
> >
> > This is with the latest emacs-26 sources.
>
> Doesn't segfault for me, so it could be something specific to the
> 64-bit build.  Can you attach a debugger, show the backtrace, and look
> around to find the immediate reason for the segfault?
>

[-- Attachment #2: Type: text/html, Size: 3015 bytes --]

  reply	other threads:[~2017-10-10 16:13 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-09 19:48 Emacs-26 threads problem [win64] Fabrice Popineau
2017-10-10  6:25 ` Eli Zaretskii
2017-10-10 16:13   ` Fabrice Popineau [this message]
2017-10-10 16:30     ` Eli Zaretskii
2017-10-10 16:48       ` Eli Zaretskii
2017-10-10 18:57         ` Fabrice Popineau
2017-10-10 19:39           ` Eli Zaretskii
2017-10-10 19:58             ` Fabrice Popineau
2017-10-10 20:09               ` Eli Zaretskii
2017-10-10 20:14                 ` Fabrice Popineau
2017-10-11 10:02                   ` Eli Zaretskii
2017-10-13 18:52                   ` Eli Zaretskii
2017-10-13 22:00                     ` Richard Copley
2017-10-14  6:39                       ` Eli Zaretskii
2017-10-13 22:28                     ` Paul Eggert
2017-10-14  6:47                       ` Eli Zaretskii
2017-10-14  8:05                         ` Paul Eggert
2017-10-14  8:25                           ` Eli Zaretskii
2017-10-14  9:28                             ` Paul Eggert
2017-10-14  9:30                               ` Andreas Schwab
2017-10-14 10:33                                 ` Eli Zaretskii
2017-10-14 11:31                                   ` Andreas Schwab
2017-10-14 12:18                                     ` Eli Zaretskii
2017-10-14 12:39                                       ` Andreas Schwab
2017-10-14 14:00                                         ` Eli Zaretskii
2017-10-14 22:51                                           ` Paul Eggert
2017-10-15 15:14                                             ` Eli Zaretskii
2017-10-15 15:39                                               ` Andreas Schwab
2017-10-15 16:30                                                 ` Eli Zaretskii
2017-10-15 16:41                                                   ` Stefan Monnier
2017-10-15 17:19                                                     ` Eli Zaretskii
2017-10-15 16:47                                                   ` Andreas Schwab
2017-10-14  9:26                           ` Andreas Schwab
2017-10-14  9:31                             ` Paul Eggert
2017-10-14 19:06                           ` Fabrice Popineau
2017-10-10 18:55       ` Fabrice Popineau

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='CAFgFV9P2Srsy7LsGpW83_XrD0F-Xn1bv4M9iDC9=73j_gJb=eA@mail.gmail.com' \
    --to=fabrice.popineau@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /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).