NetBSD Problem Report #18948
Received: (qmail 25451 invoked by uid 605); 5 Nov 2002 23:22:18 -0000
Message-Id: <20021105232217.6B3B411171@narn.netbsd.org>
Date: Tue, 5 Nov 2002 15:22:17 -0800 (PST)
From: tnn@netilium.org
Sender: gnats-bugs-owner@netbsd.org
Reply-To: tnn@netilium.org
To: gnats-bugs@gnats.netbsd.org
Subject: glib2 threads break on alpha
X-Send-Pr-Version: www-1.0
>Number: 18948
>Category: port-alpha
>Synopsis: glib2 threads break on alpha
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: port-alpha-maintainer
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Nov 05 23:23:01 +0000 2002
>Closed-Date: Fri Mar 25 23:17:26 +0000 2005
>Last-Modified: Fri Mar 25 23:17:26 +0000 2005
>Originator: Tobias Nygren
>Release: 1.6_STABLE
>Organization:
>Environment:
>Description:
GThreads don't work with glib2 on alpha.
See attached source code.
>How-To-Repeat:
#include <glib.h>
#include <stdio.h>
/*
glib2test.c
Works on i386, breaks on alpha
Used:
NetBSD 1.6-STABLE
glib2-2.0.6nb2
pth-1.4.1nb5
compile:
gcc -I /usr/pkg/include/glib/glib-2.0 \
-I /usr/pkg/lib/glib-2.0/include \
-L/usr/pkg/lib -Wl,-R/usr/pkg/lib \
-lglib-2.0 -lgthread-2.0 \
glib2test.c -o glib2test
*/
gpointer mythread(gpointer data) {
/* this never happens */
printf("The thread is running\n");
}
int main(int argc, char **argv) {
g_thread_init(NULL);
g_thread_create(&mythread, NULL, FALSE, NULL);
for(;;) {
getchar();
}
}
>Fix:
>Release-Note:
>Audit-Trail:
From: Tobias Nygren <tnn@netilium.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-alpha/18948
Date: Tue, 21 Oct 2003 02:11:14 +0200
I have tried this on:
NetBSD 1.6ZD Sat Oct 18 23:49:15 CEST 2003
w/ glib 2.2 from pkgsrc.
Threads now seem to work, you may close this PR.
State-Changed-From-To: open->closed
State-Changed-By: wiz@netbsd.org
State-Changed-When: Fri, 25 Mar 2005 23:17:26 +0000
State-Changed-Why:
Reported fixed 17 months ago.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.