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++
|
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.
|
I am already using redhat7.2 kernel version 2.4.7-10 i 686
|
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.
|
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 |
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.
|
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...
|
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 |
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 |
Re: gcc compilers
Quote:
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 |
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/ |
Oh and It said in egcs improvments over normal gcc:
Quote:
|
Re: Re: gcc compilers
Quote:
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 |
It's a good idea to have 2 or 3 versions. Then you can always check code with another compiler...
|
Re: Re: Re: gcc compilers
Quote:
|
All times are GMT -5. The time now is 09:22 AM. |