🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #41554

problems with signal() on AIX

#41554
From: Holger Berger
Date: Thu, 07 Mar 1996 00:00
19 lines
1202 bytes
I have some problems with signal() on AIX 3.2.5 with gcc version 2.5.8.

After installing an handler with signal(SIG, handler) and an handler
in the form
	signal(SIG, SIG_DFL)
	...
	signal(SIG, handler)
the program dies with an segmentation fault in exit() !
It only dies, if the handler was called. If there was no signal, everything
is ok.

The thing that makes me thinking is, that the some programm works well
when compiled with IBMs cc (version 01.03.00.1)!

Where is my mistake? Should I upgrade to an newer release of gcc?

-- 
Holger 'hobel' Berger		Holger.Berger@rus.uni-stuttgart.de
Diesen Platz kann man mieten!	http://www.home.pages.de/~hobel
Technical Details
Message-ID: <4hmub8$1iis@info4.rus.uni-stuttgart.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,ab61a94cf72c205b,start
X-Google-Attributes: gid11318c,public
X-Google-Thread: 115614,ab61a94cf72c205b,start
X-Google-Attributes: gid115614,public
From: zrx90104@baracke.rus.uni-stuttgart.de (Holger Berger)
Subject: problems with signal() on AIX
Date: 1996/03/07
Message-ID: <4hmub8$1iis@info4.rus.uni-stuttgart.de>
X-Deja-AN: 142089156
organization: Comp.Center (RUS), U of Stuttgart, FRG
keywords: signal, AIX
newsgroups: gnu.gcc.help,comp.unix.aix