User forums > Using Code::Blocks

Debug issue in CB 13.12

(1/2) > >>

highlighting:
Hi,
I'm using Code::Blocks 13.12 to debug ffmpeg 2.1 in Fedora 18. I create a console application with 'This is a custom Makefile' marked in project->Properities->Project settings. Please see the full debug log.


=============
Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: /home/mine/work/ffmpeg/ffmpeg-2.1_CB/ffmpeg-2.1_CB/
Adding source dir: /home/mine/work/ffmpeg/ffmpeg-2.1_CB/
Adding file: /home/mine/work/ffmpeg/ffmpeg-2.1_CB/tmp/ffplay_g
Changing directory to: /home/mine/work/ffmpeg/ffmpeg-2.1_CB/ffmpeg-2.1_CB/.
Set variable: LD_LIBRARY_PATH=.:

[debug]Command-line: /usr/bin/gdb -nx -fullname  -quiet  -args /home/mine/work/ffmpeg/ffmpeg-2.1_CB/tmp/ffplay_g
[debug]Working dir : /home/mine/work/ffmpeg/ffmpeg-2.1_CB/ffmpeg-2.1_CB

Starting debugger: /usr/bin/gdb -nx -fullname  -quiet  -args /home/mine/work/ffmpeg/ffmpeg-2.1_CB/tmp/ffplay_g
done

[debug]> set prompt >>>>>>cb_gdb:

Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints

[debug]Reading symbols from /home/mine/work/ffmpeg/ffmpeg-2.1_CB/tmp/ffplay_g...done.
[debug](gdb) >>>>>>cb_gdb:
[debug]> show version
[debug]GNU gdb (GDB) Fedora (7.5.1-37.fc18)
[debug]Copyright (C) 2012 Free Software Foundation, Inc.
[debug]License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
[debug]This is free software: you are free to change and redistribute it.
[debug]There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
[debug]and "show warranty" for details.
[debug]This GDB was configured as "i686-redhat-linux-gnu".
[debug]For bug reporting instructions, please see:
[debug]<http://www.gnu.org/software/gdb/bugs/>.
[debug]>>>>>>cb_gdb:
[debug]> set confirm off

Debugger name and version: GNU gdb (GDB) Fedora (7.5.1-37.fc18)

[debug]>>>>>>cb_gdb:
[debug]> set width 0
[debug]>>>>>>cb_gdb:
[debug]> set height 0
[debug]>>>>>>cb_gdb:
[debug]> set breakpoint pending on
[debug]>>>>>>cb_gdb:
[debug]> set print asm-demangle on
[debug]>>>>>>cb_gdb:
[debug]> set unwindonsignal on
[debug]>>>>>>cb_gdb:
[debug]> set print elements 0
[debug]>>>>>>cb_gdb:
[debug]> set disassembly-flavor intel
[debug]>>>>>>cb_gdb:
[debug]> source /usr/share/codeblocks/scripts/stl-views-1.0.3.gdb
[debug]>>>>>>cb_gdb:
[debug]> directory /home/mine/work/ffmpeg/ffmpeg-2.1_CB/ffmpeg-2.1_CB/
[debug]Source directories searched: /home/mine/work/ffmpeg/ffmpeg-2.1_CB/ffmpeg-2.1_CB:$cdir:$cwd
[debug]>>>>>>cb_gdb:
[debug]> directory /home/mine/work/ffmpeg/ffmpeg-2.1_CB/
[debug]Source directories searched: /home/mine/work/ffmpeg/ffmpeg-2.1_CB:/home/mine/work/ffmpeg/ffmpeg-2.1_CB/ffmpeg-2.1_CB:$cdir:$cwd
[debug]>>>>>>cb_gdb:
[debug]> set verbose on
[debug]>>>>>>cb_gdb:
[debug]> set args ./tmp/67.ts
[debug]>>>>>>cb_gdb:
[debug]> tty /dev/pts/0
[debug]Queued:[tty /dev/pts/0]
[debug]>>>>>>cb_gdb:

> r

[debug]> r
[debug]Starting program: /home/mine/work/ffmpeg/ffmpeg-2.1_CB/tmp/ffplay_g ./tmp/67.ts
[debug]Reading symbols from /lib/ld-linux.so.2...
[debug](no debugging symbols found)...done.
[debug]Loaded symbols for /lib/ld-linux.so.2
[debug]Reading symbols from system-supplied DSO at 0xb7fff000...(no debugging symbols found)...done.
[debug][Inferior 1 (process 13056) exited with code 0177]
[debug]Missing separate debuginfos, use: debuginfo-install glibc-2.16-28.fc18.i686
[debug]>>>>>>cb_gdb:

Starting program: /home/mine/work/ffmpeg/ffmpeg-2.1_CB/tmp/ffplay_g ./tmp/67.ts
Reading symbols from /lib/ld-linux.so.2...
(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from system-supplied DSO at 0xb7fff000...(no debugging symbols found)...done.
[Inferior 1 (process 13056) exited with code 0177]
Missing separate debuginfos, use: debuginfo-install glibc-2.16-28.fc18.i686
(no debugging symbols found)...done.
Reading symbols from system-supplied DSO at 0xb7fff000...(no debugging symbols found)...done.
[Inferior 1 (process 13056) exited with code 0177]

[debug]> quit

Debugger finished with status 0
===================

All these gdb commonds work fine in terminal. And CB 10.05 does not have this issue.
I have spent much of time to google or search in this forum, but I cann't find any useful infomation.

oBFusCATed:
Why are you executing the run command manually?
What is the problem really? The app doesn't start?


p.s. please use code tags (# button in the interface) when pasting long logs.

highlighting:
Hi oBFusCATed,
Why are you executing the run command manually?
Same issue as executing the run command automatically.

What is the problem really? The app doesn't start?
The real problem is :
[Inferior 1 (process 13056) exited with code 0177]
Cann't debug ffmpeg_g.  I think there are something wrong when gdb load ld-linux.so.2.

oBFusCATed:
If there is such problem then your system won't work at all.

Does your app depend on non-system shared libraries?
If it does then I suppose this is the problem, because your LD_LIBRARY_PATH is wrong.
Do you use rpath linking?

highlighting:
Hi oBFusCATed,
Thanks for your help. The issue is related with LD_LIBRARY_PATH. I'll post the details later.

Navigation

[0] Message Index

[#] Next page

Go to full version