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

Re: Sources for tracing into standard libraries + apt-get source versioning



On Tue, 2005-04-26 at 13:16 -0700, Ross Boylan wrote:
> I am trying to track down an apparent memory problem and, in a move of
> some desperation, though it might be useful to trace into the source
> where the failure occurs (or is noticed).  That's in libc, called from
> libstdc++, as shown in this gdb stack trace
> #0  0x401c02cb in _int_free (av=0x4027e060, mem=0x809e2f8) at
> malloc.c:4209
> #1  0x401bf09f in __libc_free (mem=0x809e298) at malloc.c:3359
> #2  0x400f85b3 in operator delete (ptr=0xc00b3333)
>     at ../../../../src/libstdc++-v3/libsupc++/del_op.cc:39
> #3  0x0804e05b in __valarray_release_memory (__p=0x809e298) at
> valarray_array.h:70
> 
> I installed the -dbg versions of the relevant libraries, but that gets
> me the symbols, not the code.
> 
> How do I get the source that exactly matches the libraries I'm using
> (testing)?
> 
> I did
> apt-get  -t testing source libc6 libstdc++5
> but am concerned about a couple of things.
> 
> First, is this exactly the right version?  The version numbers that are
> being downloaded, and that appear in the changelog, differ from those
> shown for my current packages.  For example libc6 is 2.3.2.ds1-20, but
> the downloaded source (glibc) is 
> Get:3 http://ftp.us.debian.org ../project/experimental/main glibc
> 2.3.5-1 (dsc) [1710B]
> 
> Is this an apt-get bug?  A misunderstanding on my part of how it's
> supposed to work?
A little of both.  Apparently it is considered a missing feature,
already noted (with a patch available, but not applied) in #152129 and a
host of duplicates.  -t has no effect on apt-get source, which always
goes for the newest version.

My second question still stands:
> Second, having obtained the packages, how do I get it to construct the
> sources without doing a full build?
> 

I guess I also need to figure out how to get the right sources too...
-- 
Ross Boylan                                      wk:  (415) 502-4031
530 Parnassus Avenue (Library) rm 115-4          ross@biostat.ucsf.edu
Dept of Epidemiology and Biostatistics           fax: (415) 476-9856
University of California, San Francisco
San Francisco, CA 94143-0840                     hm:  (415) 550-1062



Reply to: