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

From: Date: Mon, 21 Mar 2016 15:13:04 +0000
Subject: Bug #71869 [NEW]: Program received signal SIGFPE, Arithmetic exception in HaruDoc::loadTTC
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-199996@lists.php.net to get a copy of this message
From:             vvvaagn at gmail dot com
Operating system: all
PHP version:      5.6.20RC1
Package:          *General Issues
Bug Type:         Bug
Bug description:Program received signal SIGFPE, Arithmetic exception in HaruDoc::loadTTC

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 bug report at https://bugs.php.net/bug.php?id=71869&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=71869&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=71869&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=71869&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=71869&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=71869&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=71869&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=71869&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=71869&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=71869&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=71869&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=71869&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=71869&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=71869&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71869&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=71869&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=71869&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=71869&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=71869&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=71869&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=71869&r=mysqlcfg



Thread (2 messages)

« previous php.bugs (#199996) next »