NIIBE Yutaka
2012-11-30 05:10:02 UTC
Hello,
I'm not on this list, please add me to Cc: in the follow up.
Do function pthread_getattr_np or pthread_attr_getstack work well on
alpha? This is my question.
Well, let me explain my issue.
I am a maintainer of gauche package (a lisp interpreter which use
bdwgc).
Upgraded to bdwgc to 7.2d, gauche had FTBFS on alpha. See the log:
http://buildd.debian-ports.org/status/fetch.php?pkg=gauche&arch=alpha&ver=0.9.3.3-4&stamp=1354011462
I think that the cause of this problem is the one of message (by bdwgc):
GC Warning: pthread_getattr_np or pthread_attr_getstack failed for main thread
It seems that pthread_getattr_np or pthread_attr_getstack failed on
alpha. It only occurs on alpha, I don't see same/similar issue on
any architectures.
For gauche build, I added the following patch, so that another
implementation (of LINUX_STACKBOTTOM) will be used to detect stack
bottom (not using pthread_getattr_np and pthread_attr_getstack).
Then, it builds successfully, now.
--- a/gc/include/private/gcconfig.h
+++ b/gc/include/private/gcconfig.h
@@ -1724,6 +1724,7 @@
# endif
# ifdef LINUX
# define OS_TYPE "LINUX"
+# define DONT_USE_GET_STACKBASE_FOR_MAIN
# define LINUX_STACKBOTTOM
# ifdef __ELF__
# define SEARCH_FOR_DATA_START
--- a/gc/os_dep.c
+++ b/gc/os_dep.c
@@ -1158,7 +1158,7 @@
ptr_t result; /* also used as "dummy" to get the approx. sp value */
# if defined(LINUX) && !defined(NACL) \
&& (defined(USE_GET_STACKBASE_FOR_MAIN) \
- || (defined(THREADS) && !defined(REDIRECT_MALLOC)))
+ || (defined(THREADS) && !defined(REDIRECT_MALLOC) && !defined(DONT_USE_GET_STACKBASE_FOR_MAIN)))
pthread_attr_t attr;
void *stackaddr;
size_t size;
I'm not on this list, please add me to Cc: in the follow up.
Do function pthread_getattr_np or pthread_attr_getstack work well on
alpha? This is my question.
Well, let me explain my issue.
I am a maintainer of gauche package (a lisp interpreter which use
bdwgc).
Upgraded to bdwgc to 7.2d, gauche had FTBFS on alpha. See the log:
http://buildd.debian-ports.org/status/fetch.php?pkg=gauche&arch=alpha&ver=0.9.3.3-4&stamp=1354011462
I think that the cause of this problem is the one of message (by bdwgc):
GC Warning: pthread_getattr_np or pthread_attr_getstack failed for main thread
It seems that pthread_getattr_np or pthread_attr_getstack failed on
alpha. It only occurs on alpha, I don't see same/similar issue on
any architectures.
For gauche build, I added the following patch, so that another
implementation (of LINUX_STACKBOTTOM) will be used to detect stack
bottom (not using pthread_getattr_np and pthread_attr_getstack).
Then, it builds successfully, now.
--- a/gc/include/private/gcconfig.h
+++ b/gc/include/private/gcconfig.h
@@ -1724,6 +1724,7 @@
# endif
# ifdef LINUX
# define OS_TYPE "LINUX"
+# define DONT_USE_GET_STACKBASE_FOR_MAIN
# define LINUX_STACKBOTTOM
# ifdef __ELF__
# define SEARCH_FOR_DATA_START
--- a/gc/os_dep.c
+++ b/gc/os_dep.c
@@ -1158,7 +1158,7 @@
ptr_t result; /* also used as "dummy" to get the approx. sp value */
# if defined(LINUX) && !defined(NACL) \
&& (defined(USE_GET_STACKBASE_FOR_MAIN) \
- || (defined(THREADS) && !defined(REDIRECT_MALLOC)))
+ || (defined(THREADS) && !defined(REDIRECT_MALLOC) && !defined(DONT_USE_GET_STACKBASE_FOR_MAIN)))
pthread_attr_t attr;
void *stackaddr;
size_t size;
--
--
To UNSUBSCRIBE, email to debian-alpha-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: http://lists.debian.org/***@cfw2.gniibe.org
--
To UNSUBSCRIBE, email to debian-alpha-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: http://lists.debian.org/***@cfw2.gniibe.org