Package: rs
Version: 20120325-1
Severity: serious
rjy@vile ~ % seq 1 9 | rs 3 3
zsh: done seq 1 9 |
zsh: segmentation fault rs 3 3
This happens regardless of input.
It appears to be caused by -pie in the parameters passed to cc
rjy@vile /tmp/rs/rs-20120325 % cc -D_FORTIFY_SOURCE=2 -DUSE_LIBBSD -g -O2
-fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security
-Werror=format-security -Wall -Wextra -Wformat -flto=jobserver -fPIE -pie
-Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o rs rs.c -lbsd
In file included from /usr/include/bsd/bsd.h:41:0,
from rs.c:47:
/usr/include/bsd/getopt.h:34:2: warning: #warning "Deprecated header, use
<bsd/unistd.h> or <unistd.h> with libbsd-overlay.pc instead." [-Wcpp]
rjy@vile /tmp/rs/rs-20120325 % seq 1 9 | ./rs 3 3
zsh: done seq 1 9 |
zsh: segmentation fault ./rs 3 3
After removing -pie (from between the second -fPIE and -Wl,-z,relro)
rjy@vile /tmp/rs/rs-20120325 % cc -D_FORTIFY_SOURCE=2 -DUSE_LIBBSD -g -O2
-fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security
-Werror=format-security -Wall -Wextra -Wformat -flto=jobserver -fPIE
-Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o rs rs.c -lbsd
In file included from /usr/include/bsd/bsd.h:41:0,
from rs.c:47:
/usr/include/bsd/getopt.h:34:2: warning: #warning "Deprecated header, use
<bsd/unistd.h> or <unistd.h> with libbsd-overlay.pc instead." [-Wcpp]
rjy@vile /tmp/rs/rs-20120325 % seq 1 9 | ./rs 3 3
1 2 3
4 5 6
7 8 9
Sorry if this is hard to read, the command lines are so long...
Build command was copied from debuild output, which was
rjy@vile /tmp/rs/rs-20120325 % debuild -us -uc
dpkg-buildpackage -rfakeroot -D -us -uc
dpkg-buildpackage: source package rs
dpkg-buildpackage: source version 20120325-1
dpkg-buildpackage: source changed by Thorsten Glaser <[email protected]>
dpkg-source --before-build rs-20120325
dpkg-buildpackage: host architecture amd64
fakeroot debian/rules clean
dh_testdir
rm -f rs
dh_clean
dpkg-source -b rs-20120325
dpkg-source: info: using source format `1.0'
dpkg-source: info: building rs using existing rs_20120325.orig.tar.gz
dpkg-source: info: building rs in rs_20120325-1.diff.gz
dpkg-source: info: building rs in rs_20120325-1.dsc
debian/rules build
dh_testdir
rm -f rs
for opts in '-flto=jobserver' '-fwhole-program --combine' ''; do \
set -x; \
cc -D_FORTIFY_SOURCE=2 -DUSE_LIBBSD -g -O2 -fPIE
-fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security
-Werror=format-security -Wall -Wextra -Wformat $opts -fPIE -pie -Wl,-z,relro
-Wl,-z,now -Wl,--as-needed -o rs \
rs.c -lbsd; \
test -x rs && exit 0; \
done; echo >&2 Compiling failed.; exit 1
+ cc -D_FORTIFY_SOURCE=2 -DUSE_LIBBSD -g -O2 -fPIE -fstack-protector
--param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security
-Wall -Wextra -Wformat -flto=jobserver -fPIE -pie -Wl,-z,relro -Wl,-z,now
-Wl,--as-needed -o rs rs.c -lbsd
In file included from /usr/include/bsd/bsd.h:41:0,
from rs.c:47:
/usr/include/bsd/getopt.h:34:2: warning: #warning "Deprecated header, use
<bsd/unistd.h> or <unistd.h> with libbsd-overlay.pc instead." [-Wcpp]
+ test -x rs
+ exit 0
fakeroot debian/rules binary
dh_testdir
dh_testroot
if test -x "$(which dh_prep)"; then dh_prep; else dh_clean -k; fi
dh_installchangelogs
dh_installdocs
dh_install
dh_installman
dh_link
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dpkg-shlibdeps: warning: package could avoid a useless dependency if
debian/rs/usr/bin/rs was not linked against libgcc_s.so.1 (it uses none of the
library's symbols).
dh_gencontrol
dh_md5sums
dh_builddeb
dpkg-deb: building package `rs' in `../rs_20120325-1_amd64.deb'.
dpkg-genchanges >../rs_20120325-1_amd64.changes
dpkg-genchanges: including full source code in upload
dpkg-source --after-build rs-20120325
dpkg-buildpackage: full upload (original source is included)
rjy@vile /tmp/rs/rs-20120325 % seq 1 9 | ./rs 3 3
zsh: done seq 1 9 |
zsh: segmentation fault ./rs 3 3
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages rs depends on:
ii libbsd0 0.3.0-2
ii libc6 2.13-27
ii libgcc1 1:4.7.0-3
rs recommends no packages.
rs suggests no packages.
-- no debconf information
--
http://rjy.org.uk/
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]