[racket-dev] memory consumption (bug?) on Debian/kFreeBSD-i386

From: David Bremner (bremner at debian.org)
Date: Thu Apr 28 22:41:37 EDT 2011

On Thu, 28 Apr 2011 19:37:42 -0600, Matthew Flatt <mflatt at cs.utah.edu> wrote:
> 
> > But then I had a bus error, as before.
> 
> A stack trace might be helpful. Otherwise, I guess I'll have to set up
> a kFreeBSD virtual machine.
> 

I couldn't find any documentation on fpsetmask so far, but here is a
traceback from

racket3m -cqu ./../../racket/gc2/xform.rkt --setup ../../racket/gc2 --cpp "gcc -E -I./../../racket/gc2 -I./../../racket/ -I./../../racket/include/   -pthread -Dwx_xt -MMD"  --keep-lines -o xsrc/grmain.c +D INITIAL_COLLECTS_DIRECTORY='"'"`cd ./../../../collects; pwd`"'"' ./../grmain.c

this is current git, with my ieeefp include patch 

#0  scheme_gmp_tls_unload (s=0x45958e24, data=0x0) at ./gmp/gmp.c:5813
#1  0x081fcf12 in done_with_GC () at ./../src/thread.c:7591
#2  0x08227e00 in garbage_collect (gc=0x8291d10, force_full=<value optimized out>, switching_master=<value optimized out>, lmi=<value optimized out>) at ./newgc.c:4395
#3  0x0822acf9 in allocate_slowpath (s=12) at ./newgc.c:1178
#4  allocate (s=12) at ./newgc.c:1216
#5  GC_malloc_one_tagged (s=12) at ./newgc.c:1324
#6  0x0820163e in do_extend_config (c=0x45959498, key=0x53, val=0x8278fa4) at ./../src/thread.c:6179
#7  0x081755fa in default_load (argc=2, argv=0x45948edc) at ./../src/portfun.c:4363
#8  0x4618d4f4 in ?? ()
#9  0x0809eac8 in scheme_do_eval (obj=0x0, num_rands=1167363804, rands=0x0, get_value=-1) at ./../src/eval.c:9550
#10 0x080c3858 in scheme_finish_apply_for_prompt (prompt=0x0, _prompt_tag=0x45704378, proc=0x45959560, argc=0, argv=0x0) at ./../src/fun.c:6672
#11 0x080c39af in scheme_apply_for_prompt (prompt=0x4577c788, prompt_tag=0x45704378, proc=0x45959560, argc=0, argv=0x0) at ./../src/fun.c:6751
#12 0x080c733c in call_with_prompt (in_argc=2, in_argv=0x45948f50) at ./../src/fun.c:7076
#13 0x4618d4f4 in ?? ()
#14 0x46194860 in ?? ()
#15 0x0809eac8 in scheme_do_eval (obj=0x0, num_rands=1167363920, rands=0xbfbfcff4, get_value=1) at ./../src/eval.c:9550
#16 0x080b2876 in apply_k () at ./../src/fun.c:2475
#17 0x080bcad8 in scheme_top_level_do_worker (k=0x80b27f0 <apply_k>, eb=1, new_thread=0, dyn_state=0x0) at ./../src/fun.c:2314
#18 0x080bccb8 in scheme_top_level_do (k=0x80b27f0 <apply_k>, eb=1) at ./../src/fun.c:2227
#19 0x0811f886 in _module_resolve (modidx=<value optimized out>, stx=0x0, env=0x0, load_it=1) at ./../src/module.c:3271
#20 0x08128f7c in compute_require_names (menv=0x45959658, phase=0x1, load_env=0x45958410, syntax_idx=0x459596e0) at ./../src/module.c:4077
#21 0x0813120e in chain_start_module (a=0xbfbfd248) at ./../src/module.c:4142
#22 scheme_module_start_finish (a=0xbfbfd248) at ./../src/module.c:4259
#23 0x4618f2c5 in ?? ()
#24 0x08114320 in scheme_module_start_start (a=0xbfbfd248, name=0x45959730) at ./../src/jitstack.c:494
#25 0x0812b28c in chain_start_module_w_push (m=0x45959750, env=0x45958410, restart=<value optimized out>, syntax_idx=0x459596e0, eval_exp=0, eval_run=1, base_phase=0, 
    cycle_list=0x45959740) at ./../src/module.c:4251
#26 start_module (m=0x45959750, env=0x45958410, restart=<value optimized out>, syntax_idx=0x459596e0, eval_exp=0, eval_run=1, base_phase=0, cycle_list=0x45959740)
    at ./../src/module.c:4525
#27 0x0813126d in chain_start_module (a=0xbfbfd43c) at ./../src/module.c:4149
#28 scheme_module_start_finish (a=0xbfbfd43c) at ./../src/module.c:4259
#29 0x4618f2c5 in ?? ()
#30 0x08114320 in scheme_module_start_start (a=0xbfbfd43c, name=0x459598a0) at ./../src/jitstack.c:494
#31 0x0812b28c in chain_start_module_w_push (m=0x459598b0, env=0x45958410, restart=<value optimized out>, syntax_idx=0x45959870, eval_exp=0, eval_run=1, base_phase=0, 
    cycle_list=0x827985c) at ./../src/module.c:4251
#32 start_module (m=0x459598b0, env=0x45958410, restart=<value optimized out>, syntax_idx=0x45959870, eval_exp=0, eval_run=1, base_phase=0, cycle_list=0x827985c)
    at ./../src/module.c:4525
#33 0x08135a08 in _dynamic_require (argc=<value optimized out>, argv=<value optimized out>, env=0x45958410, get_bucket=0, phase=0, indirect_ok=<value optimized out>, 
    fail_with_error=1, position=<value optimized out>, mod_phase=0) at ./../src/module.c:1135
#34 0x081363ef in scheme_dynamic_require (argc=2, argv=0x45948fac) at ./../src/module.c:1200
#35 0x0809e7f8 in scheme_do_eval (obj=0x82affc8, num_rands=2, rands=0x45948fac, get_value=-1) at ./../src/eval.c:9291
#36 0x081213e4 in body_one_expr (prefix_plus_expr=0x45959968, argc=0, argv=0x0) at ./../src/module.c:4671
#37 0x0809d8a0 in scheme_do_eval (obj=0x45959978, num_rands=0, rands=0x0, get_value=-1) at ./../src/eval.c:9704
#38 0x080c3858 in scheme_finish_apply_for_prompt (prompt=0x0, _prompt_tag=0x45685808, proc=0x45959978, argc=0, argv=0x0) at ./../src/fun.c:6672
#39 0x080c39af in scheme_apply_for_prompt (prompt=0x457129e8, prompt_tag=0x45685808, proc=0x45959978, argc=0, argv=0x0) at ./../src/fun.c:6751
#40 0x080c733c in call_with_prompt (in_argc=3, in_argv=0xbfbfdb08) at ./../src/fun.c:7076
#41 0x0809e7f8 in scheme_do_eval (obj=0x82adb08, num_rands=3, rands=0xbfbfdb08, get_value=-1) at ./../src/eval.c:9291
#42 0x080bd83d in do_call_with_prompt (f=<value optimized out>, data=<value optimized out>, multi=1, top_level=0) at ./../src/fun.c:7268
#43 0x08131b42 in scheme_module_run_finish (menv=0x45959ac0, env=0x45958410) at ./../src/module.c:4770
#44 0x4618f27b in ?? ()
#45 0x4618d521 in ?? ()
#46 0x0811ff9d in eval_module_body (menv=0x45959ac0, env=0x45958410) at ./../src/module.c:4660
#47 0x08123630 in do_start_module (menv=0x4573f450, env=0x456c3738, m=<value optimized out>, restart=<value optimized out>) at ./../src/module.c:4472
#48 0x0812b575 in start_module (m=0x45959a28, env=0x45958410, restart=<value optimized out>, syntax_idx=0x45959b60, eval_exp=-1, eval_run=1, base_phase=0, cycle_list=0x827985c)
    at ./../src/module.c:4546
#49 0x08133ea1 in parse_requires (form=0x45959bf0, base_modidx=0x8278f9c, main_env=0x45958410, rn_set=0x45959ba0, post_ex_rn_set=0x0, ck=0, data=0x0, unpack_kern=1, copy_vars=0, 
    can_save_marshal=0, eval_exp=-1, eval_run=1, all_simple=0x0, for_m=<value optimized out>, redef_modname=<value optimized out>) at ./../src/module.c:9772
#50 0x08135669 in do_namespace_require (env=0x45958410, argv=0xbfbfe368, copy=0, etonly=0, argc=<value optimized out>) at ./../src/module.c:1222
#51 0x0809e7f8 in scheme_do_eval (obj=0x82b0008, num_rands=1, rands=0xbfbfe368, get_value=1) at ./../src/eval.c:9291
#52 0x080b2876 in apply_k () at ./../src/fun.c:2475
#53 0x080bcad8 in scheme_top_level_do_worker (k=0x80b27f0 <apply_k>, eb=1, new_thread=0, dyn_state=0x0) at ./../src/fun.c:2314
#54 0x080bccb8 in scheme_top_level_do (k=0x80b27f0 <apply_k>, eb=1) at ./../src/fun.c:2227
#55 0x080671de in finish_cmd_line_run (fa=0x45956378, repl=0x8066c30 <do_scheme_rep>) at ./../cmdline.inc:318
#56 0x08068445 in run_from_cmd_line (data=0xbfbfe588) at ./../cmdline.inc:1247
#57 main_after_stack (data=0xbfbfe588) at ./../main.c:365
#58 0x080698ce in do_main_stack_setup (no_auto_statics=1, _main=0x8067ba0 <main_after_stack>, data=0xbfbfe588) at ./../src/salloc.c:183
#59 scheme_main_stack_setup (no_auto_statics=1, _main=0x8067ba0 <main_after_stack>, data=0xbfbfe588) at ./../src/salloc.c:287
#60 0x080692e3 in main_after_dlls (argc=13, argv=0xbfbfe61c) at ./../main.c:302
#61 main (argc=13, argv=0xbfbfe61c) at ./../main.c:278


Posted on the dev mailing list.