Ticket #114 (closed bug: fixed)

Opened 15 years ago

Last modified 15 years ago

non-debug builds don't work properly

Reported by: ppalmers Assigned to: ppalmers
Priority: major Milestone: FFADO 2.0
Component: Version: FFADO 2.0-beta4 (1.999.26)
Keywords: Cc:
The device the bug applies to:

Description

Make the non-debug builds work.

Attachments

nondebug_mutex_errorcheck.diff (0.9 kB) - added by slack on 05/22/08 10:38:00.

Change History

05/22/08 10:36:20 changed by slack

Hello Pieter!

I think I have found something!

Starting with changeset 1158 ffado-dbus-server hangs in a non-debug build but works with debugging enabled.

This changeset introduces a lot of additional locking so I hoped to get further hints by applying the attached patch.

The patched code works again without hang but gives the following output:

ERROR: pthread_mutex_lock() failed!!! ERROR: pthread_mutex_lock() failed!!! ERROR: pthread_mutex_unlock() failed!!! ERROR: pthread_mutex_unlock() failed!!! DBUS test service running press ctrl-c to stop it & exit server stopped ERROR: pthread_mutex_lock() failed!!! ERROR: pthread_mutex_unlock() failed!!!

So it looks like the changeset introduces some multiple recursive lockings...

FYI, I also applied this patch to the newest branch/libffado-2.0 version (changeset 1194) and it also doesn't hang with the same error messages.

Hope this helps.

05/22/08 10:38:00 changed by slack

  • attachment nondebug_mutex_errorcheck.diff added.

05/22/08 10:47:09 changed by ppalmers

  • owner set to ppalmers.
  • status changed from new to assigned.

thanks, this will help a lot

05/25/08 09:01:45 changed by ppalmers

  • status changed from assigned to closed.
  • resolution set to fixed.

r1201 seems to fix these issues. r1219 seems to work for both optimized and non-optimized non-debug versions.