home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!spool.mu.edu!umn.edu!csus.edu!netcom.com!zmbenhal
- From: zmbenhal@netcom.com (Zeyd M. Ben-Halim)
- Subject: SEGV in library routines
- Message-ID: <1992Nov9.081513.22863@netcom.com>
- Organization: Netcom - Online Communication Services (408 241-9760 guest)
- Date: Mon, 9 Nov 1992 08:15:13 GMT
- Lines: 50
-
-
- This was on the mailing list. Since I've heard no explaination I'm asking here:
-
- From: d88-man@nada.kth.se
- Sender: owner-linux-activists@joker.cs.hut.fi
- X-Note1: Remember to put 'X-Mn-Key: normal' to your mail body or header
- X-Mn-Key: NORMAL
-
-
- I have tried compiling some X-programs (e.g SRGP-library, olvwm,
- xsokoban etc.) The compilation works ok, but when trying to run the
- resulting executable just give segmentation fault, core dumped...
- Using gdb shows that the seg. fault appears in a function called
- _end(). (What is that function doing ?) It seems that the call to
- ^^^^^^
- I got similar error trying to run equel (part of ingres RDBMS). The stack
- showed:
- sys_nerr
- _end
- _end
- But sys_nerr is AN integer. gdb says that it's a char. In the library is
- appears as T (text; aka code???)
-
- If I link with the static library the stack looks like this:
- malloc
- _end
- _end
-
- malloc crashes after being called for the 121st time! all the calls allocate
- small amounts of memory (10 bytes max);
-
- While I'm asking, does anybody have decent man pages for nm (explaining the
- output as well as the input switches?
-
- this function takes place just before the window is to be opened in X.
- For example in a testprogram for SRGP: in <some SRGP init.> in
- XopenWindow() in _end() seg. fault... I'm totally clueless as of what
- this might come from. Is there anybody out there who has the solution
- ??? (I hope it's just my lack of knowledge that's the problem, and it
- probably is. :-) ) I haven't found this in any FAQ though. At last I
- would like to appologize this mail coming to the wrong channel of this
- list (it would probably belong in the X-channel...) but I haven't had
- time to look over the different channels and so on...
- Could someone please help me out or point me in any direction ?!
- Thanks in advance,
- Mats Andersson (d88-man@nada.kth.se)
-
-
-
-
-