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

Additional info



I also tried tracking the value of mzscheme_stack_start through
the program.

For example, at the moment the module starts (before any scheme
code is evaluated -- except for scheme_basic_env):

(gdb) p (unsigned long)mzscheme_stack_start
$2 = 3206544060

But the moment I enter mzscheme (in the call to
scheme_eval_string_all) the value of scheme_stack_boundary
already looks wrong:

(gdb) step
scheme_get_env (c=0x402cf030) at ./process.c:2969
2969      Scheme_Object *o = scheme_get_param(c, MZCONFIG_ENV);
Current language:  auto; currently c
(gdb) p scheme_stack_boundary
$3 = 3204501004

I believe it's the same thread that was created to run "Run()":

(gdb) info thread
  8 Thread 6151 (LWP 948)  0x4008425a in sigsuspend () from /lib/libc.so.6
  7 Thread 5126 (LWP 939)  0x40119a5e in select () from /lib/libc.so.6
* 6 Thread 4101 (LWP 938)  scheme_get_env (c=0x402cf030) at ./process.c:2969
  5 Thread 3076 (LWP 937)  0x40119a5e in select () from /lib/libc.so.6
  4 Thread 2051 (LWP 936)  0x400f9f41 in nanosleep () from /lib/libc.so.6
  3 Thread 1026 (LWP 935)  0x40119a5e in select () from /lib/libc.so.6
  2 Thread 2049 (LWP 934)  0x40117f30 in poll () from /lib/libc.so.6
  1 Thread 1024 (LWP 931)  0x4008425a in sigsuspend () from /lib/libc.so.6
(gdb) bt
#0  scheme_get_env (c=0x402cf030) at ./process.c:2969
#1  0x401ffc03 in handle_request (request=0x8150298) at mv_interps.cc:316
#2  0x401fff12 in Run (arg=0x8162700) at mv_interps.cc:401
#3  0x811910b in NsThreadMain ()
#4  0x4002bc95 in pthread_start_thread () from /lib/libpthread.so.0
#5  0x4002bcdd in pthread_start_thread_event () from /lib/libpthread.so.0
(gdb) 

Anything else I can check?

Thanks,

-Brent