root@test:/root/soft/pinba# gdb /usr/local/bin/php /root/soft/pinba/
php.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 "amd64-marcel-freebsd"...
Core was generated by `php'.
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 /lib/libm.so.5...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /usr/local/lib/libxml2.so.5...done.
Loaded symbols for /usr/local/lib/libxml2.so.5
Reading symbols from /lib/libz.so.4...done.
Loaded symbols for /lib/libz.so.4
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/20060613-debug/
pinba.so...done.
Loaded symbols for /usr/local/lib/php/20060613-debug/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 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 (this=0x8, __v=@0x7fffffffe210) at
stl_tree.h:475
475 { return static_cast<_Link_type>(this-
>_M_impl._M_header._M_parent); }
[New LWP 100197]
(gdb) bt
#0 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 (this=0x8, __v=@0x7fffffffe210) at
stl_tree.h:475
#1 0x00000008016d3830 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<void const*, int> >
(collection=0x8, key=Variable "key" is not available.
) at stl_map.h:400
#2 0x00000008016d39ef in
google::protobuf::SimpleDescriptorDatabase::DescriptorIndex<std::pair<void
const*, int> >::AddFile (this=0x8,
file=@0x7fffffffe390, value={first = 0x801705520, second = 3554})
at google/protobuf/descriptor_database.cc:55
#3 0x00000008016cdc52 in
google::protobuf::EncodedDescriptorDatabase::Add (this=0x0,
encoded_file_descriptor=0x801705520, size=3554)
at google/protobuf/descriptor_database.cc:311
#4 0x000000080168ce4f in
google::protobuf::DescriptorPool::InternalAddGeneratedFile
(encoded_file_descriptor=Variable "encoded_file_descriptor" is not
available.
)
at google/protobuf/descriptor.cc:857
#5 0x00000008016b56fe in
google::protobuf::protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto
()
at google/protobuf/
descriptor.pb.cc:591
#6 0x00000008016b5ddf in __static_initialization_and_destruction_0
(__initialize_p=Variable "__initialize_p" is not available.
) at google/protobuf/
descriptor.pb.cc:636
#7 0x0000000801701747 in __do_global_ctors_aux () from /usr/local/lib/
libprotobuf.so.4
#8 0x0000000801675d3e in _init () from /usr/local/lib/libprotobuf.so.
4
#9 0x00007fffffffe680 in ?? ()
#10 0x000000080078b345 in dlsym () from /libexec/ld-elf.so.1
#11 0x000000080078bc2a in dlopen () from /libexec/ld-elf.so.1
#12 0x000000000049129f in php_dl (file=0x801369bf0, type=1,
return_value=0x7fffffffe790, start_now=0)
at /var/ports/basejail/usr/ports/lang/php5/work/php-5.2.11/ext/
standard/dl.c:150
#13 0x000000000051e1db in php_load_function_extension_cb
(arg=0x801369bf0)
at /var/ports/basejail/usr/ports/lang/php5/work/php-5.2.11/main/
php_ini.c:236
#14 0x000000000056af6b in zend_llist_apply (l=0x7de018, func=0x51e1b0
<php_load_function_extension_cb>)
at /var/ports/basejail/usr/ports/lang/php5/work/php-5.2.11/Zend/
zend_llist.c:375
#15 0x000000000051efba in php_ini_register_extensions () at /var/ports/
basejail/usr/ports/lang/php5/work/php-5.2.11/main/php_ini.c:617
#16 0x00000000005160b1 in php_module_startup (sf=0x7ba6c0,
additional_modules=0x0, num_additional_modules=0)
at /var/ports/basejail/usr/ports/lang/php5/work/php-5.2.11/main/
main.c:1855
#17 0x0000000000604e4f in php_cli_startup (sapi_module=0x7ba6c0)
at /var/ports/basejail/usr/ports/lang/php5/work/php-5.2.11/sapi/
cli/php_cli.c:386
#18 0x0000000000605b6b in main (argc=1, argv=0x7fffffffec08)
at /var/ports/basejail/usr/ports/lang/php5/work/php-5.2.11/sapi/
cli/php_cli.c:745
Current language: auto; currently c++