Skip to content

Instantly share code, notes, and snippets.

View jbq's full-sized avatar

Jean-Baptiste Quenot jbq

View GitHub Profile
java.lang.NullPointerException: date must not be null
at java.base/java.util.Objects.requireNonNull(Objects.java:235) ~[na:na]
at java.base/java.util.Calendar.setTime(Calendar.java:1792) ~[na:na]
at java.base/java.text.SimpleDateFormat.format(SimpleDateFormat.java:978) ~[na:na]
at java.base/java.text.SimpleDateFormat.format(SimpleDateFormat.java:971) ~[na:na]
at java.base/java.text.DateFormat.format(DateFormat.java:378) ~[na:na]
at com.chemra.ixcalcpro.entities.project.Project.toString(Project.java:82) ~[classes!/:0.0.1-SNAPSHOT]
at java.base/java.util.Formatter$FormatSpecifier.printString(Formatter.java:3056) ~[na:na]
at java.base/java.util.Formatter$FormatSpecifier.print(Formatter.java:2933) ~[na:na]
at java.base/java.util.Formatter.format(Formatter.java:2689) ~[na:na]
@jbq
jbq / DNS.txt
Last active May 26, 2020 13:10
Modifications à faire sur le DNS communautetesteurs.cdiscount.com
mailjet._domainkey.communautetesteurs.cdiscount.com.
IN TXT
k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDTI4Qd77gOQxtPNUzdEHT6chVstvSpyodJ/Ew8PmRifIlbvzWbWAx565Nj1FHnM/tJtmKDAOz2IvnZLV2RGONLyT06wXiosiqpsBwRvzrJ+UqYeKTrbVek6etk/Z9PzMYPVs768JPspXVc5oPTwC13ptfAGGGvigKGcago98XCQwIDAQAB
communautetesteurs.cdiscount.com.
IN TXT
v=spf1 include:spf.mailjet.com include:spf.protection.outlook.com include:usermail.zohocreator.eu -all
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f1b07bab2d5 in zend_hash_iterator_add () from /usr/lib/apache2/modules/libphp7.so
(gdb) bt
#0 0x00007f1b07bab2d5 in zend_hash_iterator_add () from /usr/lib/apache2/modules/libphp7.so
#1 0x00007f1b07c0a53d in ZEND_FE_RESET_R_SPEC_CV_HANDLER () from /usr/lib/apache2/modules/libphp7.so
#2 0x00007f1b07c25a9b in execute_ex () from /usr/lib/apache2/modules/libphp7.so
#3 0x00007f1afd14237d in xdebug_execute_ex (execute_data=0x7f1afd61e240) at /tmp/pear/temp/xdebug/src/base/base.c:380
#4 0x00007f1b078a067e in ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER () from /usr/lib/apache2/modules/libphp7.so
#5 0x00007f1b07c25a9b in execute_ex () from /usr/lib/apache2/modules/libphp7.so
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f8364f20647 in zend_hash_next_index_insert () from /usr/lib/apache2/modules/libphp7.so
(gdb) bt
#0 0x00007f8364f20647 in zend_hash_next_index_insert () from /usr/lib/apache2/modules/libphp7.so
#1 0x00007f835a52c28e in zend_hash_next_index_insert_mem (size=0, pData=0x7ffd32c749cc, ht=0x2f746e656d75636f) at /usr/local/include/php/Zend/zend_hash.h:780
#2 php_proto_zend_hash_next_index_insert_mem (pDest=0x0, nDataSize=0, pData=0x7ffd32c749cc, ht=0x2f746e656d75636f) at /tmp/pear/temp/protobuf/protobuf.h:393
#3 repeated_field_push_native (intern=<optimized out>, value=0x7ffd32c749cc) at /tmp/pear/temp/protobuf/array.c:257
#4 0x00007f835a52fbc9 in appendint32_handler (closure=<optimized out>, hd=<optimized out>, val=<optimized out>) at /tmp/pear/temp/protobuf/encode_decode.c:271
#5 0x00007f835a54e3cf in upb_sink_putint32 (s=..., sel=<optimized out>, val=12) at /tmp/pear/temp/protobuf/upb.h:5572
#6 0x00007f835a54f986 in parse_number_from_bu
Core was generated by `apache2 -DFOREGROUND'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007fcff58e9a33 in zend_hash_apply_with_arguments () from /usr/lib/apache2/modules/libphp7.so
(gdb) bt
#0 0x00007fcff58e9a33 in zend_hash_apply_with_arguments () from /usr/lib/apache2/modules/libphp7.so
#1 0x00007fcff5792ad5 in zim_reflection_class_getProperties () from /usr/lib/apache2/modules/libphp7.so
#2 0x00007fcff4bc948d in xdebug_execute_internal (current_execute_data=0x7fcff4c209d0, return_value=0x7fcff4c208e0)
at /tmp/pear/temp/xdebug/src/base/base.c:466
#3 0x00007fcff55e645f in ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER () from /usr/lib/apache2/modules/libphp7.so
#4 0x00007fcff5959740 in execute_ex () from /usr/lib/apache2/modules/libphp7.so
root@694f1d8be5af:/tmp# gdb apache2 core.694f1d8be5af.apache2.1585557682
GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
Copyright (C) 2016 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:
@jbq
jbq / gist:d39f6a7f72695f9774c3b138794b775d
Created January 12, 2018 11:06
Build saml2aws in a Dockerfile (useless)
RUN apt-get update && apt-get install -y unzip
ARG GO_FILE=go1.9.linux-amd64.tar.gz
RUN cd /tmp; curl -O https://storage.googleapis.com/golang/$GO_FILE
RUN cd /tmp; tar -xvf $GO_FILE; mv go /usr/local; rm -f $GO_FILE
ENV PATH $PATH:/usr/local/go/bin:/go/bin
ENV GOROOT /usr/local/go
ENV GOPATH /go
ARG BASEDIR=$GOPATH/src/github.com/versent
RUN mkdir -p $BASEDIR; cd $BASEDIR; git clone https://github.com/Versent/saml2aws.git
RUN cd $BASEDIR/saml2aws; make deps
@jbq
jbq / gist:9ebfc714f879cd81cce4ec0d3c4b0749
Last active October 23, 2017 17:31
PHP crash in zend_hash_find_bucket()
(gdb) run bin/console my:program
Starting program: /usr/bin/php bin/console my:program
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Checking notifications
Program received signal SIGSEGV, Segmentation fault.
zend_hash_find_bucket (ht=0x0, ht@entry=0x80000031101ac290, ht=0x0, ht@entry=0x80000031101ac290, key=0x7fffe34328e0, key@entry=0x0) at ./Zend/zend_hash.c:479
479 ./Zend/zend_hash.c: No such file or directory.
(gdb) bt
root@4a31289b9359:/pimcore# composer install --no-dev --optimize-autoloader
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Updating dependencies
Package operations: 0 installs, 4 updates, 0 removals
- Updating debril/feed-io (v2.5.1 => v2.5.4): Downloading (100%)
- Updating debril/rss-atom-bundle (v3.0.8 => v3.0.11): Downloading (100%)
- Updating twig/twig (v2.3.2 => v2.4.3): Downloading (100%)
- Updating symfony/symfony (v3.3.0 => v3.3.2): Downloading (100%)
Writing lock file
root@4a31289b9359:/# sudo -u www-data /pimcore/bin/console maintenance
PHP Fatal error: Class 'Sensio\Bundle\GeneratorBundle\Command\GenerateBundleCommand' not found in /pimcore/pimcore/lib/Pimcore/Bundle/GeneratorBundle/Command/GenerateBundleCommand.php on line 26
Fatal error: Class 'Sensio\Bundle\GeneratorBundle\Command\GenerateBundleCommand' not found in /pimcore/pimcore/lib/Pimcore/Bundle/GeneratorBundle/Command/GenerateBundleCommand.php on line 26