From nobody@FreeBSD.org  Tue Aug 28 00:33:48 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 103D1106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 28 Aug 2012 00:33:48 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id EF9DD8FC18
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 28 Aug 2012 00:33:47 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q7S0XlG3067723
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 28 Aug 2012 00:33:47 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q7S0XlDS067719;
	Tue, 28 Aug 2012 00:33:47 GMT
	(envelope-from nobody)
Message-Id: <201208280033.q7S0XlDS067719@red.freebsd.org>
Date: Tue, 28 Aug 2012 00:33:47 GMT
From: Oliver Heesakkers <dev2@heesakkers.info>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch?] astro/stellarium segfault on missing pthread
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         171132
>Category:       ports
>Synopsis:       [patch?] astro/stellarium segfault on missing pthread
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    danfe
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 28 00:40:01 UTC 2012
>Closed-Date:    Sat Feb 23 03:24:49 UTC 2013
>Last-Modified:  Sat Feb 23 03:24:49 UTC 2013
>Originator:     Oliver Heesakkers
>Release:        FreeBSD 9.0-RELEASE-p3
>Organization:
>Environment:
>Description:
For a while now Stellarium would segfault immediately after running, gdb shows something like:
0x4826a2c2 in pthread_mutexattr_setkind_np () from /lib/libthr.so.3
>How-To-Repeat:
Install then (try to) run stellarium
>Fix:
On the web it was suggested to add -pthread to the compile flags, so I added -pthread to CMAKE_C_FLAGS and CMAKE_CXX_FLAGS on lines 89 and 90 of CMakeLists.txt, which solved the problem for me.

I don't know whether there is a more correct way of handling this and CMakeList.txt is already touched from the Makefile, so I chose to not include a literal patch in this report.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->danfe 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Aug 28 00:40:14 UTC 2012 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=171132 

From: Oliver Heesakkers <dev2@heesakkers.info>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: ports/171132: [patch?] astro/stellarium segfault on missing pthread
Date: Tue, 28 Aug 2012 22:41:03 +0200

 Forgot to mention:
 I'm on amd64 (dualcore) and using a nVidia 8800GT with nvidia-driver-295.71

From: Oleg Ginzburg <olevole@olevole.ru>
To: bug-followup@freebsd.org,
 dev2@heesakkers.info
Cc: alex.v.wolf@gmail.com
Subject: Re: ports/171132: [patch?] astro/stellarium segfault on missing pthread
Date: Sat, 1 Sep 2012 21:58:08 +0400

 Hi, 
 
 I want to confirm that an inserting
 
 
 IF (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
    SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
 ENDIF (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
 
 into CMakefile fix a problem. Whether there should be it in upstream a code, 
 or there is a possibility to specify "-pthread" in FreeBSD port's Makefile ?
State-Changed-From-To: open->feedback 
State-Changed-By: danfe 
State-Changed-When: Fri Feb 22 16:17:23 UTC 2013 
State-Changed-Why:  
Is this still an issue after update to version 0.12.0 (committed as r312702)? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=171132 

From: Oliver Heesakkers <dev2@heesakkers.info>
To: bug-followup@freebsd.org, danfe@freebsd.org
Cc:  
Subject: Re: ports/171132: [patch?] astro/stellarium segfault on missing pthread
Date: Fri, 22 Feb 2013 23:39:32 +0100

 Builds and runs succesfully on 9.1 RELEASE amd64.
 
 I even have the idea performance is back after having a dip in earlier 
 versions.
State-Changed-From-To: feedback->closed 
State-Changed-By: danfe 
State-Changed-When: Sat Feb 23 03:24:33 UTC 2013 
State-Changed-Why:  
The problem is gone. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=171132 
>Unformatted:
