Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Aug 2012 13:30:47 +0300
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Juergen Lock <nox@jelal.kn-bremen.de>
Cc:        current@freebsd.org, freebsd-ports@freebsd.org, gljennjohn@googlemail.com
Subject:   Re: Segfault in rtld - dlopen RTLD_LAZY (was: Re: CFT: vlc 2.0.3 - want to know where it works and where only partly)
Message-ID:  <20120813103047.GD2352@deviant.kiev.zoral.com.ua>
In-Reply-To: <20120812231335.GA35313@triton8.kn-bremen.de>
References:  <1361725.y2QOXzX10J@pcoliver.heesakkers.info> <20120802205625.GA43980@triton8.kn-bremen.de> <20120803142711.1cb981b3@ernst.jennejohn.org> <501BE795.8070407@gwdg.de> <20120803163633.GA2046@triton8.kn-bremen.de> <20120804110952.4f3a9cfd@ernst.jennejohn.org> <201208051531.q75FVJjO087729@triton8.kn-bremen.de> <20120805161353.GF2676@deviant.kiev.zoral.com.ua> <20120805173811.GA91260@triton8.kn-bremen.de> <20120812231335.GA35313@triton8.kn-bremen.de>

next in thread | previous in thread | raw e-mail | index | archive | help

--TybLhxa8M7aNoW+V
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Aug 13, 2012 at 01:13:35AM +0200, Juergen Lock wrote:
> On Sun, Aug 05, 2012 at 07:38:11PM +0200, Juergen Lock wrote:
> > On Sun, Aug 05, 2012 at 07:13:53PM +0300, Konstantin Belousov wrote:
> > > On Sun, Aug 05, 2012 at 05:31:19PM +0200, Juergen Lock wrote:
> > > > Hi kib, -current, seems we have a segfault in rtld when updating
> > > > the multimedia/vlc port from the version currently in ports to the
> > > > 2.0.3 CFT version from here:
> > > >=20
> > > > 	http://people.freebsd.org/~nox/tmp/vlc-2.0.3-006.patch
> > > >=20
> > > > (If you test the LIVEMEDIA knob you also need this update:
> > > >=20
> > > > 	http://people.freebsd.org/~nox/tmp/livemedia-20120404-001.patch
> > > >=20
> > > > )
> > > Please do two things.
> > >=20
> > > 1. Provide me the output of readelf -a for the module that was loaded.
> > >=20
> > > 2. Recompile rtld with debug symbols and redo the build to get the us=
eful
> > > backtrace from core:
> > > 	cd /usr/src/libexec/rtld-elf
> > > 	make clean
> > > 	make all install DEBUG_FLAGS=3D-g
> > >=20
> > Ok, someone who got the crash will have to do this as I couln't
> > reproduce it here (sorry forgot to say...)
> >=20
> I just learned that the missing piece in reproducing this is the
> pulseaudio knob, now I finally have a bt:
>=20
> [...]
> Loaded symbols for /libexec/ld-elf.so.1
> #0  symlook_obj (req=3D0x7fffffffbf40, obj=3D0x800640400) at /d3t/d3t/hom=
e/nox/src10b/src/libexec/rtld-elf/rtld.c:3847
> 3847            for (symnum =3D obj->buckets[req->hash % obj->nbuckets];
> [New Thread 802406400 (LWP 100159/vlc-cache-gen)]
> (gdb) bt
> #0  symlook_obj (req=3D0x7fffffffbf40, obj=3D0x800640400) at /d3t/d3t/hom=
e/nox/src10b/src/libexec/rtld-elf/rtld.c:3847
> #1  0x0000000800608ae7 in symlook_list (req=3D0x7fffffffc120, objlist=3DV=
ariable "objlist" is not available.
> ) at /d3t/d3t/home/nox/src10b/src/libexec/rtld-elf/rtld.c:3611
> #2  0x000000080060911b in symlook_default (req=3D0x7fffffffc1c0, refobj=
=3DVariable "refobj" is not available.
> ) at /d3t/d3t/home/nox/src10b/src/libexec/rtld-elf/rtld.c:3569
> #3  0x000000080060939d in find_symdef (symnum=3D15, refobj=3D0x8006fd000,=
 defobj_out=3D0x7fffffffc260, flags=3D0, cache=3D0x80061d000, lockstate=3D0=
x7fffffffc300)
>     at /d3t/d3t/home/nox/src10b/src/libexec/rtld-elf/rtld.c:1541
> #4  0x0000000800603690 in reloc_non_plt (obj=3D0x8006fd000, obj_rtld=3DVa=
riable "obj_rtld" is not available.
> ) at /d3t/d3t/home/nox/src10b/src/libexec/rtld-elf/amd64/reloc.c:204
> #5  0x0000000800606ae8 in relocate_object (obj=3D0x8006fd000, bind_now=3D=
0 '\0', rtldobj=3D0x800819d00, flags=3D0, lockstate=3D0x7fffffffc300)
>     at /d3t/d3t/home/nox/src10b/src/libexec/rtld-elf/rtld.c:2433
> #6  0x00000008006084a8 in dlopen_object (name=3D0x80243ec80 "../modules/a=
ccess/.libs/libpulsesrc_plugin.so", fd=3DVariable "fd" is not available.
> )
>     at /d3t/d3t/home/nox/src10b/src/libexec/rtld-elf/rtld.c:2392
> #7  0x0000000800608f67 in rtld_dlopen (name=3D0x80243ec80 "../modules/acc=
ess/.libs/libpulsesrc_plugin.so", fd=3D-1, mode=3D1)
>     at /d3t/d3t/home/nox/src10b/src/libexec/rtld-elf/rtld.c:2761
> #8  0x0000000800ad377d in vlc_timer_create () from /usr/ports/multimedia/=
vlc-203a/work/vlc-2.0.3/src/.libs/libvlccore.so.6
> #9  0x0000000800ab9998 in module_gettext () from /usr/ports/multimedia/vl=
c-203a/work/vlc-2.0.3/src/.libs/libvlccore.so.6
> #10 0x0000000800aba0aa in module_list_get () from /usr/ports/multimedia/v=
lc-203a/work/vlc-2.0.3/src/.libs/libvlccore.so.6
> #11 0x0000000800ab9db1 in module_list_get () from /usr/ports/multimedia/v=
lc-203a/work/vlc-2.0.3/src/.libs/libvlccore.so.6
> #12 0x0000000800ab9db1 in module_list_get () from /usr/ports/multimedia/v=
lc-203a/work/vlc-2.0.3/src/.libs/libvlccore.so.6
> #13 0x0000000800aba17d in module_list_get () from /usr/ports/multimedia/v=
lc-203a/work/vlc-2.0.3/src/.libs/libvlccore.so.6
> #14 0x0000000800aba631 in module_list_get () from /usr/ports/multimedia/v=
lc-203a/work/vlc-2.0.3/src/.libs/libvlccore.so.6
> #15 0x0000000800a52573 in libvlc_InternalInit () from /usr/ports/multimed=
ia/vlc-203a/work/vlc-2.0.3/src/.libs/libvlccore.so.6
> #16 0x00000008008227a7 in libvlc_new () from /usr/ports/multimedia/vlc-20=
3a/work/vlc-2.0.3/lib/.libs/libvlc.so.8
> #17 0x0000000000400cd4 in main ()
> (gdb) p obj->buckets
> $1 =3D (const Elf_Hashelt *) 0x804de0160
> (gdb) p req->hash % obj->nbuckets
> $2 =3D 399
> (gdb) p obj->buckets[req->hash % obj->nbuckets]=20
> Cannot access memory at address 0x804de079c
> (gdb) p obj->nbuckets
> $3 =3D 521
Can you show the output of "p *obj" there ?

--TybLhxa8M7aNoW+V
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (FreeBSD)

iEYEARECAAYFAlAo11cACgkQC3+MBN1Mb4iPtQCdElyikop+24b+QZo32xEN3fSx
J3oAoOZwQJtpoo2dtEHL2GogxSlnS9+6
=B9dP
-----END PGP SIGNATURE-----

--TybLhxa8M7aNoW+V--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120813103047.GD2352>