NetBSD Problem Report #53414
From www@NetBSD.org Fri Jun 29 23:38:19 2018
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id B079A7A157
for <gnats-bugs@gnats.NetBSD.org>; Fri, 29 Jun 2018 23:38:19 +0000 (UTC)
Message-Id: <20180629233818.553877A218@mollari.NetBSD.org>
Date: Fri, 29 Jun 2018 23:38:18 +0000 (UTC)
From: jdbaker@mylinuxisp.com
Reply-To: jdbaker@consolidated.net
To: gnats-bugs@NetBSD.org
Subject: mplayer tries to write-enable text segment on NetBSD/i386-8.0_RC2, fails.
X-Send-Pr-Version: www-1.0
>Number: 53414
>Notify-List: jdbaker@consolidated.net
>Category: pkg
>Synopsis: mplayer tries to write-enable text segment on NetBSD/i386-8.0_RC2, fails.
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: pkg-manager
>State: suspended
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jun 29 23:40:00 +0000 2018
>Closed-Date:
>Last-Modified: Sun Apr 02 23:25:01 +0000 2023
>Originator: John D. Baker
>Release: NetBSD/i386-8.0_RC2, pkgsrc-HEAD (pre-pkgsrc-2018Q2)
>Organization:
>Environment:
NetBSD verthandi 8.0_RC2 NetBSD 8.0_RC2 (VERTHANDI) #30: Sun Jun 24 11:32:15 CDT 2018 sysop@plex760.technoskunk.fur:/r0/build/netbsd-8/obj/i386/sys/arch/i386/compile/VERTHANDI i386
>Description:
Previous appended to pkg/53319, requested to file new PR.
On my i386-8.0_RC2 system, mplayer built from recent pkgsrc-HEAD (in
the freeze before pkgsrc-2018Q2) fails to run as follows:
$ mplayer
mplayer: text relocations
mplayer: Cannot write-enable text segment: Permission denied
Running mplayer through 'ktruss' ends with:
[...]
1541 1 mplayer open("/usr/local/lib/libcrypt.so.1", 0, 0xbfb613cc) Err#2 ENOENT
1541 1 mplayer open("/lib/libcrypt.so.1", 0, 0xbfb613cc) = 3
1541 1 mplayer __fstat50(0x3, 0xbfb613cc) = 0
1541 1 mplayer mmap(0, 0x1000, 0x1, 0x1, 0x3, 0, 0, 0) = 0xaade5000
1541 1 mplayer munmap(0xaade5000, 0x1000) = 0
1541 1 mplayer mmap(0, 0xb000, 0x5, 0x2, 0x3, 0, 0, 0) = 0xaaddb000
1541 1 mplayer mmap(0xaade1000, 0x2000, 0x3, 0x12, 0x3, 0, 0x5000, 0) = 0xaade1000
1541 1 mplayer mmap(0xaade3000, 0x3000, 0x3, 0x1012, 0xffffffff, 0, 0, 0) = 0xaade3000
1541 1 mplayer close(0x3) = 0
1541 1 mplayer write(0x2, 0xbfb619ec, 0x19) = 25
"mplayer: text relocations"
1541 1 mplayer write(0x2, 0xbac88872, 0x1) = 1
"\n"
1541 1 mplayer mprotect(0x26000, 0x2c9000, 0x3) Err#13 EACCES
1541 1 mplayer write(0x2, 0xbfb61a00, 0x3c) = 60
"mplayer: Cannot write-enable text segment: Permission denied"
1541 1 mplayer write(0x2, 0xbac88872, 0x1) = 1
"\n"
1541 1 mplayer exit(0x1)
So, mprotect() is being called with prot=3 (-wx) for a region of memory
at 0x26000.
Looking earlier in the 'ktruss' output shows several instances of
"26000". Two are the requsted length for mmap()ing
"/usr/lib/libexpat.so.2" and "/usr/X11R7/lib/libxcb.so.2", respectively.
Another is a byte offset into "/usr/lib/liblzma.so.2" to be mmap()ed.
The rest are tails of longer addresses either requested of or returned
by mmap().
Not sure what it's doing, then.
Even built with the "debug" option, running mplayer under 'gdb' is
not particularly informative:
[...]
Reading symbols from mplayer...done.
(gdb) run
Starting program: /usr/pkg/bin/mplayer
/usr/pkg/bin/mplayer: text relocations
Program received signal SIGSEGV, Segmentation fault.
_rtld_relocate_plt_lazy (obj=obj@entry=0xb48d7000)
at /x/netbsd-8/src/libexec/ld.elf_so/arch/i386/mdreloc.c:210
210 *where += (Elf_Addr)obj->relocbase;
(gdb) bt
#0 _rtld_relocate_plt_lazy (obj=obj@entry=0xb48d7000)
at /x/netbsd-8/src/libexec/ld.elf_so/arch/i386/mdreloc.c:210
#1 0xbb24c515 in _rtld_relocate_objects (first=0xb48d7000,
bind_now=bind_now@entry=false)
at /x/netbsd-8/src/libexec/ld.elf_so/reloc.c:213
#2 0xbb24ae89 in _rtld (sp=<optimized out>, relocbase=3139731456)
at /x/netbsd-8/src/libexec/ld.elf_so/rtld.c:694
#3 0xbb2484aa in .rtld_start () from /usr/libexec/ld.elf_so
(gdb) list
205 Elf_Addr *where = (Elf_Addr *)(obj->relocbase + rel->r_offset);
206
207 assert(ELF_R_TYPE(rel->r_info) == R_TYPE(JMP_SLOT));
208
209 /* Just relocate the GOT slots pointing into the PLT */
210 *where += (Elf_Addr)obj->relocbase;
211 rdbg(("fixup !main in %s --> %p", obj->path, (void *)*where));
212 }
213
214 return 0;
(gdb) continue
Continuing.
Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
(gdb) quit
As some have noted, other ffmpeg3 users work OK on i386 (notably
firefox).
Any clues? 'mplayer' is the last show-stopper keeping me from using
netbsd-8 on my i386 systems.
For the record, my "mplayer" is built with the following options:
PKG_DEFAULT_OPTIONS+=pam ssl oss -cups -pulseaudio -alsa -dbus -gvfs
PKG_DEFAULT_OPTIONS+=-jack -arts
PKG_OPTIONS.mplayer+=aalib caca dts ggi mplayer-ssse3 mplayer-win32 debug
>How-To-Repeat:
See above. Also affects i386-current.
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: leot@NetBSD.org
State-Changed-When: Thu, 09 Aug 2018 22:59:24 +0000
State-Changed-Why:
Probably PaX MPROTECT related.
From: Leonardo Taccari <leot@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/53414: mplayer tries to write-enable text segment on NetBSD/i386-8.0_RC2, fails.
Date: Fri, 10 Aug 2018 00:58:11 +0200
Hello John,
jdbaker@mylinuxisp.com writes:
> >Number: 53414
> >Category: pkg
> >Synopsis: mplayer tries to write-enable text segment on NetBSD/i3=
86-8.0_RC2, fails.
> >Confidential: no
> >Severity: serious
> >Priority: high
> >Responsible: pkg-manager
> >State: open
> >Class: sw-bug
> >Submitter-Id: net
> >Arrival-Date: Fri Jun 29 23:40:00 +0000 2018
> >Originator: John D. Baker
> >Release: NetBSD/i386-8.0_RC2, pkgsrc-HEAD (pre-pkgsrc-2018Q2)
> >Organization:
> >Environment:
> NetBSD verthandi 8.0_RC2 NetBSD 8.0_RC2 (VERTHANDI) #30: Sun Jun 24 11:3=
2:15 CDT 2018 sysop@plex760.technoskunk.fur:/r0/build/netbsd-8/obj/i386/s=
ys/arch/i386/compile/VERTHANDI i386
>
> >Description:
> Previous appended to pkg/53319, requested to file new PR.
>
> On my i386-8.0_RC2 system, mplayer built from recent pkgsrc-HEAD (in
> the freeze before pkgsrc-2018Q2) fails to run as follows:
>
> $ mplayer
> mplayer: text relocations
> mplayer: Cannot write-enable text segment: Permission denied
> [...]
Can you please try to add:
NOT_PAX_MPROTECT_SAFE+=3D bin/mplayer
in pkgsrc/multimedia/mplayer/Makefile before the
`USE_TOOLS+=3D pkg-config' line (actually every line is
probably okay) and then `make replace'?
Thank you!
From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/53414: mplayer tries to write-enable text segment on
NetBSD/i386-8.0_RC2, fails.
Date: Sat, 11 Aug 2018 11:44:57 -0500 (CDT)
On Thu, 9 Aug 2018, Leonardo Taccari wrote:
> jdbaker@mylinuxisp.com writes:
>
> > On my i386-8.0_RC2 system, mplayer built from recent pkgsrc-HEAD (in
> > the freeze before pkgsrc-2018Q2) fails to run as follows:
> >
> > $ mplayer
> > mplayer: text relocations
> > mplayer: Cannot write-enable text segment: Permission denied
> > [...]
>
> Can you please try to add:
>
> NOT_PAX_MPROTECT_SAFE+= bin/mplayer
>
> in pkgsrc/multimedia/mplayer/Makefile before the
> `USE_TOOLS+= pkg-config' line (actually every line is
> probably okay) and then `make replace'?
Now on i386-8.0_STABLE...
As I had removed "mplayer" entirely, rather than replace, I performed
a fresh "package-install" with the above modification to the package
Makefile. The resulting 'mplayer' now simply crashes with:
$ mplayer
mplayer: text relocations
Memory fault (core dumped)
'gdb' shows:
[...]
Core was generated by `mplayer'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0xbaff1790 in ?? ()
(gdb) bt
#0 0xbaff1790 in ?? ()
#1 0xbb003000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
I'll see about building with the "debug" option along with
"INSTALL_UNSTRIPPED=yes" and "C{,XX}FLAGS+=-ggdb"
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/53414: mplayer tries to write-enable text segment on
NetBSD/i386-8.0_RC2, fails.
Date: Sat, 11 Aug 2018 11:47:53 -0500 (CDT)
On Sat, 11 Aug 2018, John D. Baker wrote:
> 'gdb' shows:
>
> [...]
> Core was generated by `mplayer'.
> Program terminated with signal SIGSEGV, Segmentation fault.
> #0 0xbaff1790 in ?? ()
> (gdb) bt
> #0 0xbaff1790 in ?? ()
> #1 0xbb003000 in ?? ()
> Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Attempting to run 'mplayer' under 'gdb' directly shows:
$ gdb mplayer
[...]
(gdb) run
Starting program: /usr/pkg/bin/mplayer
/usr/pkg/bin/mplayer: text relocations
Program received signal SIGSEGV, Segmentation fault.
0xbb3f7790 in _rtld_relocate_plt_lazy () from /usr/libexec/ld.elf_so
(gdb) bt
#0 0xbb3f7790 in _rtld_relocate_plt_lazy () from /usr/libexec/ld.elf_so
#1 0xbb3fb515 in _rtld_relocate_objects () from /usr/libexec/ld.elf_so
#2 0xbb3f9e89 in _rtld () from /usr/libexec/ld.elf_so
#3 0xbb3f74aa in .rtld_start () from /usr/libexec/ld.elf_so
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/53414: mplayer tries to write-enable text segment on
NetBSD/i386-8.0_RC2, fails.
Date: Sat, 11 Aug 2018 13:44:23 -0500 (CDT)
On Sat, 11 Aug 2018, John D. Baker wrote:
> I'll see about building with the "debug" option along with
> "INSTALL_UNSTRIPPED=yes" and "C{,XX}FLAGS+=-ggdb"
Also installed the {,x}debug sets. Running 'mplayer' by itself may
produce a core file that 'gdb' interprets as having a corrupt stack
frame as shown in a previous addendum to this PR.
Other times, as well as running under 'gdb' directly produces:
$ gdb mplayer mplayer.core
[...]
Reading symbols from mplayer...done.
[New process 1]
warning: Can't read pathname for load map: Unknown error: 4294967295.
Core was generated by `mplayer'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 _rtld_relocate_plt_lazy (obj=obj@entry=0xb3dd3000)
at /x/netbsd-8/src/libexec/ld.elf_so/arch/i386/mdreloc.c:210
210 *where += (Elf_Addr)obj->relocbase;
(gdb) bt
#0 _rtld_relocate_plt_lazy (obj=obj@entry=0xb3dd3000)
at /x/netbsd-8/src/libexec/ld.elf_so/arch/i386/mdreloc.c:210
#1 0xbb90d515 in _rtld_relocate_objects (first=0xb3dd3000,
bind_now=bind_now@entry=false)
at /x/netbsd-8/src/libexec/ld.elf_so/reloc.c:213
#2 0xbb90be89 in _rtld (sp=<optimized out>, relocbase=3146813440)
at /x/netbsd-8/src/libexec/ld.elf_so/rtld.c:694
#3 0xbb9094aa in .rtld_start () from /usr/libexec/ld.elf_so
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
State-Changed-From-To: feedback->open
State-Changed-By: leot@NetBSD.org
State-Changed-When: Mon, 13 Aug 2018 00:50:44 +0000
State-Changed-Why:
Feedback provided, probably not (or not just) PaX MPROTECT related.
State-Changed-From-To: open->feedback
State-Changed-By: maya@NetBSD.org
State-Changed-When: Mon, 27 May 2019 02:16:31 +0000
State-Changed-Why:
Asked a question.
From: coypu@sdf.org
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/53414: mplayer tries to write-enable text segment on
NetBSD/i386-8.0_RC2, fails.
Date: Mon, 27 May 2019 02:16:03 +0000
This change happened during the discussion, is it not sufficient?
https://github.com/NetBSD/pkgsrc/commit/9d7ad19d776ebef5f6ab02738de221728041e473
From: "John D. Baker" <jdbaker@consolidated.net>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/53414: mplayer tries to write-enable text segment on
NetBSD/i386-8.0_RC2, fails.
Date: Sun, 26 May 2019 21:48:27 -0500 (CDT)
On Mon, 27 May 2019, coypu@sdf.org wrote:
> This change happened during the discussion, is it not sufficient?
> https://github.com/NetBSD/pkgsrc/commit/9d7ad19d776ebef5f6ab02738de221728041e473
The URL above indicates this change was JUST committed to a github
repository. When it hits pkgsrc anonCVS I'll update and give it a try.
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]consolidated[flyspeck]net OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
From: coypu@sdf.org
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/53414: mplayer tries to write-enable text segment on
NetBSD/i386-8.0_RC2, fails.
Date: Mon, 27 May 2019 03:28:09 +0000
Ah no, it's a year old commit.
The github mirror is behind, not ahead of anoncvs.
From: "John D. Baker" <jdbaker@consolidated.net>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/53414: mplayer tries to write-enable text segment on
NetBSD/i386-8.0_RC2, fails.
Date: Sun, 26 May 2019 22:50:19 -0500 (CDT)
On Mon, 27 May 2019, coypu@sdf.org wrote:
> Ah no, it's a year old commit.
D'oh! Reading to the end of the datestamp is hard.
I should likely have it then. Will give it a try soon-ish.
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]consolidated[flyspeck]net OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
From: "John D. Baker" <jdbaker@consolidated.net>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/53414: mplayer tries to write-enable text segment on
NetBSD/i386-8.0_RC2, fails.
Date: Sun, 26 May 2019 23:03:50 -0500 (CDT)
On Mon, 27 May 2019, coypu@sdf.org wrote:
> This change happened during the discussion, is it not sufficient?
> https://github.com/NetBSD/pkgsrc/commit/9d7ad19d776ebef5f6ab02738de221728041e473
I updated mplayer as of pkgsrc-2019Q1. On i386-current, it still fails:
$ mplayer
mplayer: text relocations
mplayer: Cannot write-enable text segment: Permission denied
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]consolidated[flyspeck]net OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
State-Changed-From-To: feedback->open
State-Changed-By: maya@NetBSD.org
State-Changed-When: Mon, 27 May 2019 12:04:23 +0000
State-Changed-Why:
still an issue.
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: Re: pkg/53414: mplayer tries to write-enable text segment on NetBSD/i386-8.0_RC2,
fails.
Date: Tue, 28 May 2019 01:03:10 +0900
Do you have the latest ffmpeg3, libdv, x264-devel, and xvidcore
from pkgsrc-2019Q1? mplayer works here:
---
mirage-% uname -a
NetBSD mirage 8.1_RC1 NetBSD 8.1_RC1 (GENERIC) #0: Tue May 14 17:21:59 UTC 2019 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/i386/compile/GENERIC i386
mirage-% pkg_info mplayer
Information for mplayer-1.3.0nb3:
Comment:
Fast, cross-platform movie player
Requires:
mplayer-share>=1.3.0
cdparanoia>=3.0.9.8nb5
libdv>=0.104nb2
libdvdread>=4.1.3nb1
libdvdnav>=5.0
esound>=0.2.41nb1
faad2>=2.6.1
giflib>=5.1.0
jpeg>=9
mpg123>=1.0.0
libmad>=0.15.1bnb1
nas>=1.7bnb2
png>=1.6.0nb1
glib2>=2.34.0
pulseaudio>=12.0
libvorbis>=1.1.0nb1
SDL>=1.2.15nb17
libtheora>=1.0alpha3nb1
x264-devel>=20180224
xvidcore>=1.1.0nb1
libvdpau>=0.3
fontconfig>=2.13.0
ffmpeg3>=3.4.5nb2
libass>=0.14.0nb2
Description:
MPlayer is a movie player for LINUX (runs on many other Unices,
and non-x86 CPUs). It plays most MPEG, VOB, AVI, VIVO, ASF/WMV,
QT/MOV, FLI, RM, NuppelVideo, yuv4mpeg, FILM, RoQ files, supported
by many native, XAnim, and Win32 DLL codecs. You can watch VideoCD,
SVCD, DVD, 3ivx, and even DivX movies too. The another big feature
of mplayer is the wide range of supported output drivers. It works
with X11, Xv, DGA, OpenGL, SVGAlib, fbdev, AAlib, DirectFB, but
you can use GGI and SDL (and this way all their drivers) and some
lowlevel card-specific drivers (for Matrox, 3Dfx, and Radeon) too!
Most of them support software or hardware scaling, so you can
enjoy movies in fullscreen. It also sports nice big antialiased
shaded subtitles (10 supported types) with european/ISO 8859-1,
2 (hungarian, english, czech, etc), cyrillic, korean fonts, and
OSD.
Homepage:
http://www.mplayerhq.hu/
mirage-% mplayer
MPlayer 1.3.0-5.5.0 (C) 2000-2016 MPlayer Team
224 audio & 451 video codecs
Usage: mplayer [options] [url|path/]filename
Basic options: (complete list in the man page)
-vo <drv> select video output driver ('-vo help' for a list)
-ao <drv> select audio output driver ('-ao help' for a list)
vcd://<trackno> play (S)VCD (Super Video CD) track (raw device, no mount)
dvd://<titleno> play DVD title from device instead of plain file
-alang/-slang select DVD audio/subtitle language (by 2-char country code)
-ss <position> seek to given (seconds or hh:mm:ss) position
-nosound do not play sound
-fs fullscreen playback (or -vm, -zoom, details in the man page)
-x <x> -y <y> set display resolution (for use with -vm or -zoom)
-sub <file> specify subtitle file to use (also see -subfps, -subdelay)
-playlist <file> specify playlist file
-vid x -aid y select video (x) and audio (y) stream to play
-fps x -srate y change video (x fps) and audio (y Hz) rate
-pp <quality> enable postprocessing filter (details in the man page)
-framedrop enable frame dropping (for slow machines)
Basic keys: (complete list in the man page, also check input.conf)
<- or -> seek backward/forward 10 seconds
down or up seek backward/forward 1 minute
pgdown or pgup seek backward/forward 10 minutes
< or > step backward/forward in playlist
p or SPACE pause movie (press any key to continue)
q or ESC stop playing and quit program
+ or - adjust audio delay by +/- 0.1 second
o cycle OSD mode: none / seekbar / seekbar + timer
* or / increase or decrease PCM volume
x or z adjust subtitle delay by +/- 0.1 second
r or t adjust subtitle position up/down, also see -vf expand
* * * SEE THE MAN PAGE FOR DETAILS, FURTHER (ADVANCED) OPTIONS AND KEYS * * *
mirage-%
---
Izumi Tsutsui
From: "John D. Baker" <jdbaker@consolidated.net>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/53414: mplayer tries to write-enable text segment on
NetBSD/i386-8.0_RC2, fails.
Date: Mon, 27 May 2019 15:36:13 -0500 (CDT)
On Mon, 27 May 2019, Izumi Tsutsui wrote:
> Do you have the latest ffmpeg3, libdv, x264-devel, and xvidcore
> from pkgsrc-2019Q1? mplayer works here:
It appears "libdv" and "xvidcore" didn't bump version/revision since
pkgsrc-2018Q2, so they didn't get rebuilt. I'll rebuild them and try
again.
In case something included/excluded by my PKG_OPTIONS is still causing
trouble, I build with:
PKG_DEFAULT_OPTIONS+=pam ssl oss -cups -pulseaudio -alsa -dbus -gvfs
PKG_DEFAULT_OPTIONS+=-jack -arts
and
PKG_OPTIONS.ffmpeg3+=fdk-aac opencore-amr opus rtmp tesseract x265 xcb
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]consolidated[flyspeck]net OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
From: "John D. Baker" <jdbaker@consolidated.net>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/53414: mplayer tries to write-enable text segment on
NetBSD/i386-8.0_RC2, fails.
Date: Mon, 27 May 2019 15:41:55 -0500 (CDT)
On Mon, 27 May 2019, John D. Baker wrote:
> In case something included/excluded by my PKG_OPTIONS is still causing
> trouble, I build with:
Oh, and:
PKG_OPTIONS.mplayer+=aalib caca dts ggi mplayer-ssse3 mplayer-win32
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]consolidated[flyspeck]net OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
From: "John D. Baker" <jdbaker@consolidated.net>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/53414: mplayer tries to write-enable text segment on
NetBSD/i386-8.0_RC2, fails.
Date: Mon, 27 May 2019 16:20:16 -0500 (CDT)
On Mon, 27 May 2019, John D. Baker wrote:
> It appears "libdv" and "xvidcore" didn't bump version/revision since
> pkgsrc-2018Q2, so they didn't get rebuilt. I'll rebuild them and try
> again.
Rebuilding those didn't help. I've gone through all the mplayer
dependencies and am rebuilding all those that were not built from
pkgsrc-2019Q1.
May try the same with ffmpeg3 in case it matters.
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]consolidated[flyspeck]net OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
From: "John D. Baker" <jdbaker@consolidated.net>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/53414: mplayer tries to write-enable text segment on
NetBSD/i386-8.0_RC2, fails.
Date: Mon, 27 May 2019 19:26:04 -0500 (CDT)
On Mon, 27 May 2019, John D. Baker wrote:
> Rebuilding those didn't help. I've gone through all the mplayer
> dependencies and am rebuilding all those that were not built from
> pkgsrc-2019Q1.
>
> May try the same with ffmpeg3 in case it matters.
I've rebuilt all dependencies of both mplayer and ffmpeg3 as found in
pkgsrc-2019Q1. No change. Still gets:
$ mplayer
mplayer: text relocations
mplayer: Cannot write-enable text segment: Permission denied
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]consolidated[flyspeck]net OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/53414: mplayer tries to write-enable text segment on
NetBSD/i386-8.0_RC2, fails.
Date: Tue, 28 May 2019 05:23:46 +0000
On Tue, May 28, 2019 at 12:30:01AM +0000, John D. Baker wrote:
> I've rebuilt all dependencies of both mplayer and ffmpeg3 as found in
> pkgsrc-2019Q1. No change. Still gets:
>
> $ mplayer
> mplayer: text relocations
> mplayer: Cannot write-enable text segment: Permission denied
Do ffmpeg3's bins start?
Also, readelf -r on each elf file will tell you which sections have
relocations; that should make it possible to tell which file is built
wrong. (assuming you don't know yet, anyway, might have missed it in
the scroll)
--
David A. Holland
dholland@netbsd.org
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: Re: pkg/53414: mplayer tries to write-enable text segment on NetBSD/i386-8.0_RC2,fails.
Date: Wed, 29 May 2019 00:17:09 +0900
It looks mplayer-win32 option (i.e. win32-codecs package) causes
the error.
---
Izumi Tsutsui
From: "John D. Baker" <jdbaker@consolidated.net>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/53414: mplayer tries to write-enable text segment on
NetBSD/i386-8.0_RC2, fails.
Date: Tue, 28 May 2019 13:22:35 -0500 (CDT)
On Tue, 28 May 2019, David Holland wrote:
> Do ffmpeg3's bins start?
Thanks for the clue. Looks like:
$ ffmpeg3
/usr/pkg/lib/libx265.so.169: text relocations
/usr/pkg/lib/libx265.so.169: Cannot write-enable text segment: Permission denied
since I build my ffmpeg* with the x265 option.
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]consolidated[flyspeck]net OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 19 Jul 2021 03:55:39 +0000
State-Changed-Why:
I'm pretty sure I just saw that x265 was fixed in another PR, so is
this still broken?
From: "John D. Baker" <jdbaker@consolidated.net>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/53414: mplayer tries to write-enable text segment on
NetBSD/i386-8.0_RC2, fails.
Date: Mon, 6 Mar 2023 19:59:53 -0600 (CST)
In the time since this PR was filed, I've updated all my systems to
10.0_BETA and as of pkgsrc-2022Q2 "multimedia/mplayer" no-longer
builds with GCC 10 on i386.
As such, I am unable to test until "mplayer" is again buildable on i386
with GCC 10 (or later).
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]consolidated[flyspeck]net OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
State-Changed-From-To: feedback->suspended
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 02 Apr 2023 03:09:28 +0000
State-Changed-Why:
Wonderful :-(
From: "John D. Baker" <jdbaker@consolidated.net>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/53414 (mplayer tries to write-enable text segment on
NetBSD/i386-8.0_RC2, fails.)
Date: Sun, 2 Apr 2023 02:28:42 -0500 (CDT)
On Sun, 2 Apr 2023, dholland@NetBSD.org wrote:
> Synopsis: mplayer tries to write-enable text segment on NetBSD/i386-8.0_RC2, fails.
>
> State-Changed-From-To: feedback->suspended
> State-Changed-By: dholland@NetBSD.org
> State-Changed-When: Sun, 02 Apr 2023 03:09:28 +0000
> State-Changed-Why:
> Wonderful :-(
See PR pkg/57311.
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]consolidated[flyspeck]net OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/53414 (mplayer tries to write-enable text segment on
NetBSD/i386-8.0_RC2, fails.)
Date: Sun, 2 Apr 2023 23:21:56 +0000
On Sun, Apr 02, 2023 at 09:00:03AM +0000, John D. Baker wrote:
> > State-Changed-From-To: feedback->suspended
> > State-Changed-By: dholland@NetBSD.org
> > State-Changed-When: Sun, 02 Apr 2023 03:09:28 +0000
> > State-Changed-Why:
> > Wonderful :-(
>
> See PR pkg/57311.
Thanks for noting that. I'd just been looking at it (57311) so I
failed to notice there wasn't an explicit reference...
--
David A. Holland
dholland@netbsd.org
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.