Open GoogleCodeExporter opened 9 years ago
Confirm this.
Nearly the same output from gdb. I have modified ghost++ sources, so lines may
differ a bit.
Environment: Kernel 3.6.11-gentoo, boost 1.52, GCC 4.7.3
Thanks for pointing about disabling optimization flags.
Program received signal SIGSEGV, Segmentation fault.
0x00000000004124fd in __exchange_and_add (__mem=0x7c9bfca9,
__val=<optimized out>)
at /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/include/g++-v4/ext/atomicity.h:48
48 { return __atomic_fetch_add(__mem, __val, __ATOMIC_ACQ_REL); }
(gdb) bt
#0 0x00000000004124fd in __exchange_and_add (__mem=0x7c9bfca9,
__val=<optimized out>)
at /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/include/g++-v4/ext/atomicity.h:48
#1 __gnu_cxx::__exchange_and_add_dispatch (__mem=__mem@entry=0x7c9bfca9,
__val=-1)
at /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/include/g++-v4/ext/atomicity.h:81
#2 0x000000000041b0e1 in _M_dispose (__a=..., this=0x7c9bfc99)
at /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/include/g++-v4/bits/basic_string.h:242
#3 ~basic_string (this=0x7fffffffbdf0, __in_chrg=<optimized out>)
at /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/include/g++-v4/bits/basic_string.h:536
#4 CBNCSUtilInterface::HELP_SID_AUTH_CHECK (this=0x8731c0, TFT=true,
war3Path=..., keyROC='F' <repeats 26 times>, keyTFT=
'F' <repeats 26 times>, valueStringFormula=
"A=3845581634 B=880823580 C=1363937103 4 A=A-S B=B-C C=C-A A=A-B",
mpqFileName="IX86ver1.mpq",
clientToken=std::vector of length 4, capacity 4 = {...},
serverToken=std::vector of length 4, capacity 4 = {...})
at bncsutilinterface.cpp:118
#5 0x000000000042a841 in CBNET::ProcessPackets (this=this@entry=0x872d90)
at bnet.cpp:760
#6 0x000000000042f5ec in CBNET::Update (this=0x872d90, fd=0x7fffffffd840,
---Type <return> to continue, or q <return> to quit---
send_fd=0x7fffffffd8c0) at bnet.cpp:487
#7 0x000000000048aab7 in CGHost::Update (this=0x8351e0,
usecBlock=<optimized out>, usecBlock@entry=50000) at ghost.cpp:1223
#8 0x00000000004186e1 in main (argc=<optimized out>, argv=<optimized out>)
at ghost.cpp:399
Original comment by masterpe...@gmail.com
on 28 Nov 2013 at 5:11
Works fine with GCC 4.6.3, -O3 flag set
Original comment by masterpe...@gmail.com
on 28 Nov 2013 at 5:25
this issue https://code.google.com/p/ghostplusplus/issues/detail?id=136
provides a fix, which works with gcc4.7.3 and optimization flag set. Fix from
issue #136 is in repo, but it is no closed
Original comment by masterpe...@gmail.com
on 28 Nov 2013 at 5:47
Original issue reported on code.google.com by
wuer...@gmail.com
on 22 May 2012 at 1:12