Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Aug 2010 23:42:53 +0400
From:      Anonymous <swell.k@gmail.com>
To:        David DEMELIER <demelier.david@gmail.com>
Cc:        freebsd-ports <freebsd-ports@freebsd.org>
Subject:   Re: games/connect4 segfaults.
Message-ID:  <86k4o3jznm.fsf@gmail.com>
In-Reply-To: <AANLkTinoWzD_ATmyq3RQhHhT7OKii9n%2BUOnk7N=B45HU@mail.gmail.com> (David DEMELIER's message of "Fri, 6 Aug 2010 20:45:23 %2B0200")
References:  <AANLkTinoWzD_ATmyq3RQhHhT7OKii9n%2BUOnk7N=B45HU@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
David DEMELIER <demelier.david@gmail.com> writes:

> Hi,
>
> I just wanted to try games/connect4 but it segfaults here on FreeBSD
> 8.1-RELEASE and amd64.
>
> It's a long backtrace so I think you should try it by yourself.

Hmm, I have a very short one here, on gdb71 + gcc45.

  Program received signal SIGSEGV, Segmentation fault.
  0x00000000004031ac in envmesg (environ=0x7fffffff9550, message=0x4038aa <error reading variable>) at c4.c:841
  841         *(int *)last = 0;       /* clean out last word */
  (gdb) bt f
  #0  0x00000000004031ac in envmesg (environ=0x7fffffff9550, message=0x4038aa <error reading variable>) at c4.c:841
          last = 0xffffffffffffa0fc <Address 0xffffffffffffa0fc out of bounds>
          address = 0x7fffffff9370 <error reading variable>
  #1  0x00000000004011d2 in main (argc=1, argv=0x7fffffff9360, envp=0x7fffffff9370) at c4.c:60
          move = 1
          square = -27792
          winner = 3
          temp = 8

The pointers seem bogus. I've tried to compile the port with -m32 and it works.
So, it should be marked BROKEN on amd64.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86k4o3jznm.fsf>