Sourceware Bugzilla – Attachment 8719 Details for
Bug 19048
malloc: arena free list can become cyclic, increasing contention
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
check-free_list.sh
check-free_list (text/plain), 888 bytes, created by
Florian Weimer
on 2015-10-15 09:41:24 UTC
(
hide
)
Description:
check-free_list.sh
Filename:
MIME Type:
Creator:
Florian Weimer
Created:
2015-10-15 09:41:24 UTC
Size:
888 bytes
patch
obsolete
>#!/bin/bash > ># Script to check if the malloc free_list is cyclic. ># https://sourceware.org/bugzilla/show_bug.cgi?id=19048 > >if test $# -eq 0 ; then > echo "usage: $0 PID..." > exit 2 >fi > >if ! gdb --nx --batch -p $$ -ex "print 'arena.c'::free_list" \ > -ex detach -ex quit 2>/dev/null | grep -q -F '(mstate)' ; then > echo "error: glibc debugging information not available" >&2 > exit 1 >fi > >while test $# -gt 0 ; do > pid="$1" > > gdb --nx --batch -x /dev/stdin <<EOF |& grep ^RESULT | cut -d\ -f2- >set pagination off >set height 0 >set width 0 >attach $pid >set \$limit = 'arena.c'::narenas + 100 >if \$limit > 10000 >set \$limit = 10000 >end >set \$i = 0 >set \$ptr = 'arena.c'::free_list >while \$i <= \$limit && \$ptr != 0 >set \$ptr = \$ptr->next_free >set \$i = \$i + 1 >end >if \$ptr != 0 >echo RESULT $pid CYCLE\n >else >echo RESULT $pid no cycle\n >end >detach >quit >EOF > shift >done
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 19048
:
8666
|
8667
|
8668
|
8669
|
8672
|
8674
|
8700
|
8718
| 8719