🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #3473

Re: how to prevent prevent .so-calling routine to crash from segfaults in .so

#3473
From: mru
Date: Wed, 09 Jul 2003 11:51
16 lines
1970 bytes
sonicshaheen@yahoo.com (Nabeel Shaheen) writes:

> so ***is there any way that my so-calling module does not terminate
> due to some segfaults in a .so file written by the end-user of my
> module?***.

First, don't yell (fixed).  The answer is no.  If a module contains
bad code that trashes your stack and/or head, there's nothing you can
do to recover.  Depending on your design, it could be possible to run
all modules in separate processes, communicating through sockets,
shared memory, or whatever.  Then only the misbehaving process would
be terminated.

-- 
M�ns Rullg�rd
mru@users.sf.net
Technical Details
Message-ID: <yw1xn0fnx6ir.fsf@users.sourceforge.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!uninett.no!news.eunet.no!uio.no!news.kth.se!not-for-mail
References: <5a41f079.0307090324.3822c1bb@posting.google.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 11318c,e85a8f2945e25a1
X-Google-Attributes: gid11318c,public
X-Google-Thread: 10c696,e85a8f2945e25a1
X-Google-Attributes: gid10c696,public
X-Google-Thread: fc89c,e85a8f2945e25a1
X-Google-Attributes: gidfc89c,public
X-Google-Thread: f65d0,e85a8f2945e25a1
X-Google-Attributes: gidf65d0,public
X-Google-Thread: 107b38,e85a8f2945e25a1
X-Google-Attributes: gid107b38,public
X-Google-ArrivalTime: 2003-07-09 05:08:34 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!uninett.no!news.eunet.no!uio.no!news.kth.se!not-for-mail
From: mru@users.sourceforge.net
Newsgroups: comp.unix.programmer,gnu.gcc.help,gnu.gcc,comp.os.linux.redhat,comp.os.linux.development.apps
Subject: Re: how to prevent prevent .so-calling routine to crash from
 segfaults in .so
Followup-To: comp.unix.programmer
Date: Wed, 09 Jul 2003 13:51:24 +0200
Lines: 16
Message-ID: <yw1xn0fnx6ir.fsf@users.sourceforge.net>
References: <5a41f079.0307090324.3822c1bb@posting.google.com>
NNTP-Posting-Host: manganonaujakasit.e.kth.se
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Rational FORTRAN, linux)
Cancel-Lock: sha1:62LP3wkcCtdUKUB/FCj5eCSpMjo=