Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stripping changes #4661

Closed
wants to merge 8 commits into from
Closed

stripping changes #4661

wants to merge 8 commits into from

Conversation

lrusak
Copy link
Contributor

@lrusak lrusak commented Jan 30, 2016

picked and fixed up some commits from @stefansaraev

This changes the way that stripping works. @sraue please look over.

@stefansaraev if you want me to remove you as author of the commits let me know (because I had to fixup and reword some of the commits)

Are these all the packages that need stripping or are there others?

@stefansaraev
Copy link
Contributor

Are these all the packages that need stripping or are there others?

they are in my fork. but I removed like 75% of openelec packages there.

you can find out with

find /bin /sbin /usr /lib -perm /o+x | xargs file | grep "not stripped"

also. binary addons will be unstripped now, too. in my git - I want em like that.

@sraue
Copy link
Contributor

sraue commented Feb 1, 2016

whats the benefit from this all?, esp. not using "-s" for the linker?

@MilhouseVH
Copy link
Contributor

If this can improve the crashlog stack traces we get from libc on ARM when not building with debug then I'm all for it. It has increased the size of SYSTEM by 3.7MB (on RPi2) but that's to be expected. Maybe you could strip for release (as this has no crashlog support), partial strip for devel and not strip at all for debug?

@stefansaraev
Copy link
Contributor

3.7MB is nothing, compared to (mostly unneeded) dvb/wlan firmware/drivers included, and nvidia drivers (now 2 drivers in generic..)

I'd say keep it as-is ("partialy" stripped) on release builds, I converted gdb to an addon in my git, that's usable on release builds too, any backtrace is better than corrupted backtrace, or no backtrace at all.

@lrusak
Copy link
Contributor Author

lrusak commented Feb 2, 2016

is that 3.7MB directly from not stripping glibc? I assume not. I'm just building now to see if there is anything else that can/should be stripped.

@MilhouseVH
Copy link
Contributor

Just the size diff between two builds. 3.7MB isn't a big deal if it's useful and better stacktraces would be useful.

@MilhouseVH
Copy link
Contributor

I've noticed that tvheadend and vdr-addon zips have increased in size somewhat (2.3MB and 180KB) since including this change... I guess we're not stripping these addons, is there anything to be gained by not stripping unofficial addons?

@lrusak
Copy link
Contributor Author

lrusak commented Feb 3, 2016

Hmm, the add-ons should be stripped. Not sure why they aren't.

@sraue
Copy link
Contributor

sraue commented Feb 4, 2016

not sure about this PR.... dont like it much actually unless i can see some benefits from this...

@stefansaraev
Copy link
Contributor

you really dont see benefits of proper debugging? you must not be damn serious ;)

@MilhouseVH
Copy link
Contributor

not sure about this PR.... dont like it much actually unless i can see some benefits from this...

Without this PR: http://sprunge.us/TRgH
With this PR: http://sprunge.us/GgRN

That's just running kill -SEGV $(pidof kodi.bin) to force a crash, but the difference (and potential benefit) should be obvious.

@lrusak
Copy link
Contributor Author

lrusak commented Feb 23, 2016

@sraue good to go?

@sraue
Copy link
Contributor

sraue commented Feb 23, 2016

not really...

@lrusak
Copy link
Contributor Author

lrusak commented Feb 23, 2016

The decision is either:

  1. increase the size of builds by a couple MB and have proper stack traces for core dumps
  2. keep having corrupt stack traces

I think options number 1 is the better choice here.

@MilhouseVH
Copy link
Contributor

Hmm, the add-ons should be stripped. Not sure why they aren't.

This is my only "concern" with this PR, otherwise I think it's proven it's worth several times already (in my test builds at least, with non-debug-enabled crashlogs now being useful when before this PR they were basically rubbish and only useful if you were really really lucky).

@lrusak lrusak added this to the 6.95.1 milestone Feb 23, 2016
@lrusak lrusak closed this Mar 13, 2016
@lrusak lrusak deleted the seo-stripping branch March 29, 2016 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants