[Ecls-list] Freeze import.c which is threads examples source
zqwell
zqwell.ss at gmail.com
Sun Jul 18 05:15:31 UTC 2010
Hello everyone.
I have ECL (ver 1.4.1) which was compiled with
"./configure --enable-threads --enable-boehm --enable-unicode" on Mac
OS X 10.6.3.
I want to use multi-thread, so I tried to run threads examples
(source path is /examples/threads/import/import.c).
But freeze it with the following output console.
-----------------------------------------------
macbook:~/ecl_1.4.1/examples/threads/import$ ./import.exe
0
1
-----------------------------------------------
I use gdb backtrace for specifying where to freeze.
The following is backtrace.
-----------------------------------------------
macbook:~/ecl_1.4.1/examples/threads/import$ gdb -q ./import.exe
Reading symbols for shared libraries .
...(omission)...
(gdb) r
Starting program: /Users/kafergots/ecl_1.4.1/examples/threads/import/import.exe
Reading symbols for shared libraries +++. done
0
1
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000001000
[Switching to process 70883]
0x00000001001400ef in return_single_freelist (fl=0x1000,
gfl=0x1001f06c0) at
/Users/kafergots/ecl/src/gc/thread_local_alloc.c:43
43 for (qptr = &(obj_link(fl)), q = *qptr;
(gdb) backtrace
#0 0x00000001001400ef in return_single_freelist (fl=0x1000,
gfl=0x1001f06c0) at
/Users/kafergots/ecl/src/gc/thread_local_alloc.c:43
#1 0x000000010014016c in return_freelists (fl=0x100b8a028, gfl=<value
temporarily unavailable, due to optimizations>) at
/Users/kafergots/ecl/src/gc/thread_local_alloc.c:59
#2 0x00000001001401c7 in GC_destroy_thread_local (p=0x100b8a028) at
/Users/kafergots/ecl/src/gc/thread_local_alloc.c:120
#3 0x00000001001413e5 in GC_unregister_my_thread () at
/Users/kafergots/ecl/src/gc/pthread_support.c:920
#4 0x0000000100140b26 in GC_inner_start_routine (sb=<value
temporarily unavailable, due to optimizations>, arg=<value temporarily
unavailable, due to optimizations>) at
/Users/kafergots/ecl/src/gc/pthread_support.c:1078
#5 0x000000010013cef9 in GC_call_with_stack_base (fn=<value
temporarily unavailable, due to optimizations>, arg=<value temporarily
unavailable, due to optimizations>) at
/Users/kafergots/ecl/src/gc/misc.c:1167
#6 0x00007fff8637d8b6 in _pthread_start ()
#7 0x00007fff8637d769 in thread_start ()
-----------------------------------------------
I cannot understand why freeze it.
please tell me your advice for doing correctly.
Sincerely,
--
Kenichi Satoh
mail: <zqwell.ss at gmail.com>
More information about the ecl-devel
mailing list