LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 10-24-2005, 04:49 AM   #1
dr_berta
LQ Newbie
 
Registered: Sep 2005
Location: Carpi (Modena) - Italy
Distribution: Ubuntu 12.04 64bit; Slackware 13 64bit; Gentoo
Posts: 14

Rep: Reputation: 0
Qt application: segmentation fault error


Hi,

I'm writing an interface to an USB board using Qt libraries 3.3.3.
My goal is to program and control a fpga that is present on that board. Until now I can recognize the external board and download the firmware, but when I try to send commands to that board using the appropriate driver function, the software crash and send me a "segmentation fault "error.
I would understand if this error is due to a driver bug or if I've made an error during the compilation of my application (I've no errors or warnings during compilation).

Someone could help me?

Thank's
dr_berta
 
Old 10-24-2005, 02:55 PM   #2
trevelluk
Member
 
Registered: Nov 2003
Location: Bristol, UK
Distribution: Debian Lenny, Gentoo (at work)
Posts: 388

Rep: Reputation: 32
Segmentation fault means that your program tried to access memory it wasn't allowed to. I can't give any definite help without seeing the code, but two common causes are attempting to access data beyond the end of an array, or trying to access a NULL pointer. If it's not one of these, it is almost certainly some kind of other pointer problem.

Running your program in a debugger will probably help to track the problem down.
 
Old 10-24-2005, 03:20 PM   #3
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,537

Rep: Reputation: 149Reputation: 149
Check carefully the data/commands you pass to the driver. You probably pass them as pointers and one (or more) of them is wrong.
 
  


Reply


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 ERROR bluechicken Programming 8 06-30-2005 07:02 AM
Segmentation Fault Error ashwinipahuja Programming 1 03-29-2004 02:09 PM
The Gimp: Segmentation Fault error Mega Man X Linux - Software 8 10-04-2003 08:07 PM
Getting segmentation fault error with Xmms Unreal7000 Linux - Software 1 06-03-2003 08:43 PM
segmentation fault with my Gtk Application jaganmolleti Programming 1 03-18-2003 11:05 AM


All times are GMT -5. The time now is 07:57 PM.

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