Jump to content
  • 0

Waveforms2015 (Linux)


curiousmuch

Question

Hi Everyone! 

I'm attempting use Waveforms with Ubuntu 15.10. I've installed Adept runtime, and Waveforms 2015 through .debs. Waveforms on start only displays a blackscreen and the terminal reports the following error: 

waveforms: pthread_mutex_unlock.c:87: __pthread_mutex_unlock_usercnt: Assertion `type == PTHREAD_MUTEX_ERRORCHECK_NP' failed.
Aborted (core dumped)

 

If I attempt the cli I receive the following: 

    Set range and print the actual obtained range:
    dwfcmd connect analogio channel=1 range=5V range

dwfcmd: pthread_mutex_unlock.c:87: __pthread_mutex_unlock_usercnt: Assertion `type == PTHREAD_MUTEX_ERRORCHECK_NP' failed.

Aborted (core dumped)

 

Anyone have any ideas? 

I attempted this with the 32-bit and 64-bin installers. I am using a 64-bit system. 

 

P.S. On the main diligent site the link to the form at the bottom of the page is broken. 

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

Possibly related. 

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=810322

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=756316

https://bugs.launchpad.net/ubuntu/+source/ike/+bug/1541254

 

Hello,

the problem is caused by a bug in glibc package: 

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=810322

The problem can only reproduced on systems using TSX mutexes like Skylake 
or Broadwell CPUs. Workaround:

diff -r -u ike-orig/source/libith/libith.cpp ike/source/libith/libith.cpp
--- ike-orig/source/libith/libith.cpp   2012-02-10 08:05:36.000000000 +0100
+++ ike/source/libith/libith.cpp        2016-01-08 11:42:32.000000000 +0100
@@ -94,7 +94,7 @@
 {
        memset( obj_name, 0, 20 );
        pthread_mutexattr_init( &attr );
-       pthread_mutexattr_settype( &attr, PTHREAD_MUTEX_ERRORCHECK );
+       pthread_mutexattr_settype( &attr, PTHREAD_MUTEX_NORMAL );
        pthread_mutex_init( &mutex, &attr );
 }

Works for me without problems so far.

I am using a Lenovo T450s with a Broadwell (GT2) processor. Is adept runtime using the shared system library or it's own? Is it possible an older version of glibc is being linked against? It appears they have repaired this issue in later releases from the library and not the work around listed above.   

Link to comment
Share on other sites

Hi curiousmuch,

I'm glad you got it working; I'm not sure what the problem was either.

Out of curiosity though, which link on the main Digilent site did you find was broken? I'm not sure if it has since been fixed, but I'm not finding it at the moment.

Thanks,
JColvin

Link to comment
Share on other sites

Good to know you solved the problem.

This seems to be an issue in Linux libraries with the mentioned CPU architectures.
I tried installing Ubuntu 15.10 amd64, but on my Haswell-H CPU the software is working fine.

Link to comment
Share on other sites

8 hours ago, attila said:

Good to know you solved the problem.

This seems to be an issue in Linux libraries with the mentioned CPU architectures.
I tried installing Ubuntu 15.10 amd64, but on my Haswell-H CPU the software is working fine.

Do you happen to know if Waveforms 2015 / Adept is using the system libraries? Since the problem was repaired by updating to Ubuntu 16.04 I'm guessing yes...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...