Skip to content

Raspberry Pi4 segfault #9

@DJATOM

Description

@DJATOM

For some reason I'm getting segfault when trying to call to_array() method.
Using gdb I have found that crash occurs at this place.
Maybe it's something ARM-related, but anyway bug is a bug, so reporting it.

(gdb) r -a
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /usr/bin/php -a
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
Interactive mode enabled

php > $f = bencode\bitem::load("*****/1471.torrent");
php > var_dump($f->get_path("info")->get_path("files")->to_array());

Program received signal SIGSEGV, Segmentation fault.
0xb481e2b0 in blist::to_array (this=0x8a5948, include_meta=<optimized out>) at /home/pi/php-bencode/src/zend_container.h:95
95              return (bitem *)(*((uintptr_t *)((char *)obj - sizeof(uintptr_t))));
(gdb)

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