This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/15174] New: gdb run as root: untrusted .gdbinit causesmalloc arena corruption crash
- From: "bugz at barachs dot net" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 22 Feb 2013 14:59:30 +0000
- Subject: [Bug gdb/15174] New: gdb run as root: untrusted .gdbinit causesmalloc arena corruption crash
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=15174
Bug #: 15174
Summary: gdb run as root: untrusted .gdbinit causes malloc
arena corruption crash
Product: gdb
Version: 7.5
Status: NEW
Severity: minor
Priority: P2
Component: gdb
AssignedTo: unassigned@sourceware.org
ReportedBy: bugz@barachs.net
Classification: Unclassified
Created attachment 6888
--> http://sourceware.org/bugzilla/attachment.cgi?id=6888
Full backtrace
When running gdb as root, the existence of ~/.gdbinit (untrusted) causes gdb to
crash with a duplicate free or other heap corruption.
Workaround: "mv ~/.gdbinit ~/gdbinit".
See attachment for full backtrace.
# gdb xxx
GNU gdb (GDB) 7.5-ubuntu
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
warning: not using untrusted file "/users/joeuser/.gdbinit"
*** glibc detected *** /usr/bin/gdb: double free or corruption (!prev):
0x0000000000f25940 ***
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.