Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-17-2009, 01:52 AM   #1
LQ Newbie
Registered: Aug 2009
Posts: 2

Rep: Reputation: 0
pthread_mutex_lock segmentation fault

I am crosscompiling a library for ARM processor running Linux. My host is
Intel x86 / Ubuntu. When I compile and run on my host machine,
everything works well. However, when I compile, link and run an example
program on the target, it results in Segmentation Fault. In particular,

The library creates a FEW mutexes and has numerous operations to create, lock, release those mutexes. For a while, it works ok. Mutexes are created, locked and released on the traget. But after a point, suddely, it crashes with Segmentation Fault in the lock step :

pthread_mutex_lock(this=0x20005,hMutex=0x7500) //random numbers
Program Recd signal SIGSEGV

I am unable to reason out under what conditions this error may happen. Since the system is able to lock mutexes in many instances before. Plus, this error does not happen on Ubuntu but happens on the target device.

What can I do to debug this problem and find a solution, Please advice, VERY URGENT


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Segmentation fault chobo Linux - Newbie 2 10-30-2008 04:13 AM
yast segmentation fault, system freezing - nvidia driver at fault? BaltikaTroika SUSE / openSUSE 2 12-02-2005 09:34 AM
segmentation fault pippet Programming 4 01-24-2005 01:02 AM
Segmentation fault dand Linux - Newbie 2 12-16-2004 04:45 PM
Segmentation Fault XPediTioN Slackware 2 09-18-2003 08:16 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:36 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration