[Bug 232311] lang/php71 and lang/php72 with extensions on arm64

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Oct 16 08:49:24 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232311

            Bug ID: 232311
           Summary: lang/php71 and lang/php72 with extensions on  arm64
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: tz at freebsd.org
          Reporter: hlh at restart.be
          Assignee: tz at freebsd.org
             Flags: maintainer-feedback?(tz at freebsd.org)

On FreeBSD nakiska.lab.bel 12.0-ALPHA9 FreeBSD 12.0-ALPHA9 r339301 PINE64 
arm64

I upgrade php to lang/php72

When I run `php -v` without extensions (I rename /usr/local/etc/php to
/usr/local:etc/PHP and create a empty /usr/local/etc/php)

I get:

PHP 7.2.11 (cli) (built: Oct 16 2018 08:46:45) ( ZTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

With extensions I get:
Segmentation fault (core dumped)

and

[root at nakiska ~]# lldb /usr/local/bin/php -- -v
(lldb) target create "/usr/local/bin/php"
Current executable set to '/usr/local/bin/php' (aarch64).
(lldb) settings set -- target.run-args  "-v"
(lldb) run
Process 10319 launching
Process 10319 launched: '/usr/local/bin/php' (aarch64)
Process 10319 stopped
* thread #1, name = 'php', stop reason = trace
    frame #0: 0x00000000405b6678
ld-elf.so.1`dlopen_object(name="/usr/local/lib/php/20170718-zts/session.so",
fd=-1, refobj=0x00000000405f4000, lo_flags=2, mode=257,
lockstate=<unavailable>) at rtld.c:3295
   3292     }
   3293     GDB_STATE(RT_ADD,NULL);
   3294 
-> 3295     old_obj_tail = globallist_curr(TAILQ_LAST(&obj_list, obj_entry_q));
   3296     obj = NULL;
   3297     if (name == NULL && fd == -1) {
   3298         obj = obj_main;
(lldb) bt
* thread #1, name = 'php', stop reason = trace
  * frame #0: 0x00000000405b6678
ld-elf.so.1`dlopen_object(name="/usr/local/lib/php/20170718-zts/session.so",
fd=-1, refobj=0x00000000405f4000, lo_flags=2, mode=257,
lockstate=<unavailable>) at rtld.c:3295
    frame #1: 0x00000000405b3be8
ld-elf.so.1`rtld_dlopen(name="/usr/local/lib/php/20170718-zts/session.so",
fd=-1, mode=257) at rtld.c:3263
    frame #2: 0x00000000003abdf4 php`php_load_extension + 292
    frame #3: 0x000000000048b72c php`zend_llist_apply + 32
    frame #4: 0x00000000004311f8 php`php_ini_register_extensions + 56
    frame #5: 0x0000000000428fec php`php_module_startup + 2200
    frame #6: 0x0000000000593828 php`php_cli_startup + 20
    frame #7: 0x0000000000592624 php`main + 1120
    frame #8: 0x00000000003200b8 php`__start(argc=2, argv=0x0000ffffffffeaf8,
env=0x0000ffffffffeb10, cleanup=<unavailable>) at crt1.c:84
    frame #9: 0x00000000405b0018 ld-elf.so.1`.rtld_start at rtld_start.S:41
(lldb) 

I encounter the same problem with lang/php71

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list