LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   core dump on redhat7.2 but not 6.2 (https://www.linuxquestions.org/questions/programming-9/core-dump-on-redhat7-2-but-not-6-2-a-25627/)

ccjohnny 07-12-2002 11:19 AM

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++

Mara 07-12-2002 11:59 AM

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.

ccjohnny 07-12-2002 12:21 PM

I am already using redhat7.2 kernel version 2.4.7-10 i 686

Mara 07-12-2002 01:16 PM

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.

ccjohnny 07-12-2002 01:53 PM

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

kwigibo 07-13-2002 09:35 PM

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.

Mara 07-14-2002 05:22 AM

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...

rverlander 07-19-2002 04:36 AM

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

verbal 07-23-2002 04:53 PM

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

rverlander 07-25-2002 02:20 AM

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

rverlander 07-25-2002 02:24 AM

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/

rverlander 07-25-2002 02:27 AM

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.

verbal 07-25-2002 05:50 AM

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

Mara 07-25-2002 12:26 PM

It's a good idea to have 2 or 3 versions. Then you can always check code with another compiler...

rverlander 07-25-2002 10:19 PM

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


All times are GMT -5. The time now is 09:22 AM.