Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.6.2版本,在php7下,开启seaslog.trace_exception,抛出异常会出core #102

Closed
yyz26371945 opened this issue Aug 22, 2016 · 6 comments

Comments

@yyz26371945
Copy link

1.6.2版本,gcc4.8版本编译,在php7下,开启seaslog.trace_exception,抛出异常会出core
下面是gdb跟踪的堆栈信息
Core was generated by `/home/batsdk/thirdparty/php-7.0.9-2/bin/php -r new rr;'.
Program terminated with signal 11, Segmentation fault.
#0 0x000000318af31aff in __strlen_sse42 () from /lib64/libc.so.6

Missing separate debuginfos, use: debuginfo-install cyrus-sasl-lib-2.1.23-13.el6.x86_64 cyrus-sasl-plain-2.1.23-13.el6.x86_64 db4-4.7.25-17.el6.x86_64 glibc-2.12-1.80.el6.x86_64 keyutils-libs-1.4-4.el6.x86_64 krb5-libs-1.9-33.el6.x86_64 libcom_err-1.41.12-12.el6.x86_64 libcurl-7.19.7-26.el6_2.4.x86_64 libidn-1.18-2.el6.x86_64 libpng-1.2.49-1.el6_2.x86_64 libselinux-2.0.94-5.3.el6.x86_64 libssh2-1.2.2-7.el6_2.3.x86_64 nspr-4.9-1.el6.x86_64 nss-3.13.3-6.el6.x86_64 nss-softokn-freebl-3.12.9-11.el6.x86_64 nss-util-3.13.3-2.el6.x86_64 openldap-2.4.23-26.el6.x86_64 openssl-1.0.0-20.el6_2.5.x86_64
(gdb) bt
#0 0x000000318af31aff in __strlen_sse42 () from /lib64/libc.so.6
#1 0x00000000007106cc in xbuf_format_converter ()
#2 0x000000000071186a in vspprintf ()
#3 0x0000000000711952 in spprintf ()
#4 0x00007f6412e1a4dd in seaslog_throw_exception_hook () from /home/batsdk/thirdparty/php-7.0.9/lib/php/extensions/no-debug-non-zts-20151012/seaslog.so
#5 0x0000000000436960 in zend_throw_exception_internal () at /home/batsdk/thirdparty/tools/php-7.0.9/Zend/zend_exceptions.c:163
#6 0x0000000000436a3a in zend_throw_exception () at /home/batsdk/thirdparty/tools/php-7.0.9/Zend/zend_exceptions.c:944
#7 0x0000000000435bc4 in zend_throw_error () at /home/batsdk/thirdparty/tools/php-7.0.9/Zend/zend.c:1316
#8 0x000000000075a0a1 in zend_throw_or_error.constprop.9 ()
#9 0x000000000075c6bb in zend_fetch_class_by_name ()
#10 0x00000000007ec168 in ZEND_NEW_SPEC_CONST_HANDLER () at /home/batsdk/thirdparty/tools/php-7.0.9/Zend/zend_vm_execute.h:3333
#11 0x00000000007a55db in execute_ex () at /home/batsdk/thirdparty/tools/php-7.0.9/Zend/zend_vm_execute.h:414
#12 0x00000000007ee8f7 in zend_execute () at /home/batsdk/thirdparty/tools/php-7.0.9/Zend/zend_vm_execute.h:458
#13 0x000000000075c167 in zend_eval_stringl ()
#14 0x000000000075c2e9 in zend_eval_stringl_ex ()
#15 0x00000000007f0223 in do_cli () at /home/batsdk/thirdparty/tools/php-7.0.9/sapi/cli/php_cli.c:1005
#16 0x000000000043b9af in main () at /home/batsdk/thirdparty/tools/php-7.0.9/sapi/cli/php_cli.c:1344

@Neeke
Copy link
Member

Neeke commented Sep 8, 2016

能否提供一个测试case ?

@yyz26371945
Copy link
Author

image

@yyz26371945
Copy link
Author

extension="seaslog.so"
seaslog.default_basepath = /home/batsdk/thirdparty/php-5.6/var/log/
seaslog.default_logger = default
seaslog.disting_type = 0
seaslog.disting_by_hour = 1
seaslog.use_buffer = 0
seaslog.buffer_size = 100
seaslog.level = 0
seaslog.trace_error = 1
seaslog.trace_exception = 1
seaslog.default_datetime_format = "Y-m-d H:i:s"

这是seaslog的配置信息

@Neeke
Copy link
Member

Neeke commented Sep 8, 2016

配置收到。

能不能提供出错的php代码case ?

@yyz26371945
Copy link
Author

代码:<?php
$a = new test();
var_dump($a);

php版本:PHP 7.0.9 (cli) (built: Aug 22 2016 17:58:36) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.9, Copyright (c) 1999-2016, by Zend Technologies

@Neeke
Copy link
Member

Neeke commented Sep 9, 2016

ok 看到。上面截图中其实有,sorry

@Neeke Neeke closed this as completed in 00934e9 Sep 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants