php.ini
extension=no-debug-non-zts-20060613/pinba.so
pinba.enabled=0
pinba.server=NN.NN.NN.NN
Это у меня одного либо уже известна и её как-то можно решить?
The question was:
"I'm using php-fpm fastcgi. After installing Pinba I get a segfault on restart.
Is it a known problem and can it be fixed somehow?"
And the answer is:
Konstantin, you know darn well that I need a backtrace with debug symbols to be
able to tell you anything about it.
http://bugs.php.net/bugs-generating-backtrace.php
--
Wbr,
Antony Dovgal
---
http://pinba.org - realtime statistics for PHP
gdb /usr/local/bin/php-cgi /usr/local/lib/php-cgi.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...
Core was generated by `php-cgi'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libcrypt.so.4...done.
Loaded symbols for /lib/libcrypt.so.4
Reading symbols from /usr/local/lib/libintl.so.8...done.
Loaded symbols for /usr/local/lib/libintl.so.8
Reading symbols from /usr/local/lib/libfreetype.so.9...done.
Loaded symbols for /usr/local/lib/libfreetype.so.9
Reading symbols from /lib/libz.so.4...done.
Loaded symbols for /lib/libz.so.4
Reading symbols from /usr/local/lib/libpng.so.5...done.
Loaded symbols for /usr/local/lib/libpng.so.5
Reading symbols from /usr/local/lib/libjpeg.so.9...done.
Loaded symbols for /usr/local/lib/libjpeg.so.9
Reading symbols from /lib/libm.so.5...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /usr/local/lib/mysql/libmysqlclient.so.16...done.
Loaded symbols for /usr/local/lib/mysql/libmysqlclient.so.16
Reading symbols from /usr/lib/librt.so.1...done.
Loaded symbols for /usr/lib/librt.so.1
Reading symbols from /usr/local/lib/libxml2.so.5...done.
Loaded symbols for /usr/local/lib/libxml2.so.5
Reading symbols from /usr/local/lib/libiconv.so.3...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /lib/libc.so.7...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /usr/local/lib/php/extensions/eaccelerator.so...done.
Loaded symbols for /usr/local/lib/php/extensions/eaccelerator.so
Reading symbols from
/usr/local/lib/php/extensions/no-debug-non-zts-20060613/pinba.so...done.
Loaded symbols for
/usr/local/lib/php/extensions/no-debug-non-zts-20060613/pinba.so
Reading symbols from /lib/libthr.so.3...done.
Loaded symbols for /lib/libthr.so.3
Reading symbols from /usr/local/lib/libprotobuf.so.4...done.
Loaded symbols for /usr/local/lib/libprotobuf.so.4
Reading symbols from /usr/lib/libstdc++.so.6...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0 0x28aa4088 in std::_Rb_tree<std::string, std::pair<std::string
const, std::pair<void const*, int> >,
std::_Select1st<std::pair<std::string const, std::pair<void const*, int>
> >, std::less<std::string>, std::allocator<std::pair<std::string
const, std::pair<void const*, int> > > >::_M_insert_unique () from
/usr/local/lib/libprotobuf.so.4
[New LWP 100144]
(gdb) bt
#0 0x28aa4088 in std::_Rb_tree<std::string, std::pair<std::string
const, std::pair<void const*, int> >,
std::_Select1st<std::pair<std::string const, std::pair<void const*, int>
> >, std::less<std::string>, std::allocator<std::pair<std::string
const, std::pair<void const*, int> > > >::_M_insert_unique () from
/usr/local/lib/libprotobuf.so.4
#1 0x28aa78f9 in
google::protobuf::InsertIfNotPresent<std::map<std::string,
std::pair<void const*, int>, std::less<std::string>,
std::allocator<std::pair<std::string const, std::pair<void const*, int>
> > >, std::string, std::pair<voidconst*, int> > () from
/usr/local/lib/libprotobuf.so.4
#2 0x28aa8013 in
google::protobuf::SimpleDescriptorDatabase::DescriptorIndex<std::pair<void
const*, int> >::AddFile () from /usr/local/lib/libprotobuf.so.4
#3 0x28aa29f7 in google::protobuf::EncodedDescriptorDatabase::Add ()
from /usr/local/lib/libprotobuf.so.4
#4 0x28a5b050 in
google::protobuf::DescriptorPool::InternalAddGeneratedFile () from
/usr/local/lib/libprotobuf.so.4
#5 0x28a867c0 in
google::protobuf::protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto ()
from /usr/local/lib/libprotobuf.so.4
#6 0x28a871ad in __static_initialization_and_destruction_0 () from
/usr/local/lib/libprotobuf.so.4
#7 0x28ae1375 in __do_global_ctors_aux () from
/usr/local/lib/libprotobuf.so.4
#8 0x28a388f1 in _init () from /usr/local/lib/libprotobuf.so.4
#9 0x2840696b in dl_iterate_phdr () from /libexec/ld-elf.so.1
#10 0x28409d22 in dlopen () from /libexec/ld-elf.so.1
#11 0x08206405 in php_dl (file=0x28901408, type=1,
return_value=0xbfbfc8a8, start_now=0) at
/usr/local/src/php-5.2.6/ext/standard/dl.c:150
#12 0x08270008 in php_load_function_extension_cb (arg=0x28901408) at
/usr/local/src/php-5.2.6/main/php_ini.c:235
#13 0x0829fdfc in zend_llist_apply (l=0x842af3c, func=0x826ffe0
<php_load_function_extension_cb>) at
/usr/local/src/php-5.2.6/Zend/zend_llist.c:193
#14 0x0826ffbe in php_ini_register_extensions () at
/usr/local/src/php-5.2.6/main/php_ini.c:590
#15 0x0826a9f5 in php_module_startup (sf=0x8426f80,
additional_modules=0x8427020, num_additional_modules=1) at
/usr/local/src/php-5.2.6/main/main.c:1824
#16 0x08324851 in php_cgi_startup (sapi_module=0x8426f80) at
/usr/local/src/php-5.2.6/sapi/cgi/cgi_main.c:718
#17 0x08324ccf in main (argc=4, argv=0xbfbfec50) at
/usr/local/src/php-5.2.6/sapi/cgi/cgi_main.c:1506
Check out this report:
http://code.google.com/p/protobuf-c/issues/detail?id=22
And this thread:
http://groups.google.com/group/protobuf/browse_thread/thread/864d47b810559ecd
It seems to be a known Protobuf issue on FreeBSD.
I'd suggest trying a GPB snapshot (see http://code.google.com/p/protobuf/source/checkout)
and if you're still able to reproduce it - report it to the GPB maintainer.