public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Johan Hedberg <johan.hedberg@gmail.com>
To: Jelle de Jong <jelledejong@powercraft.nl>
Cc: BlueZ development <linux-bluetooth@vger.kernel.org>
Subject: Re: current git segfaults, gdb backtraces included, pl;ease help
Date: Sun, 22 Feb 2009 17:16:19 +0200	[thread overview]
Message-ID: <20090222151619.GA18302@jh-x301> (raw)
In-Reply-To: <49A15C9C.6040907@powercraft.nl>

Hi Jelle,

On Sun, Feb 22, 2009, Jelle de Jong wrote:
> ==9308== Conditional jump or move depends on uninitialised value(s)
> ==9308==    at 0x49AEEE0: (within /lib/i686/cmov/libc-2.7.so)
> ==9308==    by 0x49A21F5: vsprintf (in /lib/i686/cmov/libc-2.7.so)
> ==9308==    by 0x498A48A: sprintf (in /lib/i686/cmov/libc-2.7.so)
> ==9308==    by 0x492B922: ba2str (bluetooth.c:88)
> ==9308==    by 0x13262C: l2cap_get (btio.c:731)
> ==9308==    by 0x13312F: get_valist (btio.c:983)
> ==9308==    by 0x133447: bt_io_get (btio.c:1061)
> ==9308==    by 0x48312A2: connect_event_cb (server.c:102)
> ==9308==    by 0x130F37: server_cb (btio.c:180)
> ==9308==    by 0x48A8F2C: (within /usr/lib/libglib-2.0.so.0.1800.4)
> ==9308==    by 0x4872367: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.1800.4)
> ==9308==    by 0x4875A02: (within /usr/lib/libglib-2.0.so.0.1800.4)
> ==9308==  Uninitialised value was created by a stack allocation
> ==9308==    at 0x483121F: connect_event_cb (server.c:91)

This was actually a pretty stupid thing I should have noticed earlier.
The parameter list to bt_io_get should end in BT_IO_OPT_INVALID but it
was ending in NULL for this call. I also found two other places with
problematic parameters to bt_io_get. All occurences have been fixed in
git now.

Johan

  reply	other threads:[~2009-02-22 15:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <499FDB3E.3040202@powercraft.nl>
2009-02-21 21:59 ` current git segfaults, gdb backtraces included, pl;ease help Johan Hedberg
2009-02-22 14:09   ` Jelle de Jong
2009-02-22 15:16     ` Johan Hedberg [this message]
2009-02-22 15:45       ` Bastien Nocera
2009-02-22 19:59         ` Johan Hedberg

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=20090222151619.GA18302@jh-x301 \
    --to=johan.hedberg@gmail.com \
    --cc=jelledejong@powercraft.nl \
    --cc=linux-bluetooth@vger.kernel.org \
    /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