php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71869 Program received signal SIGFPE, Arithmetic exception in HaruDoc::loadTTC
Submitted: 2016-03-21 15:13 UTC Modified: 2017-10-24 23:25 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:-1 (-100.0%)
From: vvvaagn at gmail dot com Assigned:
Status: Suspended Package: haru (PECL)
PHP Version: 5.6.20RC1 OS: all
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: vvvaagn at gmail dot com
New email:
PHP Version: OS:

 

 [2016-03-21 15:13 UTC] 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);
}



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-03-23 01:09 UTC] danack@php.net
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.
 [2017-04-02 15:02 UTC] tpunt@php.net
-Package: *General Issues +Package: haru
 [2017-10-24 23:25 UTC] kalle@php.net
-Status: Open +Status: Suspended
 [2017-10-24 23:25 UTC] kalle@php.net
The haru package have not had a release since 2012 and no development since, its safe to say that this package is no longer maintained, if development picks back up then this report should be re-opened
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Jul 28 17:01:24 2021 UTC