Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 10-24-2005, 05:49 AM   #1
LQ Newbie
Registered: Sep 2005
Location: Carpi (Modena) - Italy
Distribution: Ubuntu 14.04_x86_64 LTS; Slackware 13 64bit; Gentoo
Posts: 23

Rep: Reputation: 1
Qt application: segmentation fault error


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?

Old 10-24-2005, 03:55 PM   #2
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, 04:20 PM   #3
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,547

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


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

All times are GMT -5. The time now is 11:06 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration