Bugs item #1755429, was opened at 2007-07-17 21:21
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=723099&aid=1755429&group_id=132078

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: tpserver-cpp
Group: Bug - Protocol
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Tim Ansell (mithro)
Assigned to: Lee Begg (llnz)
Summary: Segfault in turn generation... (something about a RB-tree)

Initial Comment:
(gdb) run -C ../etc/sample.conf 
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /opt/tpserver-cpp/bin/tpserver-cpp -C ../etc/sample.conf
Failed to read a valid object file image from memory.
[Thread debugging using libthread_db enabled]
[New Thread -1212090672 (LWP 12923)]
2007-07-17 21:15:28 < Info  > Logger started
2007-07-17 21:15:28 < Info  > Tpserver-cpp 0.4.1 starting
2007-07-17 21:15:28 < Info  > This is GPL software, please see the COPYING file
2007-07-17 21:15:28 < Info  > Console opened
2007-07-17 21:15:28 < Info  > Console ready
2007-07-17 21:15:28 < Info  > No automatically loaded plugins were defined in 
the configuation, add "autoload_plugins = <comma list of plugins>" to conf to 
have them loaded.
2007-07-17 21:15:28 < Info  > Loading TpScheme tpguile
2007-07-17 21:15:28 < Info  > Loaded plugin 
"/opt/tpserver-cpp/lib/tpserver/tpscheme/libtpguile" sucessfully
2007-07-17 21:15:28 < Info  > Loaded TpScheme tpguile
2007-07-17 21:15:28 < Info  > Loading ruleset minisec
2007-07-17 21:15:28 < Info  > Loaded plugin 
"/opt/tpserver-cpp/lib/tpserver/ruleset/libminisec" sucessfully
2007-07-17 21:15:28 < Info  > Loaded ruleset minisec
2007-07-17 21:15:28 < Info  > Loading Game
2007-07-17 21:15:28 < Info  > Creating Game
2007-07-17 21:15:28 < Info  > Starting Game
2007-07-17 21:15:28 < Info  > Starting Network
2007-07-17 21:15:28 < Info  > Not configured to start http socket
2007-07-17 21:15:28 < Info  > Started network with 1 listeners
2007-07-17 21:15:28 <Warning> Metaserver updates disabled, set 
metaserver_enable to "yes" to enable them
2007-07-17 21:15:30 < Info  > Accepting new a connection
2007-07-17 21:15:30 < Info  > Accepted connection from localhost 
[::ffff:127.0.0.1], connection id 7
2007-07-17 21:15:30 < Info  > Accepting new tp (tcp) connection
2007-07-17 21:15:30 < Info  > Client has version 3 of protocol
2007-07-17 21:15:30 < Info  > Client on connection 7 is [GalaxiE]
2007-07-17 21:15:30 < Info  > Bad username or password
2007-07-17 21:15:30 < Info  > Accepting new a connection
2007-07-17 21:15:30 < Info  > Accepted connection from localhost 
[::ffff:127.0.0.1], connection id 8
2007-07-17 21:15:30 < Info  > Accepting new tp (tcp) connection
2007-07-17 21:15:30 < Info  > Client has version 3 of protocol
2007-07-17 21:15:30 < Info  > Client on connection 8 is [GalaxiE]
2007-07-17 21:15:30 < Info  > Bad username or password
2007-07-17 21:15:31 < Info  > Accepting new a connection
2007-07-17 21:15:31 < Info  > Accepted connection from localhost 
[::ffff:127.0.0.1], connection id 9
2007-07-17 21:15:31 < Info  > Accepting new tp (tcp) connection
2007-07-17 21:15:31 < Info  > Client has version 3 of protocol
2007-07-17 21:15:31 < Info  > Client on connection 9 is [GalaxiE]
2007-07-17 21:15:31 < Info  > Bad username or password
2007-07-17 21:15:31 < Info  > Creating new player
2007-07-17 21:15:31 < Info  > Account created ok for badguy1
2007-07-17 21:15:31 <Warning> PlayerAgent: Discarded frame, not processed, was 
type 4
2007-07-17 21:15:31 < Error > underlying read, tcp, error is: Connection reset 
by peer
2007-07-17 21:15:31 <Warning> Socket error
2007-07-17 21:15:31 < Info  > Closed connection 7
2007-07-17 21:15:31 < Info  > Creating new player
2007-07-17 21:15:31 < Info  > Account created ok for badguy2
2007-07-17 21:15:31 <Warning> PlayerAgent: Discarded frame, not processed, was 
type 4
2007-07-17 21:15:31 < Error > underlying read, tcp, error is: Connection reset 
by peer
2007-07-17 21:15:31 <Warning> Socket error
2007-07-17 21:15:31 < Info  > Closed connection 8
2007-07-17 21:15:31 < Info  > Creating new player
2007-07-17 21:15:31 < Info  > Account created ok for nash
2007-07-17 21:15:31 <Warning> PlayerAgent: Discarded frame, not processed, was 
type 4
2007-07-17 21:15:31 < Error > underlying read, tcp, error is: Connection reset 
by peer
2007-07-17 21:15:31 <Warning> Socket error
2007-07-17 21:15:31 < Info  > Closed connection 9
2007-07-17 21:15:32 < Info  > Accepting new a connection
2007-07-17 21:15:32 < Info  > Accepted connection from localhost 
[::ffff:127.0.0.1], connection id 7
2007-07-17 21:15:32 < Info  > Accepting new tp (tcp) connection
2007-07-17 21:15:32 < Info  > Client has version 3 of protocol
2007-07-17 21:15:32 < Info  > Client on connection 7 is [GalaxiE]
2007-07-17 21:15:32 < Info  > Login ok by badguy1
2007-07-17 21:15:32 < Info  > Accepting new a connection
2007-07-17 21:15:32 < Info  > Accepted connection from localhost 
[::ffff:127.0.0.1], connection id 8
2007-07-17 21:15:32 < Info  > Accepting new tp (tcp) connection
2007-07-17 21:15:32 < Info  > Client has version 3 of protocol
2007-07-17 21:15:32 < Info  > Client on connection 8 is [GalaxiE]
2007-07-17 21:15:32 < Info  > Login ok by badguy2
2007-07-17 21:15:32 < Info  > Accepting new a connection
2007-07-17 21:15:32 < Info  > Accepted connection from localhost 
[::ffff:127.0.0.1], connection id 9
2007-07-17 21:15:32 < Info  > Accepting new tp (tcp) connection
2007-07-17 21:15:33 < Info  > Client has version 3 of protocol
2007-07-17 21:15:33 < Info  > Client on connection 9 is [GalaxiE]
2007-07-17 21:15:33 < Info  > Login ok by nash
2007-07-17 21:15:38 < Info  > End Of Turn started
2007-07-17 21:15:38 < Info  > End Of Turn finished
2007-07-17 21:15:48 < Info  > End Of Turn started
2007-07-17 21:15:48 < Info  > End Of Turn finished
2007-07-17 21:15:58 < Info  > End Of Turn started
2007-07-17 21:15:58 < Info  > End Of Turn finished
2007-07-17 21:16:08 < Info  > End Of Turn started
2007-07-17 21:16:08 < Info  > End Of Turn finished
2007-07-17 21:16:18 < Info  > End Of Turn started
2007-07-17 21:16:18 < Info  > End Of Turn finished
2007-07-17 21:16:28 < Info  > End Of Turn started
2007-07-17 21:16:28 < Info  > End Of Turn finished
2007-07-17 21:16:38 < Info  > End Of Turn started
2007-07-17 21:16:38 < Info  > End Of Turn finished
2007-07-17 21:16:48 < Info  > End Of Turn started
2007-07-17 21:16:48 < Info  > End Of Turn finished
2007-07-17 21:16:58 < Info  > End Of Turn started
2007-07-17 21:16:58 < Info  > End Of Turn finished
2007-07-17 21:17:08 < Info  > End Of Turn started
2007-07-17 21:17:08 < Info  > End Of Turn finished
2007-07-17 21:17:18 < Info  > End Of Turn started
2007-07-17 21:17:18 < Info  > End Of Turn finished
2007-07-17 21:17:28 < Info  > End Of Turn started
2007-07-17 21:17:28 < Info  > End Of Turn finished
2007-07-17 21:17:38 < Info  > End Of Turn started
2007-07-17 21:17:38 < Info  > End Of Turn finished
2007-07-17 21:17:38 < Info  > Client disconnected
2007-07-17 21:17:38 < Info  > Closed connection 8
2007-07-17 21:17:48 < Info  > End Of Turn started
2007-07-17 21:17:48 < Info  > End Of Turn finished
2007-07-17 21:17:48 < Info  > Client disconnected
2007-07-17 21:17:48 < Info  > Closed connection 9
2007-07-17 21:17:58 < Info  > End Of Turn started
2007-07-17 21:17:58 < Info  > End Of Turn finished
2007-07-17 21:18:01 < Info  > Client disconnected
2007-07-17 21:18:01 < Info  > Closed connection 7
2007-07-17 21:18:08 < Info  > End Of Turn started
2007-07-17 21:18:08 < Info  > End Of Turn finished
2007-07-17 21:18:18 < Info  > End Of Turn started
2007-07-17 21:18:18 < Info  > End Of Turn finished
2007-07-17 21:18:28 < Info  > End Of Turn started
tpserver-cpp> 
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1212090672 (LWP 12923)]
0x080ca2f8 in std::_Rb_tree<unsigned int, unsigned int, std::_Identity<unsigned 
int>, std::less<unsigned int>, std::allocator<unsigned int> >::_M_root 
(this=0x24) at 
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_tree.h:446
446           { return this->_M_impl._M_header._M_parent; }
(gdb) bt
#0  0x080ca2f8 in std::_Rb_tree<unsigned int, unsigned int, 
std::_Identity<unsigned int>, std::less<unsigned int>, std::allocator<unsigned 
int> >::_M_root (this=0x24)
    at 
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_tree.h:446
#1  0x080ca9fa in _Rb_tree (this=0xbff27d90, [EMAIL PROTECTED])
    at 
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_tree.h:568
#2  0x080caad8 in set (this=0xbff27d90, [EMAIL PROTECTED])
    at 
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_set.h:208
#3  0x0810b51a in OrderQueue::getAllowedOrderTypes (this=0x0) at 
orderqueue.cpp:77
#4  0x0810a3c2 in OrderQueueObjectParam::getAllowedOrders (this=0x826d448) at 
orderqueueobjectparam.cpp:107
#5  0xb7a584cd in Fleet::hit (this=0x826b1f0, [EMAIL PROTECTED]) at 
fleet.cpp:311
#6  0xb7a6a8c2 in RSPCombat::doCombat (this=0x821f8e0) at rspcombat.cpp:152
#7  0xb7a774aa in MinisecTurn::doTurn (this=0x8196728) at minisecturn.cpp:160
#8  0x080b801e in Game::doEndOfTurn (this=0x813b8d8) at game.cpp:275
#9  0x0810ca5e in TurnTimer::timerFinished (this=0x81bbc68) at turntimer.cpp:172
#10 0x0810dc91 in TimerCallbackImpl<TurnTimer*, void (TurnTimer::*)()>::call 
(this=0x821fb40) at timercallback.h:54
#11 0x080c01e2 in TimerCallback::call (this=0xbff2856c) at timercallback.h:121
#12 0x080be9d5 in Network::masterLoop (this=0x8131340) at net.cpp:295
#13 0x080afac8 in main (argc=3, argv=0xbff28734) at main.cpp:135
(gdb) 


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=723099&aid=1755429&group_id=132078
_______________________________________________
tp-bugs mailing list
[email protected]
http://mail.thousandparsec.net/cgi-bin/mailman/listinfo/tp-bugs

Reply via email to