http://bugzilla.suse.com/show_bug.cgi?id=940498
Bug ID: 940498
Summary: john segfault in sha1_block_data_order (function of
openssl) on PowerPC
Classification: openSUSE
Product: openSUSE Factory
Version: 201505*
Hardware: PowerPC-64
OS: SUSE Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Other
Assignee: bnc-team-screening@forge.provo.novell.com
Reporter: normand@linux.vnet.ibm.com
QA Contact: qa-bugs@suse.de
Found By: ---
Blocker: ---
john segfault in sha1_block_data_order on PowerPC
As reported in OBS tumbleweed build is failing for john the reaper package (1)
Adding debuginfo during local build and executing gdb allow to identify
the backtrace pointing to failure in openssl as detailed in (2)
(1) https://build.opensuse.org/package/show/openSUSE:Factory:PowerPC/john
===
[ 82s] Benchmarking: WPA-PSK PBKDF2-HMAC-SHA-1 [32/64]... Makefile:1791:
recipe for target 'check' failed
[ 82s] make: *** [check] Segmentation fault
[ 82s] error: Bad exit status from /var/tmp/rpm-tmp.EeG8Gb (%check)
===
(2) backtrace in chroot env:
===
[michel@vm64:~/work/openSUSE:Factory:PowerPC/john]
$osc build -x gdb -x glibc-debuginfo -x libopenssl1_0_0-debuginfo -x
libz1-debuginfo
$osc chroot
...
abuild@vm64:~/> cd rpmbuild/BUILD/john-1.8.0/src
abuild@vm64:~/rpmbuild/BUILD/john-1.8.0/src> gdb ../run/john
(gdb)r --make_check
...
Benchmarking: WPA-PSK PBKDF2-HMAC-SHA-1 [32/64]...
Program received signal SIGSEGV, Segmentation fault.
sha1_block_data_order () at sha1-ppc.s:235
235 sha1-ppc.s: No such file or directory.
(gdb) bt
#0 sha1_block_data_order () at sha1-ppc.s:235
#1 0x00003fffb7d4cc28 in SHA1_Update (c=0x1034a770, data_=<optimized out>,
len=<optimized out>) at ../md32_common.h:342
#2 0x00003fffb7e1fbcc in update (ctx=<optimized out>, data=<optimized out>,
count=<optimized out>) at m_sha1.c:78
#3 0x00003fffb7e15554 in EVP_DigestUpdate (ctx=<optimized out>,
data=<optimized out>, count=<optimized out>) at digest.c:294
#4 0x00003fffb7d55538 in HMAC_Update (ctx=<error reading variable: value has
been optimized out>, data=<optimized out>, len=<optimized out>) at hmac.c:171
#5 0x00003fffb7d55968 in HMAC (evp_md=0x3fffb7f78840