Rockbox

Tasklist

FS#9896 - Can't format a bdf file to fnt

Attached to Project: Rockbox
Opened by Stondubleryt Blue (store88) - Thursday, 12 February 2009, 06:19 GMT
Last edited by Alexander Levin (fml2) - Tuesday, 15 December 2009, 12:59 GMT
Task Type Bugs
Category Utils
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

When convert the file attached to fnt format, occurs Segmentation fault
$ ./convbdf.exe -f -o 5-a.fnt 9-a.bdf
8 [main] convbdf 4048 _cygtls::handle_exceptions: Error while dumping state (probably corrupte
d stack)
Segmentation fault (core dumped)
   9-a.7z (473 KiB)
This task depends upon

Closed by  Alexander Levin (fml2)
Tuesday, 15 December 2009, 12:59 GMT
Reason for closing:  Fixed
Additional comments about closing:  No more reproducible with convbdf r20831.
Comment by Stondubleryt Blue (store88) - Thursday, 12 February 2009, 06:34 GMT
Exception: STATUS_ACCESS_VIOLATION at eip=610DDFF7
eax=00000000 ebx=00000000 ecx=00000028 edx=00000000 esi=7FF9FF34 edi=7FFA0000
ebp=0022CAD8 esp=0022CAD0 program=C:\cygwin\home\Administrator\otf2bdf3-win32\convbdf.exe, pid 3560, thread main
cs=001B ds=0023 es=0023 fs=003B gs=0000 ss=0023
Stack trace:
Frame Function Args
0022CAD8 610DDFF7 (7FF9FF34, 00000000, 0000016C, 0022CB3C)
0022CC68 0040215F (006B017C, 006B0320, 61168A78, 00000000)
0022CC98 004016E2 (6116B778, 6116B760, 0022CCB8, 00000000)
0022CCB8 00401369 (6116B778, 0022CCF4, 004014B6, 004014CA)
0022CCE8 0040158A (00000001, 6116B6D0, 006B0090, 0022CC70)
0022CD98 610060D8 (00000000, 0022CDD0, 61005450, 0022CDD0)
61005450 61004416 (0000009C, A02404C7, E8611021, FFFFFF48)
2410 [main] convbdf 3560 _cygtls::handle_exceptions: Error while dumping state (probably corrupted stack)
Comment by Yoshihisa Uchida (Uchida) - Saturday, 14 February 2009, 03:32 GMT
Because the value of SWIDTH and DWIDTH of font 9-a.bdf is not correct values, convbdf occurs Segmentation fault.

The font was corrected so that convbdf should not terminate abnormally.
Please confirm it.

Also, for convbdf, I corrected to output the error when the value of BBX, SWIDTH or DWIDTH was not correct.
Comment by Yoshihisa Uchida (Uchida) - Saturday, 14 February 2009, 03:34 GMT
I upload 9-a.zip again because I failed in uploading.
   9-a.zip (269.3 KiB)
Comment by Yoshihisa Uchida (Uchida) - Saturday, 14 February 2009, 05:44 GMT
I corrected convbdf further.
Comment by Alexander Levin (fml2) - Tuesday, 15 December 2009, 12:52 GMT
Today, I could not reproduce the crash with the convbdf from svn (r20831) and the originally posted BDF file. The last changes to convbdf date to april 2009, i.e. after the bug was reported. In those changes, some memory access issues have been addressed and fixed. In particular, font max width and the buffer to hold it is allocated correctly.

Hence I think this bug can be closed now.

Loading...