-
Notifications
You must be signed in to change notification settings - Fork 225
Open
Description
I'm trying to compile Ruby on a Ubuntu 14.04 with dtrace, and it segfaults in libdtrace/drti.c
when it invokes a miniruby it has compiled:
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `./miniruby -I./lib -I. -I.ext/common ./tool/mkconfig.rb -timestamp=.rbconfig.ti'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00002b6c310f7cbe in dtrace_dof_init () at drti.c:201
201 dh.dofhp_addr = elf->e_type == ET_DYN ? lmp->l_addr : 0;
https://github.com/dtrace4linux/linux/blob/master/libdtrace/drti.c#L201
After checking out the code, it is apparent that the link map is NULL
:
Link_map *lmp = 0;
...
dh.dofhp_addr = elf->e_type == ET_DYN ? lmp->l_addr : 0;
Metadata
Metadata
Assignees
Labels
No labels