After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 745485 - Segmentation fault : g_utf8_validate gutf8.c:1634 on MinGW-64 32 bit gcc-4.9.2
Segmentation fault : g_utf8_validate gutf8.c:1634 on MinGW-64 32 bit gcc-4.9.2
Status: RESOLVED INCOMPLETE
Product: glib
Classification: Platform
Component: win32
unspecified
Other Windows
: Normal normal
: ---
Assigned To: gtk-win32 maintainers
gtk-win32 maintainers
Depends on:
Blocks:
 
 
Reported: 2015-03-02 23:21 UTC by Tatsuro MATSUOKA
Modified: 2017-03-29 09:12 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tatsuro MATSUOKA 2015-03-02 23:21:03 UTC
Segmentation fault : g_utf8_validate gutf8.c:1634 on MinGW-64 32 bit gcc-4.9.2

I have met a  Segmentation fault at using gnuplot-5.1 built by myself on windows.
The Segmentation fault seems to be related with the cairo based terminals.
(The cairo based terminals use libglib.)

Compiler gcc-4.9.2 (MinGW-w64 32bit. dwarf, win32 thread).
Glib version : 2.42.1. Build from source.

gdb message:

Program received signal SIGSEGV, Segmentation fault.
0x6862318f in g_utf8_validate (str=0x2888a68 "-1", max_len=-1, end=0xffffffff)
    at ../../glib-2.42.1/glib/gutf8.c:1634
1634        *end = p;

Program received signal SIGSEGV, Segmentation fault.
0x6862318f in g_utf8_validate (str=0xb28a68 "-1", max_len=-1, end=0xffffffff)
    at ../../glib-2.42.1/glib/gutf8.c:1634
1634        *end = p;
(gdb) bt
  • #0 g_utf8_validate
    at ../../glib-2.42.1/glib/gutf8.c line 1634
  • #1 gp_cairo_convert
    at ../../src/wxterminal/gp_cairo.c line 737
  • #2 gp_cairo_enhanced_flush
    at ../../src/wxterminal/gp_cairo.c line 1311
  • #3 wxtPanel::wxt_cairo_exec_command
    at ../../src/wxterminal/wxt_gui.cpp line 2964
  • #4 wxtPanel::wxt_cairo_refresh
    at ../../src/wxterminal/wxt_gui.cpp line 2850
  • #5 wxt_text
    at ../../src/wxterminal/wxt_gui.cpp line 2047
  • #6 wxt_text_wrapper
    at ../../term/wxt.trm line 460
  • #7 term_end_plot
    at ../../src/term.c line 544
  • #8 do_plot
    at ../../src/graphics.c line 912
  • #9 eval_plots
    at ../../src/plot2d.c line 3333
  • #10 plotrequest
    at ../../src/plot2d.c line 271
  • #11 plot_command
    at ../../src/command.c line 1535
  • #12 command
    at ../../src/command.c line 621
  • #13 do_line
    at ../../src/command.c line 418
  • #14 com_line
    at ../../src/command.c line 322
  • #15 gnu_main
    at ../../src/plot.c line 660
  • #16 WinMain
    at ../../src/win/winmain.c line 593
  • #17 main

Comment 1 Tatsuro MATSUOKA 2015-03-04 09:46:47 UTC
Please see the thread in gnuplot-beta ML

http://gnuplot.10905.n7.nabble.com/Some-observations-building-gnuplot-for-win-by-gcc-4-9-2-MinGW64-td19323.html
Comment 2 Tatsuro MATSUOKA 2015-06-11 10:24:09 UTC
I have updated to gcc-4.9.2 (release 3) and glib-2.44.1.
Now issues are solved.
Comment 3 Christoph Reiter (lazka) 2017-03-29 09:12:49 UTC
Thanks for the update. Let's close this then.