FLTK logo

Re: [MOD] STR #3519: Sometimes Segmentation fault when printing some Unicode char's

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.bugs  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [MOD] STR #3519: Sometimes Segmentation fault when printing some Unicode char's Albrecht Schlosser Apr 03, 2019  
 
DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: https://www.fltk.org/str.php?L3519
Version: 1.3.4


FWIW, I can confirm the crash with FLTK 1.4-current (Git). Compiled and
executed with ...

fltk-config -g --compile print_err.cxx && gdb ./print_err

... results in this error message and backtrace:

Thread 1 "print_err" received signal SIGSEGV, Segmentation fault.
0x0000555555591668 in calc_mask (img=0x1 <error: Cannot access memory at
address 0x1>, w=7, h=33, bg=255) at
../../src/drivers/PostScript/Fl_PostScript.cxx:998
998           r = *img++; // the pixel color components
(gdb) bt
#0  0x0000555555591668 in calc_mask(uchar*, int, int, Fl_Color) (img=0x1
<error: Cannot access memory at address 0x1>, w=7, h=33, bg=255)
    at ../../src/drivers/PostScript/Fl_PostScript.cxx:998
#1  0x00005555555919c5 in
Fl_PostScript_Graphics_Driver::transformed_draw_extra(char const*, int,
double, double, int, bool) (this=0x555555842230, str=0x5555555f3580 "⁽",
n=3, x=72, y=72, w=3, rtl=false) at
../../src/drivers/PostScript/Fl_PostScript.cxx:1049
#2  0x0000555555591d3d in
Fl_PostScript_Graphics_Driver::transformed_draw(char const*, int, double,
double) (this=0x555555842230, str=0x5555555f3580 "⁽", n=3, x=72, y=72)
    at ../../src/drivers/PostScript/Fl_PostScript.cxx:1124
#3  0x0000555555593b6c in Fl_PostScript_Graphics_Driver::draw(char const*,
int, int, int) (this=0x555555842230, s=0x5555555f3580 "⁽", nBytes=3,
x=72, y=72)
    at ../../FL/Fl_PostScript.H:208
#4  0x0000555555578a96 in fl_draw(char const*, int, int, int)
(str=0x5555555f3580 "⁽", n=3, x=72, y=72) at ../../FL/fl_draw.H:669
#5  0x0000555555578828 in fl_draw(char const*, int, int)
(str=0x5555555f3580 "⁽", x=72, y=72) at ../../src/fl_font.cxx:34
#6  0x000055555556af12 in main(int, char**) (argc=1, argv=0x7fffffffdcc8)
at print_err.cxx:53
(gdb)

I can't help with the issue but wanted to confirm the bug (?) and contibute
the gdb backtrace. HTH


Link: https://www.fltk.org/str.php?L3519
Version: 1.3.4


Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.