Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 939907 - media-gfx/inkscape-1.3.2-r2 crashes on start (even without files)
Summary: media-gfx/inkscape-1.3.2-r2 crashes on start (even without files)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-20 15:03 UTC by Andreas K. Hüttel
Modified: 2024-09-24 15:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas K. Hüttel archtester gentoo-dev 2024-09-20 15:03:38 UTC
Nuff said. More info following.
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2024-09-20 15:08:31 UTC
Output of the crash handler:

pre>
 0# Inkscape::Application::crash_handler(int) in /usr/bin/../lib64/inkscape/libinkscape_base.so.1.3.2.0
 1# 0x00007F4C91A686F0 in /usr/lib64/libc.so.6
 2# Gdk::Device::get_source() const in /usr/bin/../lib64/inkscape/../libgdkmm-3.0.so.1
 3# 0x00007F4C93EF6F75 in /usr/bin/../lib64/inkscape/libinkscape_base.so.1.3.2.0
 4# Inkscape::DeviceManagerImpl::DeviceManagerImpl() in /usr/bin/../lib64/inkscape/libinkscape_base.so.1.3.2.0
 5# Inkscape::DeviceManager::getManager() in /usr/bin/../lib64/inkscape/libinkscape_base.so.1.3.2.0
 6# Inkscape::Application::Application(bool) in /usr/bin/../lib64/inkscape/libinkscape_base.so.1.3.2.0
 7# Inkscape::Application::create(bool) in /usr/bin/../lib64/inkscape/libinkscape_base.so.1.3.2.0
 8# InkscapeApplication::on_startup() in /usr/bin/../lib64/inkscape/libinkscape_base.so.1.3.2.0
 9# Glib::SignalProxyNormal::slot0_void_callback(_GObject*, void*) in /usr/lib64/libglibmm-2.4.so.1
10# g_closure_invoke in /usr/bin/../lib64/inkscape/../libgobject-2.0.so.0
11# 0x00007F4C91142E7D in /usr/bin/../lib64/inkscape/../libgobject-2.0.so.0
12# 0x00007F4C9114451C in /usr/bin/../lib64/inkscape/../libgobject-2.0.so.0
13# g_signal_emit_valist in /usr/bin/../lib64/inkscape/../libgobject-2.0.so.0
14# g_signal_emit in /usr/bin/../lib64/inkscape/../libgobject-2.0.so.0
15# g_application_register in /usr/bin/../lib64/inkscape/../libgio-2.0.so.0
16# 0x00007F4C9125A92C in /usr/bin/../lib64/inkscape/../libgio-2.0.so.0
17# g_application_run in /usr/bin/../lib64/inkscape/../libgio-2.0.so.0
18# main in inkscape
19# 0x00007F4C91A522CE in /usr/lib64/libc.so.6
20# __libc_start_main in /usr/lib64/libc.so.6
21# _start in inkscape
</pre>
<details><summary>System info</summary>
Inkscape 1.3.2 (091e20ef0f, 2023-11-25)

    GLib version:     2.78.6
    GTK version:      3.24.41
    glibmm version:   2.66.7
    gtkmm version:    3.24.9
    libxml2 version:  2.12.7
    libxslt version:  1.1.39
    Cairo version:    1.18.0
    Pango version:    1.52.1
    HarfBuzz version: 8.5.0

    OS version:       Gentoo Linux
</details>
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2024-09-20 15:13:17 UTC
Gdk::Device::get_source() const in /usr/bin/../lib64/inkscape/../libgdkmm-3.0.so.1

^ this is where the crash occurs
kona ~ # equery belongs /usr/lib64/libgdkmm-3.0.so.1
 * Searching for /usr/lib64/libgdkmm-3.0.so.1 ... 
dev-cpp/gtkmm-3.24.9 (/usr/lib64/libgdkmm-3.0.so.1 -> libgdkmm-3.0.so.1.1.0)
dev-cpp/gtkmm-3.24.9 (/usr/lib64/libgdkmm-3.0.so.1.1.0)

Core was generated by `inkscape'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f4c908ffa84 in Gdk::Device::get_source() const () from /usr/bin/../lib64/inkscape/../libgdkmm-3.0.so.1
[Current thread is 1 (Thread 0x7f4c8eb6d340 (LWP 4104693))]
(gdb) bt
#0  0x00007f4c908ffa84 in Gdk::Device::get_source() const () at /usr/bin/../lib64/inkscape/../libgdkmm-3.0.so.1
#1  0x00007f4c93ef6f75 in ??? () at /usr/bin/../lib64/inkscape/libinkscape_base.so.1.3.2.0
#2  0x00007f4c93ef784d in Inkscape::DeviceManagerImpl::DeviceManagerImpl() () at /usr/bin/../lib64/inkscape/libinkscape_base.so.1.3.2.0
#3  0x00007f4c93ef790d in Inkscape::DeviceManager::getManager() () at /usr/bin/../lib64/inkscape/libinkscape_base.so.1.3.2.0
#4  0x00007f4c93f4ff88 in Inkscape::Application::Application(bool) () at /usr/bin/../lib64/inkscape/libinkscape_base.so.1.3.2.0
#5  0x00007f4c93f51208 in Inkscape::Application::create(bool) () at /usr/bin/../lib64/inkscape/libinkscape_base.so.1.3.2.0
#6  0x00007f4c9400d6c7 in InkscapeApplication::on_startup() () at /usr/bin/../lib64/inkscape/libinkscape_base.so.1.3.2.0
#7  0x00007f4c923d35cc in Glib::SignalProxyNormal::slot0_void_callback(_GObject*, void*) () at /usr/lib64/libglibmm-2.4.so.1
#8  0x00007f4c9112ef00 in g_closure_invoke () at /usr/bin/../lib64/inkscape/../libgobject-2.0.so.0
#9  0x00007f4c91142e7d in ??? () at /usr/bin/../lib64/inkscape/../libgobject-2.0.so.0
#10 0x00007f4c9114451c in ??? () at /usr/bin/../lib64/inkscape/../libgobject-2.0.so.0
#11 0x00007f4c9114a336 in g_signal_emit_valist () at /usr/bin/../lib64/inkscape/../libgobject-2.0.so.0
#12 0x00007f4c9114a3fb in g_signal_emit () at /usr/bin/../lib64/inkscape/../libgobject-2.0.so.0
#13 0x00007f4c9125a536 in g_application_register () at /usr/bin/../lib64/inkscape/../libgio-2.0.so.0
#14 0x00007f4c9125a92c in ??? () at /usr/bin/../lib64/inkscape/../libgio-2.0.so.0
#15 0x00007f4c9125ac56 in g_application_run () at /usr/bin/../lib64/inkscape/../libgio-2.0.so.0
#16 0x000056197e3642fe in main ()
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2024-09-20 15:37:01 UTC
Program terminated with signal SIGSEGV, Segmentation fault.
#0  Gdk::Device::gobj (this=<optimized out>) at ../gtkmm-3.24.9/untracked/gdk/gdkmm/device.h:566

warning: 566    ../gtkmm-3.24.9/untracked/gdk/gdkmm/device.h: Datei oder Verzeichnis nicht gefunden
[Current thread is 1 (Thread 0x7f89cd4b8340 (LWP 4143616))]
(gdb) bt
#0  Gdk::Device::gobj (this=<optimized out>) at ../gtkmm-3.24.9/untracked/gdk/gdkmm/device.h:566
#1  Gdk::Device::get_source (this=0x0) at ../gtkmm-3.24.9/untracked/gdk/gdkmm/device.cc:282
#2  0x00007f89d4cf6f75 in createFakeList () at /usr/include/glibmm-2.4/glibmm/refptr.h:259
#3  0x00007f89d4cf784d in Inkscape::DeviceManagerImpl::DeviceManagerImpl (this=this@entry=0x56359e5dfee0, __in_chrg=<optimized out>, __vtt_parm=<optimized out>)
    at /usr/src/debug/media-gfx/inkscape-1.3.2-r2/inkscape-1.3.2/src/device-manager.cpp:316
#4  0x00007f89d4cf790d in Inkscape::DeviceManager::getManager () at /usr/src/debug/media-gfx/inkscape-1.3.2-r2/inkscape-1.3.2/src/device-manager.cpp:601
#5  0x00007f89d4d4ff88 in Inkscape::Application::Application (this=0x56359e2cc5f0, use_gui=<optimized out>)
    at /usr/src/debug/media-gfx/inkscape-1.3.2-r2/inkscape-1.3.2/src/inkscape.cpp:250
#6  0x00007f89d4d51208 in Inkscape::Application::create (use_gui=<optimized out>) at /usr/src/debug/media-gfx/inkscape-1.3.2-r2/inkscape-1.3.2/src/inkscape.cpp:155
#7  0x00007f89d4e0d6c7 in InkscapeApplication::on_startup (this=0x7ffd63a78760) at /usr/src/debug/media-gfx/inkscape-1.3.2-r2/inkscape-1.3.2/src/inkscape-application.cpp:1056
#8  0x00007f89d365e5cc in Glib::SignalProxyNormal::slot0_void_callback(_GObject*, void*) () at /usr/lib64/libglibmm-2.4.so.1
#9  0x00007f89d22f7f00 in g_closure_invoke () at /usr/bin/../lib64/inkscape/../libgobject-2.0.so.0
#10 0x00007f89d230be7d in ??? () at /usr/bin/../lib64/inkscape/../libgobject-2.0.so.0
#11 0x00007f89d230d51c in ??? () at /usr/bin/../lib64/inkscape/../libgobject-2.0.so.0
#12 0x00007f89d2313336 in g_signal_emit_valist () at /usr/bin/../lib64/inkscape/../libgobject-2.0.so.0
#13 0x00007f89d23133fb in g_signal_emit () at /usr/bin/../lib64/inkscape/../libgobject-2.0.so.0
#14 0x00007f89d1ef5536 in g_application_register () at /usr/bin/../lib64/inkscape/../libgio-2.0.so.0
#15 0x00007f89d1ef592c in ??? () at /usr/bin/../lib64/inkscape/../libgio-2.0.so.0
#16 0x00007f89d1ef5c56 in g_application_run () at /usr/bin/../lib64/inkscape/../libgio-2.0.so.0
#17 0x000056359db392fe in main (argc=<optimized out>, argv=0x56359e281600) at /usr/include/glibmm-2.4/glibmm/refptr.h:405
(gdb)
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2024-09-20 15:43:36 UTC
device.h:
    565   ///Provides access to the underlying C GObject.
    566   const GdkDevice* gobj() const { return reinterpret_cast<GdkDevice*>(gobject_); }

device.cc:
    280 InputSource Device::get_source() const
    281 {
    282   return ((InputSource)(gdk_device_get_source(const_cast<GdkDevice*>(gobj()))));
    283 }
Comment 5 Andreas K. Hüttel archtester gentoo-dev 2024-09-20 15:47:16 UTC
refptr.h:
    258 template <class T_CppObject>
    259 inline T_CppObject* RefPtr<T_CppObject>::operator->() const noexcept
    260 {
    261   return pCppObject_;
    262 }
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-09-20 16:33:03 UTC
#1  Gdk::Device::get_source (this=0x0) at ../gtkmm-3.24.9/untracked/gdk/gdkmm/device.cc:282

so things are already buggered by this point, something operates on a null GdkDevice?
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-09-20 16:53:12 UTC
(In reply to Sam James from comment #7)
> See https://gitlab.com/inkscape/inkscape/-/issues/4649#note_1807857682 and
> https://gitlab.com/inkscape/inkscape/-/issues/4649#note_1808158552.

I fear the conclusion is that we need to package the betas.
Comment 9 Andreas K. Hüttel archtester gentoo-dev 2024-09-20 18:23:34 UTC
Indeed, Wayland plus Wacom tablet as in the upstream report...
Comment 10 Larry the Git Cow gentoo-dev 2024-09-20 19:23:18 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a211c482c4cf7ece9d5c533bf586c133b9de8ce8

commit a211c482c4cf7ece9d5c533bf586c133b9de8ce8
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2024-09-20 19:22:08 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2024-09-20 19:23:07 +0000

    media-gfx/inkscape: Add 1.4beta3 (without keywords)
    
    Bug: https://bugs.gentoo.org/939907
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 media-gfx/inkscape/Manifest                  |   1 +
 media-gfx/inkscape/inkscape-1.4_beta3.ebuild | 200 +++++++++++++++++++++++++++
 media-gfx/inkscape/inkscape-9999.ebuild      |   8 +-
 3 files changed, 203 insertions(+), 6 deletions(-)
Comment 11 Larry the Git Cow gentoo-dev 2024-09-24 15:51:35 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f56c755a9b5db7e6749836856f1dca150d4d089f

commit f56c755a9b5db7e6749836856f1dca150d4d089f
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2024-09-24 15:50:24 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2024-09-24 15:51:12 +0000

    media-gfx/inkscape: keyword 1.4_beta3
    
    Closes: https://bugs.gentoo.org/939907
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 media-gfx/inkscape/inkscape-1.4_beta3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)