PDA

View Full Version : How to Eliminate "warning: Unable to restore previously selected frame."



babu198649
19th April 2009, 09:41
Hi
i get warning message
warning: Unable to restore previously selected frame. when i debug the code in QtCreator ,What might be the cause of this? how to eliminate it.

wysota
19th April 2009, 10:09
Probably an incorrectly compiled application or debuging an application built in release mode.

babu198649
19th April 2009, 11:07
Probably an incorrectly compiled application
Even after the application is rebuild i get the same error.

or debuging an application built in release mode.
The QtCreator executes the command
/usr/bin/make -f Makefile.Debug I can view the qt library files when i double click the stack trace produced by qtcreator ,but the libstdc++.so and libc.so are disabled in the stacktrace so does this mean that there is no libstd* debug libraries, which would have caused these warnings.

wysota
19th April 2009, 11:46
When exactly do you get those messages? And does it cause something to not work? It's just a warning, you know...

babu198649
19th April 2009, 12:36
When exactly do you get those messages?
After the start of the program before anything is printed to console.The output looks like this.



warning: Unable to restore previously selected frame.
warning: Unable to restore previously selected frame.
warning: Unable to restore previously selected frame.
*** glibc detected *** /home/bala/svn_workspace/TT/PlotInterface: malloc(): memory corruption: 0x0852cd00 ***
======= Backtrace: =========
/lib/libc.so.6[0xb6db4fc4]
/lib/libc.so.6[0xb6db76aa]
/lib/libc.so.6(__libc_malloc+0x9c)[0xb6db911c]
/home/bala/qtsdk-2009.01/qt/lib/libQtCore.so.4(_Z7qMallocj+0x1d)[0xb70e38fd]
/home/bala/qtsdk-2009.01/qt/lib/libQtCore.so.4(_ZN7QString7reallocEi+0x3b)[0xb7132d3b]
/home/bala/qtsdk-2009.01/qt/lib/libQtCore.so.4(_ZN7QString6appendERKS_+0xac)[0xb713303c]
/home/bala/svn_workspace/TT/PlotInterface[0x8072b24]
/home/bala/svn_workspace/TT/PlotInterface[0x807453f]
/home/bala/svn_workspace/TT/PlotInterface[0x80675b2]
/home/bala/qtsdk-2009.01/qt/lib/libQtCore.so.4[0xb70e99fe]
/lib/libpthread.so.0[0xb6fb7175]
/lib/libc.so.6(clone+0x5e)[0xb6e16dce]
======= Memory map: ========
08048000-083a5000 r-xp 00000000 08:07 587267 /home/bala/svn_workspace/TT/PlotInterface
083a5000-083a6000 r--p 0035c000 08:07 587267 /home/bala/svn_workspace/TT/PlotInterface
083a6000-083a7000 rw-p 0035d000 08:07 587267 /home/bala/svn_workspace/TT/PlotInterface
083a7000-08613000 rw-p 083a7000 00:00 0 [heap]
b5700000-b5756000 rw-p b5700000 00:00 0
b5756000-b5800000 ---p b5756000 00:00 0
b5808000-b5809000 ---p b5808000 00:00 0
b5809000-b6009000 rw-p b5809000 00:00 0
b6009000-b601b000 r--p 00000000 08:06 570856 /usr/share/ghostscript/fonts/n019004l.pfb
b601b000-b6045000 r--p 00000000 08:06 615216 /usr/share/fonts/truetype/albwb.ttf
b6045000-b606f000 r--p 00000000 08:06 615215 /usr/share/fonts/truetype/albw.ttf
b606f000-b60bc000 r-xp 00000000 08:07 586429 /home/bala/qtsdk-2009.01/qt/plugins/imageformats/libqtiff.so
b60bc000-b60be000 rw-p 0004d000 08:07 586429 /home/bala/qtsdk-2009.01/qt/plugins/imageformats/libqtiff.so
b60be000-b6103000 r-xp 00000000 08:07 360459 /home/bala/qtsdk-2009.01/qt/lib/libQtXml.so.4.5.0
b6103000-b6105000 rw-p 00044000 08:07 360459 /home/bala/qtsdk-2009.01/qt/lib/libQtXml.so.4.5.0
b6105000-b6158000 r-xp 00000000 08:07 360451 /home/bala/qtsdk-2009.01/qt/lib/libQtSvg.so.4.5.0
b6158000-b615a000 rw-p 00052000 08:07 360451 /home/bala/qtsdk-2009.01/qt/lib/libQtSvg.so.4.5.0
b615a000-b61a8000 r-xp 00000000 08:07 586430 /home/bala/qtsdk-2009.01/qt/plugins/imageformats/libqmng.so
b61a8000-b61aa000 rw-p 0004e000 08:07 586430 /home/bala/qtsdk-2009.01/qt/plugins/imageformats/libqmng.so
b61aa000-b61cf000 r-xp 00000000 08:07 586431 /home/bala/qtsdk-2009.01/qt/plugins/imageformats/libqjpeg.so
and more..(i have attached the almost(19.5 kb is the limit ) total output,)
no ..maybe.. because the program gets crashed even when build with release mode.
Can you guess what might be the error from the output of the error message of the program(The code is quite large ).

wysota
19th April 2009, 13:24
You get a segmentation fault. The backtrace looks fine, so you can probably ignore the warning and concentrate on fixing the error.