<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>backtrace &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/backtrace/</link>
	<description>Feed of posts on WordPress.com tagged "backtrace"</description>
	<pubDate>Sun, 29 Nov 2009 13:05:39 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Kill the Segmentation Fault]]></title>
<link>http://infoqueue.wordpress.com/2009/04/25/kill-the-segmentation-fault/</link>
<pubDate>Sat, 25 Apr 2009 09:38:52 +0000</pubDate>
<dc:creator>#codeRider</dc:creator>
<guid>http://infoqueue.wordpress.com/2009/04/25/kill-the-segmentation-fault/</guid>
<description><![CDATA[Hai friends, Have you ever compile a c or c++ program using cc or gcc compiler.Then sometimes you mi]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Hai friends,<br />
Have you ever compile a c or c++ program using cc or gcc compiler.Then sometimes you might stuck up with segmentation faults.<br />
Segmentation faults occurs when the program refers to an unallocated memory space.<br />
By default the compiler wont show by which instruction the segmentation fault occurs.So you have to go through your entire program to find the culprit.<br />
It is tough to fix a bug even without its line number.<br />
Here is the simple solution to find segmentation faults,</p>
<p>1.Compile the program with &#8220;g&#8221; flag.<br />
Eg: cc -g filename.c<br />
2.Type gdb a.out<br />
3.It ll take you to the gdb prompt.<br />
4.(gdb)run<br />
5.Give your input values.<br />
6.When there is a segmentation fault the program will stop there.<br />
7.You can see the instruction which causes the segmentation fault.<br />
8.Type &#8220;backtrace&#8221; without quotes to trace back the segmentation fault.It ll show a number a frames<br />
which are all the reason for segmentation fault.<br />
9.Type &#8220;frame frameno&#8221; without quotes (to check a particular instruction).<br />
10.There you can find the values of variables by &#8220;print variablename&#8221; command.</p>
<p>thats all friends,No more worries about segmentation fault.<br />
cheers,Happy programming&#8230;.<br />
Balachandar.K.M</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Backtrace() update...]]></title>
<link>http://rejex.wordpress.com/2008/12/15/backtrace-update/</link>
<pubDate>Mon, 15 Dec 2008 07:32:57 +0000</pubDate>
<dc:creator>jp</dc:creator>
<guid>http://rejex.wordpress.com/2008/12/15/backtrace-update/</guid>
<description><![CDATA[Salve gente. Ho ripulito un poco il codice della funzione backtrace() di cui avevo parlato tempo fa:]]></description>
<content:encoded><![CDATA[Salve gente. Ho ripulito un poco il codice della funzione backtrace() di cui avevo parlato tempo fa:]]></content:encoded>
</item>
<item>
<title><![CDATA[Rails 2.3: Backtrace Silencing]]></title>
<link>http://afreshcup.com/2008/11/29/rails-23-backtrace-silencing/</link>
<pubDate>Sat, 29 Nov 2008 14:37:56 +0000</pubDate>
<dc:creator>Mike Gunderloy</dc:creator>
<guid>http://afreshcup.com/2008/11/29/rails-23-backtrace-silencing/</guid>
<description><![CDATA[If you develop Rails applications, you&#8217;re probably used to seeing this sort of thing in your l]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>If you develop Rails applications, you&#8217;re probably used to seeing this sort of thing in your log files:</p>
<p><a href="http://skitch.com/mikeg1/7y71/terminal-ruby-164x64"><img class="aligncenter size-full wp-image-601" title="terminalthumb" src="http://afreshcup.wordpress.com/files/2008/11/terminalthumb.png" alt="terminalthumb" width="150" height="139" /></a></p>
<p>Really, the only important thing there (as far as helping me find the source of the error) is the very first line of the backtrace: <code>ActiveRecord::StatementInvalid (SQLite3::SQLException: no such table: posts: SELECT * FROM "posts" ):</code>. But Rails throws in another 55 lines of backtrace information, just in case I have exposed a bug somewhere in Active Record or Action Pack or the dispatcher or Mongrel or Rack or even the initial script/server command. In most cases, that&#8217;s just noise.</p>
<p>Rails 2.3 (inspired by Thoughtbot&#8217;s <a href="http://www.thoughtbot.com/projects/quietbacktrace">Quiet Backtrace</a> plugin) is smart enough to just shut up about the parts I don&#8217;t care. Here&#8217;s the default Rails 2.3 log in the same situation:</p>
<pre class="brush: ruby;">
Processing PostsController#index (for 127.0.0.1 at 2008-11-29 08:12:31) [GET]
  Post Load (0.0ms)   SQLite3::SQLException: no such table: posts: SELECT * FROM &quot;posts&quot; 

ActiveRecord::StatementInvalid (SQLite3::SQLException: no such table: posts: SELECT * FROM &quot;posts&quot; ):
  /app/controllers/posts_controller.rb:5:in `index'

Rendered /Users/mike/scratch/blog23/vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace (18.0ms)
Rendered /Users/mike/scratch/blog23/vendor/rails/actionpack/lib/action_controller/templates/rescues/_request_and_response (0.6ms)
Rendering /Users/mike/scratch/blog23/vendor/rails/actionpack/lib/action_controller/templates/rescues/layout.erb (internal_server_error)
Completed in 34ms (DB: 0) &amp;#124; 500 Internal Server Error [http://localhost/posts]
</pre>
<p>Much nicer. Rails uses a combination of <em>silencers</em> (which just throw away lines matching a particular pattern) and <em>filters</em> (which make regex-based substitutions) to clean up the backtrace.</p>
<p>The guts of the backtrace cleaner are in ActiveSupport::BacktraceCleaner, letting you set up your own cleaners. Most of us, though, will be using the default backtrace cleaner that Rails spins up during initialization, Rails::BacktraceCleaner. Rails adds a variety of filters and silencers &#8220;out of the box&#8221;:</p>
<pre class="brush: ruby;">
ERB_METHOD_SIG = /:in `_run_erb_.*/

VENDOR_DIRS  = %w( vendor/plugins vendor/gems vendor/rails )
SERVER_DIRS  = %w( lib/mongrel bin/mongrel lib/rack )
RAILS_NOISE  = %w( script/server )
RUBY_NOISE   = %w( rubygems/custom_require benchmark.rb )

ALL_NOISE    = VENDOR_DIRS + SERVER_DIRS + RAILS_NOISE + RUBY_NOISE

def initialize
  super
  add_filter   { &amp;#124;line&amp;#124; line.sub(RAILS_ROOT, '') }
  add_filter   { &amp;#124;line&amp;#124; line.sub(ERB_METHOD_SIG, '') }
  add_filter   { &amp;#124;line&amp;#124; line.sub('./', '/') } # for tests
  add_silencer { &amp;#124;line&amp;#124; ALL_NOISE.any? { &amp;#124;dir&amp;#124; line.include?(dir) } }
end
</pre>
<p>So, by default, Rails will throw away all the messages from the vendor folders and the servers, among other things. Naturally, you can change these defaults. Rails 2.3 adds a config/initializers/backtrace_silencers.rb file to your application. You can add your own silencers or filters in this file:</p>
<pre class="brush: ruby;">
Rails.backtrace_cleaner.add_silencer { &amp;#124;line&amp;#124; line =~ /my_noisy_library/ }
</pre>
<p>You can also tell Rails to remove the default silencers if you&#8217;re worried that you have uncovered a deeper bug:</p>
<pre class="brush: ruby;">
Rails.backtrace_cleaner.remove_silencers!
</pre>
<p>Because the silencer is set up during the initialization process, you need to restart the server if you make any changes to it.</p>
<p>Currently in edge, the in-browser backtrace pages that you get in development mode show the full backtrace, not the silenced one.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Tracciare le chiamate a funzione (backtrace) in g++...]]></title>
<link>http://rejex.wordpress.com/2008/10/31/tracciare-le-chiamate-a-funzione-backtrace-in-g/</link>
<pubDate>Fri, 31 Oct 2008 21:12:08 +0000</pubDate>
<dc:creator>jp</dc:creator>
<guid>http://rejex.wordpress.com/2008/10/31/tracciare-le-chiamate-a-funzione-backtrace-in-g/</guid>
<description><![CDATA[Salve gente. Una delle feature che mi è sempre piaciuta di Java è la funzione printStackTrace() che,]]></description>
<content:encoded><![CDATA[Salve gente. Una delle feature che mi è sempre piaciuta di Java è la funzione printStackTrace() che,]]></content:encoded>
</item>
<item>
<title><![CDATA[FREE SEX VIDEOS]]></title>
<link>http://dddsdsfdfdf.wordpress.com/2008/08/06/free-sex-videos-3/</link>
<pubDate>Wed, 06 Aug 2008 14:00:37 +0000</pubDate>
<dc:creator>dddsdsfdfdf</dc:creator>
<guid>http://dddsdsfdfdf.wordpress.com/2008/08/06/free-sex-videos-3/</guid>
<description><![CDATA[FREE SEX VIDEOS . Click HERE . . . . . . . . . . . . . . . . . . . . . . . .]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:center;"><strong>FREE SEX VIDEOS</strong></p>
<p style="text-align:center;">.</p>
<h1 style="text-align:center;"><a href="http://realonlinevideo2008.com/movie/black/0/13/368/0/"><span style="color:#0000ff;">Click HERE</span></a></h1>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[FREE PORN MOVIES]]></title>
<link>http://ddssdfrgthj.wordpress.com/2008/08/06/free-porn-movies-2/</link>
<pubDate>Wed, 06 Aug 2008 08:22:44 +0000</pubDate>
<dc:creator>ddssdfrgthj</dc:creator>
<guid>http://ddssdfrgthj.wordpress.com/2008/08/06/free-porn-movies-2/</guid>
<description><![CDATA[Free Porn Videos and Pictures updated daily! . Click HERE . . . . . . . . . . . . . . . . . . . . . ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:center;"><strong>Free Porn Videos and Pictures updated daily!</strong></p>
<p style="text-align:center;">.</p>
<h1 style="text-align:center;"><a href="http://realonlinevideo2008.com/movie/black/0/3/368/0/"><span style="color:#0000ff;">Click HERE</span></a></h1>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[rhythmbox backtrace]]></title>
<link>http://wildarcher7.wordpress.com/2008/03/28/rhythmbox-backtrace/</link>
<pubDate>Thu, 27 Mar 2008 20:47:33 +0000</pubDate>
<dc:creator>wildarcher7</dc:creator>
<guid>http://wildarcher7.wordpress.com/2008/03/28/rhythmbox-backtrace/</guid>
<description><![CDATA[статья которая мне помогла http://wiki.archlinux.org/index.php/Debug_-_Getting_Traces Установил bug-]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>статья которая мне помогла <a href="http://wiki.archlinux.org/index.php/Debug_-_Getting_Traces">http://wiki.archlinux.org/index.php/Debug_-_Getting_Traces</a></p>
<p>Установил bug-buddy gdb</p>
<p>в /etc/makepkg добавил ключ -g к CFLAGS</p>
<p><code>CFLAGS="-g -march=i686 -mtune=generic -O2 -pipe"</code><br />
<code>CXXFLAGS="${CFLAGS}"</code></p>
<p>В options добавил !strip</p>
<p>Далее <code>yaourt -Sb rhythmbox --noconfirm</code></p>
<p>Перезапускаем сессию gnome и bug-buddy должен снять debug отчет при вылете rhythmbox</p>
</div>]]></content:encoded>
</item>

</channel>
</rss>
