Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Jun 2013 10:43:35 -0400
From:      Mark Johnston <markj@freebsd.org>
To:        Waitman Gobble <uzimac@da3m0n8t3r.com>
Cc:        FreeBSD-CURRENT@FreeBSD.org, marcel@freebsd.org
Subject:   Re: issue with libthr?
Message-ID:  <20130602144335.GA29074@gloom.home>
In-Reply-To: <20130601075414.4F5D036F49FF@dx.burplex.com>
References:  <20130601075414.4F5D036F49FF@dx.burplex.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jun 01, 2013 at 12:54:14AM -0700, Waitman Gobble wrote:
> 
> Hi,
> 
> I'm getting a ton of core dumps from Python and any software that uses Python,
> ie has USE_PYTHON_BUILD=yes in Makefile.
> 
> hundreds of msgs in dmesg:
> pid 36637 (seamonkey), uid 1001: exited on signal 11 (core dumped)
> pid 36986 (seamonkey), uid 1001: exited on signal 11 (core dumped)
> pid 37054 (seamonkey), uid 1001: exited on signal 11 (core dumped)
> pid 51780 (seamonkey), uid 1001: exited on signal 11 (core dumped)
> pid 83350 (python2.7), uid 0: exited on signal 6 (core dumped)
> 
> from gdb it seems to me to be libthr related? I've noticed a couple updates in
> May.. wonder if it's related? I've only noticed this issue in the past week,
> after a complete rebuild and updated.

I've been running into this issue too - python 2.7 would crash when
trying to rebuild databases/tdb and databases/py-sqlite3 with backtraces
similar to what you have below. The python port itself hasn't changed in
a while.

Reverting r250991 and rebuilding libc solves the issue for me:
http://svnweb.freebsd.org/base?view=revision&revision=250991

> 
> > uname -a
> FreeBSD dx.burplex.com 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r251111: Wed May
> 29 16:44:31 PDT 2013     root@dx.burplex.com:/usr/obj/usr/src/sys/FURAHA 
> amd64
> 
> gdb:
> 
> seamonkey
> 
> (gdb) bt
> #0  0x00000008011ee8ca in thr_kill () from /lib/libc.so.7
> #1  0x000000080316b585 in XRE_InstallX11ErrorHandler ()
>    from /usr/local/lib/seamonkey/libxul.so
> #2  0x0000000800f73286 in swapcontext () from /lib/libthr.so.3
> #3  0x0000000800f72e89 in sigaction () from /lib/libthr.so.3
> #4  0x00007ffffffff1d3 in ?? ()
> #5  0x0000000800f72d70 in sigaction () from /lib/libthr.so.3
> Previous frame inner to this frame (corrupt stack?)
> 
> 
> python
> 
> (gdb) bt
> #0  0x000000080100d8ca in thr_kill () from /lib/libc.so.7
> #1  0x00000008010d2e9c in abort () from /lib/libc.so.7
> #2  0x0000000803e4f05b in free ()
>    from /usr/local/lib/python2.7/lib-dynload/_ctypes.so
> #3  0x0000000800d9319f in pthread_mutex_destroy () from /lib/libthr.so.3
> #4  0x00000008010269ff in closedir () from /lib/libc.so.7
> #5  0x00000000004b545c in initposix ()
> #6  0x000000000047fb75 in PyEval_EvalFrameEx ()
> #7  0x000000000047d824 in PyEval_EvalCodeEx ()
> #8  0x0000000000484256 in _PyEval_SliceIndex ()
> #9  0x00000000004810cd in PyEval_EvalFrameEx ()
> #10 0x000000000047d824 in PyEval_EvalCodeEx ()
> #11 0x00000000004d5f56 in PyFunction_SetClosure ()
> #12 0x000000000041ffeb in PyObject_Call ()
> #13 0x0000000000482085 in PyEval_EvalFrameEx ()
> #14 0x000000000047d824 in PyEval_EvalCodeEx ()
> #15 0x0000000000484256 in _PyEval_SliceIndex ()
> #16 0x00000000004810cd in PyEval_EvalFrameEx ()
> #17 0x000000000047d824 in PyEval_EvalCodeEx ()
> #18 0x0000000000484256 in _PyEval_SliceIndex ()
> #19 0x00000000004810cd in PyEval_EvalFrameEx ()
> #20 0x000000000047d824 in PyEval_EvalCodeEx ()
> #21 0x0000000000484256 in _PyEval_SliceIndex ()
> #22 0x00000000004810cd in PyEval_EvalFrameEx ()
> #23 0x00000000004841f2 in _PyEval_SliceIndex ()
> #24 0x00000000004810cd in PyEval_EvalFrameEx ()
> #25 0x00000000004841f2 in _PyEval_SliceIndex ()
> #26 0x00000000004810cd in PyEval_EvalFrameEx ()
> #27 0x00000000004841f2 in _PyEval_SliceIndex ()
> #28 0x00000000004810cd in PyEval_EvalFrameEx ()
> #29 0x00000000004841f2 in _PyEval_SliceIndex ()
> #30 0x00000000004810cd in PyEval_EvalFrameEx ()
> #31 0x00000000004841f2 in _PyEval_SliceIndex ()
> #32 0x00000000004810cd in PyEval_EvalFrameEx ()
> #33 0x000000000047d824 in PyEval_EvalCodeEx ()
> #34 0x000000000047d156 in PyEval_EvalCode ()
> #35 0x00000000004a1361 in PyRun_FileExFlags ()
> #36 0x00000000004a0eb1 in PyRun_SimpleFileExFlags ()
> #37 0x0000000000417549 in Py_Main ()
> #38 0x000000000041692f in main ()
> 
> 
> Any help/pointers much appreciated.
> 
> Thank you,
> 
> --
> Waitman Gobble
> San Jose California USA
> +1.5108307875
> 
> 
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"



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