-
Notifications
You must be signed in to change notification settings - Fork 97
Closed
Labels
Description
release-1.4 ブランチ( 80ec152 )で、munmap_chunk(): invalid pointer というエラーが表示されました。
再現率は 10/10回 で master ブランチ( cdc6005 )でも発生しましたが、develop ブランチ( f80cf2a )では発生しませんでした。
下記は全ログです。
$ wget -O - "https://www.google.com/images/icons/product/youtube-16.png" | img2sixel
--2015-02-15 22:49:28-- https://www.google.com/images/icons/product/youtube-16.png
Resolving www.google.com (www.google.com)... 173.194.72.106, 173.194.72.99, 173.194.72.147, ...
Connecting to www.google.com (www.google.com)|173.194.72.106|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 186 [image/png]
Saving to: 'STDOUT'
100%[===================================================================================>] 186 --.-K/s in 0s
2015-02-15 22:49:28 (20.4 MB/s) - written to stdout [186/186]
*** Error in `img2sixel': munmap_chunk(): invalid pointer: 0x0000000001592a40 ***
Aborted
$
下記は gdb で bt した結果です。
$ gdb img2sixel
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 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".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from img2sixel...done.
(gdb) run youtube-16.png
Starting program: /home/msmhrt/local/bin/img2sixel youtube-16.png
*** Error in `/home/msmhrt/local/bin/img2sixel': munmap_chunk(): invalid pointer: 0x0000000000630aa0 ***
Program received signal SIGABRT, Aborted.
0x00007ffff70bfcc9 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0 0x00007ffff70bfcc9 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00007ffff70c30d8 in __GI_abort () at abort.c:89
#2 0x00007ffff70fcf24 in __libc_message (do_abort=do_abort@entry=1,
fmt=fmt@entry=0x7ffff720b6c8 "*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/posix/libc_fatal.c:175
#3 0x00007ffff7107c87 in malloc_printerr (action=<optimized out>, str=0x7ffff720ba48 "munmap_chunk(): invalid pointer",
ptr=<optimized out>) at malloc.c:4996
#4 0x000000000040fc13 in load_png (pixelformat=0x7fffffffdfe4, reqcolors=256, pncolors=0x7fffffffdfe0,
ppalette=0x7fffffffe010, pcomp=0x7fffffffdeac, psy=0x7fffffffdfd4, psx=0x7fffffffdfd0, size=<optimized out>,
buffer=0x61c250 "\211PNG\r\n\032\n") at loader.c:434
#5 load_with_builtin (reqcolors=256, fstatic=0, ppdelay=0x7fffffffe008, ploop_count=0x7fffffffdfdc,
pframe_count=0x7fffffffdfd8, ppixelformat=0x7fffffffdfe4, pncolors=0x7fffffffdfe0, ppalette=0x7fffffffe010,
pstride=<synthetic pointer>, pcomp=0x7fffffffdeac, psy=0x7fffffffdfd4, psx=0x7fffffffdfd0, pchunk=<synthetic pointer>)
at loader.c:663
#6 load_image_file (filename=filename@entry=0x7fffffffe8d6 "youtube-16.png", psx=psx@entry=0x7fffffffdfd0,
psy=psy@entry=0x7fffffffdfd4, ppalette=ppalette@entry=0x7fffffffe010, pncolors=pncolors@entry=0x7fffffffdfe0,
ppixelformat=ppixelformat@entry=0x7fffffffdfe4, pframe_count=pframe_count@entry=0x7fffffffdfd8,
ploop_count=ploop_count@entry=0x7fffffffdfdc, ppdelay=ppdelay@entry=0x7fffffffe008, fstatic=0, reqcolors=256,
ppixels=ppixels@entry=0x7fffffffe000) at loader.c:1046
#7 0x0000000000404209 in convert_to_sixel (filename=0x7fffffffe8d6 "youtube-16.png",
psettings=psettings@entry=0x7fffffffe110) at img2sixel.c:812
#8 0x00000000004034e1 in main (argc=2, argv=<optimized out>) at img2sixel.c:1676
(gdb)
既知問題でしたらすみません。
Reactions are currently unavailable