Project

General

Profile

Actions

Bug #9833

closed

elfedit dumps core on incorrect file

Added by Alexander Pyhalov over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
2018-09-12
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

$ wget 'https://github.com/joyent/illumos-kvm-cmd/blob/master/share/qemu/openbios-ppc?raw=true'
$ /usr/bin/elfedit -re dyn:runpath openbios-ppc\?raw\=true 
Segmentation Fault (core dumped)

$ mdb core
Loading modules: [ libc.so.1 ld.so.1 ]
> ::status
debugging core file of elfedit (64-bit) from buildzone.oi-build.r61.net
file: /usr/bin/amd64/elfedit
initial argv: /usr/bin/elfedit -re dyn:runpath openbios-ppc?raw=true
threading model: native threads
status: process terminated by SIGSEGV (Segmentation Fault), addr=0
> $C
fffffd7fffdff9c0 libc.so.1`strncpy+0x18b3()
fffffd7fffdff9f0 init_obj_state+0x11d()
fffffd7fffdffa70 main+0x1d5()
fffffd7fffdffaa0 _start_crt+0x83()
fffffd7fffdffab0 _start+0x18()

The issue was triggered by oi-userland tool which tries automatically remove rpath from binary files.

Actions

Also available in: Atom PDF