|
Boost : |
Subject: Re: [boost] [context review] Several Questions
From: Artyom (artyomtnk_at_[hidden])
Date: 2011-03-21 18:28:04
>
> I'm not sure what you did that it crashes. Can you tell me on which line of
>code it happens (gdb -> stacktrace).
>
This is what I got from gdb so far:
Program received signal SIGSEGV, Segmentation fault.
0x00000000006033f0 in get_fcontext ()
(gdb) bt
#0 0x00000000006033f0 in get_fcontext ()
#1 0x00000000004018cd in context () at
../../boost_1_46_0/boost/context/context.hpp:68
#2 main () at link.cpp:24
(gdb) frame 0
#0 0x00000000006033f0 in get_fcontext ()
(gdb) disassemble
Dump of assembler code for function get_fcontext:
=> 0x00000000006033f0 <+0>: mov %rbx,(%rdi)
0x00000000006033f3 <+3>: mov %r12,0x8(%rdi)
0x00000000006033f7 <+7>: mov %r13,0x10(%rdi)
0x00000000006033fb <+11>: mov %r14,0x18(%rdi)
0x00000000006033ff <+15>: mov %r15,0x20(%rdi)
0x0000000000603403 <+19>: mov %rbp,0x28(%rdi)
0x0000000000603407 <+23>: stmxcsr 0x48(%rdi)
0x000000000060340b <+27>: fnstcw 0x4c(%rdi)
0x000000000060340e <+30>: lea 0x8(%rsp),%rcx
0x0000000000603413 <+35>: mov %rcx,0x30(%rdi)
0x0000000000603417 <+39>: mov (%rsp),%rcx
0x000000000060341b <+43>: mov %rcx,0x38(%rdi)
0x000000000060341f <+47>: xor %rax,%rax
0x0000000000603422 <+50>: retq
End of assembler dump.
(gdb) info registers
rax 0x0 0
rbx 0x7fffffffe0b0 140737488347312
rcx 0x0 0
rdx 0x0 0
rsi 0x7fffffffe1e0 140737488347616
rdi 0x7fffffffe0b0 140737488347312
rbp 0x7fffffffe140 0x7fffffffe140
rsp 0x7fffffffe098 0x7fffffffe098
r8 0x5 5
r9 0x0 0
r10 0x7fffffffde20 140737488346656
r11 0x7ffff7bc7378 140737349710712
r12 0x4015f0 4199920
r13 0x7fffffffe1d0 140737488347600
r14 0x0 0
r15 0x0 0
rip 0x6033f0 0x6033f0 <get_fcontext>
eflags 0x10246 [ PF ZF IF RF ]
cs 0x33 51
ss 0x2b 43
ds 0x0 0
es 0x0 0
fs 0x0 0
gs 0x0 0
(gdb)
Artyom
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk