Aaron Franke
a3b3220757
macOS crash handler: Move symbolize with atos to its own function
2026-06-13 22:12:22 -07:00
Aaron Franke
7ffda5c701
LinuxBSD crash handler: Move addr2line finding to its own function
2026-05-07 00:14:50 -07:00
Pāvels Nadtočajevs
dfe2abbf26
[macOS/Linux] Add module information to the crash handler.
2026-04-17 15:52:00 +03:00
A Thousand Ships
8fe002819e
[Linux] Improve crash trace symbols
...
Uses `addr2line` to also demangle symbols when available.
2026-04-14 12:51:58 +02:00
Pāvels Nadtočajevs
c20e4dd010
[CrashHandler] Always print frame PCs and main module load address for retrace.
2026-03-27 11:34:36 +02:00
Rémi Verschelde
e33e98a26f
Style: Apply clang-format grouping rules
2026-03-17 20:11:01 +01:00
Yyf2333
282e4544b0
Split VariantCaster from binder_common.h
2026-03-10 17:59:33 +08:00
A Thousand Ships
68cec996d3
[Linux] Fix addr2line call
2026-03-04 18:53:01 +01:00
Pāvels Nadtočajevs
ee1a64a4ad
[Linux/BSD] Prefer gimli-rs/addr2line or llvm-addr2line over binutils.
2026-03-04 14:17:48 +02:00
A Thousand Ships
4e8cba2d22
[Linux] Handle debug symbols with renamed executable
...
GNU debug link expects the file to have the same name as when compiled,
same solution as on Windows.
2026-01-14 14:23:51 +01:00
Thaddeus Crews
5935a32e32
Core: Cleanup headers in core/config
...
- `MainLoop` now forward-declared in `OS`
2025-10-06 09:20:56 -05:00
Mikael Hermansson
6929823838
Fix various race conditions with capturing of script backtraces
2025-06-02 19:46:19 +02:00
Rémi Verschelde
a6398d71a3
Improve script backtrace print in crash handlers
...
Also fix the editor crash handler message for bug reports not properly
using the `.editor` override.
2025-05-07 09:52:50 +02:00
Mikael Hermansson
31b90246e7
Fix empty lines being added for errors with no script backtrace
2025-05-05 13:27:21 +02:00
Thaddeus Crews
01fc9aee6c
Core: Modernize C headers with C++ equivalents
2025-05-02 08:23:01 -05:00
Pāvels Nadtočajevs
e61edcadb8
Print script backtrace in the crash handler.
2025-04-25 09:15:20 +03:00
Aaron Franke
97ee05e9b7
Rename version defines to GODOT_VERSION_* to match GDExtension godot-cpp
2025-03-12 11:11:38 -07:00
Thaddeus Crews
dadfcd1ff2
Merge pull request #95776 from Calinou/crash-handler-linuxbsd-simplify-file-path
...
Simplify the printed file paths in the Linux/*BSD crash handler
2025-03-07 15:12:10 -06:00
Pāvels Nadtočajevs
ab717497ef
[Windows] Offload RenderingDevice creation test to subprocess.
2025-02-24 19:40:10 +02:00
Hugo Locurcio
57141e04a6
Simplify printed file paths in the Linux/*BSD crash handler
...
This shortens the printed paths a bit when they would contain `/./`,
which is redundant (e.g. `/opt/godot/./core` becomes `/opt/godot/core`).
2024-08-18 23:36:29 +02:00
LinuxUserGD
f1a677fb4c
Disable the crash handler if execinfo=no scons option is set
2024-02-18 21:42:05 +01:00
naelstrof
b49e9c9896
Made signal handling more uniform. Fixes #82102
2023-09-22 20:06:58 -06:00
Riteo
2a6ce37910
Make PIE relocation detection glibc-only
...
Musl doesn't compile with it, and by looking online I think that this is
a glibc only thing.
2023-01-21 17:59:52 +01:00
Ekaterina Vaartis
5e041eee11
Alter linux debug stacktraces handling to support more environments
...
- Use -gdwarf-4 to support both LLVM and GCC when calling addr2line
- Subtract position-independant execuable relocation when passing the
address to addr2line
2023-01-15 02:48:33 +03:00
Rémi Verschelde
d95794ec8a
One Copyright Update to rule them all
...
As many open source projects have started doing it, we're removing the
current year from the copyright notice, so that we don't need to bump
it every year.
It seems like only the first year of publication is technically
relevant for copyright notices, and even that seems to be something
that many companies stopped listing altogether (in a version controlled
codebase, the commits are a much better source of date of publication
than a hardcoded copyright statement).
We also now list Godot Engine contributors first as we're collectively
the current maintainers of the project, and we clarify that the
"exclusive" copyright of the co-founders covers the timespan before
opensourcing (their further contributions are included as part of Godot
Engine contributors).
Also fixed "cf." Frenchism - it's meant as "refer to / see".
2023-01-05 13:25:55 +01:00
Rafał Mikrut
2233624152
Remove usage of unitialized variables
2022-10-01 21:09:22 +02:00
Rémi Verschelde
c366f8d2d4
Crash handler: Use print_error to include backtrace in logs
2022-05-05 12:22:56 +02:00
Rémi Verschelde
90162851a7
Core: Move generated VERSION_HASH to a .cpp file
...
This lets us have its definition in `core/version.h` and avoid
rebuilding a handful of files every time the commit hash changes.
2022-02-09 09:20:17 +01:00
Rémi Verschelde
fe52458154
Update copyright statements to 2022
...
Happy new year to the wonderful Godot community!
2022-01-03 21:27:34 +01:00
Rémi Verschelde
2beaae4b6f
String: Remove erase method, bindings can't mutate String
2021-11-11 11:23:32 +01:00
Hugo Locurcio
8556dd1bef
Improve crash handler message display
...
- State the Godot version and full hash in the backtrace.
- Add decoration around the crash backtrace, both to make it stand out
from other messages and help the user figure out what they should copy.
2021-06-17 20:05:16 +02:00
Marcel Admiraal
2a74b388d0
Split OS::execute into two methods
...
1. execute(): Executes a command and returns the results.
2. create_process(): Creates a new process and returns the new process' id.
2021-01-09 10:03:23 +00:00
Rémi Verschelde
b5334d14f7
Update copyright statements to 2021
...
Happy new year to the wonderful Godot community!
2020 has been a tough year for most of us personally, but a good year for
Godot development nonetheless with a huge amount of work done towards Godot
4.0 and great improvements backported to the long-lived 3.2 branch.
We've had close to 400 contributors to engine code this year, authoring near
7,000 commit! (And that's only for the `master` branch and for the engine code,
there's a lot more when counting docs, demos and other first-party repos.)
Here's to a great year 2021 for all Godot users 🎆
2021-01-01 20:19:21 +01:00
reduz
127458ed17
Reorganized core/ directory, it was too fatty already
...
-Removed FuncRef, since Callable makes it obsolete
-Removed int_types.h as its obsolete in c++11+
-Changed color names code
2020-11-07 20:17:12 -03:00
bruvzg
80b8eff6aa
[Complex Test Layouts] Change String to use UTF-32 encoding on all platforms.
2020-09-03 19:56:24 +03:00
Rémi Verschelde
0ee0fa42e6
Style: Enforce braces around if blocks and loops
...
Using clang-tidy's `readability-braces-around-statements`.
https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
2020-05-14 21:57:34 +02:00
lupoDharkael
95a1400a2a
Replace NULL with nullptr
2020-04-02 13:38:00 +02:00
Juan Linietsky
f8a79a97c7
Effective DisplayServer separation, rename X11 -> LinuxBSD
2020-03-26 15:49:34 +01:00