All of lore.kernel.org
 help / color / mirror / Atom feed
* alsa-lib TLVs and valgrind
@ 2011-02-02 11:54 Sebastian H.
  2011-02-02 13:12 ` Clemens Ladisch
  0 siblings, 1 reply; 5+ messages in thread
From: Sebastian H. @ 2011-02-02 11:54 UTC (permalink / raw)
  To: ALSA Development Mailing List


Hello list

I'm about to release a new version of alsamixer-qt4
(now named qasmixer) and ran the program through valgrind.

valgrind --track-origins=yes src/qasmixer &> valgrind.log


The log file contains tons of warnings like this

==3432== Conditional jump or move depends on uninitialised value(s)
...
... (qasmixer function calls)
...
==3432==  Uninitialised value was created by a heap allocation
... malloc (vg_replace_malloc.c:236)
... init_db_range (simple_none.c:1111)
... get_dB_range (simple_none.c:1156)
... get_dB_range_ops (simple_none.c:1173)
... snd_mixer_selem_get_playback_dB_range (simple.c:298)
...
... (qasmixer function calls)
...

The fresh alsa-lib-10-24.1 was used for this, compiled with debug
symbols enabled. Drivers are from Debian/squeeze.

This issue doesn't seem critical for the application but it totally
floods the valgrind.log file.

Best,
Sebastian Holtermann

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: alsa-lib TLVs and valgrind
  2011-02-02 11:54 alsa-lib TLVs and valgrind Sebastian H.
@ 2011-02-02 13:12 ` Clemens Ladisch
  2011-02-02 13:18   ` Sebastian H.
  0 siblings, 1 reply; 5+ messages in thread
From: Clemens Ladisch @ 2011-02-02 13:12 UTC (permalink / raw)
  To: Sebastian H.; +Cc: ALSA Development Mailing List

Sebastian H. wrote:
> I'm about to release a new version of alsamixer-qt4
> (now named qasmixer) and ran the program through valgrind.
> 
> valgrind --track-origins=yes src/qasmixer &> valgrind.log
> 
> The log file contains tons of warnings like this
> 
> ==3432== Conditional jump or move depends on uninitialised value(s)
> ...
> ... (qasmixer function calls)
> ...
> ==3432==  Uninitialised value was created by a heap allocation
> ... malloc (vg_replace_malloc.c:236)
> ... init_db_range (simple_none.c:1111)
> ... get_dB_range (simple_none.c:1156)
> ... get_dB_range_ops (simple_none.c:1173)
> ... snd_mixer_selem_get_playback_dB_range (simple.c:298)

Valgrind doesn't know about some of the ALSA ioctls.
Somebody would have to add them to valgrind.


Regards,
Clemens

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: alsa-lib TLVs and valgrind
  2011-02-02 13:12 ` Clemens Ladisch
@ 2011-02-02 13:18   ` Sebastian H.
  2011-02-02 15:12     ` Clemens Ladisch
  0 siblings, 1 reply; 5+ messages in thread
From: Sebastian H. @ 2011-02-02 13:18 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: ALSA Development Mailing List

Am 02.02.2011 14:12, schrieb Clemens Ladisch:
> Sebastian H. wrote:
>> I'm about to release a new version of alsamixer-qt4
>> (now named qasmixer) and ran the program through valgrind.
>>
>> valgrind --track-origins=yes src/qasmixer &> valgrind.log
>>
>> The log file contains tons of warnings like this
>>
>> ==3432== Conditional jump or move depends on uninitialised value(s)
>> ...
>> ... (qasmixer function calls)
>> ...
>> ==3432==  Uninitialised value was created by a heap allocation
>> ... malloc (vg_replace_malloc.c:236)
>> ... init_db_range (simple_none.c:1111)
>> ... get_dB_range (simple_none.c:1156)
>> ... get_dB_range_ops (simple_none.c:1173)
>> ... snd_mixer_selem_get_playback_dB_range (simple.c:298)
> 
> Valgrind doesn't know about some of the ALSA ioctls.
> Somebody would have to add them to valgrind.

That seems to require quite some effort - also to maintain.
Couldn't just the dB min/max values be initialized with 0 or sth.?

Sebastian

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: alsa-lib TLVs and valgrind
  2011-02-02 13:18   ` Sebastian H.
@ 2011-02-02 15:12     ` Clemens Ladisch
  2011-02-02 15:16       ` Sebastian H.
  0 siblings, 1 reply; 5+ messages in thread
From: Clemens Ladisch @ 2011-02-02 15:12 UTC (permalink / raw)
  To: Sebastian H.; +Cc: ALSA Development Mailing List

Sebastian H. wrote:
> Am 02.02.2011 14:12, schrieb Clemens Ladisch:
> > Valgrind doesn't know about some of the ALSA ioctls.
> > Somebody would have to add them to valgrind.
> 
> That seems to require quite some effort - also to maintain.
> Couldn't just the dB min/max values be initialized with 0 or sth.?

Then it wouldn't be possible for valgrind to catch wrong uses of the
ioctl.


Regards,
Clemens

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: alsa-lib TLVs and valgrind
  2011-02-02 15:12     ` Clemens Ladisch
@ 2011-02-02 15:16       ` Sebastian H.
  0 siblings, 0 replies; 5+ messages in thread
From: Sebastian H. @ 2011-02-02 15:16 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: ALSA Development Mailing List

Am 02.02.2011 16:12, schrieb Clemens Ladisch:
> Sebastian H. wrote:
>> Am 02.02.2011 14:12, schrieb Clemens Ladisch:
>>> Valgrind doesn't know about some of the ALSA ioctls.
>>> Somebody would have to add them to valgrind.
>>
>> That seems to require quite some effort - also to maintain.
>> Couldn't just the dB min/max values be initialized with 0 or sth.?
> 
> Then it wouldn't be possible for valgrind to catch wrong uses of the
> ioctl.

Ok. My knowledge of how valgrind works is limited anyway.

Thank you,
Sebastian

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-02-02 15:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-02 11:54 alsa-lib TLVs and valgrind Sebastian H.
2011-02-02 13:12 ` Clemens Ladisch
2011-02-02 13:18   ` Sebastian H.
2011-02-02 15:12     ` Clemens Ladisch
2011-02-02 15:16       ` Sebastian H.

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.