pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/57445: firefox crashes on startup

The following reply was made to PR pkg/57445; it has been noted by GNATS.

From: Taylor R Campbell <>
Subject: Re: pkg/57445: firefox crashes on startup
Date: Thu, 1 Jun 2023 00:28:00 +0000

 This is a multi-part message in MIME format.
 I pushed some changes to add rtld debug messages about tls:
 Can you:
 1. recompile ld.elf_so with -DDEBUG -DRTLD_DEBUG_RELOC (not
    -DRTLD_DEBUG) and the attached patch (same as at;
 2. save output of `LD_DEBUG=1 firefox' with your patches (it will be
    verrrrrry verbose);
 3. share the result of grepping that output for the combination of
    (a) your debug messages, and
    (b) the string ` tls '; and
 4. share the output of `readelf -ld' and `readelf -r | grep tls' on:
    (a) firefox (the actual executable),
    (b) or whatever it is,
    (d), and
 Content-Type: text/plain; charset="ISO-8859-1"; name="rtldtlshack"
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: attachment; filename="rtldtlshack.patch"
 diff --git a/libexec/ld.elf_so/arch/x86_64/mdreloc.c b/libexec/ld.elf_so/ar=
 index a04c05ea0aa7..adbab16003a7 100644
 --- a/libexec/ld.elf_so/arch/x86_64/mdreloc.c
 +++ b/libexec/ld.elf_so/arch/x86_64/mdreloc.c
 @@ -227,7 +227,7 @@ _rtld_relocate_nonplt_objects(Obj_Entry *obj)
  		case R_TYPE(TPOFF64):
  			if (!defobj->tls_done &&
 -			    _rtld_tls_offset_allocate(obj))
 +			    _rtld_tls_offset_allocate(__UNCONST(defobj)))
  				return -1;
  			*where64 =3D (Elf64_Addr)(def->st_value -

Home | Main Index | Thread Index | Old Index