pkgsrc-Bugs archive

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

Re: pkg/53414: mplayer tries to write-enable text segment on NetBSD/i386-8.0_RC2, fails.



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

From: "John D. Baker" <jdbaker%mylinuxisp.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
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@localhost 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
 


Home | Main Index | Thread Index | Old Index