Your message dated Thu, 28 Nov 2019 18:34:42 +0000
with message-id <e1iaock-000baf...@fasolo.debian.org>
and subject line Bug#918383: fixed in ruby-ferret 0.11.8.6-3
has caused the Debian Bug report #918383,
regarding ruby-ferret 0.11.8.6-2: FTBFS, alignment problem
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
918383: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=918383
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: ruby-ferret
Version: 0.11.8.6-2
Severity: important
User: debian-...@lists.debian.org
Usertags: alignment

Hi!

I've been doing a full rebuild of the Debian archive, building all
source packages targeting armel and armhf using arm64 hardware. We are
planning in future to move all of our 32-bit armel/armhf builds to
using arm64 machines, so this rebuild is to identify packages that
might have problems with this configuration.

A feature of the arm64 kernel is that it does *not* support fixing up
code with broken alignment, so code that might have built and run OK
on our older armel/armhf build machines due to kernel fixups will now
fail.

When building your package, I've found a bus error (aka alignment
fault) on both armel and armhf. The full logs are online at

  
https://www.einval.com/debian/arm/rebuild-logs/armel/FAIL/ruby-ferret_0.11.8.6-2_armel.log
  
https://www.einval.com/debian/arm/rebuild-logs/armhf/FAIL/ruby-ferret_0.11.8.6-2_armhf.log

for reference

I've done a quick bit of debugging to find the source of the
bug. Here's a gdb stacktrace and variable printout to demonstrate the
problem.

(sid-armhf)steve@mjolnir:~/debian/build/ruby-ferret/ruby-ferret-0.11.8.6$ file 
core
core: ELF 32-bit LSB core file, ARM, version 1 (SYSV), SVR4-style, from 
'ruby2.5 debian/ruby-tests.rb', real uid: 1000, effective uid: 1000, real gid: 
1000, effective gid: 1000, execfn: '/usr/bin/ruby2.5', platform: 'v8l'
(sid-armhf)steve@mjolnir:~/debian/build/ruby-ferret/ruby-ferret-0.11.8.6$ gdb 
/usr/bin/ruby2.5 core
...
Reading symbols from /usr/bin/ruby2.5...(no debugging symbols found)...done.
[New LWP 15636]
[New LWP 15639]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
Core was generated by `ruby2.5 debian/ruby-tests.rb'.
Program terminated with signal SIGBUS, Bus error.
#0  0xf7975e8e in frt_p_new (mp=mp@entry=0x10c7a98, doc_num=doc_num@entry=0, 
pos=pos@entry=0) at index.c:5180
5180        return occ;
[Current thread is 1 (Thread 0xf7b5c210 (LWP 15636))]
(gdb) bt
#0  0xf7975e8e in frt_p_new (mp=mp@entry=0x10c7a98, doc_num=doc_num@entry=0, 
pos=pos@entry=0) at index.c:5180
#1  0xf7975f1c in dw_add_posting (mp=mp@entry=0x10c7a98, 
curr_plists=curr_plists@entry=0x1121438, fld_plists=fld_plists@entry=0x11a6eb8, 
doc_num=doc_num@entry=0, 
    text=text@entry=0x11c0c68 "20040601", len=len@entry=8, pos=pos@entry=0) at 
index.c:5523
#2  0xf797628c in frt_dw_invert_field (dw=dw@entry=0xd22bc0, 
fld_inv=fld_inv@entry=0xf740075a, df=df@entry=0xf6ece8) at index.c:5587
#3  0xf79763f0 in frt_dw_add_doc (dw=dw@entry=0xd22bc0, doc=doc@entry=0xc80b18) 
at index.c:5662
#4  0xf79764da in frt_iw_add_doc (iw=iw@entry=0xffc218, doc=doc@entry=0xc80b18) 
at index.c:6337
#5  0xf7987ff0 in frb_iw_add_doc (self=18250200, rdoc=<optimized out>) at 
r_index.c:1530
#6  0xf7ec4dfa in ?? () from /usr/lib/arm-linux-gnueabihf/libruby-2.5.so.2.5
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb) p mp 
$1 = (FrtMemoryPool *) 0x10c7a98
(gdb) p p
$2 = (FrtPosting *) 0xf7402e7e
(gdb) p *p
$3 = {freq = 0, doc_num = 0, first_occ = 0x0, next = 0x0}
(gdb) p &p->doc_num 
$4 = (int *) 0xf7402e82
(gdb) p &p->first_occ 
$5 = (FrtOccurence **) 0xf7402e86

Ignore the line number 5180 - it looks like gdb is getting the exact
line number wrong. The fault is in the function p_new():

Posting *p_new(MemoryPool *mp, int doc_num, int pos)
{
    Posting *p = MP_ALLOC(mp, Posting);
    p->doc_num = doc_num;
    p->first_occ = occ_new(mp, pos);
    p->freq = 1;
    p->next = NULL;
    return p;
}

MP_ALLOC() has returned a misaligned pointer, and the code following
here therefore is trying to fill things in misaligned too. p->doc_num
is an int, but is not aligned appropriately...

-- System Information:
Debian Release: 9.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-debug'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-8-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

--- End Message ---
--- Begin Message ---
Source: ruby-ferret
Source-Version: 0.11.8.6-3

We believe that the bug you reported is fixed in the latest version of
ruby-ferret, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 918...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Lucas Kanashiro <lucas.kanash...@canonical.com> (supplier of updated 
ruby-ferret package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Mon, 25 Nov 2019 12:08:26 -0300
Source: ruby-ferret
Architecture: source
Version: 0.11.8.6-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Ruby Extras Maintainers 
<pkg-ruby-extras-maintain...@lists.alioth.debian.org>
Changed-By: Lucas Kanashiro <lucas.kanash...@canonical.com>
Closes: 918383
Changes:
 ruby-ferret (0.11.8.6-3) unstable; urgency=medium
 .
   * Team upload.
 .
   [ Antonio Terceiro ]
   * Remove myself from Uploaders:
 .
   [ Utkarsh Gupta ]
   * Add salsa-ci.yml
 .
   [ Lucas Kanashiro ]
   * Fix DEP-8 tests on arm64 and build on armhf (Closes: #918383)
Checksums-Sha1:
 07913955960d8c3d4e67980222e7de7f2842ea7d 2213 ruby-ferret_0.11.8.6-3.dsc
 dd610f16bdce8b47728816a2c4866d07fdbd6b93 8208 
ruby-ferret_0.11.8.6-3.debian.tar.xz
 159c4f9defb3c4fbaf035793f7bb0465247a35e4 9240 
ruby-ferret_0.11.8.6-3_amd64.buildinfo
Checksums-Sha256:
 89bbaf4a9efcf93d4a21f7df9f858ed42180a2d1b48a0e4256d0b74c71268268 2213 
ruby-ferret_0.11.8.6-3.dsc
 dd5c7c8664220142500bd45e4726b79bbc30ed4406908c8ccbd652010f5b2724 8208 
ruby-ferret_0.11.8.6-3.debian.tar.xz
 7e4e3925a7c3dfa79596f0a0e4bee3f7e6ede560767e147a02ee14ca0f10e71c 9240 
ruby-ferret_0.11.8.6-3_amd64.buildinfo
Files:
 d19b073b5feac32f7fa80a288393895c 2213 ruby optional ruby-ferret_0.11.8.6-3.dsc
 41bfcbc05fb74e5fdafc3f3167776ae1 8208 ruby optional 
ruby-ferret_0.11.8.6-3.debian.tar.xz
 c7e5c991ecd7054c3860ddff08686136 9240 ruby optional 
ruby-ferret_0.11.8.6-3_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJSBAEBCAA8FiEEjtbD+LrJ23/BMKhw+COicpiDyXwFAl3gDtweHGx1Y2FzLmth
bmFzaGlyb0BjYW5vbmljYWwuY29tAAoJEPgjonKYg8l8sosP/3b1dPNQPd7IdOKd
V71OrhoMfZyzOObrUQzfYVD+ksOs6TLScDWxz0gQMjqyAQKM1TlwKsZZ2Y2wR/kK
ffx1O0WtXMHnX2a2halt/V3MQGJ6jqwbt/7ffS/sJKwgIqvsBibAs6q9E1urnFVZ
ZQFEBz8AiEKqc2Po2Dgywx3Mdr+8t8Gnl3+tAF+ul5rbK1mSie8L7BKIWBDg7OCi
DAaH+9B42OFH8qRaD9tdsOMrdZWM9ZzDonWQ950AjeTHebWelUjk6YXiqGD2zrDQ
QZjlyZx2RbMdqiSxYfcUKKZMM6PUSaxv+NcZ09pt+CtCXQIPHsScbZqmhpOOzvLf
wFZa5RuRST2g4OnvyYZdQ91R8pzcsfCl+bgztv+INNt7nsfiSsnrknvJW2A/ookN
NcLjKi1Dpw0Pr57ZFgKAPOO7S2fo6RHbHKHHdXDrVu78PKvHtqLOcIeh483h54+q
oZen6jLlnfdrp2e+u82Ac45Hza1uhE7aNEvTJTZr74sWt8+m86jzmx/Ww325M45J
swbv5mNtvpnq19H4Be2ZJKAhtaSd7uSCjGkAxLjfY+ZWsHX5kslrimknV/GtWXxT
PJZck5vb9HwYufJX6HT6rgBYAqOeNesFhotmgacXlQRXzB5oHE6fj4KuFvlvtEhm
Wh7x0WVlusNGRaH+frOcpTmzqNRk
=1KuX
-----END PGP SIGNATURE-----

--- End Message ---
_______________________________________________
Pkg-ruby-extras-maintainers mailing list
Pkg-ruby-extras-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers

Reply via email to