[Gambas-bugtracker] Bug #1868: gb.report2 segmentation fault with gb.gui

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Fri Aug 28 14:46:01 CEST 2020


http://gambaswiki.org/bugtracker/edit?object=BUG.1868&from=L21haW4-

Gianluigi GRADASCHI reported a new bug.

Summary
-------

gb.report2 segmentation fault with gb.gui

Type             : Bug
Priority         : Medium
Gambas version   : Master
Product          : Unknown


Description
-----------

The attached report2 test, that work only in EURO area, with gb.gui.qt works fine but if I change to gb.gui I get a segmentation error (11).

Attached ReportTest
Attached response of gnu debugger with gb.gui

To get error switch on gb.gui

GNU Debugging:
--------------

(gdb) run
Starting program: /usr/bin/gbx3 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Detaching after vfork from child process 10283]
[New Thread 0x7ffff1ba6700 (LWP 10285)]
[New Thread 0x7ffff13a5700 (LWP 10286)]
[New Thread 0x7ffff08c6700 (LWP 10287)]
[New Thread 0x7fffe3fff700 (LWP 10288)]
[New Thread 0x7fffe37fe700 (LWP 10289)]
[New Thread 0x7fffe2acc700 (LWP 10291)]
[Thread 0x7fffe3fff700 (LWP 10288) exited]
[Thread 0x7ffff08c6700 (LWP 10287) exited]
[New Thread 0x7ffff08c6700 (LWP 10295)]

Thread 1 "gbx3" received signal SIGSEGV, Segmentation fault.
gt_html_to_pango_string (html=html at entry=0x0, len_html=len_html at entry=0, 
    newline_are_break=newline_are_break at entry=false) at gtools.cpp:952
952			c = *p;
(gdb) bt
#0  gt_html_to_pango_string(char const*, int, bool)
    (html=html at entry=0x0, len_html=len_html at entry=0, newline_are_break=newline_are_break at entry=false) at gtools.cpp:952
#1  0x00007ffff660770c in draw_text(GB_PAINT*, bool, char const*, int, float, float, int, bool)
    (d=0x555556060d48, rich=<optimized out>, text=0x0, len=0, w=716, h=37, align=0, draw=<optimized out>) at cpaint_impl.cpp:1013
#2  0x00005555555b9eae in EXEC_native () at gbx_exec.c:1330
#3  0x00005555555ba7d0 in EXEC_native_check (defined=<optimized out>)
    at gbx_exec.c:1127
#4  0x00005555555b37be in EXEC_loop () at gbx_exec_loop.c:1165
#5  0x00005555555b8ddd in EXEC_function_loop () at gbx_exec.c:905
#6  0x00005555555b9566 in EXEC_function_real () at gbx_exec.c:892
#7  0x00005555555ba9b9 in EXEC_public_desc
    (class=class at entry=0x555555661e98, object=object at entry=0x555555b17888, desc=desc at entry=0x55555581faa8, nparam=nparam at entry=3) at gbx_exec.c:1585
#8  0x0000555555591940 in raise_event
    (observer=observer at entry=0x555555b17888, object=object at entry=0x5555558bda28, func_id=121, func_id at entry=122, nparam=nparam at entry=3) at gbx_api.c:807
#9  0x0000555555593b32 in GB_Raise
    (object=0x5555558bda28, event_id=21, nparam=3) at gbx_api.c:961
#10 0x00005555555b3914 in EXEC_loop () at gbx_exec_loop.c:1172
#11 0x00005555555b8ddd in EXEC_function_loop () at gbx_exec.c:905
--Type <RET> for more, q to quit, c to continue without paging--
#12 0x00005555555b9566 in EXEC_function_real () at gbx_exec.c:892
#13 0x00005555555ba9b9 in EXEC_public_desc
    (class=class at entry=0x555555708388, object=object at entry=0x5555558bda28, desc=desc at entry=0x55555573d798, nparam=nparam at entry=0) at gbx_exec.c:1585
#14 0x0000555555591940 in raise_event
    (observer=observer at entry=0x5555558bda28, object=object at entry=0x555555aa7478, func_id=145, func_id at entry=146, nparam=nparam at entry=0) at gbx_api.c:807
#15 0x0000555555593b32 in GB_Raise
    (object=object at entry=0x555555aa7478, event_id=0, nparam=nparam at entry=0)
    at gbx_api.c:961
#16 0x00005555555ad85b in trigger_timer (_object=_object at entry=0x555555aa7478)
    at gbx_c_timer.c:163
#17 0x000055555557e559 in EVENT_check_post () at gbx_event.c:244
#18 0x00007ffff6616598 in MAIN_do_iteration(bool) (
    do_not_block=do_not_block at entry=false) at main.cpp:598
#19 0x00007ffff6618d57 in gApplication::enterLoop(void*, bool, _GtkWindow*)
    (owner=owner at entry=0x555555983040, showIt=showIt at entry=true, modal=modal at entry=0x0) at gapplication.cpp:1231
#20 0x00007ffff65ff952 in gMainWindow::showModal() (this=0x555555983040)
    at gmainwindow.cpp:929
#21 0x00007ffff66142bf in CWINDOW_show_modal(void*, void*)
    (_param=<optimized out>, _object=0x5555558d9cd8) at CWindow.cpp:381
#22 CWINDOW_show_modal(void*, void*)
--Type <RET> for more, q to quit, c to continue without paging--
    (_object=0x5555558d9cd8, _param=<optimized out>) at CWindow.cpp:374
#23 0x00005555555b9679 in EXEC_native_quick () at gbx_exec.c:1175
#24 0x00005555555ba7db in EXEC_native_check (defined=<optimized out>)
    at gbx_exec.c:1125
#25 0x00005555555b37be in EXEC_loop () at gbx_exec_loop.c:1165
#26 0x00005555555b8ddd in EXEC_function_loop () at gbx_exec.c:905
#27 0x00005555555b9566 in EXEC_function_real () at gbx_exec.c:892
#28 0x00005555555ba9b9 in EXEC_public_desc
    (class=class at entry=0x555555826f08, object=object at entry=0x5555558c4338, desc=desc at entry=0x5555559e3218, nparam=nparam at entry=0) at gbx_exec.c:1585
#29 0x0000555555591940 in raise_event
    (observer=observer at entry=0x5555558c4338, object=object at entry=0x555555dec218, func_id=167, func_id at entry=168, nparam=nparam at entry=0) at gbx_api.c:807
#30 0x0000555555593b32 in GB_Raise
    (object=0x555555dec218, event_id=17, nparam=0) at gbx_api.c:961
#31 0x00007ffff660f1ca in gb_raise_button_Click(gControl*)
    (sender=<optimized out>) at CButton.cpp:50
#32 0x00007ffff51eea56 in  () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#33 0x00007ffff520db28 in g_signal_emit_valist ()
    at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#34 0x00007ffff520e0d3 in g_signal_emit ()
    at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#35 0x00007ffff56292ae in  () at /lib/x86_64-linux-gnu/libgtk-3.so.0
--Type <RET> for more, q to quit, c to continue without paging--
#36 0x00007ffff5629318 in  () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#37 0x00007ffff51ee802 in g_closure_invoke ()
    at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#38 0x00007ffff5202962 in  () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#39 0x00007ffff520db9e in g_signal_emit_valist ()
    at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#40 0x00007ffff520e0d3 in g_signal_emit ()
    at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#41 0x00007ffff5627754 in  () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#42 0x00007ffff58d8ae1 in  () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#43 0x00007ffff51eea56 in  () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#44 0x00007ffff520db28 in g_signal_emit_valist ()
    at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#45 0x00007ffff520e0d3 in g_signal_emit ()
    at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#46 0x00007ffff56effcc in  () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#47 0x00007ffff51f1c56 in g_cclosure_marshal_VOID__BOXEDv ()
    at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#48 0x00007ffff51eea56 in  () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#49 0x00007ffff520db28 in g_signal_emit_valist ()
    at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#50 0x00007ffff520e0d3 in g_signal_emit ()
    at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
--Type <RET> for more, q to quit, c to continue without paging--
#51 0x00007ffff56ed012 in  () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#52 0x00007ffff56ee65b in  () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#53 0x00007ffff56f1646 in  () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#54 0x00007ffff56b8bb0 in gtk_event_controller_handle_event ()
    at /lib/x86_64-linux-gnu/libgtk-3.so.0
#55 0x00007ffff587b16d in  () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#56 0x00007ffff58d25ef in  () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#57 0x00007ffff51eea56 in  () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#58 0x00007ffff520cdd1 in g_signal_emit_valist ()
    at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#59 0x00007ffff520e0d3 in g_signal_emit ()
    at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#60 0x00007ffff587cc23 in  () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#61 0x00007ffff5738128 in  () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#62 0x00007ffff573a3db in gtk_main_do_event ()
    at /lib/x86_64-linux-gnu/libgtk-3.so.0
#63 0x00007ffff661921c in gambas_handle_event(GdkEvent*) (event=0x7fffe400b720)
    at gapplication.cpp:865
#64 0x00007ffff5422f79 in  () at /lib/x86_64-linux-gnu/libgdk-3.so.0
#65 0x00007ffff5456106 in  () at /lib/x86_64-linux-gnu/libgdk-3.so.0
#66 0x00007ffff5102fbd in g_main_context_dispatch ()
    at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#67 0x00007ffff5103240 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
--Type <RET> for more, q to quit, c to continue without paging--
#68 0x00007ffff51032e3 in g_main_context_iteration ()
    at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#69 0x00007ffff5739475 in gtk_main_iteration_do ()
    at /lib/x86_64-linux-gnu/libgtk-3.so.0
#70 0x00007ffff66165b2 in MAIN_do_iteration(bool)
    (do_not_block=do_not_block at entry=false) at main.cpp:591
#71 0x00007ffff661660e in hook_loop() () at main.cpp:500
#72 0x00005555555741d2 in main (argc=<optimized out>, argv=<optimized out>)
    at gbx.c:481
(gdb)


System information
------------------

[System]
Gambas=3.15.90 362e6ce (master)
OperatingSystem=Linux
Kernel=5.4.0-42-generic
Architecture=x86_64
Distribution=Ubuntu 20.04.1 LTS
Desktop=UBUNTU:GNOME
Theme=fusion
Language=it_IT.UTF-8
Memory=15941M

[Libraries]
Cairo=libcairo.so.2.11600.0
Curl=libcurl.so.4.6.0
DBus=libdbus-1.so.3.19.11
GDK2=libgdk-x11-2.0.so.0.2400.32
GDK3=libgdk-3.so.0.2404.16
GStreamer=libgstreamer-1.0.so.0.1602.0
GTK+2=libgtk-x11-2.0.so.0.2400.32
GTK+3=libgtk-3.so.0.2404.16
OpenGL=libGL.so.1.7.0
Poppler=libpoppler.so.97.0.0
QT5=libQt5Core.so.5.12.8
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6

[Environment]
CLUTTER_IM_MODULE=ibus
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DESKTOP_SESSION=ubuntu
DISPLAY=:0
GB_GUI=gb.qt5
GDMSESSION=ubuntu
GIO_LAUNCHED_DESKTOP_FILE=/home/<hostname>/.local/share/applications/gambas3.desktop
GIO_LAUNCHED_DESKTOP_FILE_PID=8712
GJS_DEBUG_OUTPUT=stderr
GJS_DEBUG_TOPICS=JS ERROR;JS LOG
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GNOME_SHELL_SESSION_MODE=ubuntu
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
GTK_IM_MODULE=ibus
GTK_MODULES=gail:atk-bridge
HOME=/home/<hostname>
IM_CONFIG_PHASE=1
INVOCATION_ID=6c6880e1a69044e097edd8bf90f460f9
JOURNAL_STREAM=9:32043
LANG=it_IT.UTF-8
LANGUAGE=it_IT.UTF-8
LC_ADDRESS=it_IT.UTF-8
LC_IDENTIFICATION=it_IT.UTF-8
LC_MEASUREMENT=it_IT.UTF-8
LC_MONETARY=it_IT.UTF-8
LC_NAME=it_IT.UTF-8
LC_NUMERIC=it_IT.UTF-8
LC_PAPER=it_IT.UTF-8
LC_TELEPHONE=it_IT.UTF-8
LC_TIME=it_IT.UTF-8
LOGNAME=<hostname>
MANAGERPID=1198
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
PWD=/home/<hostname>
QT4_IM_MODULE=ibus
QT_ACCESSIBILITY=1
QT_IM_MODULE=ibus
QT_LOGGING_RULES=*.debug=false
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/1575,unix/<hostname>:/tmp/.ICE-unix/1575
SHELL=/bin/bash
SHLVL=0
SSH_AGENT_PID=1481
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
TZ=:/etc/localtime
USER=<hostname>
USERNAME=<hostname>
WINDOWPATH=2
XAUTHORITY=/run/user/1000/gdm/Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
XDG_CURRENT_DESKTOP=ubuntu:GNOME
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
XDG_MENU_PREFIX=gnome-
XDG_RUNTIME_DIR=/run/user/1000
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=ubuntu
XDG_SESSION_TYPE=x11
XMODIFIERS=@im=ibus
_=/usr/bin/dbus-update-activation-environment




More information about the Bugtracker mailing list