platform_bionic/libc/stdio
Elliott Hughes 61e699a133 Clean up abort.
* A dlmalloc usage error shouldn't call abort(3) because we want to
  cause a SIGSEGV by writing the address dlmalloc didn't like to an
  address the kernel won't like, so that debuggerd will dump the
  memory around the address that upset dlmalloc.

* Switch to the simpler FreeBSD/NetBSD style of registering stdio
  cleanup. Hopefully this will let us simplify more of the stdio
  implementation.

* Clear the stdio cleanup handler before we abort because of a dlmalloc
  corruption error. This fixes the reported bug, where we'd hang inside
  dlmalloc because the stdio cleanup reentered dlmalloc.

Bug: 9301265
Change-Id: Ief31b389455d6876e5a68f0f5429567d37277dbc
2013-06-12 14:14:53 -07:00
..
asprintf.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
fflush.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
fgetc.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
fileext.h libc: speed-up flockfile()/funlockfile() 2011-11-15 13:16:42 +01:00
findfp.c Clean up abort. 2013-06-12 14:14:53 -07:00
floatio.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
fprintf.c improve readability of stdio: fix indentation and remove trailing spaces 2010-05-17 09:34:13 -07:00
fputc.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
fread.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
freopen.c Define DEFFILEMODE and friends 2012-11-29 11:53:33 -08:00
fscanf.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
fseek.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
ftell.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
fvwrite.c Bug 3330205 Put blanks and zeroes in const area 2011-01-09 11:38:56 -08:00
fvwrite.h Bug 3330205 Put blanks and zeroes in const area 2011-01-09 11:38:56 -08:00
gets.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
glue.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
local.h Clean up abort. 2013-06-12 14:14:53 -07:00
makebuf.c Clean up abort. 2013-06-12 14:14:53 -07:00
mktemp.c stdio: make internal symbols static/hidden 2010-10-15 01:10:31 +08:00
printf.c improve readability of stdio: fix indentation and remove trailing spaces 2010-05-17 09:34:13 -07:00
refill.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
rewind.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
scanf.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
setvbuf.c Clean up abort. 2013-06-12 14:14:53 -07:00
snprintf.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
sprintf.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
sscanf.c improve readability of stdio: fix indentation and remove trailing spaces 2010-05-17 09:34:13 -07:00
stdio.c improve readability of stdio: fix indentation and remove trailing spaces 2010-05-17 09:34:13 -07:00
ungetc.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
vasprintf.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
vfprintf.c Merge "Add missing va_end() to prevent stack corruptions" 2012-08-24 15:10:07 -07:00
vfscanf.c am c5c84c86: Merge "vfscanf: Add support for L type modifier for long long" 2011-05-17 04:47:06 -07:00
vprintf.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
vscanf.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
vsnprintf.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
vsprintf.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
vsscanf.c improve readability of stdio: fix indentation and remove trailing spaces 2010-05-17 09:34:13 -07:00
wbuf.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
wcio.h typo in libc/stdio/wcio.h 2011-07-02 20:29:25 -04:00