[CentOS 5.4][x86_64] Peculiar crash while running service

Support for the other architectures (X86_64, IA-64, and PowerPC)
Post Reply
sayan-chaliha
Posts: 2
Joined: 2010/02/04 11:35:43
Contact:

[CentOS 5.4][x86_64] Peculiar crash while running service

Post by sayan-chaliha » 2010/02/04 11:54:22

Hi,

I am a developer, and I have been using CentOS as the 64-bit build environment for quite some time now.

Recently, after release of 5.4, several users who upgraded to 5.4 reported crashes in my software, with no additional log information available.

To maintain backward compatibility with older systems, I use the following config to build:
-- GCC v3.2
-- CentOS 4 x86_64
-- packages are distributed using rpm-build

The software is a service daemon which monitors MySQL servers. Upto CentOS 5.3 it works absolutely fine. But in CentOS 5.4, it crashes. I created a build with debug symbols and created several crash-dumps to analyze the issue. All the crash-dumps pointed to one statement:
[code]unsigned char *ptr = NULL;[/code]
GDB indicates that the system could not allocate memory to store 'ptr' (its not because the pointer was accessed without being initialized!). I was very baffled! Have you had any other issues such as this?

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

[CentOS 5.4][x86_64] Peculiar crash while running service

Post by pschaff » 2010/02/04 18:37:39

Welcome to the CentOS fora.

I'm only surprised you have not seen problems sooner. You should be building packages for CentOS 5.x on CentOS 5, not 4. A [b]lot[/b] of things have changed. You [i]might[/i] be OK building for the older release with compat-gcc-34 and , but are probably better building "native" on each release. You might also want to look at mock.

sayan-chaliha
Posts: 2
Joined: 2010/02/04 11:35:43
Contact:

Re: [CentOS 5.4][x86_64] Peculiar crash while running service

Post by sayan-chaliha » 2010/02/12 13:35:27

@pschaff:

Thanks a lot! That was all the information I needed.

Could you also tell me if every version of CentOS corresponds to a version of RHEL? For example, is CentOS 5.2 similar to RHEL 5.2 in terms of kernel version, basic architecture etc....

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: [CentOS 5.4][x86_64] Peculiar crash while running service

Post by pschaff » 2010/02/12 13:40:47

You are welcome. Glad it helped.

There is an exact correspondence between CentOS-5.x and RHEL5 Update-x, except as noted in each set of [url=http://wiki.centos.org/Manuals/ReleaseNotes/CentOS5.4]Release Notes[/url] and any optional updated packages on may choose to add from CentOSplus or other sources, or in general CentOS-n.x and RHELn Update-x. See also

[url=https://www.centos.org/modules/tinycontent/index.php?id=2]About CentOS[/url]
[url=https://www.centos.org/modules/tinycontent/index.php?id=3]CentOS Purpose[/url]
[url=https://www.centos.org/modules/tinycontent/index.php?id=5]CentOS Goals[/url]
[url=http://wiki.centos.org/FAQ]FAQs[/url]

Post Reply

Return to “CentOS 5 - X86_64,s390(x) and PowerPC Support”