public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/18948] New: Use after Free in _initialize_python
@ 2015-09-10 14:20 blackzver at gmail dot com
  0 siblings, 0 replies; only message in thread
From: blackzver at gmail dot com @ 2015-09-10 14:20 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=18948

            Bug ID: 18948
           Summary: Use after Free in _initialize_python
           Product: gdb
           Version: 7.9
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: blackzver at gmail dot com
  Target Milestone: ---

➜  Bin git:(master) ✗ LD_PRELOAD=/usr/lib64/libasan.so.2.0.0 gdb
./blabla_compiled_with_san_analyzer
=================================================================
==12238==ERROR: AddressSanitizer: heap-use-after-free on address 0x610000007e40
at pc 0x7f3d6758b6b5 bp 0x7ffd35343ad0 sp 0x7ffd35343278
READ of size 2 at 0x610000007e40 thread T0
    #0 0x7f3d6758b6b4  (/usr/lib64/libasan.so.2.0.0+0x516b4)
    #1 0x567f92 in _initialize_python (/usr/bin/gdb+0x567f92)
    #2 0x747748 in initialize_all_files (/usr/bin/gdb+0x747748)
    #3 0x70c8e8 in gdb_init (/usr/bin/gdb+0x70c8e8)
    #4 0x63d33b  (/usr/bin/gdb+0x63d33b)
    #5 0x6399f4 in catch_errors (/usr/bin/gdb+0x6399f4)
    #6 0x63e41a in gdb_main (/usr/bin/gdb+0x63e41a)
    #7 0x466b34 in main (/usr/bin/gdb+0x466b34)
    #8 0x7f3d647306ff in __libc_start_main (/lib64/libc.so.6+0x206ff)
    #9 0x466b78 in _start (/usr/bin/gdb+0x466b78)

0x610000007e40 is located 0 bytes inside of 181-byte region
[0x610000007e40,0x610000007ef5)
freed by thread T0 here:
    #0 0x7f3d675d270a in __interceptor_free
(/usr/lib64/libasan.so.2.0.0+0x9870a)
    #1 0x7f3d6473ab95 in setlocale (/lib64/libc.so.6+0x2ab95)

previously allocated by thread T0 here:
    #0 0x7f3d675d2a0a in malloc (/usr/lib64/libasan.so.2.0.0+0x98a0a)
    #1 0x7f3d6473a24d in new_composite_name (/lib64/libc.so.6+0x2a24d)

SUMMARY: AddressSanitizer: heap-use-after-free ??:0 ??
Shadow bytes around the buggy address:
  0x0c207fff8f70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 05
  0x0c207fff8f80: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
  0x0c207fff8f90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 06
  0x0c207fff8fa0: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
  0x0c207fff8fb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 05
=>0x0c207fff8fc0: fa fa fa fa fa fa fa fa[fd]fd fd fd fd fd fd fd
  0x0c207fff8fd0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fa
  0x0c207fff8fe0: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
  0x0c207fff8ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c207fff9000: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c207fff9010: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07
  Heap left redzone:       fa
  Heap right redzone:      fb
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack partial redzone:   f4
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
==12238==ABORTING

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From gdb-prs-return-18575-listarch-gdb-prs=sources.redhat.com@sourceware.org Thu Sep 10 14:31:22 2015
Return-Path: <gdb-prs-return-18575-listarch-gdb-prs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-gdb-prs@sources.redhat.com
Received: (qmail 56774 invoked by alias); 10 Sep 2015 14:31:22 -0000
Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <gdb-prs.sourceware.org>
List-Subscribe: <mailto:gdb-prs-subscribe@sourceware.org>
List-Archive: <http://sourceware.org/ml/gdb-prs/>
List-Post: <mailto:gdb-prs@sourceware.org>
List-Help: <mailto:gdb-prs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: gdb-prs-owner@sourceware.org
Delivered-To: mailing list gdb-prs@sourceware.org
Received: (qmail 56749 invoked by uid 48); 10 Sep 2015 14:31:21 -0000
From: "jonah at kichwacoders dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug breakpoints/17497] gdb doesn't always consider normalized
 source file paths when inserting breakpoints
Date: Thu, 10 Sep 2015 14:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gdb
X-Bugzilla-Component: breakpoints
X-Bugzilla-Version: 7.7
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jonah at kichwacoders dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: antoine.tremblay at ericsson dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-17497-4717-9h5ZuWgOMp@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-17497-4717@http.sourceware.org/bugzilla/>
References: <bug-17497-4717@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-q3/txt/msg00279.txt.bz2
Content-length: 400

https://sourceware.org/bugzilla/show_bug.cgi?id\x17497

Jonah Graham <jonah at kichwacoders dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jonah at kichwacoders dot com

--
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-09-10 14:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-10 14:20 [Bug gdb/18948] New: Use after Free in _initialize_python blackzver at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).