Artefact2 / centralcasting

Generate random character (PCs or NPCs) backgrounds using the "Central Casting: Heroes of Legend" book
Do What The F*ck You Want To Public License
9 stars 3 forks source link

segmentation fault #8

Open necrogami opened 4 years ago

necrogami commented 4 years ago

**./gendata 1000 > datap23.json .................................................................................................... ./gendata 1000 > datap24.json .................................................................................................... ./gendata 1000 > datap25.json ................................Segmentation fault (core dumped) Makefile:22: recipe for target 'datap25.json' failed make: * [datap25.json] Error 139

I also get a lot of segfaults when running fuzz.

Artefact2 commented 4 years ago

Works fine for me. Maybe a problem in your software and/or hardware. What PHP version/operating system are you using?

necrogami commented 4 years ago

PHP 7.4.1 WSL Ubuntu 18.04 (php via ondjre ppa)

necrogami commented 4 years ago
$ ./fuzz 
Auto-detecting number of CPUs... found 12
Starting fuzz testing with 12 processes. Hit ^C to cancel.
......................................................................................................................................................................................err:tableexec:wiping visited ranges after 10 failed rerolls in 870
...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................err:tableexec:wiping visited ranges after 10 failed rerolls in 870
................................................................................................................................Segmentation fault (core dumped)
......................................................Segmentation fault (core dumped)
...............................................................................................................................................................................................Segmentation fault (core dumped)
............................................................................................................................................................Segmentation fault (core dumped)
...........................................................Segmentation fault (core dumped)
..............................................................err:tableexec:wiping visited ranges after 10 failed rerolls in 870
Segmentation fault (core dumped)
...............................................................................................................................................................................................................................................................................................................................................................................................................Segmentation fault (core dumped)
......................................................................................................................................................................................................................................................Segmentation fault (core dumped)
.........................................................................................................................................................................Segmentation fault (core dumped)
...................................................................................................Segmentation fault (core dumped)
Segmentation fault (core dumped)
Segmentation fault (core dumped)
$ php -v
PHP 7.4.1 (cli) (built: Dec 18 2019 14:44:22) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.1, Copyright (c), by Zend Technologies
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.3 LTS
Release:    18.04
Codename:   bionic