gcl-devel
[Top][All Lists]
Advanced

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

Re: [Gcl-devel] shared library version dependencies


From: Camm Maguire
Subject: Re: [Gcl-devel] shared library version dependencies
Date: 11 Aug 2003 17:22:35 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Greetings!

"Vadim V. Zhytnikov" <address@hidden> writes:

> Camm Maguire ?????:
> > Hi Vadim!  Have you gotten anywhere with your '100% reproducible'
> > example of GCL images' implicit dependency on the specific version of
> > shared libraries present at compile time when executed at runtime?
> >
> 
> Hi Camm!
> 
> Below is the faulty Maxima session under GDB. And immediately
> several questions.  First - do you know how to build Maxima with
> debugging symbols?  GCL was built with --enable-debug but maxima
> image built on the top of this GCL has no debugging symbols.

Hi Vadim!  Are you sure this is the case?  I just now verified that a
fresh --enable-debug build, followed by an 
export PATH=<gcldir>/bin:$PATH; ./configure ; make in a maxima-5.9.0
directory gives me a src/binary-gcl/maxima with debugging symbols.
You can double check by checking for the -g flag in gcl as follows:

GCL (GNU Common Lisp)  (2.5.4) Mon Aug 11 21:03:42 UTC 2003
Licensed under GNU Library General Public License
Dedicated to the memory of W. Schelter

Use (help) to get some basic information on how to use GCL.

>compiler::*cc*

"gcc -c -Wall -DVOL=volatile -fsigned-char -fwritable-strings -pipe -g"

>

> Second - what next?  What piece of information shall I find?
>

What we're looking for is a backtrace of the fault, which can be
displayed in gdb with the command 'bt'.  We need a maxima with
debugging symbols first of course.  I hope you can reproduce this
situation with a maxima thus built.  After 'bt', use 'frame n' to look
at the most recent frame in GCL (as opposed to external lib) source,
and inspect variables with 'p <var>'.  If you send me the 'bt' output,
I can help you from there.

Interstingly, the situation I referred to before is occuring now on
ia64, as is particularly common.  There is one dynamic lib that has
changed from build to run time, libncurses5.  I'm beginning to suspect
the readline code.  Trouble is, my example, coming from an official
Debian build, has no debugging symbols too!  If we can't trace this
dowm now, I think I'll change the debian package to include a
debugging symbol build along with the others.

Take care,
 
> ========================================================================
> address@hidden binary-gcl]$ gdb maxima
> GNU gdb ALT Linux (5.2.1-alt2)
> Copyright 2002 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 "i586-alt-linux"...(no debugging symbols
> found)...
> (gdb) set args -eval "(run)"
> (gdb) run
> Starting program: /home/vadim/test/maxima-Y/src/binary-gcl/maxima
> -eval "(run)"
> GCL (GNU Common Lisp)  (2.5.3) Mon Aug 11 20:18:06 MSD 2003
> Licensed under GNU Library General Public License
> Dedicated to the memory of W. Schelter
> 
> Use (help) to get some basic information on how to use GCL.
> Maxima 5.9.0.1cvs http://maxima.sourceforge.net
> Distributed under the GNU Public License. See the file COPYING.
> Dedicated to the memory of William Schelter.
> This is a development version of Maxima. The function bug_report()
> provides bug reporting information.
> (C1) (no debugging symbols found)...(no debugging symbols found)...(no
> debugging symbols found)...
> Program received signal SIGSEGV, Segmentation fault.
> 0x400a8367 in fileno_unlocked () from /lib/libc.so.6
> (gdb)
> 
> =====================================================================
> 
> -- 
>       Vadim V. Zhytnikov
> 
>        <address@hidden>
>       <address@hidden>
> 
> 
> 
> 
> 

-- 
Camm Maguire                                            address@hidden
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah




reply via email to

[Prev in Thread] Current Thread [Next in Thread]