Help!

hardening-wrapper and debug symbols

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Development RSS
Next:  Accepted darcsum 1.10-1 (source all)  
Author Message
Peter Eisentraut
External


Since: Jun 01, 2005
Posts: 321



PostPosted: Sat Oct 24, 2009 2:10 pm    Post subject: hardening-wrapper and debug symbols
Archived from groups: linux>debian>devel (more info?)

I found out the hard way that when a package is built with
hardening-wrapper, then debugging it with gdb results in seriously
suboptimal backtraces like this:

#0 0xb7d01424 in __kernel_vsyscall ()
#1 0xb7816d11 in ?? ()
#2 0xb7e973a2 in ?? ()
#3 0xb7e9784b in ?? ()
#4 0xb7f1c8fd in ?? ()
#5 0xb7eeae1b in ?? ()
#6 0xb7eebee7 in ?? ()
#7 0xb7e998d9 in ?? ()
#8 0xb774a7a5 in ?? ()
#9 0xb7d73011 in ?? ()

whether or not I have the -dbg package installed. If I rebuild the
package without hardening-wrapper, I get a normal backtrace (with more
or less information, depending on whether the -dbg package is
installed).

First of all, is this normal? Is there anything that can be done about
it? The http://wiki.debian.org/Hardening page doesn't appear to cover
it.

Since debug packages and hardening-wrapper are both spreading in an
ad-hoc way across packages, it appears that we'll end up with a rather
nonuniform collection of packages that sometimes can be debugged,
sometimes can be debugged a little bit, and sometimes cannot be debugged
at all.

Also, hardening-wrapper describes itself as "experimental" and "for
build testing". Is it appropriate for large-scale use in mainstream
packages intended for release?


--
To UNSUBSCRIBE, email to debian-devel-REQUEST.RemoveThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.RemoveThis@lists.debian.org
Back to top
Julien Cristau
External


Since: Jan 07, 2007
Posts: 396



PostPosted: Sat Oct 24, 2009 2:10 pm    Post subject: Re: hardening-wrapper and debug symbols [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Fri, 2009-10-23 at 15:27 +0300, Peter Eisentraut wrote:
> I found out the hard way that when a package is built with
> hardening-wrapper, then debugging it with gdb results in seriously
> suboptimal backtraces like this:
>
> #0 0xb7d01424 in __kernel_vsyscall ()
> #1 0xb7816d11 in ?? ()
> #2 0xb7e973a2 in ?? ()
> #3 0xb7e9784b in ?? ()
> #4 0xb7f1c8fd in ?? ()
> #5 0xb7eeae1b in ?? ()
> #6 0xb7eebee7 in ?? ()
> #7 0xb7e998d9 in ?? ()
> #8 0xb774a7a5 in ?? ()
> #9 0xb7d73011 in ?? ()
>
> whether or not I have the -dbg package installed. If I rebuild the
> package without hardening-wrapper, I get a normal backtrace (with more
> or less information, depending on whether the -dbg package is
> installed).

This is probably #346409.

Cheers,
Julien


--
To UNSUBSCRIBE, email to debian-devel-REQUEST.DeleteThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.DeleteThis@lists.debian.org
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Development All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum