[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: *dbg pakages



On 4/11/07, Daniel Jacobowitz <dan@debian.org> wrote:
On Wed, Apr 11, 2007 at 06:31:00PM +0300, costin c wrote:
> Hello
>
> How should be used pakages containing debugging symbols/informations,
> like openoffice.org-dbg
> When I try to run
> /usr/lib/debug/usr/lib/openoffice/program/soffice.bin bash show an
> unexpected error message "cannot execute binary file".

Just install it, don't try to run it.  GDB will pick it up
automatically.
Thank you for answering to my question.

But running /usr/lib/openoffice/program/soffice.bin under gdb, with
openoffice.org-dbg package installed, doesn't give any additional
information toward running same executable without openoffice.org-dbg
installed.

To display line number and/or when (SIGFPE) Arithmetic exception
appear, and other usefull variables, is necessary to install and
compile openoffice.org package from sources, with debugging included ?

I am not sure how to find this error precisely, gdb is sufficient or
other tools like binutils are requierd ?

With openoffice.org-dbg:
$ gdb /usr/lib/openoffice/program/soffice.bin
GNU gdb 6.6-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
Using host libthread_db library "/lib/i686/cmov/libthread_db.so.1".
(gdb) r
Starting program: /usr/lib/openoffice/program/soffice.bin
[Thread debugging using libthread_db enabled]
[New Thread -1244571952 (LWP 16880)]
warning: Lowest section in /usr/lib/libicudata.so.36 is .hash at 000000b4

Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread -1244571952 (LWP 16880)]
0xb5c99c42 in SalDisplay::Init () from
/usr/lib/openoffice/program/libvclplug_gen680li.so
(gdb) bt
#0  0xb5c99c42 in SalDisplay::Init () from
/usr/lib/openoffice/program/libvclplug_gen680li.so
#1  0xb5c9c29e in SalX11Display () from
/usr/lib/openoffice/program/libvclplug_gen680li.so
#2  0xb5c8e60d in SalXLib::Init () from
/usr/lib/openoffice/program/libvclplug_gen680li.so
#3  0xb5c8f5ee in X11SalData::Init () from
/usr/lib/openoffice/program/libvclplug_gen680li.so
#4  0xb5c9eba2 in create_SalInstance () from
/usr/lib/openoffice/program/libvclplug_gen680li.so
#5  0xb7eaae32 in tryInstance () from /usr/lib/openoffice/program/libvcl680li.so
#6  0xb7eaaf59 in CreateSalInstance () from
/usr/lib/openoffice/program/libvcl680li.so
#7  0xb7c321cd in InitVCL () from /usr/lib/openoffice/program/libvcl680li.so
#8  0xb7c325e1 in ImplSVMain () from /usr/lib/openoffice/program/libvcl680li.so
#9  0xb7c327f5 in SVMain () from /usr/lib/openoffice/program/libvcl680li.so
#10 0x08060be6 in main ()
(gdb) bt full
#0  0xb5c99c42 in SalDisplay::Init () from
/usr/lib/openoffice/program/libvclplug_gen680li.so
No locals.
#1  0xb5c9c29e in SalX11Display () from
/usr/lib/openoffice/program/libvclplug_gen680li.so
No locals.
#2  0xb5c8e60d in SalXLib::Init () from
/usr/lib/openoffice/program/libvclplug_gen680li.so
No locals.
#3  0xb5c8f5ee in X11SalData::Init () from
/usr/lib/openoffice/program/libvclplug_gen680li.so
No locals.
#4  0xb5c9eba2 in create_SalInstance () from
/usr/lib/openoffice/program/libvclplug_gen680li.so
No locals.
#5  0xb7eaae32 in tryInstance () from /usr/lib/openoffice/program/libvcl680li.so
No locals.
#6  0xb7eaaf59 in CreateSalInstance () from
/usr/lib/openoffice/program/libvcl680li.so
No locals.
#7  0xb7c321cd in InitVCL () from /usr/lib/openoffice/program/libvcl680li.so
No locals.
#8  0xb7c325e1 in ImplSVMain () from /usr/lib/openoffice/program/libvcl680li.so
No locals.
#9  0xb7c327f5 in SVMain () from /usr/lib/openoffice/program/libvcl680li.so
No locals.
#10 0x08060be6 in main ()
No locals.

Without openoffice.org-dbg

~$ gdb  /usr/lib/openoffice/program/soffice.bin
GNU gdb 6.6-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(no debugging symbols found)
Using host libthread_db library "/lib/i686/cmov/libthread_db.so.1".
(gdb) r
Starting program: /usr/lib/openoffice/program/soffice.bin
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
........................
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1244367152 (LWP 29452)]
(no debugging symbols found)

.......................
(no debugging symbols found)
warning: Lowest section in /usr/lib/libicudata.so.36 is .hash at 000000b4
(no debugging symbols found)
......................
(no debugging symbols found)

Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread -1244367152 (LWP 29452)]
0xb5cd2f48 in SalDisplay::Init () from
/usr/lib/openoffice/program/libvclplug_gen680li.so
(gdb) bt full
#0  0xb5cd2f48 in SalDisplay::Init () from
/usr/lib/openoffice/program/libvclplug_gen680li.so
No symbol table info available.
#1  0xb5cd4200 in SalX11Display::SalX11Display () from
/usr/lib/openoffice/program/libvclplug_gen680li.so
No symbol table info available.
#2  0xb5ccad1d in SalXLib::Init () from
/usr/lib/openoffice/program/libvclplug_gen680li.so
No symbol table info available.
#3  0xb5cca01b in X11SalData::Init () from
/usr/lib/openoffice/program/libvclplug_gen680li.so
No symbol table info available.
#4  0xb5cd5042 in create_SalInstance () from
/usr/lib/openoffice/program/libvclplug_gen680li.so
No symbol table info available.
#5  0xb7ee3442 in ?? () from /usr/lib/openoffice/program/libvcl680li.so
No symbol table info available.
#6  0x0809e4b8 in ?? ()
No symbol table info available.
#7  0x0809e2e0 in ?? ()
No symbol table info available.
#8  0x00000000 in ?? ()
No symbol table info available.



Reply to: