Author Topic: Code::Blocks hangs while debugging  (Read 20604 times)

TF

  • Guest
Code::Blocks hangs while debugging
« on: April 25, 2006, 12:31:45 am »
Hi all,

I using Code::Blocks 1.0 RC2 (codeblocks_1.0rc2-1_i386.deb) on my Debian System (testing). Normal building works well, but if I want debugging (a console application) the IDE hangs :(
GDB 6.4-1 is installed. I've activated Debug symbols in compiler options (using gcc). Also I have set a Breakpoint inbetween a function.
After starting Debug, Code::Blocks runs and then hangs.

As I start top the following entries are listed:
Code
 2980 tf        16   0 88012  46m  21m S  0.0  4.6   2:57.50 codeblocks
21342 tf        15   0  8796 5388 2352 S  0.0  0.5   0:00.10 gdb               
21343 tf        16   0  2544  804  692 S  0.0  0.1   0:00.01 uebung1711

What can I do?

Best Regards,

Thomas

sethjackson

  • Guest
Re: Code::Blocks hangs while debugging
« Reply #1 on: April 25, 2006, 12:44:20 am »
Hey. Try a nightly build from here.

http://forums.codeblocks.org/index.php?board=20.0

Here is a direct link to the newest (.deb package).

http://download.berlios.de/codeblocks/CB_20060421_rev2368_ubuntu.deb

TF

  • Guest
Re: Code::Blocks hangs while debugging
« Reply #2 on: April 26, 2006, 12:07:25 am »
Hi sethjackson,

I've download and install  but it looks a little bit ugly...
http://img220.imageshack.us/img220/856/screenshot200604252238codebloc.jpg

Also I get a crash as I click "Settings -> Environment"

Here is the xml file:
Code
<?xml version="1.0" encoding="utf-8"?>
<report version="1.0" kind="exception">
  <system description="Linux 2.6.12-1-686 i686"/>
  <modules>
    <module path="/usr/bin/codeblocks" address="08048000" size="00094000"/>
    <module path="/usr/share/fonts/truetype/msttcorefonts/Arial.ttf" address="b4da9000" size="00044000"/>
    <module path="/usr/share/fonts/truetype/ttf-bitstream-vera/VeraBd.ttf" address="b4dfc000" size="0000f000"/>
    <module path="/usr/share/codeblocks/plugins/libwxsmith.so" address="b4e51000" size="0019a000"/>
    <module path="/usr/share/codeblocks/plugins/libexporter.so" address="b4fef000" size="000a3000"/>
    <module path="/usr/share/codeblocks/plugins/libprofiler.so" address="b50bd000" size="00002000"/>
    <module path="/usr/share/codeblocks/plugins/libkeybinder.so" address="b5105000" size="00003000"/>
    <module path="/usr/share/codeblocks/plugins/libhelp_plugin.so" address="b512e000" size="00002000"/>
    <module path="/usr/share/codeblocks/plugins/libdragscroll.so" address="b515a000" size="00002000"/>
    <module path="/usr/share/codeblocks/plugins/libcodestat.so" address="b5183000" size="00002000"/>
    <module path="/usr/share/codeblocks/plugins/libtodo.so" address="b51b4000" size="00003000"/>
    <module path="/usr/share/codeblocks/plugins/libprojectwizard.so" address="b51fe000" size="00003000"/>
    <module path="/usr/share/codeblocks/plugins/libpluginwizard.so" address="b5224000" size="00002000"/>
    <module path="/usr/share/codeblocks/plugins/libdebuggergdb.so" address="b52b1000" size="00006000"/>
    <module path="/usr/share/codeblocks/plugins/libcompiler.so" address="b52b8000" size="000d7000"/>
    <module path="/usr/share/codeblocks/plugins/libdefaultmimehandler.so" address="b5390000" size="00024000"/>
    <module path="/usr/share/codeblocks/plugins/libcodecompletion.so" address="b5bb4000" size="00096000"/>
    <module path="/usr/share/codeblocks/plugins/libclasswizard.so" address="b5c52000" size="0000f000"/>
    <module path="/SYSV00000000" address="b5c64000" size="000c0000"/>
    <module path="/usr/share/codeblocks/plugins/libastyle.so" address="b5d72000" size="00002000"/>
    <module path="/usr/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-xpm.so" address="b5d7a000" size="00001000" version="xpm"/>
    <module path="/usr/lib/pango/1.4.0/modules/pango-basic-fc.so" address="b5d88000" size="00003000" version="fc"/>
    <module path="/usr/lib/libgnomecanvas-2.so.0.1200.0" address="b5dd8000" size="0002b000" version="0.1200.0"/>
    <module path="/usr/lib/libgnomeprintui-2-2.so.0.1.0" address="b5e36000" size="00002000" version="0.1.0"/>
    <module path="/usr/lib/libxml2.so.2.6.23" address="b5f46000" size="00008000" version="2.6.23"/>
    <module path="/usr/lib/libart_lgpl_2.so.2.3.17" address="b5f4f000" size="00016000" version="2.3.17"/>
    <module path="/usr/lib/libgnomeprint-2-2.so.0.1.0" address="b5fc6000" size="00002000" version="0.1.0"/>
    <module path="/usr/lib/libkdefx.so.4.2.0" address="b5ff3000" size="00002000" version="4.2.0"/>
    <module path="/usr/lib/kde3/plugins/styles/keramik.so" address="b6028000" size="00002000"/>
    <module path="/usr/X11R6/lib/libXt.so.6.0" address="b6049000" size="0004f000" version="6.0"/>
    <module path="/usr/lib/libaudio.so.2.3" address="b6099000" size="00015000" version="2.3"/>
    <module path="/usr/X11R6/lib/libICE.so.6.4" address="b60c3000" size="00001000" version="6.4"/>
    <module path="/usr/X11R6/lib/libSM.so.6.0" address="b60c6000" size="00009000" version="6.0"/>
    <module path="/usr/lib/libqt-mt.so.3.3.5" address="b6865000" size="00046000" version="3.3.5"/>
    <module path="/usr/lib/gtk-2.0/2.4.0/engines/libqtengine.so" address="b68af000" size="0001e000" version="2.0/2.4.0/engines/libqtengine"/>
    <module path="/lib/tls/libnss_files-2.3.6.so" address="b68d7000" size="00002000" version="2.3.6"/>
    <module path="/lib/tls/libnsl-2.3.6.so" address="b68eb000" size="00002000" version="2.3.6"/>
    <module path="/lib/tls/libnss_compat-2.3.6.so" address="b68ef000" size="00009000" version="2.3.6"/>
    <module path="/usr/share/locale/de/LC_MESSAGES/gtk20-properties.mo" address="b6914000" size="0001c000"/>
    <module path="/usr/lib/gconv/ISO8859-15.so" address="b6932000" size="00002000" version="15"/>
    <module path="/usr/lib/libfreetype.so.6.3.8" address="b6a97000" size="0006d000" version="6.3.8"/>
    <module path="/usr/lib/libXft.so.2.1.2" address="b6b16000" size="00001000" version="2.1.2"/>
    <module path="/usr/X11R6/lib/libX11.so.6.2" address="b6bde000" size="00004000" version="6.2"/>
    <module path="/usr/lib/libXrender.so.1.3.0" address="b6bea000" size="00001000" version="1.3.0"/>
    <module path="/usr/lib/libXcursor.so.1.0.2" address="b6bf3000" size="00001000" version="1.0.2"/>
    <module path="/usr/lib/libfontconfig.so.1.0.4" address="b6bf5000" size="0002e000" version="1.0.4"/>
    <module path="/usr/lib/libcairo.so.2.2.3" address="b6c24000" size="00049000" version="2.2.3"/>
    <module path="/usr/lib/libpangocairo-1.0.so.0.1003.1" address="b6c73000" size="00001000" version="0.1003.1"/>
    <module path="/usr/X11R6/lib/libXext.so.6.4" address="b6c81000" size="00001000" version="6.4"/>
    <module path="/usr/X11R6/lib/libXinerama.so.1.0" address="b6c84000" size="00001000" version="1.0"/>
    <module path="/usr/X11R6/lib/libXi.so.6.0" address="b6c8c000" size="00001000" version="6.0"/>
    <module path="/usr/X11R6/lib/libXrandr.so.2.0" address="b6c8e000" size="00004000" version="2.0"/>
    <module path="/usr/lib/libexpat.so.1.0.0" address="b6caf000" size="00003000" version="1.0.0"/>
    <module path="/usr/lib/libtiff.so.4.2.0" address="b6d03000" size="00003000" version="4.2.0"/>
    <module path="/usr/lib/libjpeg.so.62.0.0" address="b6d07000" size="00020000" version="62.0.0"/>
    <module path="/usr/lib/libpng12.so.0.1.2.8" address="b6d4b000" size="00001000" version="0.1.2.8"/>
    <module path="/usr/lib/libglib-2.0.so.0.800.6" address="b6dd0000" size="00001000" version="0.800.6"/>
    <module path="/usr/lib/libgthread-2.0.so.0.800.6" address="b6dd4000" size="00001000" version="0.800.6"/>
    <module path="/usr/lib/libgmodule-2.0.so.0.800.6" address="b6dd8000" size="00001000" version="0.800.6"/>
    <module path="/usr/lib/libgobject-2.0.so.0.800.6" address="b6e12000" size="00001000" version="0.800.6"/>
    <module path="/usr/lib/libpango-1.0.so.0.1003.1" address="b6e14000" size="00038000" version="0.1003.1"/>
    <module path="/usr/lib/libpangoft2-1.0.so.0.1003.1" address="b6e70000" size="00001000" version="0.1003.1"/>
    <module path="/usr/lib/libpangox-1.0.so.0.1003.1" address="b6e7b000" size="00001000" version="0.1003.1"/>
    <module path="/usr/lib/libpangoxft-1.0.so.0.1003.1" address="b6e82000" size="00001000" version="0.1003.1"/>
    <module path="/usr/lib/libgdk_pixbuf-2.0.so.0.800.13" address="b6e98000" size="00001000" version="0.800.13"/>
    <module path="/usr/lib/libatk-1.0.so.0.1010.3" address="b6eb0000" size="00002000" version="0.1010.3"/>
    <module path="/usr/lib/libgtk-x11-2.0.so.0.800.13" address="b6eb3000" size="002ef000" version="0.800.13"/>
    <module path="/usr/lib/libz.so.1.2.3" address="b71a6000" size="00014000" version="1.2.3"/>
    <module path="/usr/lib/libgdk-x11-2.0.so.0.800.13" address="b7238000" size="00003000" version="0.800.13"/>
    <module path="/usr/lib/libwxscintilla.so.0.0.1" address="b7339000" size="00004000" version="0.0.1"/>
    <module path="/lib/tls/libc-2.3.6.so" address="b733e000" size="00136000" version="2.3.6"/>
    <module path="/lib/libgcc_s.so.1" address="b7477000" size="0000b000" version="1"/>
    <module path="/lib/tls/libm-2.3.6.so" address="b74a6000" size="00002000" version="2.3.6"/>
    <module path="/usr/lib/libstdc++.so.6.0.7" address="b757b000" size="00005000" version="6.0.7"/>
    <module path="/usr/lib/libwx_baseu-2.6.so.0.0.0" address="b7585000" size="00120000" version="0.0.0"/>
    <module path="/usr/lib/libwx_baseu_net-2.6.so.0.0.0" address="b76b2000" size="0002b000" version="0.0.0"/>
    <module path="/usr/lib/libwx_baseu_xml-2.6.so.0.0.0" address="b76e5000" size="00001000" version="0.0.0"/>
    <module path="/usr/lib/libwx_gtk2u_core-2.6.so.0.0.0" address="b7991000" size="00023000" version="0.0.0"/>
    <module path="/usr/lib/libwx_gtk2u_adv-2.6.so.0.0.0" address="b79ba000" size="00096000" version="0.0.0"/>
    <module path="/usr/lib/libwx_gtk2u_html-2.6.so.0.0.0" address="b7a52000" size="00087000" version="0.0.0"/>
    <module path="/usr/lib/libwx_gtk2u_qa-2.6.so.0.0.0" address="b7ada000" size="00020000" version="0.0.0"/>
    <module path="/usr/lib/libwx_gtk2u_xrc-2.6.so.0.0.0" address="b7b76000" size="00004000" version="0.0.0"/>
    <module path="/lib/tls/libdl-2.3.6.so" address="b7b7b000" size="00004000" version="2.3.6"/>
    <module path="/lib/tls/libpthread-2.3.6.so" address="b7b80000" size="00010000" version="2.3.6"/>
    <module path="/usr/lib/libcodeblocks.so.0.0.1" address="b7b92000" size="0033d000" version="0.0.1"/>
    <module path="/lib/tls/libnss_nis-2.3.6.so" address="b7ed3000" size="0000a000" version="2.3.6"/>
    <module path="/usr/lib/gconv/ISO8859-1.so" address="b7ede000" size="00002000" version="1"/>
    <module path="/usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2" address="b7eeb000" size="00003000" version="2"/>
    <module path="/lib/ld-2.3.6.so" address="b7ef0000" size="00018000" version="2.3.6"/>
  </modules>
  <stack>
    <frame level="2" function="wxStackWalker::Walk(unsigned int)" offset="0000002c"/>
    <frame level="3" function="wxDebugReport::AddContext(wxDebugReport::Context)" offset="0000085c"/>
    <frame level="4" function="wxDebugReport::AddAll(wxDebugReport::Context)" offset="00000013"/>
    <frame level="5" function="wxHtmlWindow::LoadPage(wxString const&amp;)" offset="00000d18"/>
    <frame level="6" function="wxFatalSignalHandler" offset="00000026"/>
    <frame level="7"/>
    <frame level="8"/>
    <frame level="9" function="MainFrame::OnSettingsEnvironment(wxCommandEvent&amp;)" offset="0000004a"/>
    <frame level="10" function="wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&amp;), wxEvent&amp;) const" offset="0000004d"/>
    <frame level="11" function="wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&amp;, wxEvtHandler*, wxEvent&amp;)" offset="00000064"/>
    <frame level="12" function="wxEventHashTable::HandleEvent(wxEvent&amp;, wxEvtHandler*)" offset="00000078"/>
    <frame level="13" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="000000cd"/>
    <frame level="14" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="00000067"/>
    <frame level="15" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="00000067"/>
    <frame level="16" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="00000067"/>
    <frame level="17" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="00000067"/>
    <frame level="18" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="00000067"/>
    <frame level="19" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="00000067"/>
    <frame level="20" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="00000067"/>
    <frame level="21" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="00000067"/>
    <frame level="22" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="00000067"/>
    <frame level="23" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="00000067"/>
    <frame level="24" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="00000067"/>
    <frame level="25" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="00000067"/>
    <frame level="26" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="00000067"/>
    <frame level="27" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="00000067"/>
    <frame level="28" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="00000067"/>
    <frame level="29" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="00000067"/>
    <frame level="30" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="00000067"/>
    <frame level="31" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="00000067"/>
    <frame level="32" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="00000067"/>
    <frame level="33" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="00000067"/>
    <frame level="34" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="00000067"/>
    <frame level="35" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="00000067"/>
    <frame level="36" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="00000067"/>
    <frame level="37"/>
    <frame level="38" function="g_cclosure_marshal_VOID__VOID" offset="0000004b"/>
    <frame level="39" function="g_closure_invoke" offset="00000139"/>
    <frame level="40"/>
    <frame level="41" function="g_signal_emit_valist" offset="000006c0"/>
    <frame level="42" function="g_signal_emit" offset="00000029"/>
    <frame level="43" function="gtk_widget_activate" offset="00000092"/>
    <frame level="44" function="gtk_menu_shell_activate_item" offset="000000db"/>
    <frame level="45"/>
    <frame level="46"/>
    <frame level="47" function="_gtk_marshal_BOOLEAN__BOXED" offset="00000060"/>
    <frame level="48"/>
    <frame level="49" function="g_closure_invoke" offset="00000139"/>
    <frame level="50"/>
    <frame level="51" function="g_signal_emit_valist" offset="0000042e"/>
    <frame level="52" function="g_signal_emit" offset="00000029"/>
    <frame level="53"/>
    <frame level="54" function="gtk_propagate_event" offset="000000bd"/>
    <frame level="55" function="gtk_main_do_event" offset="00000343"/>
    <frame level="56"/>
    <frame level="57" function="g_main_context_dispatch" offset="000001fc"/>
    <frame level="58"/>
    <frame level="59" function="g_main_loop_run" offset="000001f7"/>
    <frame level="60" function="gtk_main" offset="000000c1"/>
    <frame level="61" function="wxEventLoop::Run()" offset="0000006e"/>
    <frame level="62" function="wxAppBase::MainLoop()" offset="00000048"/>
    <frame level="63" function="wxAppBase::OnRun()" offset="00000022"/>
    <frame level="64"/>
    <frame level="65" function="wxEntry(int&amp;, wchar_t**)" offset="0000006b"/>
    <frame level="66" function="wxEntry(int&amp;, char**)" offset="0000002e"/>
    <frame level="67" function="EditorBase::CreateContextSubMenu(int)" offset="000002b8"/>
  </stack>
</report>

How can I download the source from svn to compile it by myself? Is there a howto anywhere?

thanks in advance

Thomas

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2750
Re: Code::Blocks hangs while debugging
« Reply #3 on: April 26, 2006, 12:35:26 am »
Was that a .deb packaged that crashed?

Who makes the .deb?
Does the .deb have the debugger symbols in it or
has it been stripped?

Just wondering if it can be run under gdb and produce
statement numbers with a backtrace?

thanks
pecan
« Last Edit: April 26, 2006, 01:16:50 am by Pecan »

TF

  • Guest
Re: Code::Blocks hangs while debugging
« Reply #4 on: April 26, 2006, 09:26:22 am »
Hi pecan,

sorry, I've forgotten - the build is from killerbot and yes it's a deb package (CB_20060424_rev2377_ubuntu.deb).

I have had the same problems with other nightly builds before - ugly GUI and crashing with creating a debug report ...

To your question about debugger symbols in it or not -  :?: :|  - sorry I don't know. Please ask the creator (killerbot) for that.

Best Regards,

Thomas

TF

  • Guest
Re: Code::Blocks hangs while debugging
« Reply #5 on: April 29, 2006, 02:08:08 am »
Hi,

now I've compiled Code::Blocks from svn (Rev2395) and there's no crash at all :) But I've still problems with debugging:
Debugger tab:
Code
Starting debugger: done
Invalid debugger script: 'gdb_types.script'
Setting breakpoints
Debugger name and version: GNU gdb 6.4-debian

Under ./devel/trunk/src/scripts/ I found a gdb_types.script. Must I copy it to a special folder Code::Blocks searches for it?

Also as I stopped the debugger I get the following messages in a window and in the 'Debugger(debug)' tab:
Code
> info files
Symbols from "/data/Cplusplus_tests/C++_Entwicklung/Kapitel_11/uebung1711".
Unix child process:
Using the running image of child process 27668.
While running this, GDB does not access memory from...
Local exec file:
`/data/Cplusplus_tests/C++_Entwicklung/Kapitel_11/uebung1711', file type elf32-i386.
Entry point: 0x8048710
0x08048134 - 0x08048147 is .interp
0x08048148 - 0x08048168 is .note.ABI-tag
0x08048168 - 0x08048200 is .hash
0x08048200 - 0x08048330 is .dynsym
0x08048330 - 0x080484ef is .dynstr
0x080484f0 - 0x08048516 is .gnu.version
0x08048518 - 0x08048578 is .gnu.version_r
0x08048578 - 0x08048590 is .rel.dyn
0x08048590 - 0x08048600 is .rel.plt
0x08048600 - 0x08048617 is .init
0x08048618 - 0x08048708 is .plt
0x08048710 - 0x08048a94 is .text
0x08048a94 - 0x08048aae is .fini
0x08048ac0 - 0x08048ba7 is .rodata
0x08048ba8 - 0x08048bd4 is .eh_frame_hdr
0x08048bd4 - 0x08048c64 is .eh_frame
0x08049c64 - 0x08049c70 is .ctors
0x08049c70 - 0x08049c78 is .dtors
0x08049c78 - 0x08049c7c is .jcr
0x08049c7c - 0x08049d5c is .dynamic
0x08049d5c - 0x08049d60 is .got
0x08049d60 - 0x08049da4 is .got.plt
0x08049da4 - 0x08049db0 is .data
0x08049db0 - 0x08049ed8 is .bss
0xa7e3f0d4 - 0xa7e4341c is .hash in /usr/lib/libstdc++.so.6
0xa7e4341c - 0xa7e5012c is .dynsym in /usr/lib/libstdc++.so.6
0xa7e5012c - 0xa7e71fa7 is .dynstr in /usr/lib/libstdc++.so.6
0xa7e71fa8 - 0xa7e7394a is .gnu.version in /usr/lib/libstdc++.so.6
0xa7e7394c - 0xa7e73ac0 is .gnu.version_d in /usr/lib/libstdc++.so.6
0xa7e73ac0 - 0xa7e73b60 is .gnu.version_r in /usr/lib/libstdc++.so.6
0xa7e73b60 - 0xa7e78760 is .rel.dyn in /usr/lib/libstdc++.so.6
0xa7e78760 - 0xa7e79788 is .rel.plt in /usr/lib/libstdc++.so.6
0xa7e79788 - 0xa7e7979f is .init in /usr/lib/libstdc++.so.6
0xa7e797a0 - 0xa7e7b800 is .plt in /usr/lib/libstdc++.so.6
0xa7e7b800 - 0xa7ef64a4 is .text in /usr/lib/libstdc++.so.6
0xa7ef64a4 - 0xa7ef64be is .fini in /usr/lib/libstdc++.so.6
0xa7ef64c0 - 0xa7efa7d0 is .rodata in /usr/lib/libstdc++.so.6
0xa7efa7d0 - 0xa7efd9b4 is .eh_frame_hdr in /usr/lib/libstdc++.so.6
0xa7efd9b4 - 0xa7f0bde0 is .eh_frame in /usr/lib/libstdc++.so.6
0xa7f0bde0 - 0xa7f1136c is .gcc_except_table in /usr/lib/libstdc++.so.6
0xa7f12000 - 0xa7f12020 is .ctors in /usr/lib/libstdc++.so.6
0xa7f12020 - 0xa7f12028 is .dtors in /usr/lib/libstdc++.so.6
0xa7f12028 - 0xa7f1202c is .jcr in /usr/lib/libstdc++.so.6
0xa7f12040 - 0xa7f12648 is .data.rel.ro in /usr/lib/libstdc++.so.6
0xa7f12648 - 0xa7f12730 is .dynamic in /usr/lib/libstdc++.so.6
0xa7f12730 - 0xa7f12cb8 is .got in /usr/lib/libstdc++.so.6
0xa7f12cb8 - 0xa7f134d8 is .got.plt in /usr/lib/libstdc++.so.6
0xa7f134e0 - 0xa7f16128 is .data in /usr/lib/libstdc++.so.6
0xa7f16140 - 0xa7f1be38 is .bss in /usr/lib/libstdc++.so.6
0xa7e18134 - 0xa7e18154 is .note.ABI-tag in /lib/tls/libm.so.6
0xa7e18154 - 0xa7e19050 is .hash in /lib/tls/libm.so.6
0xa7e19050 - 0xa7e1a650 is .dynsym in /lib/tls/libm.so.6
0xa7e1a650 - 0xa7e1ae2a is .dynstr in /lib/tls/libm.so.6
0xa7e1ae2a - 0xa7e1b0ea is .gnu.version in /lib/tls/libm.so.6
0xa7e1b0ec - 0xa7e1b16c is .gnu.version_d in /lib/tls/libm.so.6
0xa7e1b16c - 0xa7e1b1bc is .gnu.version_r in /lib/tls/libm.so.6
0xa7e1b1bc - 0xa7e1b204 is .rel.dyn in /lib/tls/libm.so.6
0xa7e1b204 - 0xa7e1b264 is .rel.plt in /lib/tls/libm.so.6
0xa7e1b270 - 0xa7e1b287 is .init in /lib/tls/libm.so.6
0xa7e1b288 - 0xa7e1b358 is .plt in /lib/tls/libm.so.6
0xa7e1b360 - 0xa7e375b4 is .text in /lib/tls/libm.so.6
0xa7e375c0 - 0xa7e375db is .fini in /lib/tls/libm.so.6
0xa7e375e0 - 0xa7e3bcf8 is .rodata in /lib/tls/libm.so.6
0xa7e3bcf8 - 0xa7e3bd0b is .interp in /lib/tls/libm.so.6
0xa7e3bd0c - 0xa7e3bd10 is .eh_frame in /lib/tls/libm.so.6
0xa7e3cee4 - 0xa7e3ceec is .ctors in /lib/tls/libm.so.6
0xa7e3ceec - 0xa7e3cef4 is .dtors in /lib/tls/libm.so.6
0xa7e3cef4 - 0xa7e3cef8 is .jcr in /lib/tls/libm.so.6
0xa7e3cef8 - 0xa7e3cfd8 is .dynamic in /lib/tls/libm.so.6
0xa7e3cfd8 - 0xa7e3cff4 is .got in /lib/tls/libm.so.6
0xa7e3cff4 - 0xa7e3d030 is .got.plt in /lib/tls/libm.so.6
0xa7e3d030 - 0xa7e3d05c is .data in /lib/tls/libm.so.6
0xa7e3d060 - 0xa7e3d0a0 is .bss in /lib/tls/libm.so.6
0xa7e0d0d4 - 0xa7e0d5c0 is .hash in /lib/libgcc_s.so.1
0xa7e0d5c0 - 0xa7e0dd00 is .dynsym in /lib/libgcc_s.so.1
0xa7e0dd00 - 0xa7e0e2c4 is .dynstr in /lib/libgcc_s.so.1
0xa7e0e2c4 - 0xa7e0e3ac is .gnu.version in /lib/libgcc_s.so.1
0xa7e0e3ac - 0xa7e0e4bc is .gnu.version_d in /lib/libgcc_s.so.1
0xa7e0e4bc - 0xa7e0e4fc is .gnu.version_r in /lib/libgcc_s.so.1
0xa7e0e4fc - 0xa7e0e54c is .rel.dyn in /lib/libgcc_s.so.1
0xa7e0e54c - 0xa7e0e63c is .rel.plt in /lib/libgcc_s.so.1
0xa7e0e63c - 0xa7e0e653 is .init in /lib/libgcc_s.so.1
0xa7e0e654 - 0xa7e0e844 is .plt in /lib/libgcc_s.so.1
0xa7e0e850 - 0xa7e15bd4 is .text in /lib/libgcc_s.so.1
0xa7e15bd4 - 0xa7e15bee is .fini in /lib/libgcc_s.so.1
0xa7e15c00 - 0xa7e16230 is .rodata in /lib/libgcc_s.so.1
0xa7e16230 - 0xa7e1630c is .eh_frame_hdr in /lib/libgcc_s.so.1
0xa7e1630c - 0xa7e16678 is .eh_frame in /lib/libgcc_s.so.1
0xa7e17678 - 0xa7e17680 is .ctors in /lib/libgcc_s.so.1
0xa7e17680 - 0xa7e17688 is .dtors in /lib/libgcc_s.so.1
0xa7e17688 - 0xa7e1768c is .jcr in /lib/libgcc_s.so.1
0xa7e1768c - 0xa7e17694 is .data.rel.ro in /lib/libgcc_s.so.1
0xa7e17694 - 0xa7e1776c is .dynamic in /lib/libgcc_s.so.1
0xa7e1776c - 0xa7e1777c is .got in /lib/libgcc_s.so.1
0xa7e1777c - 0xa7e17800 is .got.plt in /lib/libgcc_s.so.1
0xa7e17800 - 0xa7e17818 is .data in /lib/libgcc_s.so.1
0xa7e17820 - 0xa7e17948 is .bss in /lib/libgcc_s.so.1
0xa7cd5174 - 0xa7cd5194 is .note.ABI-tag in /lib/tls/libc.so.6
0xa7cd5194 - 0xa7cd834c is .hash in /lib/tls/libc.so.6
0xa7cd834c - 0xa7ce0a1c is .dynsym in /lib/tls/libc.so.6
0xa7ce0a1c - 0xa7ce5b6d is .dynstr in /lib/tls/libc.so.6
0xa7ce5b6e - 0xa7ce6c48 is .gnu.version in /lib/tls/libc.so.6
0xa7ce6c48 - 0xa7ce6eb8 is .gnu.version_d in /lib/tls/libc.so.6
0xa7ce6eb8 - 0xa7ce6f08 is .gnu.version_r in /lib/tls/libc.so.6
0xa7ce6f08 - 0xa7ce9bf8 is .rel.dyn in /lib/tls/libc.so.6
0xa7ce9bf8 - 0xa7ce9c30 is .rel.plt in /lib/tls/libc.so.6
0xa7ce9c30 - 0xa7ce9cb0 is .plt in /lib/tls/libc.so.6
0xa7ce9cb0 - 0xa7de5d0f is .text in /lib/tls/libc.so.6
0xa7de5d10 - 0xa7de708b is __libc_freeres_fn in /lib/tls/libc.so.6
0xa7de7090 - 0xa7de7277 is __libc_thread_freeres_fn in /lib/tls/libc.so.6
0xa7de7280 - 0xa7e01630 is .rodata in /lib/tls/libc.so.6
0xa7e01630 - 0xa7e01643 is .interp in /lib/tls/libc.so.6
0xa7e01644 - 0xa7e025c8 is .eh_frame_hdr in /lib/tls/libc.so.6
0xa7e025c8 - 0xa7e027fa is .gcc_except_table in /lib/tls/libc.so.6
0xa7e03474 - 0xa7e075e0 is .eh_frame in /lib/tls/libc.so.6
0xa7e075e0 - 0xa7e075e8 is .tdata in /lib/tls/libc.so.6
0xa7e075e8 - 0xa7e07608 is .tbss in /lib/tls/libc.so.6
0xa7e075e8 - 0xa7e075ec is .fini_array in /lib/tls/libc.so.6
0xa7e075ec - 0xa7e075fc is .ctors in /lib/tls/libc.so.6
0xa7e075fc - 0xa7e07604 is .dtors in /lib/tls/libc.so.6
0xa7e07604 - 0xa7e0765c is __libc_subfreeres in /lib/tls/libc.so.6
0xa7e0765c - 0xa7e07660 is __libc_atexit in /lib/tls/libc.so.6
0xa7e07660 - 0xa7e07668 is __libc_thread_subfreeres in /lib/tls/libc.so.6
0xa7e07680 - 0xa7e08d3c is .data.rel.ro in /lib/tls/libc.so.6
0xa7e08d3c - 0xa7e08e24 is .dynamic in /lib/tls/libc.so.6
0xa7e08e24 - 0xa7e08fdc is .got in /lib/tls/libc.so.6
0xa7e08ff4 - 0xa7e0901c is .got.plt in /lib/tls/libc.so.6
0xa7e09020 - 0xa7e0a068 is .data in /lib/tls/libc.so.6
0xa7e0a080 - 0xa7e0cbdc is .bss in /lib/tls/libc.so.6
0xa7f3b0f4 - 0xa7f3b1cc is .hash in /lib/ld-linux.so.2
0xa7f3b1cc - 0xa7f3b3fc is .dynsym in /lib/ld-linux.so.2
0xa7f3b3fc - 0xa7f3b582 is .dynstr in /lib/ld-linux.so.2
0xa7f3b582 - 0xa7f3b5c8 is .gnu.version in /lib/ld-linux.so.2
0xa7f3b5c8 - 0xa7f3b66c is .gnu.version_d in /lib/ld-linux.so.2
0xa7f3b66c - 0xa7f3b714 is .rel.dyn in /lib/ld-linux.so.2
0xa7f3b714 - 0xa7f3b73c is .rel.plt in /lib/ld-linux.so.2
0xa7f3b73c - 0xa7f3b79c is .plt in /lib/ld-linux.so.2
0xa7f3b7a0 - 0xa7f4d48f is .text in /lib/ld-linux.so.2
0xa7f4d4a0 - 0xa7f50852 is .rodata in /lib/ld-linux.so.2
0xa7f50854 - 0xa7f508b8 is .eh_frame_hdr in /lib/ld-linux.so.2
0xa7f508b8 - 0xa7f50a2c is .eh_frame in /lib/ld-linux.so.2
0xa7f51cc0 - 0xa7f51f24 is .data.rel.ro in /lib/ld-linux.so.2
0xa7f51f24 - 0xa7f51fd4 is .dynamic in /lib/ld-linux.so.2
0xa7f51fd4 - 0xa7f51fe0 is .got in /lib/ld-linux.so.2
0xa7f51ff4 - 0xa7f52014 is .got.plt in /lib/ld-linux.so.2
0xa7f52020 - 0xa7f5245c is .data in /lib/ld-linux.so.2
0xa7f5245c - 0xa7f52504 is .bss in /lib/ld-linux.so.2
(gdb)
> quit
Hangup detected on fd 0
error detected on stdin

What's happening here?

Btw I can't change any window sizes ... Also some tabs looks like cutted on the bottom (like in the screenshot in my previous post)

Thanks in advance

Thomas

sethjackson

  • Guest
Re: Code::Blocks hangs while debugging
« Reply #6 on: April 29, 2006, 02:13:45 am »
Under ./devel/trunk/src/scripts/ I found a gdb_types.script. Must I copy it to a special folder Code::Blocks searches for it?

No. Well you need to run the "update" script after you build C::B. According to your path above the path to it would be "./devel/trunk/src/update". HTH

TF

  • Guest
Re: Code::Blocks hangs while debugging
« Reply #7 on: April 29, 2006, 12:30:18 pm »
Hi sethjackson,

what do you mean "after build"? after make ?

If you mean after "make install" I want to note that I use checkinstall instead.

Regards,

Thomas

sethjackson

  • Guest
Re: Code::Blocks hangs while debugging
« Reply #8 on: April 29, 2006, 02:31:48 pm »
Oh you are building C::B the make way and not with the project file..... Run the "update" script after you compile C::B with make. I believe it should work..... I always use the project file so I'm not 100% sure.....

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Code::Blocks hangs while debugging
« Reply #9 on: April 29, 2006, 09:55:53 pm »
now I've compiled Code::Blocks from svn (Rev2395) and there's no crash at all :)
Hello,

The crash in the Settings-->Environment when using the .deb packages was due to not updated resources (zip files) and has been fixed since rev2387.

Best wishes,
Michael

TF

  • Guest
Re: Code::Blocks hangs while debugging
« Reply #10 on: April 29, 2006, 10:52:43 pm »
Hi,

Oh you are building C::B the make way and not with the project file..... Run the "update" script after you compile C::B with make. I believe it should work..... I always use the project file so I'm not 100% sure.....
unfortunatelly "update" only works in the trunk. As I installed C::B via checkinstall it needs the scripts in /usr/share/codeblocks/. After copying the scripts folder completely into that location the gdb_types.script error was gone :)

But the problem with debugging still exists - it won't stop at any breakpoint :( The only active button after starting is the STOP button. After clicking it once the STEP buttons getting active, too. As I push F7 I get this message in the "Debugger (debug)" tab:
Code
Single stepping until exit from function read, 
which has no line number information.

Also no console window appear ...

Regards,

Thomas

P.S.:
The crash in the Settings-->Environment when using the .deb packages was due to not updated resources (zip files) and has been fixed since rev2387.
Thanks for info :)

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Code::Blocks hangs while debugging
« Reply #11 on: April 29, 2006, 11:08:04 pm »
But the problem with debugging still exists - it won't stop at any breakpoint :(

Hello,

May be you could give a try to gdb 6.3 (GNU gdb 6.3-debian on Ubuntu 5.10).

Best wishes,
Michael

TF

  • Guest
Re: Code::Blocks hangs while debugging
« Reply #12 on: April 30, 2006, 02:50:50 am »
May be you could give a try to gdb 6.3 (GNU gdb 6.3-debian on Ubuntu 5.10).

I've created gdb 6.3 from scratch with different location (/usr/local/bin) to 6.4 (/usr/bin/). Also I've changed in Settings -> Compiler and Debugger -> Programs the debugger path to /usr/local/bin/gdb.
Now it shows the gdb 6.3 in the name and version message in the debug tab, but the same behaviour as with 6.4. :(

As I clean the project,build again and start the debugger than it runs to the first breakpoint  :o (if it is not a definition line !). Also with F7 it jumps to the next line. But then with the next F7 (to execute "cin.getline(value, 80);") I can't do anything anymore ... There's no possibility in the debugger(debug) tab to enter anything ...
Here's my test code (I've set the breakpoint to "cout << "Please ..."):
Code
#include <iostream>
#include <cstdlib>
#include <cstring>

using namespace std;

int upstring(char *value);


int main()
{
char value[81]={'\0'};
int upper_count;
cout << "Please type in a String (max. 80 characters): ";
cin.getline(value, 80);
upper_count=upstring(value);
cout << upper_count << " characters are converted" << endl;
        cout << "The new string is now: " << value << endl;
  return EXIT_SUCCESS;
}

int upstring(char *value)
{
  int i=0;
  while(*value)
  {
    if(islower(*value))
    {
      *value=toupper(*value);
      i++;
    }
  value++;
  }
  return(i);
}

Btw. I tried the same with 6.4 and after cleaning the project it works, too. But it ends on the same point as 6.3 (on the getline operation).

Do you know what's going on with the getline operation? Did I do anything wrong?

Regards,

Thomas

P.S.: If I switched back to the default gdb after stop debugging for testing if the cleaning works there too, C::B crashes (hangup)  :shock:

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2750
Re: Code::Blocks hangs while debugging
« Reply #13 on: April 30, 2006, 02:59:37 am »
Sounds to me like a program is waiting for input somewhere.
Have you tried switching into all the other tasks to see if they
accept input?

This confuses me often also, especially when the debugged window is behind the debugger or the first CodeBlocks window.

As for the debugger stopping on the wrong line. It does that often (for me) also.



Offline gfgfd

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: Code::Blocks hangs while debugging
« Reply #14 on: April 30, 2006, 10:21:03 am »
Sounds to me like a program is waiting for input somewhere.
Have you tried switching into all the other tasks to see if they
accept input?

This confuses me often also, especially when the debugged window is behind the debugger or the first CodeBlocks window.

codeblocks doesnt seem to show window when debugging console applications.
all output of debugged app is shown on debuggers debug log though..

Version 1.0 revision 2395 (2006-04-28 10:21:25) gcc 3.4.5 Linux/unicode
GNU gdb 6.4


TF

  • Guest
Re: Code::Blocks hangs while debugging
« Reply #15 on: April 30, 2006, 11:56:22 am »
Sounds to me like a program is waiting for input somewhere.
Have you tried switching into all the other tasks to see if they
accept input?

yes, I've checked all message tabs. The only tab I can do something is the Debugger(debug) tab. But there I can only move cursor up, down, left and right, but no keyboard input is possible. Also I've looked behind C::B if there's a console window, but nothing is there :(

codeblocks doesnt seem to show window when debugging console applications.
all output of debugged app is shown on debuggers debug log though..

Yes I aggree with you. There looks something very strange for me, if I made a top output after start debugging (after executing the getline operation):
Code
22562 tf        16   0     0    0    0 Z  0.0  0.0   0:45.44 codeblocks <defunct>                                                    
19277 tf        16   0  8796 5444 2400 S  0.0  0.5   0:00.10 gdb                                                                     
19282 tf        16   0  2540  800  688 S  0.0  0.1   0:00.00 uebung1711                                                             

C::B is defunction ... something goes a little bit wrong here  :?

Regards,

Thomas

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Code::Blocks hangs while debugging
« Reply #16 on: May 01, 2006, 12:02:46 am »
Sounds to me like a program is waiting for input somewhere.
Have you tried switching into all the other tasks to see if they
accept input?
yes, I've checked all message tabs. The only tab I can do something is the Debugger(debug) tab. But there I can only move cursor up, down, left and right, but no keyboard input is possible. Also I've looked behind C::B if there's a console window, but nothing is there :(

I have given it a try and yes, C::B wait for an input. The Debugger (debug) tab shows:

Quote
Please type in a String (max. 80 characters):

But where do you have the type the string :?? In Windows usually there is command line window of the application where you can put your input, but in Ubuntu 5.10, I cannot find where :(.

Best wishes,
Michael

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2750
Re: Code::Blocks hangs while debugging
« Reply #17 on: May 01, 2006, 12:25:15 am »

Sounds to me like a program is waiting for input somewhere.
Have you tried switching into all the other tasks to see if they
accept input?
Quote
I have given it a try and yes, C::B wait for an input. The Debugger (debug) tab shows:
Please type in a String (max. 80 characters):

But where do you have the type the string :?? In Windows usually there is command line window of the application where you can put your input, but in Ubuntu 5.10, I cannot find where :(.

Best wishes,
Michael

cmd or command.com is just the windows' shell. The program shown below would have to be run in a shell to use std in/out/err, print, keyboard etc.

The input would be at the same location to which the output went.
It's up to the program or the programmer to start the shell, not CB's
Currently, both are in std::I/O limbo...

I believe this is a programmer err, a logic err, an oversight....
Poor CB is the object of an injust accusation. :)


Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Code::Blocks hangs while debugging
« Reply #18 on: May 01, 2006, 12:34:57 am »

Sounds to me like a program is waiting for input somewhere.
Have you tried switching into all the other tasks to see if they
accept input?
Quote
I have given it a try and yes, C::B wait for an input. The Debugger (debug) tab shows:
Please type in a String (max. 80 characters):

But where do you have the type the string :?? In Windows usually there is command line window of the application where you can put your input, but in Ubuntu 5.10, I cannot find where :(.

Best wishes,
Michael

cmd or command.com is just the windows' shell. The program shown below would have to be run in a shell to use std in/out/err, print, keyboard etc.

The input would be at the same location to which the output went.
It's up to the program or the programmer to start the shell, not CB's
Currently, both are in std::I/O limbo...

I believe this is a programmer err, a logic err, an oversight....
Poor CB is the object of an injust accusation. :)

hmmm. When I run a successfully built program and I run it with C::B, C::B open a shell. But, when you debug the application within C::B, C::B should also open a shell, or? If I have to do it, how?

I will check a bit more in depth the different options after finishing to install prelink on my Ubuntu 5.10  :).

Thanks :).

Best wishes,
Michael

TF

  • Guest
Re: Code::Blocks hangs while debugging
« Reply #19 on: May 01, 2006, 01:23:36 am »
The input would be at the same location to which the output went.
It's up to the program or the programmer to start the shell, not CB's
Currently, both are in std::I/O limbo...

I believe this is a programmer err, a logic err, an oversight....
Poor CB is the object of an injust accusation. :)

As I run the program with gdb, all messages appears like in C::B's debugger(debug) task but with gdb I can input a string ... Therefore I assume that C::B should anticipate the input in the debugger task, too ...

Did you ment in your post that this behaviour is caused by a C::B programmer err or a logic err in C::B ?  :? If so I should create a bug report ...

Best regards,

Thomas

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2750
Re: Code::Blocks hangs while debugging
« Reply #20 on: May 01, 2006, 01:35:49 am »
The input would be at the same location to which the output went.
It's up to the program or the programmer to start the shell, not CB's
Currently, both are in std::I/O limbo...

I believe this is a programmer err, a logic err, an oversight....
Poor CB is the object of an injust accusation. :)

As I run the program with gdb, all messages appears like in C::B's debugger(debug) task but with gdb I can input a string ... Therefore I assume that C::B should anticipate the input in the debugger task, too ...

Did you ment in your post that this behaviour is caused by a C::B programmer err or a logic err in C::B ?  :? If so I should create a bug report ...

Best regards,

Thomas

I'm conficted as to wheither this is a bug or not. gdb is a shell task, so you, as a programmer, can expect to have access to std i/o.  But CB is a graphics task without shell access. So I, as a programmer, would not expect to have std I/O access unless I provided the means to access it.

I'd submit this as a bug anyway, and see how the core devs react. Don't get upset if they yell at ya though. This might be cause for yelling.... :x

TF

  • Guest
Re: Code::Blocks hangs while debugging
« Reply #21 on: May 01, 2006, 02:58:53 am »
Hi Pecan,

thanks for information 8)

I've submitted this problem and hope the developer can fix it and won't yell too loud against me ;)

Best regards,

Thomas