all messages for Emacs-related lists mirrored at yhetil.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 20:57:20 +0200	[thread overview]
Message-ID: <CAFgFV9OAXbd8vEW10-M=XkZG176DuKUqL7UFFE00WyWzRe4Hkg@mail.gmail.com> (raw)
In-Reply-To: <83r2ubosnd.fsf@gnu.org>

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

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

> > Date: Tue, 10 Oct 2017 19:30:11 +0300
> > From: Eli Zaretskii <eliz@gnu.org>
> > Cc: emacs-devel@gnu.org
> >
> > > From: Fabrice Popineau <fabrice.popineau@gmail.com>
> > > Date: Tue, 10 Oct 2017 18:13:19 +0200
> > > Cc: Emacs developers <emacs-devel@gnu.org>
> > >
> > > (gdb) p stack_pos
> > > $3 = {__max_align_ll = 0, __max_align_ld = 3.
> 587554638101247699761989924457637e-4943}
> >
> > What is &stack_pos, the address of stack_pos?  Is it properly aligned?
>
> Also, this very snippet runs every time a non-main thread is run by
> Emacs, and yet all of the 18 tests before this one succeeded for you.
> What is different in this 19th test that it fails?
>

What does this test do exactly ? (Well I could read the code but ... doing
many other things in parallel)

Because if I print &stack_pos, I get :

(gdb) run -batch --no-site-file --no-site-lisp -L ";../../emacs/test" -l
ert -l src/thread-tests.el --eval "(ert-run-tests-batch-and-exit (quote
(not (tag :expensive-test))))"
Starting program: /d/Source/emacs/build-emacs-26/src/emacs -batch
--no-site-file --no-site-lisp -L ";../../emacs/test" -l ert -l
src/thread-tests.el --eval "(ert-run-tests-batch-and-exit (quote (not (tag
:expensive-test))))"
[New Thread 20864.0x60c]
[New Thread 20864.0x5bb4]
[New Thread 20864.0x3070]
[New Thread 20864.0x332c]
[New Thread 20864.0x512c]
Running 28 tests (2017-10-10 19:54:11+0100)
[New Thread 20864.0x42ec]
[Thread 20864.0x42ec exited with code 0]
[New Thread 20864.0x25e8]
stack_pos = 741feb0
stack_pos = 7c1feb0
   passed   1/28  thread-errors
[New Thread 20864.0x1118]
[Thread 20864.0x25e8 exited with code 0]
[Thread 20864.0x1118 exited with code 0]
stack_pos = 841feb0
   passed   2/28  thread-signal-early
   passed   3/28  thread-sticky-point
[New Thread 20864.0x562c]
stack_pos = 8c1feb0
   passed   4/28  threads-alive
   passed   5/28  threads-all-threads
[New Thread 20864.0x471c]
[Thread 20864.0x562c exited with code 0]
[Thread 20864.0x471c exited with code 0]
stack_pos = 941feb0
   passed   6/28  threads-basic
   passed   7/28  threads-condvar-mutex
   passed   8/28  threads-condvar-name
   passed   9/28  threads-condvar-name-2
   passed  10/28  threads-condvar-type
[New Thread 20864.0x2970]
[Thread 20864.0x2970 exited with code 0]
stack_pos = 9c1feb0
   passed  11/28  threads-condvar-wait
   passed  12/28  threads-condvarp
   passed  13/28  threads-condvarp-2
[New Thread 20864.0x16a0]
[Thread 20864.0x16a0 exited with code 0]
stack_pos = a41feb0
   passed  14/28  threads-io-switch
   passed  15/28  threads-is-one
[New Thread 20864.0x4e68]
[Thread 20864.0x4e68 exited with code 0]
stack_pos = ac1feb0
   passed  16/28  threads-join
   passed  17/28  threads-join-self
[New Thread 20864.0x63f4]
[Thread 20864.0x63f4 exited with code 0]
stack_pos = b41feb0
   passed  18/28  threads-let-binding
[New Thread 20864.0x4340]

Thread 15 received signal SIGSEGV, Segmentation fault.
[Switching to Thread 20864.0x4340]
run_thread (state=0x400ae5e78 <dumped_data+4670360>) at
../../emacs/src/thread.c:702
702       self->m_stack_bottom = (char *) &stack_pos;


The value of stack_pos keeps  increasing. Isn't there some limit that is
reached here ?

Fabrice

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

  reply	other threads:[~2017-10-10 18:57 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
2017-10-10 16:30     ` Eli Zaretskii
2017-10-10 16:48       ` Eli Zaretskii
2017-10-10 18:57         ` Fabrice Popineau [this message]
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

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

  git send-email \
    --in-reply-to='CAFgFV9OAXbd8vEW10-M=XkZG176DuKUqL7UFFE00WyWzRe4Hkg@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 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.