Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Mathieu Monney <zittix_all@xwaves.net>
To: alsa-devel@alsa-project.org
Subject: ioctl(arg) - uninitialised byte(s) in alsa lib
Date: Wed, 12 Mar 2008 12:49:44 +0100	[thread overview]
Message-ID: <47D7C358.6050401@xwaves.net> (raw)

Hi all,

I'm currently working on a small audio stack on top of alsa and I'm 
getting some "Syscall param ioctl(arg) contains uninitialized byte(s)" 
errors when I run my program using valgrind. I don't know if it is a bug 
in my program or in alsa lib. What I'm sure is that my program is 
working even though these errors appear.

The dump:

==14279== Syscall param ioctl(arg) contains uninitialised byte(s)
==14279==    at 0x40007F2: (within /lib/ld-2.6.1.so)
==14279==    by 0x40DE911: snd_pcm_prepare (in /usr/lib/libasound.so.2.0.0)
==14279==    by 0x40F2552: (within /usr/lib/libasound.so.2.0.0)
==14279==    by 0x40DE911: snd_pcm_prepare (in /usr/lib/libasound.so.2.0.0)
==14279==    by 0x40E4F0C: snd_pcm_hw_params (in 
/usr/lib/libasound.so.2.0.0)
==14279==    by 0x80A6599: AlsaConfigureDevice (in 
/home/mathieu/BProject/WiFi-VoIP/pjsip/pjsip_host_x86/pjsip-apps/bin/pjsua-i686-pc-linux-gnu)
==14279==    by 0x80A6DE3: pjmedia_snd_open (in 
/home/mathieu/BProject/WiFi-VoIP/pjsip/pjsip_host_x86/pjsip-apps/bin/pjsua-i686-pc-linux-gnu)
==14279==    by 0x809EC85: start_sound_device (in 
/home/mathieu/BProject/WiFi-VoIP/pjsip/pjsip_host_x86/pjsip-apps/bin/pjsua-i686-pc-linux-gnu)
==14279==    by 0x805EE1E: pjsua_set_snd_dev (in 
/home/mathieu/BProject/WiFi-VoIP/pjsip/pjsip_host_x86/pjsip-apps/bin/pjsua-i686-pc-linux-gnu)
==14279==    by 0x80615AA: pjsua_media_subsys_start (in 
/home/mathieu/BProject/WiFi-VoIP/pjsip/pjsip_host_x86/pjsip-apps/bin/pjsua-i686-pc-linux-gnu)
==14279==    by 0x805AAC5: pjsua_start (in 
/home/mathieu/BProject/WiFi-VoIP/pjsip/pjsip_host_x86/pjsip-apps/bin/pjsua-i686-pc-linux-gnu)
==14279==    by 0x805001B: app_main (in 
/home/mathieu/BProject/WiFi-VoIP/pjsip/pjsip_host_x86/pjsip-apps/bin/pjsua-i686-pc-linux-gnu)
==14279==
==14279== Syscall param ioctl(arg) contains uninitialised byte(s)
==14279==    at 0x40007F2: (within /lib/ld-2.6.1.so)
==14279==    by 0x40DE911: snd_pcm_prepare (in /usr/lib/libasound.so.2.0.0)
==14279==    by 0x40E4F0C: snd_pcm_hw_params (in 
/usr/lib/libasound.so.2.0.0)
==14279==    by 0x411C213: snd_pcm_direct_initialize_slave (in 
/usr/lib/libasound.so.2.0.0)
==14279==    by 0x4115DFB: snd_pcm_dmix_open (in 
/usr/lib/libasound.so.2.0.0)
==14279==    by 0x4116286: _snd_pcm_dmix_open (in 
/usr/lib/libasound.so.2.0.0)
==14279==    by 0x40E4384: (within /usr/lib/libasound.so.2.0.0)
==14279==    by 0x40E4A82: (within /usr/lib/libasound.so.2.0.0)
==14279==    by 0x40E4AF2: snd_pcm_open_slave (in 
/usr/lib/libasound.so.2.0.0)
==14279==    by 0x4100CEF: _snd_pcm_plug_open (in 
/usr/lib/libasound.so.2.0.0)
==14279==    by 0x40E4384: (within /usr/lib/libasound.so.2.0.0)
==14279==    by 0x40E4A82: (within /usr/lib/libasound.so.2.0.0)
==14279==
==14279== Syscall param ioctl(arg) contains uninitialised byte(s)
==14279==    at 0x40007F2: (within /lib/ld-2.6.1.so)
==14279==    by 0x40DE7D1: snd_pcm_start (in /usr/lib/libasound.so.2.0.0)
==14279==    by 0x411C5DF: snd_pcm_direct_initialize_slave (in 
/usr/lib/libasound.so.2.0.0)
==14279==    by 0x4115DFB: snd_pcm_dmix_open (in 
/usr/lib/libasound.so.2.0.0)
==14279==    by 0x4116286: _snd_pcm_dmix_open (in 
/usr/lib/libasound.so.2.0.0)
==14279==    by 0x40E4384: (within /usr/lib/libasound.so.2.0.0)
==14279==    by 0x40E4A82: (within /usr/lib/libasound.so.2.0.0)
==14279==    by 0x40E4AF2: snd_pcm_open_slave (in 
/usr/lib/libasound.so.2.0.0)
==14279==    by 0x4100CEF: _snd_pcm_plug_open (in 
/usr/lib/libasound.so.2.0.0)
==14279==    by 0x40E4384: (within /usr/lib/libasound.so.2.0.0)
==14279==    by 0x40E4A82: (within /usr/lib/libasound.so.2.0.0)
==14279==    by 0x80A6E1B: pjmedia_snd_open (in 
/home/mathieu/BProject/WiFi-VoIP/pjsip/pjsip_host_x86/pjsip-apps/bin/pjsua-i686-pc-linux-gnu)

Thank you,

Mathieu Monney

             reply	other threads:[~2008-03-12 11:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-12 11:49 Mathieu Monney [this message]
2008-03-12 12:15 ` ioctl(arg) - uninitialised byte(s) in alsa lib Clemens Ladisch

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=47D7C358.6050401@xwaves.net \
    --to=zittix_all@xwaves.net \
    --cc=alsa-devel@alsa-project.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