From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c2650880fba54b9e X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!newspeer.monmouth.com!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.tiscali.de!uninett.no!news.eunet.no!kda-news.kongsberg.com!not-for-mail From: "Egil H. H�vik" Newsgroups: comp.lang.ada Subject: Re: Interrupt handler seems not to be called in GNAT 3.15p Date: Thu, 16 Jun 2005 10:03:57 +0200 Organization: News Kongsberg Defence&Aerospace T-Nett Message-ID: References: <1118849941.554713.60100@g14g2000cwa.googlegroups.com> NNTP-Posting-Host: kda-mfxp-09.kda.kongsberg.com X-Trace: kda-news.kongsberg.com 1118908722 24822 193.71.174.109 (16 Jun 2005 07:58:42 GMT) X-Complaints-To: tommy.fallsen@kongsberg.com NNTP-Posting-Date: Thu, 16 Jun 2005 07:58:42 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Xref: g2news1.google.com comp.lang.ada:11404 Date: 2005-06-16T10:03:57+02:00 List-Id: > When running the program SIGSEGV is raised twice (which I can see only > in gdb) for the same memory location and the program terminates. If I > put a delay 5.0 (or some other time) statement just before accessing > the memory, I also get the output of the exception handler, which > means an exception (PROGRAM_ERROR) is raised. > > Can anyone give me a hint? Is this a known problem with GNAT 3.15p? > Is it possible to handle SIGSEGV at all in this environment? Have you looked at pragma Attach_Handler? pragma Unreserve_All_Interrupts; protected Handler is procedure Handle_SIGSEGV; pragma Attach_Handler( Handle_SIGSEGV, Ada.Interrupts.Names.SIGSEGV ); end Handler; ~egilhh