Public bug reported:

I am developing a custom application and while testing it to record
audio the APP is experiencing some crashs. In the terminal this message
is printed and right after the application ends:

pthread_mutex_lock.c:326: __pthread_mutex_lock_full: Assertion `robust
|| (oldval & 0x40000000) == 0' failed.

It is really hard to reproduce, I had to run the program several times
before facing the problem again while using GDB. But I could get a trace
(first backtrace is from a PulseAudio thread, second trace is from my
code):

(gdb) backtrace
#0  0x04001182 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x042d0b1f in __GI_raise (sig=sig@entry=6) at 
../nptl/sysdeps/unix/sysv/linux/raise.c:56
#2  0x042d40b3 in __GI_abort () at abort.c:90
#3  0x042c9877 in __assert_fail_base (fmt=0x440f674 "%s%s%s:%u: %s%sAssertion 
`%s' failed.\n%n", assertion=assertion@entry=0x405c2bc "robust || (oldval & 
0x40000000) == 0", 
    file=file@entry=0x405c7c2 "pthread_mutex_lock.c", line=line@entry=326, 
function=function@entry=0x405c243 <__PRETTY_FUNCTION__.8163> 
"__pthread_mutex_lock_full")
    at assert.c:92
#4  0x042c9927 in __GI___assert_fail (assertion=assertion@entry=0x405c2bc 
"robust || (oldval & 0x40000000) == 0", file=file@entry=0x405c7c2 
"pthread_mutex_lock.c", 
    line=line@entry=326, function=function@entry=0x405c243 
<__PRETTY_FUNCTION__.8163> "__pthread_mutex_lock_full") at assert.c:101
#5  0x0404f98b in __pthread_mutex_lock_full (mutex=0x4556a58) at 
pthread_mutex_lock.c:326
#6  0x04915c0f in pa_mutex_lock () from 
/usr/lib/i386-linux-gnu/pulseaudio/libpulsecommon-3.0.so
#7  0x048b2d20 in ?? () from /usr/lib/i386-linux-gnu/libpulse.so.0
#8  0x048a108a in pa_mainloop_poll () from /usr/lib/i386-linux-gnu/libpulse.so.0
#9  0x048a18c9 in pa_mainloop_iterate () from 
/usr/lib/i386-linux-gnu/libpulse.so.0
#10 0x048a19a4 in pa_mainloop_run () from /usr/lib/i386-linux-gnu/libpulse.so.0
#11 0x048b2c9e in ?? () from /usr/lib/i386-linux-gnu/libpulse.so.0
#12 0x04916eaa in ?? () from 
/usr/lib/i386-linux-gnu/pulseaudio/libpulsecommon-3.0.so
#13 0x04051d78 in start_thread (arg=0x5c59b40) at pthread_create.c:311
#14 0x043933de in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:131

(gdb) info threads
  Id   Target Id         Frame 
* 2    Thread 9566 (tid 2 VgTs_Runnable) 0x04001182 in _dl_sysinfo_int80 () 
from /lib/ld-linux.so.2
  1    Thread 9556 (tid 1 VgTs_WaitSys) 0x04001182 in _dl_sysinfo_int80 () from 
/lib/ld-linux.so.2

(gdb) thread 1
[Switching to thread 1 (Thread 9556)]
#0  0x04001182 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
(gdb) backtrace
#0  0x04001182 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x0404f8ce in __pthread_mutex_lock_full (mutex=0x4063000) at 
pthread_mutex_lock.c:306
#2  0x04915c0f in pa_mutex_lock () from 
/usr/lib/i386-linux-gnu/pulseaudio/libpulsecommon-3.0.so
#3  0x048b3200 in pa_threaded_mainloop_lock () from 
/usr/lib/i386-linux-gnu/libpulse.so.0
#4  0x0487011a in ?? () from 
/usr/lib/i386-linux-gnu/alsa-lib/libasound_module_pcm_pulse.so
#5  0x040f6826 in ?? () from /usr/lib/i386-linux-gnu/libasound.so.2
#6  0x040aa60f in snd_pcm_drop () from /usr/lib/i386-linux-gnu/libasound.so.2
#7  0x040ac210 in snd_pcm_close () from /usr/lib/i386-linux-gnu/libasound.so.2
#8 MyAPP main thread calling "snd_pcm_close()"


1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> 
About Ubuntu
Description:    Ubuntu 13.04
Release:        13.04

2) The version of the package you are using, via 'apt-cache policy pkgname' or 
by checking in Software Center
pulseaudio:
  Installed: 1:3.0-0ubuntu6
  Candidate: 1:3.0-0ubuntu6
  Version table:
 *** 1:3.0-0ubuntu6 0
        500 http://br.archive.ubuntu.com/ubuntu/ raring/main amd64 Packages
        100 /var/lib/dpkg/status

alsa-base:
  Installed: 1.0.25+dfsg-0ubuntu4
  Candidate: 1.0.25+dfsg-0ubuntu4
  Version table:
 *** 1.0.25+dfsg-0ubuntu4 0
        500 http://br.archive.ubuntu.com/ubuntu/ raring/main amd64 Packages
        100 /var/lib/dpkg/status

3) What you expected to happen
I expected to be able to close the audio handle without problems.

4) What happened instead
If the program calls snd_pcm_close() after capturing only few frames it 
sometimes crashs.

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: alsa-base 1.0.25+dfsg-0ubuntu4
ProcVersionSignature: Ubuntu 3.8.0-23.34-generic 3.8.11
Uname: Linux 3.8.0-23-generic x86_64
ApportVersion: 2.9.2-0ubuntu8.1
Architecture: amd64
AudioDevicesInUse:
 USER        PID ACCESS COMMAND
 /dev/snd/controlC1:  trocha     2081 F.... pulseaudio
 /dev/snd/controlC0:  trocha     2081 F.... pulseaudio
 /dev/snd/pcmC0D0c:   trocha     2081 F...m pulseaudio
Date: Mon Jul 22 14:09:33 2013
InstallationDate: Installed on 2013-05-28 (55 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
MarkForUpload: True
PackageArchitecture: all
SourcePackage: alsa-driver
Symptom: audio
Symptom_AlsaRecordingTest: ALSA recording test through plughw:PCH successful
Symptom_Card: Built-in Audio - HDA Intel PCH
Symptom_Jack: Pink Mic, Rear
Symptom_PulseAudioRecordingTest: PulseAudio recording test through plughw:PCH 
successful
Symptom_Type: None of the above
Title: [OptiPlex 7010, Realtek ALC269VB, Pink Mic, Rear] Recording problem
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 01/10/2013
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A12
dmi.board.name: 0KRC95
dmi.board.vendor: Dell Inc.
dmi.board.version: A02
dmi.chassis.type: 6
dmi.chassis.vendor: Dell Inc.
dmi.modalias: 
dmi:bvnDellInc.:bvrA12:bd01/10/2013:svnDellInc.:pnOptiPlex7010:pvr01:rvnDellInc.:rn0KRC95:rvrA02:cvnDellInc.:ct6:cvr:
dmi.product.name: OptiPlex 7010
dmi.product.version: 01
dmi.sys.vendor: Dell Inc.

** Affects: pulseaudio
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug raring

** Package changed: alsa-driver (Ubuntu) => pulseaudio

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1203826

Title:
  [OptiPlex 7010, Realtek ALC269VB, Pink Mic, Rear] PulseAudio recording
  crash

To manage notifications about this bug go to:
https://bugs.launchpad.net/pulseaudio/+bug/1203826/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to