Skip to content

SIGSEV on FreeBSD 13 and FreeBSD 14, php 8.3, php-fpm #70

@chris-x-tra

Description

@chris-x-tra

Hello, i managed to compile everythin. I changed in the Makefile:
CC = clang
and
CXX = clang++

There were serveral warnings while compiling:
`
/home/chrissie/pdlib/pdlib.cc:139:61: warning: offset of on non-standard-layout type 'face_recognition' (aka '_face_recognition') [-Winvalid-offsetof]
139 | face_recognition fr = (face_recognition)((char*)object - XtOffsetOf(face_recognition, std));
| ^ ~~~
/usr/local/include/php/Zend/zend_portability.h:370:36: note: expanded from macro 'XtOffsetOf'
370 | # define XtOffsetOf(s_type, field) offsetof(s_type, field)
| ^ ~~~~~
/usr/include/stddef.h:73:31: note: expanded from macro 'offsetof'
73 | #define offsetof(type, field) __offsetof(type, field)
| ^ ~~~~~
/usr/include/sys/cdefs.h:460:34: note: expanded from macro '__offsetof'
460 | #define __offsetof(type, field) __builtin_offsetof(type, field)
| ^ ~~~~~
/home/chrissie/pdlib/pdlib.cc:173:41: warning: offset of on non-standard-layout type 'face_recognition' (aka '_face_recognition') [-Winvalid-offsetof]
173 | face_recognition_obj_handlers.offset = XtOffsetOf(face_recognition, std);
| ^ ~~~
/usr/local/include/php/Zend/zend_portability.h:370:36: note: expanded from macro 'XtOffsetOf'
370 | # define XtOffsetOf(s_type, field) offsetof(s_type, field)
| ^ ~~~~~
/usr/include/stddef.h:73:31: note: expanded from macro 'offsetof'
73 | #define offsetof(type, field) __offsetof(type, field)
| ^ ~~~~~
/usr/include/sys/cdefs.h:460:34: note: expanded from macro '__offsetof'
460 | #define __offsetof(type, field) __builtin_offsetof(type, field)
| ^ ~~~~~

/home/chrissie/pdlib/src/face_recognition.cc:12:47: warning: offset of on non-standard-layout type 'face_recognition' (aka '_face_recognition') [-Winvalid-offsetof]
12 | return (face_recognition*)((char*)(obj) - XtOffsetOf(face_recognition, std));
| ^ ~~~
/usr/local/include/php/Zend/zend_portability.h:370:36: note: expanded from macro 'XtOffsetOf'
370 | # define XtOffsetOf(s_type, field) offsetof(s_type, field)
| ^ ~~~~~
/usr/include/stddef.h:73:31: note: expanded from macro 'offsetof'
73 | #define offsetof(type, field) __offsetof(type, field)
| ^ ~~~~~
/usr/include/sys/cdefs.h:460:34: note: expanded from macro '__offsetof'
460 | #define __offsetof(type, field) __builtin_offsetof(type, field)

/home/chrissie/pdlib/src/face_recognition.cc:115:24: warning: variable length arrays in C++ are a Clang extension [-Wvla-cxx-extension]
115 | point parts_points[parts_count];
`

After Installation and activation of the Module, it crashens immediately upon start of the php-fpm daemon.

`

lldb /usr/local/sbin/php-fpm

(lldb) target create "/usr/local/sbin/php-fpm"
Current executable set to '/usr/local/sbin/php-fpm' (x86_64).
(lldb) run
Process 36258 launched: '/usr/local/sbin/php-fpm' (x86_64)
Process 36258 stopped

what can i do? can you help me?

regards, Chris.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions