home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / linux / 16102 < prev    next >
Encoding:
Text File  |  1992-11-09  |  2.3 KB  |  60 lines

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