blob: 44d49ca3bf94b45ad7e43cf38562d76f8c2446f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
https://github.com/FreeCAD/FreeCAD/commit/c7a21ecbeecefe7c2dfc9e950b3d6bb42351d476
From c7a21ecbeecefe7c2dfc9e950b3d6bb42351d476 Mon Sep 17 00:00:00 2001
From: wmayer <wmayer@users.sourceforge.net>
Date: Sat, 11 Feb 2023 17:47:49 +0100
Subject: [PATCH 02/51] Fixes #8206: FreeCAD segfaults being run with
parameters (e.g .desktop file has /usr/bin/freecad --single-instance)
--- a/src/Base/Interpreter.cpp
+++ b/src/Base/Interpreter.cpp
@@ -563,7 +563,7 @@ void initInterpreter(int argc,char *argv[])
{
PyStatus status;
PyConfig config;
- PyConfig_InitPythonConfig(&config);
+ PyConfig_InitIsolatedConfig(&config);
status = PyConfig_SetBytesArgv(&config, argc, argv);
if (PyStatus_Exception(status)) {
--
2.39.1
|