[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to temporarily disable gc?
From: |
Richard Guenther |
Subject: |
How to temporarily disable gc? |
Date: |
Mon, 9 Apr 2001 13:54:24 +0200 (CEST) |
Hi!
I (probably) neet to disable gc temporarily, how can I do this?
Using gh_defer_ints(); ... gh_allow_ints(); doesnt do the trick.
I think gc is somehow causing the following SIGSEGV:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 16068)]
0x40108a4c in scm_igc () from /usr/lib/libguile.so.9
(gdb) bt
#0 0x40108a4c in scm_igc () from /usr/lib/libguile.so.9
#1 0x401089d3 in scm_gc_for_newcell () from /usr/lib/libguile.so.9
#2 0x40133cf7 in scm_init_tag () from /usr/lib/libguile.so.9
#3 0x40133d84 in scm_internal_catch () from /usr/lib/libguile.so.9
#4 0x4010c992 in gh_catch () from /usr/lib/libguile.so.9
#5 0x4010c533 in gh_eval_file_with_catch () from /usr/lib/libguile.so.9
#6 0x400bac8c in glame_gh_safe_eval_file (
fname=0xbffff844 "./plugins/fft_resample.scm") at glscript.h:56
#7 0x400ba61e in glame_load_plugin (
fname=0xbffff844 "./plugins/fft_resample.scm") at glmid.c:63
#8 0x400ba917 in plugins_process_directory (dir=0x400d4cd2 "./plugins")
at glmid.c:120
#9 0x400baa4b in plugins_register () at glmid.c:153
#10 0x400baaf7 in glame_init () at glmid.c:173
#11 0x400bab90 in glame_init_with_guile (main=0x804f47c <gui_main>)
at glmid.c:196
#12 0x804f9a1 in main (argc=1, argv=0xbffffa44) at main.c:358
#13 0x405de16b in __libc_start_main () from /lib/libc.so.6
(gdb)
Note, that fft_resample.scm will fail if executed, i.e. it raises
(SCM_ASSERT()) an exception. The catch handler installed is just a
NOP, but it isnt even reached it seems.
Richard.
--
Richard Guenther <address@hidden>
WWW: http://www.tat.physik.uni-tuebingen.de/~rguenth/
The GLAME Project: http://www.glame.de/
- How to temporarily disable gc?,
Richard Guenther <=