From: "Gix, Brian" <brian.gix@intel.com>
To: "stefan.seyfried@googlemail.com" <stefan.seyfried@googlemail.com>,
"linux-bluetooth@vger.kernel.org"
<linux-bluetooth@vger.kernel.org>
Cc: "Stotland, Inga" <inga.stotland@intel.com>
Subject: Re: test-mesh-crypto segfaults
Date: Mon, 4 Nov 2019 22:26:48 +0000 [thread overview]
Message-ID: <295dfc627e4f1ccf61fe644062098b44b1e28b0d.camel@intel.com> (raw)
In-Reply-To: <70299d5df034aa0174a9263ea8736b56fd9bbd02.camel@intel.com>
Also, make sure your ELL version is at least Release 0.26, from 30-Oct-2019.
On Mon, 2019-11-04 at 22:11 +0000, Gix, Brian wrote:
> Hi Stefan,
>
> On Mon, 2019-11-04 at 22:16 +0100, Stefan Seyfried wrote:
> > Hi,
> >
> > test-mesh-crypto segfaults for me.
> >
> > abuild@strolchi:~/rpmbuild/BUILD/bluez-5.52> gdb unit/test-mesh-crypto
> >
> > [....]
> >
> > [8.6.2 Service Data using Node Identity]
> > ID Resolving Key = 84396c435ac48560b5965385253e210c
> > 84396c435ac48560b5965385253e210c => PASS
> > Hash Input = 00000000000034ae608fbbc1f2c61201
> > 00000000000034ae608fbbc1f2c61201 => PASS
> > Hash = 00861765aefcc57b
> > 00861765aefcc57b => PASS
> > Mesh ID Beacon = 0100861765aefcc57b34ae608fbbc1f2c6
> > 0100861765aefcc57b34ae608fbbc1f2c6 => PASS
> >
>
> This is very strange. The unit test looks like it has completed successfully (at least from what you copy-
> pasted). That test 8.6.2 is the final test, and it looks happy. Can you verify for me that all the other
> tests completed successfully?
>
> There is a *small* chance that you could be running on an old kernel: Kernels version 4.8 and before had a
> bug in the AEAD crypto code that made mesh code (including this unit test) inoperable... But this should
> show
> up *first* in one of the earlier tests within this unit test... so look for any FAIL designations.
>
> The other thing about this particular test is that it is the *only* bluez unit test which is based on ELL
> (Embedded Linux Library) instead of GLIB.
>
> Are you running from an installed ELL when compiling bluez, or do you have ELL in a "peer directory"... For
> instance:
>
> .../work/ell
> .../work/bluez
>
> If you have the ELL source code available, please try running:
> ell % make check
>
> paying particular attention to the output of:
> unit/test-cipher
>
> If unit/test-cipher in ELL passes, then unit/test-mesh-crypto in BLUEZ should pass.
>
>
> > Program received signal SIGSEGV, Segmentation fault.
> > 0x00007ffff7e874ae in mem2chunk_check () from /lib64/libc.so.6
> > (gdb) bt
> > #0 0x00007ffff7e874ae in mem2chunk_check () from /lib64/libc.so.6
> > #1 0x00007ffff7e8b6af in free_check () from /lib64/libc.so.6
> > #2 0x0000555555557c98 in l_free (ptr=<optimized out>) at ell/util.c:136
> > #3 l_queue_clear (queue=0x55555556d010, destroy=0x555555557c60
> > <l_free>) at ell/queue.c:107
> > #4 0x0000555555557210 in _sub_D_65535_1.7021 () at ell/cipher.c:319
> > #5 0x00007ffff7fe2c13 in _dl_fini () from /lib64/ld-linux-x86-64.so.2
> > #6 0x00007ffff7e3f877 in __run_exit_handlers () from /lib64/libc.so.6
> > #7 0x00007ffff7e3fa2c in exit () from /lib64/libc.so.6
> > #8 0x00007ffff7e27e12 in __libc_start_main () from /lib64/libc.so.6
> > #9 0x0000555555557b8a in _start () at ../sysdeps/x86_64/start.S:120
> >
> > this is reproducible here, I'm disabling this test for now in the
> > openSUSE package build.
> >
> > Best regards
next prev parent reply other threads:[~2019-11-04 22:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-04 21:16 test-mesh-crypto segfaults Stefan Seyfried
2019-11-04 22:11 ` Gix, Brian
2019-11-04 22:26 ` Gix, Brian [this message]
2019-11-05 9:53 ` Stefan Seyfried
2019-11-05 15:24 ` Stefan Seyfried
2019-11-05 16:31 ` Gix, Brian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=295dfc627e4f1ccf61fe644062098b44b1e28b0d.camel@intel.com \
--to=brian.gix@intel.com \
--cc=inga.stotland@intel.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=stefan.seyfried@googlemail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).