Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Mar 2007 12:40:25 +0200
From:      Andriy Gapon <avg@icyb.net.ua>
To:        bug-followup@FreeBSD.org
Cc:        freebsd-threads@freebsd.org
Subject:   Re: amd64/110655: 32 bit threaded applications crash on amd64 SMP kernel.
Message-ID:  <46025D19.6020007@icyb.net.ua>

next in thread | raw e-mail | index | archive | help

I can confirm this problem for 6.2-RELEASE-p2 amd64 UP system, for both
libpthread and libthr.
i386 simple test programs die with the following symptoms:

[libpthread]
program dies with sigsegv. What's interesting, when run under ktrace my
very short program sometimes completes successfully and sometime crashes
with the same symptoms. There is one strange line in ktrace:

 66443 thr_test CALL  kse_create(0x804b50c,0x1)
 66443 thr_test RET   kse_create 0
 66443 thr_test CALL
__sysctl(0xffffd7b8,0x2,0xffffd7c0,0xffffd7b4,0x2809c63c,0x18)
 66443 thr_test RET   __sysctl 0
 66443 thr_test CALL  __sysctl(0xffffd7c0,0x3,0xffffd86c,0xffffd870,0,0)
 66443 thr_test RET   __sysctl 0
 66443 thr_test CALL  break(0x805c000)
 66443 thr_test RET   break 0
 66443 thr_test CALL  mmap(0xffbfc000,0x101000,0x3,0x400,0xffffffff,0,0,0)
 66443 thr_test RET   mmap -4210688/0xffbfc000
 66443 thr_test CALL  mprotect(0xffbfc000,0x1000,0)
 66443 thr_test RET   mprotect 0
 66443 thr_test CALL  clock_gettime(0,0x8051f5c)
 66443 thr_test RET   clock_gettime 0
 66443 thr_test CALL  fstat(0x1,0xffcfc7c0)
 66443 thr_test RET   fstat 0
=================
 66443 thr_test RET   fork 0
=================
 66443 thr_test PSIG  SIGSEGV SIG_DFL
 66443 thr_test NAMI  "thr_test.core"


[libthr]
the problem here seems to be more obvious, but unexpected (at least for me):
 69654 thr_test CALL  sysarch(0xa,0xffffd700)
 69654 thr_test RET   sysarch 0
 69654 thr_test CALL  sigprocmask(0x3,0xffffd730,0xffffd720)
 69654 thr_test RET   sigprocmask 0
 69654 thr_test CALL  sigaction(0x20,0xffffd6d0,0)
 69654 thr_test RET   sigaction 0
 69654 thr_test CALL  sigprocmask(0x3,0xffffd720,0)
 69654 thr_test RET   sigprocmask 0
 69654 thr_test CALL  sigprocmask(0x1,0x28070a20,0xffffd760)
 69654 thr_test RET   sigprocmask 0
 69654 thr_test CALL  sigprocmask(0x3,0x28070a30,0)
 69654 thr_test RET   sigprocmask 0
 69654 thr_test CALL  _umtx_op
 69654 thr_test RET   _umtx_op -1 errno 78 Function not implemented
 69654 thr_test PSIG  SIGSYS SIG_DFL
 69654 thr_test NAMI  "thr_test.core"


-- 
Andriy Gapon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46025D19.6020007>