﻿<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=Dev%3ADoc%2FTools%2FDebugging%2FGDB</id>
	<title>Dev:Doc/Tools/Debugging/GDB - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=Dev%3ADoc%2FTools%2FDebugging%2FGDB"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Dev:Doc/Tools/Debugging/GDB&amp;action=history"/>
	<updated>2026-07-03T23:51:30Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=Dev:Doc/Tools/Debugging/GDB&amp;diff=86731&amp;oldid=prev</id>
		<title>Yamyam: 1版 をインポートしました</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Dev:Doc/Tools/Debugging/GDB&amp;diff=86731&amp;oldid=prev"/>
		<updated>2018-06-28T18:40:57Z</updated>

		<summary type="html">&lt;p&gt;1版 をインポートしました&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2018年6月28日 (木) 18:40時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ja&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(相違点なし)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Yamyam</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=Dev:Doc/Tools/Debugging/GDB&amp;diff=86730&amp;oldid=prev</id>
		<title>wiki&gt;Mont29: adding tip about avoiding dealocks when debuging under linux with AMD gc</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Dev:Doc/Tools/Debugging/GDB&amp;diff=86730&amp;oldid=prev"/>
		<updated>2012-05-30T14:01:22Z</updated>

		<summary type="html">&lt;p&gt;adding tip about avoiding dealocks when debuging under linux with AMD gc&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Debugging with GDB  =&lt;br /&gt;
&lt;br /&gt;
There are a couple ways to go about debugging crashes in Blender. Today I had to learn one of them. The steps are pretty easy to follow. These instructions '''should''' work for any platform with Bash and GDB, typically Unix system or with MinGW/Cygwin Windows.&lt;br /&gt;
&lt;br /&gt;
=== Compile Debug Build ===&lt;br /&gt;
&lt;br /&gt;
How to make a debug build depends on the build system used:&lt;br /&gt;
&lt;br /&gt;
* For Scons, set BF_DEBUG=True in user-config.py&lt;br /&gt;
* For CMake, set CMAKE_BUILD_TYPE=Debug&lt;br /&gt;
* In Visual Studio, set the Release Configuration to Debug&lt;br /&gt;
&lt;br /&gt;
===  Run GDB ===&lt;br /&gt;
&lt;br /&gt;
Start GDB by changing the working directory to the location of your new debug build and typing one of the following, depending on the platform:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
gdb blender.exe&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
gdb ./blender&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then to start Blender, type:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
run&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Now make Blender crash. Blender will freeze, so switch to the GDB prompt. Get a backtrace by typing:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
bt&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
A more complete backtrace can be printed using:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
thread apply all bt full&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For more information, see this guide: [http://wiki.debian.org/HowToGetABacktrace How to Get a Backtrace].&lt;br /&gt;
&lt;br /&gt;
{{NiceTip|Happy AMD graphic card owners|If you are using proprietary AMD drivers under Linux (fglrx), '''before doing any debugging''', run (in a root terminal) :&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
# aticonfig --sb off&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
And reboot your PC (you can also, if you prefer, directly edit your xorg.conf file, and add, in the Device section, the line &amp;lt;code&amp;gt;Option &amp;quot;BlockSignalsOnLock&amp;quot; &amp;quot;off&amp;quot;&amp;lt;/code&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
Else, you may get some (really unfriendly) random freezes, deadlocks, as fglrx blocks signals in certain situations, and gdb waits for those signals…}}&lt;br /&gt;
&lt;br /&gt;
=== Copy Crash Information ===&lt;br /&gt;
&lt;br /&gt;
If you would like to make this information available to a developer you can copy and paste it from the command prompt.&lt;br /&gt;
&lt;br /&gt;
On Windows, selecting and copying text from the command prompt works different than you might expect: by right clicking on the windows header, select Edit &amp;amp;gt; Mark from the menu. Then highlight your selection. Then again right click on the header and select Edit &amp;amp;gt; Copy.&lt;/div&gt;</summary>
		<author><name>wiki&gt;Mont29</name></author>
		
	</entry>
</feed>