On Fri, Dec 01, 2006 at 03:00:40PM -0600, Dale Rahn wrote:
> On Fri, Dec 01, 2006 at 09:20:18PM +0100, Karel Kulhavy wrote:
> > The default linker in OpenBSD 3.9 segfaults reproducibly:
> 
> Perhaps you want to write the file to wav2bin instead of -Wall, and
> not link the old version with the new one being built.
> 
> $ gcc -Wall -o wav2bin wav2bin.c

I figured out that this doesn't segfault on Linux. However a friend compiled ld
with Electric Fence and then it segfaults even on Linux. The bug seems to be in
ld.  This is an example how the OpenBSD memory protection system makes finding
bugs easier.

Another example was in gschem schematic editor http://geda.seul.org. I got a
segfault of gschem on OpenBSD every 5 minutes related to autosave. They said
this bug was known, but very rare to happen and thus difficult to find, because
they develop gschem on Linux.

CL<
> 
> > 
> > [EMAIL PROTECTED]:~$ gcc -o -Wall wav2bin wav2bin.c
> > collect2: ld terminated with signal 11 [Segmentation fault], core dumped
> > wav2bin(.init+0x0): In function `__init':
> [...]
> Dale Rahn                             [EMAIL PROTECTED]

Reply via email to