Bug #71869 [Com]: Program received signal SIGFPE, Arithmetic exception in HaruDoc::loadTTC

From: Date: Wed, 23 Mar 2016 01:09:46 +0000
Subject: Bug #71869 [Com]: Program received signal SIGFPE, Arithmetic exception in HaruDoc::loadTTC
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-200048@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71869&edit=1

 ID:                 71869
 Comment by:         danack@php.net
 Reported by:        vvvaagn at gmail dot com
 Summary:            Program received signal SIGFPE, Arithmetic exception
                     in HaruDoc::loadTTC
 Status:             Open
 Type:               Bug
 Package:            *General Issues
 Operating System:   all
 PHP Version:        5.6.20RC1
 Block user comment: N
 Private report:     N

 New Comment:

Are you able to generate a backtrace - probably the "bt" command.

Also, the OS is marked as all - please can you specify at least one operating system that you have
reproduced the issue on, so that other people can try to reproduce it.


Previous Comments:
------------------------------------------------------------------------
[2016-03-21 15:13:01] vvvaagn at gmail dot com

Description:
------------
(gdb) r test.php input/msgothic.ttc
Starting program: /usr/local/bin/php test.php input/msgothic.ttc
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
1
Program received signal SIGFPE, Arithmetic exception.
0x00007ffff6469477 in ?? () from /usr//lib/libhpdf-2.2.1.so
(gdb) i r
rax            0x35b60	220000
rbx            0x1614480	23151744
rcx            0x0	0
rdx            0x0	0
rsi            0x161453a	23151930
rdi            0x1614420	23151648
rbp            0x1614590	0x1614590
rsp            0x7fffffffaf90	0x7fffffffaf90
r8             0xdc	220
r9             0x1614538	23151928
r10            0x16142d0	23151312
r11            0x246	582
r12            0x1614590	23152016
r13            0x0	0
r14            0x1614810	23152656
r15            0x0	0
rip            0x7ffff6469477	0x7ffff6469477
eflags         0x10206	[ PF IF RF ]
cs             0x33	51
ss             0x2b	43
ds             0x0	0
es             0x0	0
fs             0x0	0
gs             0x0	0
(gdb) quit


bug reproduce when second argument is 1 in loadTTC function



Test script:
---------------
if (strpos($argv[1], "ttc")==true)
{
$doc = new HaruDoc();
$doc->loadTTC($argv[1],1);
}




------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=71869&edit=1


Thread (2 messages)

« previous php.bugs (#200048) next »