Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] php mosquitto problem

Hi Chris,

Good job getting a back trace, much appreciated. The php wrapper for
libmosquitto isn't directly part of the mosquitto project, but I've
nudged the author and hopefully he will pop along and be able to help.

Cheers,

Roger


On Wed, Mar 22, 2017 at 8:56 PM, Christoph Rotter <cr@xxxxxxxxxxxx> wrote:
> Hi All,
>
> my php sometimes (not always!) crashes, when it publishes something:
>
> /var/log/php5-fpm.log:
> [22-Mar-2017 21:38:28] WARNING: [pool myservers-api] child 32090 exited on
> signal 11 (SIGSEGV - core dumped) after 50.649950 seconds from start
> [22-Mar-2017 21:38:28] NOTICE: [pool myservers-api] child 32144 started
>
>
> The versions that I use:
>
> root@myserver:~# mosquitto --version
> Error: Unknown option '--version'.
> mosquitto version 1.4.11 (build date Mon, 20 Feb 2017 22:47:27 +0000)
>
> mosquitto is an MQTT v3.1.1/v3.1 broker.
>
> Usage: mosquitto [-c config_file] [-d] [-h] [-p port]
>
>  -c : specify the broker config file.
>  -d : put the broker into the background after starting.
>  -h : display this help.
>  -p : start the broker listening on the specified port.
>       Not recommended in conjunction with the -c option.
>  -v : verbose mode - enable all logging types. This overrides
>       any logging options given in the config file.
>
> See http://mosquitto.org/ for more information.
>
> root@myserver:~# php5-fpm --version
> PHP 5.6.30-0+deb8u1 (fpm-fcgi) (built: Feb  8 2017 08:51:18)
> Copyright (c) 1997-2016 The PHP Group
> Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
>     with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend
> Technologies
>
>
> And my PHP core traceback says, that there may be a problem with mosquitto:
>
> root@myserver:~# gdb /usr/sbin/php5-fpm /tmp/core-php5-fpm.32090
> GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1
> Copyright (C) 2014 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-linux-gnu".
> Type "show configuration" for configuration details.
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>.
> Find the GDB manual and other documentation resources online at:
> <http://www.gnu.org/software/gdb/documentation/>.
> For help, type "help".
> Type "apropos word" to search for commands related to "word"...
> Reading symbols from /usr/sbin/php5-fpm...(no debugging symbols
> found)...done.
> [New LWP 32090]
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> Core was generated by `php-fpm: pool myservers-api
> '.
> Program terminated with signal SIGSEGV, Segmentation fault.
> #0  strlen () at ../sysdeps/x86_64/strlen.S:106
> 106 ../sysdeps/x86_64/strlen.S: No such file or directory.
> (gdb) bt
> #0  strlen () at ../sysdeps/x86_64/strlen.S:106
> #1  0x000000000069897c in ?? ()
> #2  0x0000000000699619 in vspprintf ()
> #3  0x0000000000715a18 in zend_throw_exception_ex ()
> #4  0x00007ff56cd46886 in php_mosquitto_log_callback (mosq=<optimized out>,
> obj=0x23ca030, level=<optimized out>,
>     str=0x23a0530 "Client mosq/tNApQbQk@l:5dcg5u6 sending DISCONNECT") at
> /tmp/pear/temp/Mosquitto/mosquitto.c:1050
> #5  0x00007ff56cb37fd7 in ?? () from
> /usr/lib/x86_64-linux-gnu/libmosquitto.so.1
> #6  0x00007ff56cb3b7c0 in ?? () from
> /usr/lib/x86_64-linux-gnu/libmosquitto.so.1
> #7  0x00007ff56cd4733d in mosquitto_client_object_destroy (object=0x23ca030)
> at /tmp/pear/temp/Mosquitto/mosquitto.c:876
> #8  0x0000000000726df7 in zend_objects_store_free_object_storage ()
> #9  0x00000000006e8543 in shutdown_executor ()
> #10 0x00000000006f8dd6 in zend_deactivate ()
> #11 0x00000000006944f7 in php_request_shutdown ()
> #12 0x00000000004649f7 in main ()
>
>
> Would be nice, if someone could give me a hint what I can do now!
>
>
> Thanks and Regards
> Chris
>
>
>
> _______________________________________________
> mosquitto-dev mailing list
> mosquitto-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/mosquitto-dev


Back to the top