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

Include debug information in all builds #2173

Closed
jvsalo opened this issue Mar 10, 2014 · 3 comments
Closed

Include debug information in all builds #2173

jvsalo opened this issue Mar 10, 2014 · 3 comments
Labels
Type: Feature Feature request or new feature
Milestone

Comments

@jvsalo
Copy link

jvsalo commented Mar 10, 2014

Richard Yao suggested we should make sure that ZoL modules always contain debug info to allow debugging crashes, eg. figuring out line numbers, with gdb. On some build systems this works, but on others (eg. my Debian DKMS) you get

Reading symbols from /lib/modules/3.2.0-4-amd64/updates/dkms/zfs.ko...(no debugging symbols found)...done.
(gdb) list *(arc_read+0x5fe)
No symbol table is loaded.  Use the "file" command.
@behlendorf
Copy link
Contributor

The reason debugging symbols are sometimes available and other times not is because this is managed by the distributions default kernel build options. Distributions such as Debian and Ubuntu strip the symbols by default for kernel modules. On Fedora/EPEL systems the symbols will be stripped but can be installed if needed from the -debuginfo packages.

Unfortunately this isn't something we can do upstream. The various downstream maintainers will need to enable this the right way for their distributions. It will also significantly increase the size of the modules although these days I doubt that's much of a real concern.

@behlendorf
Copy link
Contributor

Will be resolved by #2734.

@behlendorf behlendorf modified the milestones: 0.6.4, 0.6.5 Oct 30, 2014
@behlendorf behlendorf modified the milestones: 0.6.5, 0.6.4 Feb 5, 2015
@behlendorf
Copy link
Contributor

Closing as unnecessary until I hear otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Feature request or new feature
Projects
None yet
Development

No branches or pull requests

2 participants