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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e67f22fb47167a91 X-Google-Attributes: gid103376,public From: Simon Wright Subject: Re: Ada/Linux/select() problem Date: 1997/04/04 Message-ID: #1/1 X-Deja-AN: 230600392 X-NNTP-Posting-Host: pogner.demon.co.uk Sender: simon@pogner References: <334281E6.2781@nlr.nl> Organization: At Home Newsgroups: comp.lang.ada Date: 1997-04-04T00:00:00+00:00 List-Id: "moelands j.m." writes: > I have a problem with the select() system call on linux in combination > with Ada. > > The following short example program, consisting of an Ada main routine > main.adb, an interface package sel.ad[sb] providing the interface between > Ada and C, and a file dosel.c containing the C routine calling select(), > does run on a Unix machine (as it should, imo). However, it does not run > under linux - the result is a core dump. The call to select() seems to > garble the stack. > > I use gnat 3.09 and linux 2.0.0. Does anybody have any idea what might > cause this problem? Works fine here (2.0.29). What system library versions are you using? pogner[26]$ ldd main libgnat.so => /usr/lib/libgnat.so.3.09 libc.so.5 => /lib/libc.so.5.4.17 libpthreads.so.1 => /usr/lib/libpthreads.so.1.60.4 libm.so.5 => /lib/libm.so.5.0.7 -Simon