[FIXED] std::out_of_range-problem...

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
eyerouge
Peon
Peon
Posts: 2
Joined: 27 Mar 2009, 01:21

[FIXED] std::out_of_range-problem...

Post by eyerouge » 27 Mar 2009, 01:22

Code: Select all

eyerouge@eyerouge2:~$ tmw
terminate called after throwing an instance of 'std::out_of_range'
  what():  basic_string::at
Avbruten (SIGABRT)
eyerouge@eyerouge2:~$
I get the above error when it's updating. I'm using Ubuntu 8.10 Intrepid 64 and TMW 0026-2 from the repo.
User avatar
Jaxad0127
TMW Adviser
TMW Adviser
Posts: 4209
Joined: 01 Nov 2007, 18:35
Location: Internet

Re: std::out_of_range-problem...

Post by Jaxad0127 » 27 Mar 2009, 01:54

Can you install the debugging symbols and gdb and run the client in gdb? Here's how:

Code: Select all

$ gdb
{gdb information here}
(gdb) run
{output from the program and gdb}
{crash}
(gdb) bt
{out to post here}
(gdb) quit
$
Image
eyerouge
Peon
Peon
Posts: 2
Joined: 27 Mar 2009, 01:21

Re: std::out_of_range-problem...

Post by eyerouge » 27 Mar 2009, 02:50

Thanks for the scaringly swift reply ;) You forgot to tell me about "file" but I figured it out :P

Code: Select all

eyerouge@eyerouge2:~$ gdb
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
(gdb) file /usr/games/tmw
Reading symbols from /usr/games/tmw...Reading symbols from /usr/lib/debug/usr/games/tmw...done.
done.
(gdb) run
Starting program: /usr/games/tmw 
[Thread debugging using libthread_db enabled]
[New Thread 0x7f4a998ba750 (LWP 20725)]
[New Thread 0x42787950 (LWP 20730)]
[New Thread 0x41878950 (LWP 20731)]
[Thread 0x41878950 (LWP 20731) exited]
[New Thread 0x41878950 (LWP 20732)]
[New Thread 0x42f88950 (LWP 20733)]
[New Thread 0x43789950 (LWP 20749)]
[Thread 0x43789950 (LWP 20749) exited]
[New Thread 0x43789950 (LWP 20753)]
[Thread 0x43789950 (LWP 20753) exited]
[New Thread 0x43f8a950 (LWP 20756)]
[Thread 0x43f8a950 (LWP 20756) exited]
[New Thread 0x43f8a950 (LWP 20757)]
[Thread 0x43f8a950 (LWP 20757) exited]
[New Thread 0x43f8a950 (LWP 20761)]
[Thread 0x43f8a950 (LWP 20761) exited]
[New Thread 0x43f8a950 (LWP 20765)]
terminate called after throwing an instance of 'std::out_of_range'
  what():  basic_string::at

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7f4a998ba750 (LWP 20725)]
0x00007f4a9f5a9015 in raise () from /lib/libc.so.6
(gdb) 
And the bt... >>

Code: Select all

(gdb) bt
#0  0x00007f4a9f5a9015 in raise () from /lib/libc.so.6
#1  0x00007f4a9f5aab83 in abort () from /lib/libc.so.6
#2  0x00007f4a9fe4df94 in __gnu_cxx::__verbose_terminate_handler ()
   from /usr/lib/libstdc++.so.6
#3  0x00007f4a9fe4c396 in ?? () from /usr/lib/libstdc++.so.6
#4  0x00007f4a9fe4c3c3 in std::terminate () from /usr/lib/libstdc++.so.6
#5  0x00007f4a9fe4c4aa in __cxa_throw () from /usr/lib/libstdc++.so.6
#6  0x00007f4a9fde8687 in std::__throw_out_of_range ()
   from /usr/lib/libstdc++.so.6
#7  0x00007f4aa02d6e10 in gcn::ImageFont::drawString ()
   from /usr/lib/libguichan-0.8.1.so.1
#8  0x00007f4aa02d2603 in gcn::Graphics::drawText ()
   from /usr/lib/libguichan-0.8.1.so.1
#9  0x00007f4aa02e363a in gcn::Label::draw ()
   from /usr/lib/libguichan-0.8.1.so.1
#10 0x00007f4aa02ccb33 in gcn::BasicContainer::drawChildren ()
   from /usr/lib/libguichan-0.8.1.so.1
#11 0x00007f4aa02df417 in gcn::Container::draw ()
   from /usr/lib/libguichan-0.8.1.so.1
#12 0x00007f4aa02ccb33 in gcn::BasicContainer::drawChildren ()
   from /usr/lib/libguichan-0.8.1.so.1
#13 0x00007f4aa02ccb33 in gcn::BasicContainer::drawChildren ()
   from /usr/lib/libguichan-0.8.1.so.1
---Type <return> to continue, or q <return> to quit---
#14 0x00007f4aa02df417 in gcn::Container::draw ()
   from /usr/lib/libguichan-0.8.1.so.1
#15 0x000000000042e67a in Gui::draw (this=0x1cadc30) at gui/gui.cpp:185
#16 0x00000000004aa9fb in main (argc=<value optimized out>, 
    argv=<value optimized out>) at main.cpp:755
(gdb) 

User avatar
Jaxad0127
TMW Adviser
TMW Adviser
Posts: 4209
Joined: 01 Nov 2007, 18:35
Location: Internet

Re: std::out_of_range-problem...

Post by Jaxad0127 » 27 Mar 2009, 03:04

eyerouge wrote:Thanks for the scaringly swift reply ;) You forgot to tell me about "file" but I figured it out :P
I mean to say this: $gdb tmw

This is during the update window? Try installing 0.0.28.1 from Jaunty (will work fine).
Image
Post Reply