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

Process Killed and empty output file #38

Closed
TaihouKai opened this issue Mar 4, 2022 · 4 comments
Closed

Process Killed and empty output file #38

TaihouKai opened this issue Mar 4, 2022 · 4 comments

Comments

@TaihouKai
Copy link

TaihouKai commented Mar 4, 2022

I am trying to make an isf json file using this command:

./dwarf2json linux --elf /usr/lib/debug/boot/vmlinux-5.4.0-1070-azure --system-map /boot/System.map-5.4.0-1070-azure > ubuntu18.04.6.json

... and the process always turns a "Killed" and the output file will be empty.

I tried

./dwarf2json linux --elf /usr/lib/debug/boot/vmlinux-5.4.0-1070-azure --system-map /boot/System.map-5.4.0-1070-azure >  | xz -c ubuntu18.04.6.json.xz

as well, and it did not fail, but the output .json.xz file was warned with "invalid isf file" when I checked them with isfinfo.IsfInfo of Volatility3.

Is there anything wrong with my command?

@drkmrin78
Copy link
Collaborator

I was running into the same issue, which was running out of memory with no error message.

For reference I was using vmlinux-5.4.0-105-generic from kernel-image-5.4.0-105-dbgsym. wiki.ubuntu

4GB Ubuntu VM failed with (dmesg):

[  148.333415] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/user.slice/user-1000.slice/session-1.scope,task=dwarf2json,pid=1063,uid=1000
[  148.333429] Out of memory: Killed process 1063 (dwarf2json) total-vm:4740112kB, anon-rss:3763916kB, file-rss:0kB, shmem-rss:0kB, UID:1000 pgtables:7488kB oom_score_adj:0
[  148.563516] oom_reaper: reaped process 1063 (dwarf2json), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB

Worked on a 8GB VM, though.

@TaihouKai
Copy link
Author

I was running into the same issue, which was running out of memory with no error message.

For reference I was using vmlinux-5.4.0-105-generic from kernel-image-5.4.0-105-dbgsym. wiki.ubuntu

4GB Ubuntu VM failed with (dmesg):

[  148.333415] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/user.slice/user-1000.slice/session-1.scope,task=dwarf2json,pid=1063,uid=1000
[  148.333429] Out of memory: Killed process 1063 (dwarf2json) total-vm:4740112kB, anon-rss:3763916kB, file-rss:0kB, shmem-rss:0kB, UID:1000 pgtables:7488kB oom_score_adj:0
[  148.563516] oom_reaper: reaped process 1063 (dwarf2json), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB

Worked on a 8GB VM, though.

You're right. It seems like for large DWARF, 8 GB is the minimum requirement.

Note: processing large DWARF files requires a minimum of 8GB RAM.

@ilch1
Copy link
Collaborator

ilch1 commented Aug 7, 2022

I'm going to close this issue, as it looks like you were able to generate a the desired ISF file. Please reopen if you have further questions.

@ilch1 ilch1 closed this as completed Aug 7, 2022
@Abyss-W4tcher
Copy link

Abyss-W4tcher commented Jul 12, 2023

Hello, for anyone having trouble running this tool on a machine without 8GB of RAM, just setup a swap partition (4GB did the trick) : https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-20-04

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

No branches or pull requests

4 participants