LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-12-2002, 11:19 AM   #1
ccjohnny
LQ Newbie
 
Registered: Jul 2002
Posts: 3

Rep: Reputation: 0
core dump on redhat7.2 but not 6.2


I'm developing a software for linux. It works on redhat6.2 but writes a core file on exit in redhat7.2. I've tried reinstalling redhat7.2 again but it doesn't help. Is there any difference in threading or kernel difference that may lead to the crash? I am developing software with c++
 
Old 07-12-2002, 11:59 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
There's a big difference in kernel versions between 6.2 and 7.2. You may try another 2.4.x kernel and test your software with it.
 
Old 07-12-2002, 12:21 PM   #3
ccjohnny
LQ Newbie
 
Registered: Jul 2002
Posts: 3

Original Poster
Rep: Reputation: 0
I am already using redhat7.2 kernel version 2.4.7-10 i 686
 
Old 07-12-2002, 01:16 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
RH 6.x uses 2.2.x series. I'm thinking about checking it with another 2.4.x kernel. If there's still the same problem it may be that there's something not right with your program (especially when freeing memory). But it may be gcc problem as well. What is the error and where exactly it happens? try to put some debug code do find it out.
 
Old 07-12-2002, 01:53 PM   #5
ccjohnny
LQ Newbie
 
Registered: Jul 2002
Posts: 3

Original Poster
Rep: Reputation: 0
I'm compiling the code using on RH6.2 and move the executable to 7.2, moving the source code over and compiling is not possible because my program is huge.
Stack look like this
from librpcltscm.so
#2 0x4185a687 in TRANS_ADDRESS::TransReceive () at eval.c:41
#3 0x4184fcb5 in OSF_ADDRESS::ReceiveLotsaCalls () at eval.c:41
#4 0x4184fb22 in ReceiveLotsaCallsWrapper () at eval.c:41
#5 0x41848459 in BaseCachedThreadRoutine () at eval.c:41
#6 0x41857e3f in ThreadStartRoutine () at eval.c:41
#7 0x41bc1b15 in MwThread () at eval.c:41
#8 0x41d97f10 in pthread_start_thread_event (arg=0xbe7ffc00) at manager.c:274
 
Old 07-13-2002, 09:35 PM   #6
kwigibo
Member
 
Registered: Apr 2002
Posts: 53

Rep: Reputation: 15
It is most likely the compiler (g++), because they are different versions,(unless upgraded). Also are you using any optimisation arguments? perhaps this may affect it also.
 
Old 07-14-2002, 05:22 AM   #7
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
When binary is moved, it may be also libc etc. I suppose that one compilation using 2.4.x kernel might be required to find out what's wrong...
 
Old 07-19-2002, 04:36 AM   #8
rverlander
Member
 
Registered: May 2002
Distribution: A few
Posts: 488

Rep: Reputation: 30
gcc 2.96 in rh7.x compiles stuff no good

downgrade to gcc 2.91/egcs 1.1.2 (rh6.2 uses that) or 2.95.3
 
Old 07-23-2002, 04:53 PM   #9
verbal
Member
 
Registered: Jul 2002
Location: New York
Distribution: Red Hat 7.2, SuSE 7.3
Posts: 60

Rep: Reputation: 15
gcc compilers

hey there,

rverlander is quite right. RH's 2.96 is a broken compiler, they took a developmental snapshot from gcc's site when they wanted to release rh7.2 gcc's site had a rather nasty note about it and various other sites are reporting problems such as you describe when their applications are compiled with it.

Of particular intrest, check out MySQL's site, they are warning people that implementations compiled under 2.96 are resulting in corrupted databases.

I'd suggest either downgrading to 2.95 or upgrading to 3.02


Verbal
 
Old 07-25-2002, 02:20 AM   #10
rverlander
Member
 
Registered: May 2002
Distribution: A few
Posts: 488

Rep: Reputation: 30
Re: gcc compilers

Quote:
Originally posted by verbal
hey there,

rverlander is quite right. RH's 2.96 is a broken compiler, they took a developmental snapshot from gcc's site when they wanted to release rh7.2 gcc's site had a rather nasty note about it and various other sites are reporting problems such as you describe when their applications are compiled with it.

Of particular intrest, check out MySQL's site, they are warning people that implementations compiled under 2.96 are resulting in corrupted databases.

I'd suggest either downgrading to 2.95 or upgrading to 3.02


Verbal
Yup

3.0.2? 3.1 is out!
Actualy 2.96 has been in Red Hat since 7.0 (linus torvalds had a message on kernel mailing list saying that he didnt like gcc 2.96) Mandrake 8.0/8.1/8.2 also has gcc 2.96 but the betas of Red Hat 7.4 and Mandrake 9.0 both have gcc 3.1
 
Old 07-25-2002, 02:24 AM   #11
rverlander
Member
 
Registered: May 2002
Distribution: A few
Posts: 488

Rep: Reputation: 30
BTW the note on the gcc site about 2.96 @ gcc site that verbal mentioned is http://gcc.gnu.org/gcc-2.96.html

And I just remembered that the RH6.2 compiler is egcs 1.1.2 (aka gcc 2.91) which is recommended by a lot of people and is better than 2.95 and maybe even better than 3.x (even linus torvalds recommends 2.91/egcs 1.1.2)

egcs 1.1.2 url is http://gcc.gnu.org/egcs-1.1/
 
Old 07-25-2002, 02:27 AM   #12
rverlander
Member
 
Registered: May 2002
Distribution: A few
Posts: 488

Rep: Reputation: 30
Oh and It said in egcs improvments over normal gcc:
Quote:
Global common subexpression elimination and global constant/copy propagation (aka gcse)
Ongoing improvements to the alias analysis support to allow for better optimizations throughout the compiler.
Vastly improved C++ compiler and integrated C++ runtime libraries.
Fixes for the /tmp symlink race security problems.
New targets including mips16, arm-thumb and 64 bit PowerPC.
Improvements to GNU Fortran (g77) compiler and runtime library made since g77 version 0.5.23.
egcs would be better for you.
 
Old 07-25-2002, 05:50 AM   #13
verbal
Member
 
Registered: Jul 2002
Location: New York
Distribution: Red Hat 7.2, SuSE 7.3
Posts: 60

Rep: Reputation: 15
Re: Re: gcc compilers

Quote:
Originally posted by rverlander

Yup

3.0.2? 3.1 is out!
Actualy 2.96 has been in Red Hat since 7.0 (linus torvalds had a message on kernel mailing list saying that he didnt like gcc 2.96) Mandrake 8.0/8.1/8.2 also has gcc 2.96 but the betas of Red Hat 7.4 and Mandrake 9.0 both have gcc 3.1
hey there...

I mentioned 3.02 because it was stable, and when trying to discover the source of a problem its not always best to take the absolute latest version... just an opinion though

Verbal
 
Old 07-25-2002, 12:26 PM   #14
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
It's a good idea to have 2 or 3 versions. Then you can always check code with another compiler...
 
Old 07-25-2002, 10:19 PM   #15
rverlander
Member
 
Registered: May 2002
Distribution: A few
Posts: 488

Rep: Reputation: 30
Re: Re: Re: gcc compilers

Quote:
Originally posted by verbal


hey there...

I mentioned 3.02 because it was stable, and when trying to discover the source of a problem its not always best to take the absolute latest version... just an opinion though

Verbal
3.0.2 isn't stable on C++ though
 
  


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
strcat Core Dump monil Programming 4 03-08-2005 11:20 AM
Core Dump File squinn Linux - Software 1 02-18-2005 12:41 PM
Core Dump MrPotatoHead AIX 3 01-14-2004 09:42 AM
core dump tomservo Linux - General 4 09-23-2002 05:35 PM
core dump lacrimae Linux - General 3 02-19-2002 01:43 PM

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

All times are GMT -5. The time now is 03: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