Bug 392246 - Segmentation fault
Summary: Segmentation fault
Status: RESOLVED FIXED
Alias: None
Product: rust-qt-binding-generator
Classification: Unmaintained
Component: demo (other bugs)
Version First Reported In: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Jos van den Oever
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-23 20:37 UTC by phodina
Modified: 2018-05-13 13:12 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description phodina 2018-03-23 20:37:49 UTC
CMake builds rust-qt-binding-generator without errors, but when I run Demo or qt_widget or qt_quick I get segmentation fault.

My configuration is:
- Archlinux
- QMake version 3.1
  Using Qt version 5.10.1 in /usr/lib
- rustc 1.24.1 (d3ae9a9e0 2018-02-27)
- cmake version 3.10.2

Here is the output of gdb:

// qt_widget demo
(gdb) r
Starting program: /home/cylon2p0/Rust-Sandbox/rust-qt-binding-generator/templates/qt_widgets/MyExe 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffebf2c700 (LWP 27739)]
[New Thread 0x7fffdcb65700 (LWP 27740)]

Thread 1 "MyExe" received signal SIGSEGV, Segmentation fault.
0x00007ffff67b3494 in ?? () from /usr/lib/libQt5Core.so.5

// Demo from demo
(gdb) run
Starting program: /home/cylon2p0/Rust-Sandbox/rust-qt-binding-generator/demo/Demo 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffea058700 (LWP 26998)]
[New Thread 0x7fffdcc37700 (LWP 26999)]
[New Thread 0x7fffdc22d700 (LWP 27000)]
[New Thread 0x7fffd7fff700 (LWP 27001)]
[Thread 0x7fffd7fff700 (LWP 27001) exited]
[New Thread 0x7fffd7fff700 (LWP 27002)]
[Thread 0x7fffd7fff700 (LWP 27002) exited]

Thread 1 "Demo" received signal SIGSEGV, Segmentation fault.
0x00005555555b337c in (anonymous namespace)::qbytearray_t::operator QByteArray() const ()

// qt_quick demo
(gdb) r
Starting program: /home/cylon2p0/Rust-Sandbox/rust-qt-binding-generator/templates/qt_quick/MyExe 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffeb066700 (LWP 28266)]
[New Thread 0x7fffdd061700 (LWP 28267)]

Thread 1 "MyExe" received signal SIGSEGV, Segmentation fault.
0x00007ffff5fd4494 in ?? () from /usr/lib/libQt5Core.so.5
Comment 1 Jos van den Oever 2018-05-13 13:12:46 UTC
This should be fixed as of 57d557378ee629496b4a6afc58022f0677cdff06.

I've tested Demo qt_widget and qt_quick in Arch.