Open GoogleCodeExporter opened 8 years ago
Hello What we have: Linux node9 2.6.32-220.13.1.el6.x86_64 #1 SMP Tue Apr 17 23:56:34 BST 2012 x86_64 x86_64 x86_64 GNU/Linux Compiled and installed libhsclient-1.0.6 php-handlersocket was builded like ./configure --with-handlersocket --with-handlersocket-includedir=/usr/include/handlersocket/ [root@node9 php-handlersocket]# ldd /usr/lib64/php/modules/handlersocket.so linux-vdso.so.1 => (0x00007ffface76000) libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f9bbbff3000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f9bbbddc000) libc.so.6 => /lib64/libc.so.6 (0x00007f9bbba4c000) libm.so.6 => /lib64/libm.so.6 (0x00007f9bbb7c8000) /lib64/ld-linux-x86-64.so.2 (0x00007f9bbc522000) When we are trying to use any handlersocket functions we are getting: [root@node9 php-handlersocket]# php /root/blabla.php *** glibc detected *** php: free(): invalid pointer: 0x00007f1018d5b1c0 *** ======= Backtrace: ========= /lib64/libc.so.6(+0x75296)[0x7f10222e6296] /usr/lib64/php/modules/handlersocket.so(_ZN4dena11socket_args3setERKNS_6configE+ 0x5ba)[0x7f100f45c97a] /usr/lib64/php/modules/handlersocket.so(+0x10598)[0x7f100f45a598] php[0x5f5368] php(execute+0x210)[0x5cc6a0] php(zend_execute_scripts+0x15d)[0x5a6ddd] php(php_execute_script+0x1d8)[0x555078] php[0x630b15] /lib64/libc.so.6(__libc_start_main+0xfd)[0x7f102228fcdd] php[0x421ea9] ======= Memory map: ======== 00400000-006bf000 r-xp 00000000 fd:00 2495063 /usr/bin/php 008be000-00913000 rw-p 002be000 fd:00 2495063 /usr/bin/php 00913000-0092c000 rw-p 00000000 00:00 0 01dc0000-0212e000 rw-p 00000000 00:00 0 [heap] 7f10071ee000-7f10071fa000 r-xp 00000000 fd:00 655721 /lib64/libnss_files-2.12.so 7f10071fa000-7f10073fa000 ---p 0000c000 fd:00 655721 /lib64/libnss_files-2.12.so 7f10073fa000-7f10073fb000 r--p 0000c000 fd:00 655721 /lib64/libnss_files-2.12.so 7f10073fb000-7f10073fc000 rw-p 0000d000 fd:00 655721 /lib64/libnss_files-2.12.so 7f10073fc000-7f100740f000 r-xp 00000000 fd:00 2494138 /usr/lib64/php/modules/zip.so 7f100740f000-7f100760e000 ---p 00013000 fd:00 2494138 /usr/lib64/php/modules/zip.so 7f100760e000-7f1007610000 rw-p 00012000 fd:00 2494138 /usr/lib64/php/modules/zip.so 7f1007610000-7f100764b000 r-xp 00000000 fd:00 2496272 /usr/lib64/libxslt.so.1.1.26 7f100764b000-7f100784a000 ---p 0003b000 fd:00 2496272 /usr/lib64/libxslt.so.1.1.26 7f100784a000-7f100784c000 rw-p 0003a000 fd:00 2496272 /usr/lib64/libxslt.so.1.1.26 7f100784c000-7f100785f000 r-xp 00000000 fd:00 2496269 /usr/lib64/libexslt.so.0.8.15 7f100785f000-7f1007a5f000 ---p 00013000 fd:00 2496269 /usr/lib64/libexslt.so.0.8.15 7f1007a5f000-7f1007a60000 rw-p 00013000 fd:00 2496269 /usr/lib64/libexslt.so.0.8.15 7f1007a60000-7f1007a67000 r-xp 00000000 fd:00 2498732 /usr/lib64/php/modules/xsl.so 7f1007a67000-7f1007c66000 ---p 00007000 fd:00 2498732 /usr/lib64/php/modules/xsl.so 7f1007c66000-7f1007c67000 rw-p 00006000 fd:00 2498732 /usr/lib64/php/modules/xsl.so 7f1007c67000-7f1007c6f000 r-xp 00000000 fd:00 2498731 /usr/lib64/php/modules/xmlwriter.so 7f1007c6f000-7f1007e6e000 ---p 00008000 fd:00 2498731 /usr/lib64/php/modules/xmlwriter.so 7f1007e6e000-7f1007e72000 rw-p 00007000 fd:00 2498731 /usr/lib64/php/modules/xmlwriter.so 7f1007e72000-7f1007e84000 r-xp 00000000 fd:00 2498816 /usr/lib64/php/modules/xmlrpc.so 7f1007e84000-7f1008083000 ---p 00012000 fd:00 2498816 /usr/lib64/php/modules/xmlrpc.so 7f1008083000-7f1008085000 rw-p 00011000 fd:00 2498816 /usr/lib64/php/modules/xmlrpc.so 7f1008085000-7f100808b000 r-xp 00000000 fd:00 2498730 /usr/lib64/php/modules/xmlreader.so 7f100808b000-7f100828a000 ---p 00006000 fd:00 2498730 /usr/lib64/php/modules/xmlreader.so 7f100828a000-7f100828c000 rw-p 00005000 fd:00 2498730 /usr/lib64/php/modules/xmlreader.so 7f100828c000-7f1008291000 r-xp 00000000 fd:00 2499123 /usr/lib64/php/modules/xhprof.so 7f1008291000-7f1008491000 ---p 00005000 fd:00 2499123 /usr/lib64/php/modules/xhprof.so 7f1008491000-7f1008492000 rw-p 00005000 fd:00 2499123 /usr/lib64/php/modules/xhprof.so 7f1008492000-7f100849a000 r-xp 00000000 fd:00 2498729 /usr/lib64/php/modules/wddx.so 7f100849a000-7f1008699000 ---p 00008000 fd:00 2498729 /usr/lib64/php/modules/wddx.so 7f1008699000-7f100869a000 rw-p 00007000 fd:00 2498729 /usr/lib64/php/modules/wddx.so 7f100869a000-7f100869c000 r-xp 00000000 fd:00 2498845 /usr/lib64/php/modules/sysvshm.so 7f100869c000-7f100889c000 ---p 00002000 fd:00 2498845 /usr/lib64/php/modules/sysvshm.so 7f100889c000-7f100889d000 rw-p 00002000 fd:00 2498845 /usr/lib64/php/modules/sysvshm.so 7f100889d000-7f100889f000 r-xp 00000000 fd:00 2498844 /usr/lib64/php/modules/sysvsem.so 7f100889f000-7f1008a9e000 ---p 00002000 fd:00 2498844 /usr/lib64/php/modules/sysvsem.so 7f1008a9e000-7f1008a9f000 rw-p 00001000 fd:00 2498844 /usr/lib64/php/modules/sysvsem.so 7f1008a9f000-7f1008aa2000 r-xp 00000000 fd:00 2498843 /usr/lib64/php/modules/sysvmsg.so 7f1008aa2000-7f1008ca2000 ---p 00003000 fd:00 2498843 /usr/lib64/php/modules/sysvmsg.so 7f1008ca2000-7f1008ca3000 rw-p 00003000 fd:00 2498843 /usr/lib64/php/modules/sysvmsg.so 7f1008ca3000-7f1008cad000 r-xp 00000000 fd:00 2496475 /usr/lib64/php/modules/sqlite3.so 7f1008cad000-7f1008eac000 ---p 0000a000 fd:00 2496475 /usr/lib64/php/modules/sqlite3.so 7f1008eac000-7f1008eae000 rw-p 00009000 fd:00 2496475 /usr/lib64/php/modules/sqlite3.so 7f1008eae000-7f1008efc000 r-xp 00000000 fd:00 2498810 /usr/lib64/php/modules/soap.so 7f1008efc000-7f10090fb000 ---p 0004e000 fd:00 2498810 /usr/lib64/php/modules/soap.so 7f10090fb000-7f10090ff000 rw-p 0004d000 fd:00 2498810 /usr/lib64/php/modules/soap.so 7f10090ff000-7f1009105000 r-xp 00000000 fd:00 2498842 /usr/lib64/php/modules/posix.so 7f1009105000-7f1009304000 ---p 00006000 fd:00 2498842 /usr/lib64/php/modules/posix.so 7f1009304000-7f1009306000 rw-p 00005000 fd:00 2498842 /usr/lib64/php/modules/posix.so 7f1009306000-7f1009343000 r-xp 00000000 fd:00 2494137 /usr/lib64/php/modules/phar.so 7f1009343000-7f1009543000 ---p 0003d000 fd:00 2494137 /usr/lib64/php/modules/phar.so 7f1009543000-7f1009546000 rw-p 0003d000 fd:00 2494137 /usr/lib64/php/modules/phar.so 7f1009546000-7f10095d2000 r-xp 00000000 fd:00 2491587 /usr/lib64/libsqlite3.so.0.8.6 7f10095d2000-7f10097d1000 ---p 0008c000 fd:00 2491587 /usr/lib64/libsqlite3.so.0.8.6 7f10097d1000-7f10097d4000 rw-p 0008b000 fd:00 2491587 /usr/lib64/libsqlite3.so.0.8.6 Debugger output: [root@node9 php-handlersocket]# gdb php GNU gdb (GDB) Red Hat Enterprise Linux (7.2-50.el6) Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /usr/bin/php...(no debugging symbols found)...done. Missing separate debuginfos, use: debuginfo-install php-cli-5.3.3-3.el6_2.6.x86_64 (gdb) run /root/blabla.php Starting program: /usr/bin/php /root/blabla.php [Thread debugging using libthread_db enabled] *** glibc detected *** /usr/bin/php: free(): invalid pointer: 0x00007fffebcc91c0 *** ======= Backtrace: ========= /lib64/libc.so.6(+0x75296)[0x7ffff5254296] /usr/lib64/php/modules/handlersocket.so(_ZN4dena11socket_args3setERKNS_6configE+ 0x5ba)[0x7fffe23ca97a] /usr/lib64/php/modules/handlersocket.so(+0x10598)[0x7fffe23c8598] /usr/bin/php[0x5f5368] /usr/bin/php(execute+0x210)[0x5cc6a0] /usr/bin/php(zend_execute_scripts+0x15d)[0x5a6ddd] /usr/bin/php(php_execute_script+0x1d8)[0x555078] /usr/bin/php[0x630b15] /lib64/libc.so.6(__libc_start_main+0xfd)[0x7ffff51fdcdd] /usr/bin/php[0x421ea9] ======= Memory map: ======== 00400000-006bf000 r-xp 00000000 fd:00 2495063 /usr/bin/php 008be000-00913000 rw-p 002be000 fd:00 2495063 /usr/bin/php 00913000-00c9a000 rw-p 00000000 00:00 0 [heap] 7fffda15c000-7fffda168000 r-xp 00000000 fd:00 655721 /lib64/libnss_files-2.12.so 7fffda168000-7fffda368000 ---p 0000c000 fd:00 655721 /lib64/libnss_files-2.12.so 7fffda368000-7fffda369000 r--p 0000c000 fd:00 655721 /lib64/libnss_files-2.12.so 7fffda369000-7fffda36a000 rw-p 0000d000 fd:00 655721 /lib64/libnss_files-2.12.so 7fffda36a000-7fffda37d000 r-xp 00000000 fd:00 2494138 /usr/lib64/php/modules/zip.so 7fffda37d000-7fffda57c000 ---p 00013000 fd:00 2494138 /usr/lib64/php/modules/zip.so 7fffda57c000-7fffda57e000 rw-p 00012000 fd:00 2494138 /usr/lib64/php/modules/zip.so 7fffda57e000-7fffda5b9000 r-xp 00000000 fd:00 2496272 /usr/lib64/libxslt.so.1.1.26 7fffda5b9000-7fffda7b8000 ---p 0003b000 fd:00 2496272 /usr/lib64/libxslt.so.1.1.26 7fffda7b8000-7fffda7ba000 rw-p 0003a000 fd:00 2496272 /usr/lib64/libxslt.so.1.1.26 7fffda7ba000-7fffda7cd000 r-xp 00000000 fd:00 2496269 /usr/lib64/libexslt.so.0.8.15 7fffda7cd000-7fffda9cd000 ---p 00013000 fd:00 2496269 /usr/lib64/libexslt.so.0.8.15 7fffda9cd000-7fffda9ce000 rw-p 00013000 fd:00 2496269 /usr/lib64/libexslt.so.0.8.15 7fffda9ce000-7fffda9d5000 r-xp 00000000 fd:00 2498732 /usr/lib64/php/modules/xsl.so 7fffda9d5000-7fffdabd4000 ---p 00007000 fd:00 2498732 /usr/lib64/php/modules/xsl.so 7fffdabd4000-7fffdabd5000 rw-p 00006000 fd:00 2498732 /usr/lib64/php/modules/xsl.so 7fffdabd5000-7fffdabdd000 r-xp 00000000 fd:00 2498731 /usr/lib64/php/modules/xmlwriter.so 7fffdabdd000-7fffdaddc000 ---p 00008000 fd:00 2498731 /usr/lib64/php/modules/xmlwriter.so 7fffdaddc000-7fffdade0000 rw-p 00007000 fd:00 2498731 /usr/lib64/php/modules/xmlwriter.so 7fffdade0000-7fffdadf2000 r-xp 00000000 fd:00 2498816 /usr/lib64/php/modules/xmlrpc.so 7fffdadf2000-7fffdaff1000 ---p 00012000 fd:00 2498816 /usr/lib64/php/modules/xmlrpc.so 7fffdaff1000-7fffdaff3000 rw-p 00011000 fd:00 2498816 /usr/lib64/php/modules/xmlrpc.so 7fffdaff3000-7fffdaff9000 r-xp 00000000 fd:00 2498730 /usr/lib64/php/modules/xmlreader.so 7fffdaff9000-7fffdb1f8000 ---p 00006000 fd:00 2498730 /usr/lib64/php/modules/xmlreader.so 7fffdb1f8000-7fffdb1fa000 rw-p 00005000 fd:00 2498730 /usr/lib64/php/modules/xmlreader.so 7fffdb1fa000-7fffdb1ff000 r-xp 00000000 fd:00 2499123 /usr/lib64/php/modules/xhprof.so 7fffdb1ff000-7fffdb3ff000 ---p 00005000 fd:00 2499123 /usr/lib64/php/modules/xhprof.so 7fffdb3ff000-7fffdb400000 rw-p 00005000 fd:00 2499123 /usr/lib64/php/modules/xhprof.so 7fffdb400000-7fffdb408000 r-xp 00000000 fd:00 2498729 /usr/lib64/php/modules/wddx.so 7fffdb408000-7fffdb607000 ---p 00008000 fd:00 2498729 /usr/lib64/php/modules/wddx.so 7fffdb607000-7fffdb608000 rw-p 00007000 fd:00 2498729 /usr/lib64/php/modules/wddx.so 7fffdb608000-7fffdb60a000 r-xp 00000000 fd:00 2498845 /usr/lib64/php/modules/sysvshm.so 7fffdb60a000-7fffdb80a000 ---p 00002000 fd:00 2498845 /usr/lib64/php/modules/sysvshm.so 7fffdb80a000-7fffdb80b000 rw-p 00002000 fd:00 2498845 /usr/lib64/php/modules/sysvshm.so 7fffdb80b000-7fffdb80d000 r-xp 00000000 fd:00 2498844 /usr/lib64/php/modules/sysvsem.so 7fffdb80d000-7fffdba0c000 ---p 00002000 fd:00 2498844 /usr/lib64/php/modules/sysvsem.so 7fffdba0c000-7fffdba0d000 rw-p 00001000 fd:00 2498844 /usr/lib64/php/modules/sysvsem.so 7fffdba0d000-7fffdba10000 r-xp 00000000 fd:00 2498843 /usr/lib64/php/modules/sysvmsg.so 7fffdba10000-7fffdbc10000 ---p 00003000 fd:00 2498843 /usr/lib64/php/modules/sysvmsg.so 7fffdbc10000-7fffdbc11000 rw-p 00003000 fd:00 2498843 /usr/lib64/php/modules/sysvmsg.so 7fffdbc11000-7fffdbc1b000 r-xp 00000000 fd:00 2496475 /usr/lib64/php/modules/sqlite3.so 7fffdbc1b000-7fffdbe1a000 ---p 0000a000 fd:00 2496475 /usr/lib64/php/modules/sqlite3.so 7fffdbe1a000-7fffdbe1c000 rw-p 00009000 fd:00 2496475 /usr/lib64/php/modules/sqlite3.so 7fffdbe1c000-7fffdbe6a000 r-xp 00000000 fd:00 2498810 /usr/lib64/php/modules/soap.so 7fffdbe6a000-7fffdc069000 ---p 0004e000 fd:00 2498810 /usr/lib64/php/modules/soap.so 7fffdc069000-7fffdc06d000 rw-p 0004d000 fd:00 2498810 /usr/lib64/php/modules/soap.so 7fffdc06d000-7fffdc073000 r-xp 00000000 fd:00 2498842 /usr/lib64/php/modules/posix.so 7fffdc073000-7fffdc272000 ---p 00006000 fd:00 2498842 /usr/lib64/php/modules/posix.so 7fffdc272000-7fffdc274000 rw-p 00005000 fd:00 2498842 /usr/lib64/php/modules/posix.so 7fffdc274000-7fffdc2b1000 r-xp 00000000 fd:00 2494137 /usr/lib64/php/modules/phar.so 7fffdc2b1000-7fffdc4b1000 ---p 0003d000 fd:00 2494137 /usr/lib64/php/modules/phar.so 7fffdc4b1000-7fffdc4b4000 rw-p 0003d000 fd:00 2494137 /usr/lib64/php/modules/phar.so 7fffdc4b4000-7fffdc540000 r-xp 00000000 fd:00 2491587 /usr/lib64/libsqlite3.so.0.8.6 Program received signal SIGABRT, Aborted. 0x00007ffff5211885 in raise () from /lib64/libc.so.6 (gdb) bt #0 0x00007ffff5211885 in raise () from /lib64/libc.so.6 #1 0x00007ffff5213065 in abort () from /lib64/libc.so.6 #2 0x00007ffff524e977 in __libc_message () from /lib64/libc.so.6 #3 0x00007ffff5254296 in malloc_printerr () from /lib64/libc.so.6 #4 0x00007fffe23ca97a in dena::socket_args::set(dena::config const&) () from /usr/lib64/php/modules/handlersocket.so #5 0x00007fffe23c8598 in zim_HandlerSocket___construct (ht=<value optimized out>, return_value=0xc52508, return_value_ptr=<value optimized out>, this_ptr=<value optimized out>, return_value_used=<value optimized out>) at /root/handlersocket/handlersocket/php-handlersocket/handlersocket.cc:1225 #6 0x00000000005f5368 in ?? () #7 0x00000000005cc6a0 in execute () #8 0x00000000005a6ddd in zend_execute_scripts () #9 0x0000000000555078 in php_execute_script () #10 0x0000000000630b15 in ?? () #11 0x00007ffff51fdcdd in __libc_start_main () from /lib64/libc.so.6 #12 0x0000000000421ea9 in _start () (gdb) If i can give you any more information - please let me know. Thanks
Original issue reported on code.google.com by kaydanni...@gmail.com on 31 May 2012 at 10:06
kaydanni...@gmail.com
Original issue reported on code.google.com by
kaydanni...@gmail.com
on 31 May 2012 at 10:06