Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault (core dumped) #39

Open
TheDevick opened this issue Jun 22, 2024 · 1 comment
Open

Segmentation fault (core dumped) #39

TheDevick opened this issue Jun 22, 2024 · 1 comment

Comments

@TheDevick
Copy link

Following exactly like documentation, it's giving the error: Segmentation fault (core dumped)

~/Coding/Playground 
❯ sudo apt install tcl tk
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
tcl is already the newest version (8.6.11+1build2).
tk is already the newest version (8.6.11+1build2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

~/Coding/Playground 
❯ php --ri ffi

FFI

FFI support => enabled

Directive => Local Value => Master Value
ffi.enable => preload => preload
ffi.preload => no value => no value

~/Coding/Playground 
❯ git clone https://github.com/skoro/php-tkui.git php-tkui
Cloning into 'php-tkui'...
remote: Enumerating objects: 4826, done.
remote: Counting objects: 100% (1010/1010), done.
remote: Compressing objects: 100% (384/384), done.
remote: Total 4826 (delta 672), reused 920 (delta 624), pack-reused 3816
Receiving objects: 100% (4826/4826), 6.65 MiB | 6.78 MiB/s, done.
Resolving deltas: 100% (3493/3493), done.

~/Coding/Playground took 2s 
❯ cd php-tkui

php-tkui on  master via 🐘 v8.3.8 
❯ composer install
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Package operations: 44 installs, 0 updates, 0 removals
  - Installing psr/log (1.1.4): Extracting archive
  - Installing monolog/monolog (2.9.2): Extracting archive
  - Installing phpstan/phpdoc-parser (1.26.0): Extracting archive
  - Installing phpdocumentor/reflection-common (2.2.0): Extracting archive
  - Installing doctrine/deprecations (1.1.3): Extracting archive
  - Installing phpdocumentor/type-resolver (1.8.2): Extracting archive
  - Installing sebastian/recursion-context (4.0.5): Extracting archive
  - Installing sebastian/exporter (4.0.6): Extracting archive
  - Installing sebastian/diff (4.0.6): Extracting archive
  - Installing sebastian/comparator (4.0.8): Extracting archive
  - Installing symfony/polyfill-ctype (v1.29.0): Extracting archive
  - Installing webmozart/assert (1.11.0): Extracting archive
  - Installing phpdocumentor/reflection-docblock (5.3.0): Extracting archive
  - Installing doctrine/instantiator (2.0.0): Extracting archive
  - Installing phpspec/prophecy (v1.19.0): Extracting archive
  - Installing phpstan/phpstan (1.10.62): Extracting archive
  - Installing sebastian/version (3.0.2): Extracting archive
  - Installing sebastian/type (3.2.1): Extracting archive
  - Installing sebastian/resource-operations (3.0.4): Extracting archive
  - Installing sebastian/object-reflector (2.0.4): Extracting archive
  - Installing sebastian/object-enumerator (4.0.4): Extracting archive
  - Installing sebastian/global-state (5.0.7): Extracting archive
  - Installing sebastian/environment (5.1.5): Extracting archive
  - Installing sebastian/code-unit (1.0.8): Extracting archive
  - Installing sebastian/cli-parser (1.0.2): Extracting archive
  - Installing phpunit/php-timer (5.0.3): Extracting archive
  - Installing phpunit/php-text-template (2.0.4): Extracting archive
  - Installing phpunit/php-invoker (3.1.1): Extracting archive
  - Installing phpunit/php-file-iterator (3.0.6): Extracting archive
  - Installing theseer/tokenizer (1.2.3): Extracting archive
  - Installing nikic/php-parser (v5.0.2): Extracting archive
  - Installing sebastian/lines-of-code (1.0.4): Extracting archive
  - Installing sebastian/complexity (2.0.3): Extracting archive
  - Installing sebastian/code-unit-reverse-lookup (2.0.3): Extracting archive
  - Installing phpunit/php-code-coverage (9.2.31): Extracting archive
  - Installing phar-io/version (3.2.1): Extracting archive
  - Installing phar-io/manifest (2.0.4): Extracting archive
  - Installing myclabs/deep-copy (1.11.1): Extracting archive
  - Installing symfony/polyfill-mbstring (v1.29.0): Extracting archive
  - Installing phpunit/phpunit (9.6.17): Extracting archive
  - Installing symfony/polyfill-php80 (v1.29.0): Extracting archive
  - Installing phpoption/phpoption (1.9.2): Extracting archive
  - Installing graham-campbell/result-type (v1.1.2): Extracting archive
  - Installing vlucas/phpdotenv (v5.6.0): Extracting archive
Generating autoload files
34 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

php-tkui on  master via 🐘 v8.3.8 
❯ php demos/buttons.php
Segmentation fault (core dumped)
@skoro
Copy link
Owner

skoro commented Jun 25, 2024

Could you please run with debug output ?

DEBUG=true php demos/buttons.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants