Skip to content
This repository has been archived by the owner on Oct 18, 2020. It is now read-only.

Build should be stripped (optionally) and contain no debug symbols or maps #3

Closed
pombredanne opened this issue Dec 17, 2012 · 14 comments

Comments

@pombredanne
Copy link

The windows builds contain .pdb and .map files
Elfs are not stripped

This can probably make the builds much slimmer

@pombredanne
Copy link
Author

and BTW, thk ++ for these builds! this is great

@alexkasko
Copy link
Owner

I've used only default build settings and was somewhat surprised to see full debug symbols enabled by default. JDK7 reference implementation binaries also contain them.

I think these threads (original, jdk7u backport) explain this, environment variables:

ENABLE_FULL_DEBUG_SYMBOLS=0
ZIP_DEBUGINFO_FILES=0

may be used to build binaries without debug symbols.

It's interesting to see the size of binaries without debug symbols, I'll try to make such build in some days.

@alexkasko
Copy link
Owner

Variables in previous comment were wrong, proper debug symbols disabling is:

FULL_DEBUG_SYMBOLS=0

@alexkasko
Copy link
Owner

I've built openjdk7 windows-amd64 binaries without debug information (installer, zip) they are 62 MB comparing to 74 MB with debug symbols. I'll close this issue, please comment if you need other builds without debug info.

PS: all this is about openjdk7 builds - I'd rather not touch openjdk6 builds, they have their own debug settings.

@alexkasko
Copy link
Owner

@pombredanne All builds starting from 7u40_2.4.1 are stripped from debug symbols.

@pombredanne
Copy link
Author

@alexkasko Thank you ++!

@elazarl
Copy link

elazarl commented Aug 26, 2013

Is it possible to have a build with debug symbols? It could be very handy if you're debugging a platform related issue, and they're pretty cheap.

@alexkasko
Copy link
Owner

@elazarl yes, it's quite easy, I'll build and upload additional debug images in some days.

@alexkasko alexkasko reopened this Aug 26, 2013
@alexkasko
Copy link
Owner

@elazarl I've added debug build downloads for all platforms. Debug symbols are retained for native binaries and for java classes. Haven't tried to debug these builds myself, so please reopen issue in case of errors with them.

@alexkasko
Copy link
Owner

@elazarl , FYI, I've checked debug builds for Mac OS X and found that they don't contain debug symbols for native binaries. Full debug symbols still not implemented on Mac - JDK-7165611. So only classfiles are really 'debug' in Mac debug builds. I'll add a note here once debug symbols on Mac become available in JDK7.

PS: some more information about FDS - maillists link

@elazarl
Copy link

elazarl commented Sep 19, 2013

@alexkasko as always, thanks a bunch. You could think about this issue, "what's the problem, just rebuild it with different configuration", but it always more complicated than it looks like...

@NN---
Copy link

NN--- commented Dec 15, 2015

Is it possible to have pdb file and not the 'diz' file ?
Thanks

@alexkasko
Copy link
Owner

Hi,

On 12/15/2015 08:30 PM, NN wrote:

Is it possible to have pdb file and not the 'diz' file ?

I never used these debug files myself but AFAIK these DIZ files are just
ZIP archives containing (on windows) PDBs and some other stuff. At least
I can see jvm.pdb and jvm.map inside jvm.diz.

Thanks


Reply to this email directly or view it on GitHub:
#3 (comment)

-Alex

@NN---
Copy link

NN--- commented Dec 15, 2015

At first glance I didn't understand what it is.
After opening file in editor I noticed PK so it is easy to unzip it.

The only problem that debuggers don't understand 'diz' flies, they know pdb.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants