954,498 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Pthreads not working on Netbeans using Cygwin

Hey there,

I'm currently using NetBeans 6.8 running Cygwin GNU Bash version 3.2.49(23)-release.

I'm having a problem running my program that uses pthreads, mutexes, and semaphores. After it creates 1 to 3-4 threads, it returns a Segmentation fault.

I ran the program on a computer running Linux (using NetBeans as well) and had no issues running (i.e. didn't return Segmentation fault).

Is there a fix for this problem?

I also tried debugging in NetBeans but after the program starts creating threads, I try to select threads from the "Threads" tab in the debugging menu, but would not let me step into one thread at a time, and then gives me a Segmentation Fault error message. So I was also wondering if there was a solid way to debug multi-threads on NetBeans.

Thank you for your help.

blackrobe
Junior Poster in Training
52 posts since Oct 2008
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: