Bug#839923: [phpmyadmin] Failed opening required '/usr/share/php/php-gettext/gettext.inc

2016-10-19 Thread James Stricherz
Package: phpmyadmin
Version: 4:4.6.4+dfsg1-1
Followup-For: Bug #839923

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

Hi, this is what I did to "fix" the problem locally.

cd /usr/share/php
mv php-gettext php-gettext.orig
ln -s php-php-gettext php-gettext

symbolic linking within the original php-gettext/gettext.inc doesn't
work and generates the error, but linking directory to directory does
work. Of course, it will break things once the problem is fixed
formally, so before updating you may want to reverse those changes.

Additionally this was also in my /var/log/apache2/error.log:

 open_basedir restriction in
 effect. File(/usr/share/php/php-php-gettext/gettext.inc) is not
 within the allowed path(s):
 
(/usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext/:/usr/share/javascript/:/usr/share/php/tcpdf/:/usr/share/doc/phpmyadmin/:/usr/share/php/phpseclib/)
 in /usr/share/phpmyadmin/libraries/common.inc.php on line 77

Hope that helps.

*** End of the template - remove these template lines ***


-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: i386 (i686)

Kernel: Linux 4.6.0-1-686-pae (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages phpmyadmin depends on:
ii  dbconfig-common 2.0.6
ii  dbconfig-mysql  2.0.6
ii  debconf [debconf-2.0]   1.5.59
ii  libjs-sphinxdoc 1.4.6-1
ii  perl5.24.1~rc3-3
ii  php 1:7.0+45
ii  php-cli 1:7.0+45
pn  php-gettext 
ii  php-mbstring1:7.0+45
ii  php-mysql   1:7.0+45
ii  php-phpseclib   2.0.3-1
ii  php-xml 1:7.0+45
ii  php7.0 [php]7.0.11-1
ii  php7.0-cli [php-cli]7.0.11-1
ii  php7.0-json [php-json]  7.0.11-1
ii  php7.0-mbstring [php-mbstring]  7.0.11-1
ii  php7.0-xml [php-xml]7.0.11-1
ii  ucf 3.0036

Versions of packages phpmyadmin recommends:
ii  apache2 [httpd]   2.4.23-5
ii  php-bz2   1:7.0+45
ii  php-gd1:7.0+45
ii  php-tcpdf 6.2.12+dfsg2-1
ii  php-zip   1:7.0+45
ii  php7.0-bz2 [php-bz2]  7.0.11-1
ii  php7.0-gd [php-gd]7.0.11-1
ii  php7.0-zip [php-zip]  7.0.11-1

Versions of packages phpmyadmin suggests:
ii  chromium [www-browser]   53.0.2785.143-1
ii  elinks [www-browser] 0.12~pre6-11+b3
ii  lynx [www-browser]   2.8.9dev9-1
ii  mysql-server-5.6 [virtual-mysql-server]  5.6.30-1
ii  w3m [www-browser]0.5.3-29

-- Configuration Files:
/etc/phpmyadmin/config.inc.php changed [not included]

-- debconf information excluded



Bug#807362: tripwire segfaults on 32 bit 686-pae kernels

2015-12-07 Thread James Stricherz
Package: tripwire
Version: 2.4.2.2-5+b1
Severity: important

Dear Maintainer,

Tripwire segfaults on 32 bit 686-pae kernels. First, after an update,
I started investigating and came across this:

# strace tripwire
execve("/usr/sbin/tripwire", ["tripwire"], [/* 18 vars */]) = 0
uname({sysname="Linux", nodename="stat.fsu.edu", ...}) = 0
brk(0)  = 0x993b000
brk(0x993bd80)  = 0x993bd80
set_thread_area({entry_number:-1, base_addr:0x993b880, limit:1048575, 
seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, 
useable:1}) = 0 (entry_number:6)
readlink("/proc/self/exe", "/usr/sbin/tripwire", 4096) = 18
brk(0x995cd80)  = 0x995cd80
brk(0x995d000)  = 0x995d000
access("/etc/ld.so.nohwcap", F_OK)  = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0} ---
+++ killed by SIGSEGV +++
Segmentation fault

So on one machine I purged the package after backing up my policy
files and got this:

Generating site key (this may take several minutes)...  
/var/lib/dpkg/info/tripwire.postinst: line 108: 32578 Broken pipe ( 
echo "$site_pass"; sleep 2; echo "$site_pass" )
32579 Segmentation fault  | $twadmin -m G -S "$SITEKEYFILE" > /dev/null 2>&1

Doing an strace on twadmin gives this

# strace /usr/sbin/twadmin
execve("/usr/sbin/twadmin", ["/usr/sbin/twadmin"], [/* 17 vars */]) = 0
uname({sysname="Linux", nodename="spline", ...}) = 0
brk(0)  = 0x92d4000
brk(0x92d4d80)  = 0x92d4d80
set_thread_area({entry_number:-1, base_addr:0x92d4880, limit:1048575, 
seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, 
useable:1}) = 0 (entry_number:6)
readlink("/proc/self/exe", "/usr/sbin/twadmin", 4096) = 17
brk(0x92f5d80)  = 0x92f5d80
brk(0x92f6000)  = 0x92f6000
access("/etc/ld.so.nohwcap", F_OK)  = -1 ENOENT (No such file or directory)
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0} ---
+++ killed by SIGSEGV +++
Segmentation fault

Today's update works perfectly on the amd64 arch. Thanks.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 4.0.0-2-686-pae (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages tripwire depends on:
ii  debconf [debconf-2.0]   1.5.58
ii  postfix [mail-transport-agent]  2.11.3-1+b1

tripwire recommends no packages.

tripwire suggests no packages.

-- debconf information:
* tripwire/use-sitekey: true
* tripwire/use-localkey: true
  tripwire/email-report:
  tripwire/change-in-default-policy:
* tripwire/rebuild-config: false
  tripwire/local-passphrase-incorrect: false
* tripwire/rebuild-policy: false
  tripwire/installed:
  tripwire/upgrade: true
  tripwire/broken-passphrase:
  tripwire/site-passphrase-incorrect: false