Comments (5)
Could you provide the output of running sudo strace drgn -k
? Hopefully I can figure out which file failed from that.
Some other general information that would be appreciated:
- What distro and distro version is this on?
- What version of elftutils do you have installed?
eu-readelf --version
should give you that unless you did anything special to get the elfutils libraries.
from drgn.
- Arch Linux
- eu-readelf (elfutils) 0.176
- strace: https://gist.github.com/Nudin/37459465d89db7ef21dc1f217519d752
from drgn.
Ah, it looks like you're trying to debug the official Arch kernel, but Arch doesn't ship debugging information. Unfortunately, the only way to get debugging information on Arch is to build the kernel yourself with CONFIG_DEBUG_INFO=y
. However, drgn should definitely be giving you a better error message here. I can reproduce the issue here, so I'll fix that.
from drgn.
Makes total sense! Adding a proper error message sounds the right way! Thanks for the quick help.
from drgn.
This is fixed by the larger rework in 423d2cd:
$ sudo drgn -k
could not get debugging information for:
/usr/lib/modules/5.3.1-arch1-1-ARCH/kernel/drivers/input/serio/serio.ko.xz (libdwfl error: No DWARF information found)
/usr/lib/modules/5.3.1-arch1-1-ARCH/kernel/drivers/input/serio/i8042.ko.xz (libdwfl error: No DWARF information found)
/usr/lib/modules/5.3.1-arch1-1-ARCH/kernel/drivers/net/net_failover.ko.xz (libdwfl error: No DWARF information found)
/usr/lib/modules/5.3.1-arch1-1-ARCH/kernel/drivers/net/virtio_net.ko.xz (libdwfl error: No DWARF information found)
/usr/lib/modules/5.3.1-arch1-1-ARCH/kernel/drivers/macintosh/mac_hid.ko.xz (libdwfl error: No DWARF information found)
... 40 more
Thanks for reporting this!
from drgn.
Related Issues (20)
- Handle symlinks in path_lookup()
- Drgn reads zeros for memory allocated by vm_map_ram() HOT 4
- Packit is failing because COPYING doesn't exist anymore HOT 5
- Quick Start error,KeyError: 'init_task' HOT 1
- drgn failed to read crash dump on ppc64 HOT 15
- Support `DW_OP_entry_value`/`DW_OP_GNU_entry_value` HOT 8
- libdrgn does not compile on ARM32 HOT 2
- Support Maple tree data structure
- vmtest.vm: failing tests when run locally HOT 2
- Provide easy way to run `contrib` script from CLI HOT 13
- contrib/tcp_sock.py fails for older kernels (<= `v5.18`)
- Need suggestion: do we have APIs to get a member of a struct object for dump and live kernel inside libdrgn HOT 2
- FaultError in stack_trace() HOT 3
- Segmentation fault when drgn finishes with libkdumpfile HOT 7
- Support reading of `vmlinux` in the same folder as `--core` file
- opening of a --vmcore file of a different architecture
- Add Architecture Support to main part of the manual HOT 1
- Help: could not find loaded kernel modules
- Issue finding string literal in readonly memory for userland core HOT 2
- drgn failed to debug vmcore with lzo format HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drgn.