<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">I assume you're on Linux or OSX. (If
it's Windows, I'm clueless.)<br>
<br>
For me on Ubuntu I type:<br>
<br>
$ <b>gdb chuck</b><br>
<br>
and then once it starts up and I get the (gdb) prompt I type:<br>
<br>
(gdb) <b>run my_chuck_file.ck</b><br>
<br>
Of course GDB slows down your system, A LOT, but you can keep it
running until it hits the segfault. The spew should (hopefully)
point toward a specific place in the chuck code that is the
problem. (Type q to exit gdb.) You might want to copy the error
messages here for the devs to look into.<br>
<br>
Joel<br>
<br>
On 01/27/2015 02:53 PM, Gonzalo wrote:<br>
</div>
<blockquote cite="mid:54C7FAE7.4080108@dense13.com" type="cite">Never
used gdb before, I'll read about this, but any pointers on how to
get started?
<br>
<br>
<br>
On 28/01/2015 7:39 am, Joel Matthys wrote:
<br>
<blockquote type="cite">It's hard to debug segfaults in the ChucK
code itself. running gdb chuck
<br>
might help narrow down the problem.
<br>
<br>
Joel
<br>
<br>
On 01/27/2015 02:31 PM, Gonzalo wrote:
<br>
<blockquote type="cite">Hi,
<br>
<br>
On a project I'm working on, I sometimes get a "Segmentation
fault:
<br>
11" error, and the program crashes. But I can't figure out
when it
<br>
happens, and cannot reproduce it. It's a big project, with
many
<br>
components communicating via events, and I have no idea who's
<br>
triggering the problem. My question is how would you go about
<br>
debugging this? Any ideas what can be triggering it? It sounds
very
<br>
generic...
<br>
<br>
Probably unrelated, but just in case, I also got this (only
once so far):
<br>
<br>
chuck(22226,0x7fff790ee310) malloc: *** error for object
0x1028f3408:
<br>
incorrect checksum for freed object - object was probably
modified
<br>
after being freed.
<br>
*** set a breakpoint in malloc_error_break to debug
<br>
Abort trap: 6
<br>
<br>
Thanks!
<br>
Gonzalo
<br>
_______________________________________________
<br>
chuck-users mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a>
<br>
<a class="moz-txt-link-freetext" href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a>
<br>
</blockquote>
<br>
_______________________________________________
<br>
chuck-users mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a>
<br>
<a class="moz-txt-link-freetext" href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a>
<br>
<br>
</blockquote>
_______________________________________________
<br>
chuck-users mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a>
<br>
<a class="moz-txt-link-freetext" href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a>
<br>
</blockquote>
<br>
</body>
</html>