home *** CD-ROM | disk | FTP | other *** search
/ Executor 2.0 / executorv2.0.iso / pc / linux / extra / docs / maillist / text / archive.96 / text1840.txt < prev    next >
Encoding:
Text File  |  1996-07-25  |  1.1 KB  |  26 lines

  1.     By running executor-svga.elf through strace, I was able to trace the
  2. crashes during the init sequence to a pair of bugs within Svgalib 1.2.8 and
  3. Linux.  I use a Mach32 card, but I suspect all linear-mapping SVGAlib drivers
  4. might exhibit this bug.
  5.  
  6.     In particular, with SVGAlib 1.2.8, the Mach32 driver uses 
  7. 0x40000000 as the location of the frame buffer.  The bad news is that ld.so
  8. loads various libraries in that very same space.  The Linux bug then allows
  9. the mmap of the frame buffer memory to go through, even though there is
  10. mprotect-ed memory within the area.  The libraries are mapped out of the
  11. executor process in favor of video memory, which is then executed, causing
  12. a bus fault.
  13.  
  14.     Upgrading to SVGAlib 1.2.9 solved the problem, since it is not picky
  15. over where the mmap takes place - at least with the Mach32 driver... 
  16. nonetheless, I'll send a bug report to Linux-kernel to see if there is really
  17. a Linux bug...
  18.  
  19.     (By the way, Executor calls getpid() a *lot* - that might be in SVGAlib,
  20. but I figure it might as well be able to remember it's own pid :)
  21.  
  22.     - Chad
  23.  
  24.  
  25.  
  26.