Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Installation, Compiling and Running of theide » segfault while starting theide
segfault while starting theide [message #8497] Wed, 14 March 2007 14:51 Go to next message
piotr5 is currently offline  piotr5
Messages: 107
Registered: November 2005
Experienced Member
there are 2 files which cause a segfault when compiled
speed-optimized. I solved the problem by compiling them
with a different gcc-option:

for Core/Vcont.cpp I need "-Os -finline-length=119", and
for RichText/ParaTypes.cpp I need "-Os -finline-length=141".

is my gcc-3.3.1 broken in the aspect of function-inlining?
or is it upp's fault? I guess I need a newer gcc...
Re: segfault while starting theide [message #8546 is a reply to message #8497] Fri, 16 March 2007 18:32 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
piotr5 wrote on Wed, 14 March 2007 09:51

there are 2 files which cause a segfault when compiled
speed-optimized. I solved the problem by compiling them
with a different gcc-option:

for Core/Vcont.cpp I need "-Os -finline-length=119", and
for RichText/ParaTypes.cpp I need "-Os -finline-length=141".

is my gcc-3.3.1 broken in the aspect of function-inlining?
or is it upp's fault? I guess I need a newer gcc...


-Os is _size_ optimization.

Interesting, recently Guido reported some problems with size optimizations too... With 4.x compiler of ubuntu 610, everything seems to work fine though...

Mirek
Re: segfault while starting theide [message #8552 is a reply to message #8546] Fri, 16 March 2007 22:54 Go to previous messageGo to next message
ebojd is currently offline  ebojd
Messages: 225
Registered: January 2007
Location: USA
Experienced Member
As a note, I have been reading up on cross-platform problems with -fPIC and came across specific references regarding gcc-3.3. You might want to check into that. If it will not cause problems I would suggest upgrading your compiler to version 3.4 or possibly to the newest stable 4.1. Version 3.4 would likely be safest.

EBo --
Re: segfault while starting theide [message #8617 is a reply to message #8552] Wed, 21 March 2007 17:54 Go to previous messageGo to next message
piotr5 is currently offline  piotr5
Messages: 107
Registered: November 2005
Experienced Member
thanks for the interesting comments. I'd be interested in
reading up on these gcc-3.3 issues, since 3.3 is the last
release-series to support certain deprecated compiler-behaviour.

in the meantime I'll upgrade to 4.1.2 -- I just wish there
where some list of all open-source c++-libs so that I could
find each potential incompatibility beforehand...

as for the -Os, I know that it's size-optimization, and
strangely -O2 -finline-limit didn't work (is the latter
parameter ignored for -O2?).

so, dear ebojd, please give me some links or google-words
to find anything about problems with gcc-3.3, bugzilla
isn't very helpful when searching for particular bugs.
as a side-note, I did experience various problems with
optimization in gcc-3.3, but that was always with some
machine-dependant optimizations. so, maybe the actual
bug is within upp (probably some expected behaviour was
really undefined behaviour according to the gcc-developers
or something).
Re: segfault while starting theide [message #8618 is a reply to message #8617] Wed, 21 March 2007 19:40 Go to previous message
ebojd is currently offline  ebojd
Messages: 225
Registered: January 2007
Location: USA
Experienced Member

Well, the first place I would look is the following URL which discusses gcc-3.4, but I have seen similar with 3.3. Sorry I did not keep careful notes. I'll post more if I recall them, but for now is the following:

http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?pa rt=1&chap=3

As a note, I have had no problems with U++ and gcc-4.1.1/glibc-2.5

Hope this helps.

EBo --
Previous Topic: theide and Puppy-linux
Next Topic: experimental Gentoo ebuild for beta3
Goto Forum:
  


Current Time: Tue Apr 16 21:42:11 CEST 2024

Total time taken to generate the page: 0.01613 seconds