[OpenAFS-devel] Stack overflow

Richard Low rlow@acunu.com
Mon, 2 Aug 2010 13:46:40 +0100


--0016e6d58a788c67fa048cd697f1
Content-Type: text/plain; charset=ISO-8859-1

Hi all,

I'm using the openafs Rx code in a standalone application and have run into
some multithreading issues.  It seems that the build on my system is not
thread safe, and I get stack overflow errors whenever I have multiple client
threads.  I also get the same error when using a server & client within the
same process.

An example output:

stackcheck = 50462976: stack = 50462976
topstack = 0x2cce43ec: stackptr = 0x7dde2010: stacksize = 0x48000
Wed Jul 28 08:53:39 2010 LWP: stack overflow in process IO MANAGER!
Aborted

My afs-sysname is amd64_linux26, running on CentOS 5.5.  My configure
command:

./configure --with-afs-sysname=amd64_linux26 --prefix=/usr
--libdir=/usr/lib64 --bindir=/usr/bin --sbindir=/usr/sbin
--disable-strip-binaries --with-krb5-conf=/usr/kerberos/bin/krb5-config
--enable-redhat-buildsys --enable-transarc-paths

This shows on openafs version 1.4.12.1 and 1.5.75.  I've tried setting
various #defines (such as USE_UCONTEXT as suggested earlier on this list)
but haven't had any success.

Am I doing something wrong with my build?  Or has multithreaded support
broken? I can provide a small C file that demonstrates the crash.

Many thanks,

Richard.

--0016e6d58a788c67fa048cd697f1
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi all,<br><br>I&#39;m using the openafs Rx code in a standalone=20
application and have run into some multithreading issues.=A0 It seems that
 the build on my system is not thread safe, and I get stack overflow=20
errors whenever I have multiple client threads.=A0 I also get the same=20
error when using a server &amp; client within the same process.<br>
<br>An example output:<br><br>stackcheck =3D 50462976: stack =3D 50462976 <=
br>topstack
 =3D 0x2cce43ec: stackptr =3D 0x7dde2010: stacksize =3D 0x48000<br>Wed Jul =
28=20
08:53:39 2010 LWP: stack overflow in process IO MANAGER!<br>Aborted<br>
<br>My afs-sysname is amd64_linux26, running on CentOS 5.5.=A0 My=20
configure command:<br><br>./configure --with-afs-sysname=3Damd64_linux26
 --prefix=3D/usr --libdir=3D/usr/lib64 --bindir=3D/usr/bin --sbindir=3D/usr=
/sbin
 --disable-strip-binaries --with-krb5-conf=3D/usr/kerberos/bin/krb5-config
 --enable-redhat-buildsys --enable-transarc-paths<br>
<br>This shows on openafs version 1.4.12.1 and 1.5.75.=A0 I&#39;ve tried=20
setting various #defines (such as USE_UCONTEXT as suggested earlier on=20
this list) but haven&#39;t had any success.<br><br>Am I doing something=20
wrong with my build?=A0 Or has multithreaded support broken? I can provide =
a small C file that demonstrates the
 crash.<br>
<br>Many thanks,<br><font color=3D"#888888"><br>Richard.</font>

--0016e6d58a788c67fa048cd697f1--