From: Gowtham Anandha Babu <gowtham.ab@samsung.com>
To: 'Stefan Seyfried' <stefan.seyfried@googlemail.com>
Cc: 'BlueZ devel list' <linux-bluetooth@vger.kernel.org>,
'Luiz Augusto von Dentz' <luiz.dentz@gmail.com>
Subject: RE: unit/test-gatt broken again (as always :-)
Date: Wed, 01 Apr 2015 17:53:51 +0530 [thread overview]
Message-ID: <001e01d06c76$bf04adc0$3d0e0940$@samsung.com> (raw)
In-Reply-To: <CABBYNZ+EzzcX2uMMrSQvrPhMqnruDxLf5d-vfqHNcZJOD=BCuA@mail.gmail.com>
Hi,
> -----Original Message-----
> From: linux-bluetooth-owner@vger.kernel.org [mailto:linux-bluetooth-
> owner@vger.kernel.org] On Behalf Of Luiz Augusto von Dentz
> Sent: Wednesday, April 01, 2015 5:38 PM
> To: Stefan Seyfried
> Cc: BlueZ devel list; Gowtham Anandha Babu
> Subject: Re: unit/test-gatt broken again (as always :-)
>
> Hi Stefan,
>
> On Wed, Apr 1, 2015 at 2:42 PM, Stefan Seyfried
> <stefan.seyfried@googlemail.com> wrote:
> > Hi all,
> >
> > in bluez-5.30, the testsuite again does not complete with
> >
> > MALLOC_CHECK_=3 MALLOC_PERTURB_=69 make check
> >
> > Valgrind complains about a use-after-free.
> >
> > I simply bisected the issue, this is the broken commit.
> >
> > commit 9a0d6d99c79e5cecb76b7a61b53556447f0ccbd1
> > Author: Gowtham Anandha Babu <gowtham.ab@samsung.com>
> > Date: Thu Mar 26 18:29:06 2015 +0530
> >
> > unit/test-gatt: Add TP/GAW/CL/BV-05-C test
> >
> > Verify that a Generic Attribute Profile client can write a long
> > Characteristic Value selected by handle.
> >
> > This is on plain x86_64, gcc-4.8.3 (old)
>
> This is actually a fault in our code that the test uncovered which is good but
> we failed to see it happening, I actually have some plans to have a check-
> valgrind target to catch this type of problems or maybe there is a way to add
> MALLOC_CHECK_=3 MALLOC_PERTURB_=69 directly.
>
>
Good catch. I got the above error, after updating my gcc. The patch sent by Luiz resolved this issue.
Yes there may be a way for adding valgrind directly as done in
"android/system-emulator.c" & "android/bluetoothd-wrapper.c".
Regards,
Gowtham Anandha Babu
> --
> Luiz Augusto von Dentz
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to majordomo@vger.kernel.org More majordomo
> info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-04-01 12:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-01 11:42 unit/test-gatt broken again (as always :-) Stefan Seyfried
2015-04-01 12:08 ` Luiz Augusto von Dentz
2015-04-01 12:23 ` Gowtham Anandha Babu [this message]
2015-04-01 20:15 ` Stefan Seyfried
2015-04-02 8:14 ` Luiz Augusto von Dentz
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='001e01d06c76$bf04adc0$3d0e0940$@samsung.com' \
--to=gowtham.ab@samsung.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.