emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs-26 threads problem [win64]


From: Fabrice Popineau
Subject: Re: Emacs-26 threads problem [win64]
Date: Tue, 10 Oct 2017 18:13:19 +0200

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 <address@hidden>:
> From: Fabrice Popineau <address@hidden>
> 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?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]