Commit 01d7370
Florin Papa
Enable folly::Symbolizer for debug symbols
This change depends on hhvm/hhvm-third-party#123,
which enables 2 additional source files to be compiled and adds libunwind as a
dependency for folly. The "-lgcc_s" added before "-lunwind" is used to solve a
linking order issue that causes "_Ux86_64_setcontext" to be called from
libunwind instead of libgcc_s and messes up the signal mask
(more details here http://savannah.nongnu.org/bugs/?48486). The libgcc_s
dependency is already part of HHVM, this change enforces the order in which
the libraries are linked.
By enabling folly::Symbolizer, HHVM will show debug symbols (in stacktraces,
perf, GDB) when huge pages are enabled (default behavior for open
source builds). Also, one nice side-effect is that this change causes HHVM
to show symbols in backtraces (after a crash) for non-huge-pages builds,
which were missing for some reason.1 parent 99f57fe commit 01d7370
3 files changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
111 | 115 | | |
112 | 116 | | |
113 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
235 | 234 | | |
236 | 235 | | |
237 | 236 | | |
| |||
0 commit comments