guile-devel
[Top][All Lists]
Advanced

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

[bug #24867] `define' should be thread-safe


From: Linas Vepstas
Subject: [bug #24867] `define' should be thread-safe
Date: Thu, 26 Dec 2013 00:08:38 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/28.0.1500.71 Chrome/28.0.1500.71 Safari/537.36

Follow-up Comment #13, bug #24867 (project guile):

To answer my own question:
-- compile test case below, as:
cc define-race.c -lpthread -lguile-2.0 -I/usr/include/guile/2.0

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff5d44700 (LWP 7601)]
0x00007ffff7243bc9 in GC_push_all_eager () from /usr/lib/libgc.so.1
(gdb) bt
#0  0x00007ffff7243bc9 in GC_push_all_eager () from /usr/lib/libgc.so.1
#1  0x00007ffff724bee1 in GC_push_all_stacks () from /usr/lib/libgc.so.1
#2  0x00007ffff7244733 in GC_mark_some () from /usr/lib/libgc.so.1
#3  0x00007ffff723b802 in GC_stopped_mark () from /usr/lib/libgc.so.1
#4  0x00007ffff723bf0a in GC_try_to_collect_inner () from /usr/lib/libgc.so.1
#5  0x00007ffff72465d0 in GC_init_inner () from /usr/lib/libgc.so.1
#6  0x00007ffff78af793 in ?? () from /usr/lib/libguile-2.0.so.22
#7  0x00007ffff78be9a8 in ?? () from /usr/lib/libguile-2.0.so.22
#8  0x00007ffff79118f0 in ?? () from /usr/lib/libguile-2.0.so.22
#9  0x00007ffff7911927 in ?? () from /usr/lib/libguile-2.0.so.22
#10 0x00007ffff72461e5 in GC_call_with_stack_base () from /usr/lib/libgc.so.1
#11 0x00007ffff7911ae8 in scm_with_guile () from /usr/lib/libguile-2.0.so.22
#12 0x0000000000400b2e in definer ()
#13 0x00007ffff7bc4e9a in start_thread (arg=0x7ffff5d44700) at
pthread_create.c:308
#14 0x00007ffff75793fd in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#15 0x0000000000000000 in ?? ()


This is with 
$ guile --version
guile (GNU Guile) 2.0.5-deb+1-1

installed on an Ubuntu Precise system

The corresponding GC seems to be froom a package called 
libgc1c2 - conservative garbage collector for C and C++
which installs libgc.so.1.0.3
The last entry in the ChangeLog is 
libgc (1:7.1-8ubuntu0.12.04.1) precise-security; urgency=low

so this seems to be the bdwgc version 7.1

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?24867>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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