|
From: Aleksander S. <A....@os...> - 2004-10-20 13:53:15
|
Hi,
I've found that pthread_attr_setstacksize doesn't work. Fix is very simpl=
e.
Here comes patch for pthread_create, please commit it into cvs:
Index: coregrind/vg_libpthread.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /home/kde/valgrind/coregrind/vg_libpthread.c,v
retrieving revision 1.174
diff -u -r1.174 vg_libpthread.c
--- coregrind/vg_libpthread.c 19 Oct 2004 13:17:59 -0000 1.174
+++ coregrind/vg_libpthread.c 20 Oct 2004 13:44:23 -0000
@@ -1068,7 +1068,7 @@
info->arg =3D __arg;
sigprocmask(SIG_SETMASK, NULL, &info->sigmask);
- if (__attr) {
+ if (__vg_attr) {
si.base =3D (Addr)__vg_attr->__vg_stackaddr;
si.size =3D __vg_attr->__vg_stacksize;
si.guardsize =3D __vg_attr->__vg_guardsize;
--=20
Aleksander Salwa
OSMOSYS Technologies
ul. Ro=BCdzie=F1skiego 188B
Katowice, Poland
office: +48327810470
fax: +48618513128
http://www.osmosys.tv=20
|