speechd-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sd_espeak segfaulting with alsa


From: Luke Yelavich
Subject: sd_espeak segfaulting with alsa
Date: Mon, 12 Jan 2009 07:56:34 +1100

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, Jan 10, 2009 at 10:16:01PM EST, Klaus Knopper wrote:
> Indeed, it seems to me that in
> 
> > #5  0x00007fc262096e1a in snd_pcm_mmap_writei (pcm=0x7fc258017ee4, 
> > buffer=0x7fc258024fe8, size=936) at pcm_mmap.c:183
> > No locals.
> > #6  0x00007fc26386a545 in alsa_play (id=0x23e2900, track=
> >       {bits = 16, num_channels = 1, sample_rate = 22050, num_samples = 
> > 23751, samples = 0x23d15b0}) at alsa.c:607
> >     format = SND_PCM_FORMAT_S16_LE
> >     bytes_per_sample = 2
> >     num_bytes = <value optimized out>
> >     output_samples = (short int *) 0x7fc258024e24
> >     real_volume = <value optimized out>
> >     err = <value optimized out>
> >     ret = <value optimized out>
> >     framecount = 470
> >     period_size = 470
> >     samples_per_period = <value optimized out>
> >     silent_samples = <value optimized out>
> >     volume_size = 18446744073709551605
> >     sr = 22050
> >     state = <value optimized out>
> >     __PRETTY_FUNCTION__ = "alsa_play"
> 
> the volume_size has a much too high number. In fact, it looks like
> MAXLONG minus 10, so I guess there is an initialization or overflow
> happening somewhere else.
> 
> The result is that either malloc fails (if overcommit is set to "off")
> or copy functions write over data area limits.
> 
> Now I try to find out why volume_size is being calcuated wrongly.
> 
> Thanks for sending me this. Can you tell me how the trace as produced?

Ubuntu has a package called apport, which gets installed on an ubuntu system. 
During a development cycle, or if the user wishes to get a stack trace, apport 
gets enabled, and if an applicatino 
crashes, the user is notified, and a dump is made. A bug report is then filed 
with the dump and other necessary bits.

The crash is then retraced by a retracer in the Ubuntu Data Centre, and the 
backtrace as given here is produced.

hth

Luke

P.S. Please dont CC me, I am subscribed to the list.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAklqXQIACgkQjVefwtBjIM6pWQCgvrMXyEiDtaVOzzb1biY3U2Sh
jloAnjrv2BeoQ5BPd/c3QF/XdNBnUFQ/
=UkYA
-----END PGP SIGNATURE-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]