FreeBSD Bugzilla – Attachment 173581 Details for
Bug 211367
lang/mono net-p2p/sonarr Sonarr crashes on startup with SIGSEGV since base r296727 on 10.3-STABLE
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fill phdr value for rtld itself when reporting it in dl_iterate_phdr.
1.patch (text/plain), 780 bytes, created by
Konstantin Belousov
on 2016-08-12 11:36:33 UTC
(
hide
)
Description:
Fill phdr value for rtld itself when reporting it in dl_iterate_phdr.
Filename:
MIME Type:
Creator:
Konstantin Belousov
Created:
2016-08-12 11:36:33 UTC
Size:
780 bytes
patch
obsolete
>diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c >index ca722cf..d891d52 100644 >--- a/libexec/rtld-elf/rtld.c >+++ b/libexec/rtld-elf/rtld.c >@@ -1916,6 +1916,7 @@ static void > init_rtld(caddr_t mapbase, Elf_Auxinfo **aux_info) > { > Obj_Entry objtmp; /* Temporary rtld object */ >+ const Elf_Ehdr *ehdr; > const Elf_Dyn *dyn_rpath; > const Elf_Dyn *dyn_soname; > const Elf_Dyn *dyn_runpath; >@@ -1954,6 +1955,9 @@ init_rtld(caddr_t mapbase, Elf_Auxinfo **aux_info) > > relocate_objects(&objtmp, true, &objtmp, 0, NULL); > } >+ ehdr = (Elf_Ehdr *)mapbase; >+ objtmp.phdr = (Elf_Phdr *)((char *)mapbase + ehdr->e_phoff); >+ objtmp.phsize = ehdr->e_phnum * sizeof(objtmp.phdr[0]); > > /* Initialize the object list. */ > TAILQ_INIT(&obj_list);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 211367
:
173444
|
173445
|
173446
| 173581