Path: csiph.com!feeder.erje.net!2.eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod From: Scott Talbert Newsgroups: linux.debian.maint.python Subject: Re: Broken dbgsym packages for Python 3 Date: Tue, 05 Jun 2018 06:20:02 +0200 Message-ID: References: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Tue Jun 5 04:11:38 2018 Old-Return-Path: X-Amavis-Spam-Status: No, score=-6.079 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, LDO_WHITELIST=-5, MISSING_HEADERS=1.021] autolearn=no autolearn_force=no X-Policyd-Weight: using cached result; rate: -6.1 Dkim-Signature: v=1; a=rsa-sha256; c=simple/simple; d=techie.net; s=default; t=1528171881; bh=Q0jlBaymlqBsuMY/R1+7S8r7Vi8BPkGXFaCG3SPgTzI=; h=Date:From:cc:Subject:In-Reply-To:References:From; b=2tLwwYqg/RmpYFicQbW/9av4r+mPHTUo7FTI2I5SJP+aEPr1WFUgqikq9fgs3pZ+y 5uFZz10UbKfwhYCH5xhU7OHxANs/cMmbm6AdY5zUxoZsh3dD1dkxd5OfJr/bGi0bvX RTHtFs99yWIMhW4AAzXtBoyGztTtocl3oz+6vtDo= X-X-Sender: talbert@bear.techie.net User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Mailing-List: archive/latest/16013 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/alpine.DEB.2.20.1806042357180.29502@bear.techie.net Approved: robomod@news.nic.it Lines: 36 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: debian-python@lists.debian.org X-Original-Date: Tue, 5 Jun 2018 00:11:21 -0400 (EDT) X-Original-Message-ID: X-Original-References: <3475723.sHTRMIgmfr@kitterma-e6430> <6fed3179-ce15-75c7-4124-678a27b564c6@debian.org> Xref: csiph.com linux.debian.maint.python:10607 On Mon, 4 Jun 2018, Matthias Klose wrote: >>> I've got a package (wxpython4.0) that builds modules for both Python 2.7 >>> and Python 3. When I rebuilt the package in early May, I started getting >>> the lintian warning debug-file-with-no-debug-symbols for the Python 3 >>> dbgsym packages only. Sure enough, looking at those files, there is not >>> much there. The Python 2.7 dbgsym files are fine. Given that I haven't >>> changed anything in how the Python 3 modules are compiled, it seems that >>> some outside change in the distribution has caused this. Has anyone else >>> noticed this, or have any idea what might have caused these dbgsym >>> packages to stop working? >> >> The -dbgsym packages don't work for Python anyway because you need to call >> the >> debug interpreter, so I don't think it matters much either way. > > Usually the python*-*-dbg packages contain two things: > > - the unstripped extensions for the dbg interpreter > - the debug symbols for the python*-* packages. > > If you don't have both of these, you should investigate why. Yes, I'm talking about the automatically generated -dbgsym packages that contain the /usr/lib/debug/.build-id/... files. I have looked into it further and the problem seems to be happening during the link phase. I checked the individual .o files (for the Python 3 version) and they all contain .debug_str and I can see the symbol names with readelf --debug-dump=str. But then after linking, they are gone. I ran the exact same link command on the Python 2 .o files and the resulting .so has the debug info. Rather bizarre. I don't know what to think. g++ (or whatever actually does the linking?) doesn't like the Python 3 debug info and discards it? Scott