<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/glib.git/tests/run-assert-msg-test.sh, branch require-python34</title>
<subtitle>gitlab.gnome.org: GNOME/glib.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/'/>
<entry>
<title>tests: fix a few recently-broken tests</title>
<updated>2013-05-21T14:21:36+00:00</updated>
<author>
<name>Dan Winship</name>
<email>danw@gnome.org</email>
</author>
<published>2013-05-21T14:21:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=52f6a7d16250d2b180c83cce8929f3e14972e1a9'/>
<id>52f6a7d16250d2b180c83cce8929f3e14972e1a9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Dist assert-msg-test.gdb</title>
<updated>2013-01-15T04:48:33+00:00</updated>
<author>
<name>Matthias Clasen</name>
<email>mclasen@redhat.com</email>
</author>
<published>2013-01-15T04:25:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=a605b332c5a918006de8f50e9741dd0f33aa1e31'/>
<id>a605b332c5a918006de8f50e9741dd0f33aa1e31</id>
<content type='text'>
And refer to it in srcdir. Otherwise, the test fails mysteriously
in make distcheck.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
And refer to it in srcdir. Otherwise, the test fails mysteriously
in make distcheck.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix the assert-msg test</title>
<updated>2013-01-14T22:35:47+00:00</updated>
<author>
<name>Matthias Clasen</name>
<email>mclasen@redhat.com</email>
</author>
<published>2013-01-14T22:21:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=d1c25d3191214ce6cd289f0756e6027c35cc2075'/>
<id>d1c25d3191214ce6cd289f0756e6027c35cc2075</id>
<content type='text'>
gdb is playing games with us, by breaking -x /dev/stdin
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
gdb is playing games with us, by breaking -x /dev/stdin
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: multiple fixes to run-assert-msg-test.sh</title>
<updated>2012-12-19T13:32:42+00:00</updated>
<author>
<name>Dan Winship</name>
<email>danw@gnome.org</email>
</author>
<published>2012-11-19T21:18:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=1d7985aa0adf7c22060470de727484e92f0a0eb9'/>
<id>1d7985aa0adf7c22060470de727484e92f0a0eb9</id>
<content type='text'>
1) use "../libtool" rather than "libtool" to avoid problems
with wacky OS X not-actually-libtool

2) Use libtool on the libtool script, not the binary, so that it
actually does anything

3) Don't use "gdb --ex" since it's apparently new-ish/non-portable.

https://bugzilla.gnome.org/show_bug.cgi?id=684723
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
1) use "../libtool" rather than "libtool" to avoid problems
with wacky OS X not-actually-libtool

2) Use libtool on the libtool script, not the binary, so that it
actually does anything

3) Don't use "gdb --ex" since it's apparently new-ish/non-portable.

https://bugzilla.gnome.org/show_bug.cgi?id=684723
</pre>
</div>
</content>
</entry>
<entry>
<title>Run gdb under libtool so that local libraries are used</title>
<updated>2012-03-05T01:36:04+00:00</updated>
<author>
<name>Nirbheek Chauhan</name>
<email>nirbheek@gentoo.org</email>
</author>
<published>2012-02-21T14:12:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=840c32281d307c709b3b2d83071280b3bf46b969'/>
<id>840c32281d307c709b3b2d83071280b3bf46b969</id>
<content type='text'>
If this isn't done, the system-wide glib is used for this test,
and that can cause test failures.

https://bugzilla.gnome.org/621368
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If this isn't done, the system-wide glib is used for this test,
and that can cause test failures.

https://bugzilla.gnome.org/621368
</pre>
</div>
</content>
</entry>
<entry>
<title>Do not fail unit test due to gdb abbreviating strings</title>
<updated>2012-02-17T16:59:30+00:00</updated>
<author>
<name>Peter Kjellerstedt</name>
<email>pkj@axis.com</email>
</author>
<published>2012-02-16T11:17:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=50efbaf063f77f4e273f87ebf4ab01a1c507e97f'/>
<id>50efbaf063f77f4e273f87ebf4ab01a1c507e97f</id>
<content type='text'>
gdb by default will only print strings up to 200 characters. After that
it abbreviates them. This affects the run-assert-msg-test.sh script if
the path to the glib installation is too long (in our case it was 133
characters, 132 would still have worked...)

By having gdb execute "set print elements 0" before printing the assert
string, the limit on maximum number of characters to print is set to
unlimited.

Signed-off-by: Peter Kjellerstedt &lt;pkj@axis.com&gt;

https://bugzilla.gnome.org/show_bug.cgi?id=670218
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
gdb by default will only print strings up to 200 characters. After that
it abbreviates them. This affects the run-assert-msg-test.sh script if
the path to the glib installation is too long (in our case it was 133
characters, 132 would still have worked...)

By having gdb execute "set print elements 0" before printing the assert
string, the limit on maximum number of characters to print is set to
unlimited.

Signed-off-by: Peter Kjellerstedt &lt;pkj@axis.com&gt;

https://bugzilla.gnome.org/show_bug.cgi?id=670218
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix 'make check' with clang</title>
<updated>2011-10-24T17:43:11+00:00</updated>
<author>
<name>Matthias Clasen</name>
<email>mclasen@redhat.com</email>
</author>
<published>2011-10-24T17:43:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=94a46ea410ced6904691dba16d01485b6a6283f0'/>
<id>94a46ea410ced6904691dba16d01485b6a6283f0</id>
<content type='text'>
Patch by Elias Pipping

https://bugzilla.gnome.org/show_bug.cgi?id=662491
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Patch by Elias Pipping

https://bugzilla.gnome.org/show_bug.cgi?id=662491
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix run-assert-msg-test to work with libtool-2.2.x.</title>
<updated>2010-03-08T05:16:23+00:00</updated>
<author>
<name>Priit Laes</name>
<email>plaes@plaes.org</email>
</author>
<published>2010-03-08T05:16:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=96d105906ef267b687ee6fbe085a791f3b17afc6'/>
<id>96d105906ef267b687ee6fbe085a791f3b17afc6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>always use our own internal assertion message symbol</title>
<updated>2010-01-26T10:22:31+00:00</updated>
<author>
<name>Martin Pitt</name>
<email>martin.pitt@ubuntu.com</email>
</author>
<published>2010-01-26T10:22:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=3658727cfa0eca8c66bc2cdff46992099caf0acd'/>
<id>3658727cfa0eca8c66bc2cdff46992099caf0acd</id>
<content type='text'>
Re-using glibc's __abort_msg symbol causes linking problems, since the symbol
is declared private. Always use our own__glib_abort_msg symbol to store
assertion messages, to avoid compatibility and linking problems.

Also fix the test case to work with out of tree builds (such as "make
distcheck"), and re-enable it.

https://bugzilla.gnome.org/show_bug.cgi?id=594872
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Re-using glibc's __abort_msg symbol causes linking problems, since the symbol
is declared private. Always use our own__glib_abort_msg symbol to store
assertion messages, to avoid compatibility and linking problems.

Also fix the test case to work with out of tree builds (such as "make
distcheck"), and re-enable it.

https://bugzilla.gnome.org/show_bug.cgi?id=594872
</pre>
</div>
</content>
</entry>
<entry>
<title>Support storing assertion messages into core dump</title>
<updated>2009-12-23T15:51:11+00:00</updated>
<author>
<name>Martin Pitt</name>
<email>martin.pitt@ubuntu.com</email>
</author>
<published>2009-12-22T10:09:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=da66897950431870390f8dc3f798e24f23ffb8c8'/>
<id>da66897950431870390f8dc3f798e24f23ffb8c8</id>
<content type='text'>
Crash interception/debugging systems like Apport or ABRT capture core dumps for
later crash analysis. However, if a program exits with an assertion failure,
the core dump is not useful since the assertion message is only printed to
stderr.

glibc recently got a patch which stores the message of assert() into the
__abort_msg global variable.
(http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=48dcd0ba)
That works fine for programs which actually use the standard C assert() macro.

This patch adds the same functionality for glib's assertion tests. If we are
building against a glibc which already has __abort_msg (2.11 and later, or
backported above git commit), use that, otherwise put it into our own field
__glib_assert_msg.

Usage:

  $ cat test.c
  #include &lt;glib.h&gt;

  int main() {
      g_assert(1 &lt; 0);
      return 0;
  }

  $ ./test
  **ERROR:test.c:5:main: assertion failed: (1 &lt; 0)
  Aborted (Core dumped)

  $ gdb --batch --ex 'print (char*) __abort_msg' ./test core
  [...]
  $1 = 0x93bf028 "ERROR:test.c:5:main: assertion failed: (1 &lt; 0)"

https://bugzilla.gnome.org/show_bug.cgi?id=594872
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Crash interception/debugging systems like Apport or ABRT capture core dumps for
later crash analysis. However, if a program exits with an assertion failure,
the core dump is not useful since the assertion message is only printed to
stderr.

glibc recently got a patch which stores the message of assert() into the
__abort_msg global variable.
(http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=48dcd0ba)
That works fine for programs which actually use the standard C assert() macro.

This patch adds the same functionality for glib's assertion tests. If we are
building against a glibc which already has __abort_msg (2.11 and later, or
backported above git commit), use that, otherwise put it into our own field
__glib_assert_msg.

Usage:

  $ cat test.c
  #include &lt;glib.h&gt;

  int main() {
      g_assert(1 &lt; 0);
      return 0;
  }

  $ ./test
  **ERROR:test.c:5:main: assertion failed: (1 &lt; 0)
  Aborted (Core dumped)

  $ gdb --batch --ex 'print (char*) __abort_msg' ./test core
  [...]
  $1 = 0x93bf028 "ERROR:test.c:5:main: assertion failed: (1 &lt; 0)"

https://bugzilla.gnome.org/show_bug.cgi?id=594872
</pre>
</div>
</content>
</entry>
</feed>
