hhvm / homebrew-hhvm

Official Mac OS X Homebrew formula for HHVM
MIT License
81 stars 22 forks source link

Segmentation Fault at runtime (3.23.1 and 3.23.2) #97

Closed Daemeron closed 6 years ago

Daemeron commented 7 years ago

Description

3.23.1 and 3.23.2 are exiting at runtime with Segmentation Fault error

Context and Logs

Parameter Value
OS X Version: 10.13.1 (17B48)
Homebrew Version: Homebrew 1.3.8 Homebrew/homebrew-core (git revision 3153; last commit 2017-11-25)
Xcode Version: Xcode 9.1 Build version 9B5

Output of clang -v: n/a those new hhvm versions are precompiled

Build logs: Link to public gist created with brew gist-logs hhvm

brew gist-logs hhvm
Error: No logs.

Runtime logs

Host: Dev.local
ProcessID: 894
ThreadID: 2952798208
ThreadPID: -1
Name: /usr/local/opt/hhvm/bin/hhvm
Type: Segmentation fault: 11
Runtime: hhvm
Version: 1511205649_N
DebuggerCount: 0

Server: content-hub.xxx.dev:8080
ThreadType: Web Request
Server_SERVER_NAME: content-hub.xxx.dev
URL: /robots.txt

PHP Stacktrace:

#0  mysql_set_charset()
#1  mysqli->set_charset()
#2  mysqli_set_charset() called at [/Users/xxx/Source/content-hub/web/wp/wp-includes/wp-db.php:823]
#3  wpdb->set_charset() called at [/Users/xxx/Source/content-hub/web/wp/wp-includes/wp-db.php:1679]
#4  wpdb->db_connect() called at [/Users/xxx/Source/content-hub/web/wp/wp-includes/wp-db.php:658]
#5  wpdb->__construct() called at [/Users/xxx/Source/content-hub/web/wp/wp-includes/load.php:404]
#6  require_wp_db() called at [/Users/xxx/Source/content-hub/web/wp/wp-settings.php:106]
#7  include() called at [/Users/xxx/Source/content-hub/web/wp-config.php:21]
#8  include() called at [/Users/xxx/Source/content-hub/web/wp/wp-load.php:42]
#9  include() called at [/Users/xxx/Source/content-hub/web/wp/wp-blog-header.php:13]
#10 include() called at [/Users/xxx/Source/content-hub/web/index.php:5]

Settings

# php.ini 

; php options
session.save_handler = files
session.save_path = /usr/local/var/lib/hhvm/sessions
session.gc_maxlifetime = 1440

; hhvm specific
hhvm.log.level = Warning
hhvm.log.always_log_unhandled_exceptions = true
hhvm.log.runtime_error_reporting_level = 8191
hhvm.mysql.typed_results = false
hhvm.jit = false
hhvm.eval.jit = false

# server.ini

; php options

pid = /usr/local/var/run/hhvm/pid

; hhvm specific

hhvm.server.port = 9000
hhvm.server.type = fastcgi
hhvm.server.default_document = index.php
hhvm.log.use_log_file = true
hhvm.log.file = /usr/local/var/log/hhvm/error.log
hhvm.repo.central.path = /usr/local/var/run/hhvm/hhvm.hhbc
ghost commented 6 years ago

+1 : Happens for me as well. I'm on latest Ubuntu 16.04.

$ hhvm --version HipHop VM 3.23.2 (rel) Compiler: 1511206599_661801426 Repo schema: 57a6d72ee7a93fe666bcfd7e75d7e2e160e38911

[Wed Dec 6 14:21:58 2017] [hphp] [30954:7ff23a334900:0:000004] [7ff23810c390:23a17a7:1f9957c:23a09e3:23d33b4:23d3171:8406bc4:8406b0d:84067fd:84066b5:84036e7:840359c:84032a6:84031cd:84030d9:4800a5d:480019e:237e394:237e12a:237db88:2455721:24555dc:245546c:2453fbf:fd2698:fdde66:fde62e:ba500d:7ff231ead830:ba27c9] Core dumped: Segmentation fault [Wed Dec 6 14:21:58 2017] [hphp] [30954:7ff23a334900:0:000005] [7ff23810c390:23a17a7:1f9957c:23a09e3:23d33b4:23d3171:8406bc4:8406b0d:84067fd:84066b5:84036e7:840359c:84032a6:84031cd:84030d9:4800a5d:480019e:237e394:237e12a:237db88:2455721:24555dc:245546c:2453fbf:fd2698:fdde66:fde62e:ba500d:7ff231ead830:ba27c9] Stack trace in /tmp/stacktrace.30954.log Segmentation fault (core dumped)

` Name: ./test.php Type: Segmentation fault Runtime: hhvm Version: 1511206599_661801426 DebuggerCount: 0

Arguments: ./test.php ThreadType: CLI

# 0 0000000000d68886 # 1 0000000000fc3742 # 2 00007f3e6fee5390 # 3 00000000023a17a7 # 4 0000000001f9957c # 5 00000000023a09e3 # 6 00000000023d33b4 # 7 00000000023d3171 # 8 0000000008006bc4 # 9 0000000008006b0d # 10 00000000080067fd # 11 00000000080066b5 # 12 00000000080036e7 # 13 000000000800359c # 14 00000000080032a6 # 15 00000000080031cd # 16 00000000080030d9 # 17 0000000004400a5d # 18 000000000440019e # 19 000000000237e394 # 20 000000000237e12a # 21 000000000237db88 # 22 0000000002455721 # 23 00000000024555dc # 24 000000000245546c # 25 0000000002453fbf # 26 0000000000fd2698 # 27 0000000000fdde66 # 28 0000000000fde62e # 29 0000000000ba500d # 30 00007f3e69c86830 # 31 0000000000ba27c9

PHP Stacktrace:

#0 mysql_set_charset() #1 mysqli->set_charset()

ghost commented 6 years ago

Related: https://github.com/facebook/hhvm/issues/8050

fredemmott commented 6 years ago

Closing: duplicate of that hhvm issue, not mac-specific.