LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 01-16-2004, 10:31 AM   #1
andresbm3
LQ Newbie
 
Registered: Jan 2003
Location: Perú
Distribution: REDHAT
Posts: 3

Rep: Reputation: 0
My Qt App Produce A Segmentation Fault


OK, this is the problem: I develop a considerable big Qt app using Qt 3.1 in redhat 6.2. When I install the redhat 7.3, it have qt3.0.3, I try to run my executable (compiled in 6.2) and it produce an SEGMENTATION FAULT.

I WANT TO KNOW WHY?

Could it be a problem with the version of QT? with the shared libraries? with memory management?

How I can obtain only executables that donīt present this problems and can run freely without problems?

Why the QT designer donīt recognize my old projet that after this situation work finely?

does i have redo my widgets?

Please, I have all my hopes in this forum ...

Andres


 
Old 01-16-2004, 10:41 AM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
A segmentation fault is usually caused by trying to write to memory you don't have permission too, or deleting something that doesn't actually exist ( unitialised pointers ).

Its normally a bug in your code, 7.3 probably is using more up to date libs, and now your program is causing a problem. Step through the code using a debugger, till the problem occurs

It will probably be in a loop, or near a new/delete. Check every pointer. You've probably got away with till now, with the update, things might be tighter with memory, or the system is watching more closely.
 
  


Reply



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
yast segmentation fault, system freezing - nvidia driver at fault? BaltikaTroika SUSE / openSUSE 2 12-02-2005 09:34 AM
Segmentation Fault after adding a radio button into my compiled app/ Gnarg Programming 2 10-18-2005 06:47 AM
segmentation fault vibhory2j Programming 7 10-16-2005 07:06 AM
Segmentation fault on toplevel = XtVaAppInitialize(&app, "Email", NULL, 0, &argc, cbranje Programming 0 02-19-2005 12:06 PM
ls segmentation fault sucho Linux - General 1 06-23-2004 06:44 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:10 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration