*BSD News Article 49395


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.kei.com!news.mathworks.com!tank.news.pipex.net!pipex!howland.reston.ans.net!xlink.net!isar.de!krabat!leo
From: leo@krabat.marco.de (Matthias Pfaller)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: porting Linux apps to BSD !
Message-ID: <4866@krabat.marco.de>
Date: 24 Aug 95 12:57:46 GMT
References: <aak2.808728796@ra.msstate.edu> <419mca$q7q@bonnie.tcd-dresden.de>
Organization: marco GmbH, D-85221 Dachau
Lines: 24
X-Newsreader: TIN [version 1.2 PL2]

J Wunsch (j@bonnie.heep.sax.de) wrote:
> Atif Ahmad Khan <aak2@Ra.MsState.Edu> wrote:

> >"/kernel: Process 3887 killed by vm_fault -- out of swap"

> Your program (or some other process around) has been consuming too
> much memory.  Perhaps your application has a memory hole?

> >"/kernel: pid 4166: myprogram: uid 65534: exited on signal 11"

> Access to memory outside your application.  Best to compile everything
> with `-g' and run it under control of a debugger (gdb).  When the
> segfault happens, control will get over to gdb, and you can examine
> all the variables of your program at this time.

It may well be possible that he is trying to allocate a large array from
the stack. For example the program "piggyback" that is used during the
linux build process does not work on NetBSD because of this. I noticed
this when I crosscompiled Linux on my pc532.

	Matthias
-- 
leo@marco.de		in real life: Matthias Pfaller
			marco GmbH, 85221 Dachau	tel: +49 8131 516142