Invalid pointer exception

Issues related to VMProtect
bartrijvers
Posts: 5
Joined: Tue Aug 21, 2018 2:03 pm

Invalid pointer exception

Postby bartrijvers » Tue Aug 21, 2018 2:43 pm

Hello,

We're evaluating the VMProtect software on our Ubuntu 16.04 64-bit Linux machine for an application that needs protecting. The application is a c++ project developed on QTCreator and uses also some graphical screens. When starting the regular application, also the console contains some debug messages.
I've installed the latest Linux 64-bit VMProtect tool 3.2.0 and loaded the binary. I compiled it in the VMProtect tool without any protection enabled. The binary has grown for about 1.1 MB (to 38 MB) and when I run it, it gives an invalid pointer exception before any debug logging happens.
More specifically the crash is with the QT libraries.

Note: I can run this tool successfully over a simple Linux hello world console application.

System: Intel core i7-5600 2.60GHzx4 (Dell laptop), 8GB RAM
Ubuntu 16.04 64-bit (Linux)
Application developed using QT creator, CMake project in debug mode
The application uses graphical windows on the Linux PC
The final target is a Xilinx Zynq processor (Cortex A9), this has not yet been tried with the VMProtect tool though

Code: Select all

./DeliriumMonitorGUI_vmp
*** Error in `./DeliriumMonitorGUI_vmp': realloc(): invalid pointer: 0x0000000000b48600 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f4ff508a7e5]
/lib/x86_64-linux-gnu/libc.so.6(realloc+0x348)[0x7f4ff5097a08]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x614be)[0x7f4ff61164be]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN17QVariantAnimation20registerInterpolatorEPF8QVariantPKvS2_dEi+0xb7)[0x7f4ff6114f97]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x1b22d5)[0x7f4ff675a2d5]
/lib64/ld-linux-x86-64.so.2(+0x106ba)[0x7f4ff72ac6ba]
/lib64/ld-linux-x86-64.so.2(+0x107cb)[0x7f4ff72ac7cb]
/lib64/ld-linux-x86-64.so.2(+0xc6a)[0x7f4ff729cc6a]
======= Memory map: ========
00400000-00401000 r-xp 00000000 08:01 4329614                            /home/laptop_bart/git/prolira/dmp-build/DeliriumMonitorGUI/DeliriumMonitorGUI_vmp
00401000-00945000 rwxp 00000000 00:00 0
00a00000-00a01000 rw-p 00000000 08:01 4329614                            /home/laptop_bart/git/prolira/dmp-build/DeliriumMonitorGUI/DeliriumMonitorGUI_vmp
00a01000-00b44000 rw-p 00000000 00:00 0
00b44000-00b47000 r--p 00000000 00:00 0
00b47000-00b4a000 rw-p 00000000 00:00 0
00c00000-00c01000 r-xp 00000000 08:01 4329614                            /home/laptop_bart/git/prolira/dmp-build/DeliriumMonitorGUI/DeliriumMonitorGUI_vmp
00c01000-00f58000 rwxp 00000000 00:00 0
01000000-01305000 rwxp 00000000 08:01 4329614                            /home/laptop_bart/git/prolira/dmp-build/DeliriumMonitorGUI/DeliriumMonitorGUI_vmp
01504000-01867000 rw-p 00304000 08:01 4329614                            /home/laptop_bart/git/prolira/dmp-build/DeliriumMonitorGUI/DeliriumMonitorGUI_vmp
02c6f000-02ca1000 rw-p 00000000 00:00 0                                  [heap]
7f4fe8000000-7f4fe8021000 rw-p 00000000 00:00 0
7f4fe8021000-7f4fec000000 ---p 00000000 00:00 0
7f4fef873000-7f4ff1129000 r-xp 00000000 08:01 533124                     /usr/lib/x86_64-linux-gnu/libicudata.so.55.1
7f4ff1129000-7f4ff1328000 ---p 018b6000 08:01 533124                     /usr/lib/x86_64-linux-gnu/libicudata.so.55.1
7f4ff1328000-7f4ff1329000 r--p 018b5000 08:01 533124                     /usr/lib/x86_64-linux-gnu/libicudata.so.55.1
7f4ff1329000-7f4ff132a000 rw-p 018b6000 08:01 533124                     /usr/lib/x86_64-linux-gnu/libicudata.so.55.1
7f4ff132a000-7f4ff132f000 r-xp 00000000 08:01 532441                     /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7f4ff132f000-7f4ff152e000 ---p 00005000 08:01 532441                     /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7f4ff152e000-7f4ff152f000 r--p 00004000 08:01 532441                     /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7f4ff152f000-7f4ff1530000 rw-p 00005000 08:01 532441                     /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7f4ff1530000-7f4ff1551000 r-xp 00000000 08:01 9704096                    /lib/x86_64-linux-gnu/liblzma.so.5.0.0
7f4ff1551000-7f4ff1750000 ---p 00021000 08:01 9704096                    /lib/x86_64-linux-gnu/liblzma.so.5.0.0
7f4ff1750000-7f4ff1751000 r--p 00020000 08:01 9704096                    /lib/x86_64-linux-gnu/liblzma.so.5.0.0
7f4ff1751000-7f4ff1752000 rw-p 00021000 08:01 9704096                    /lib/x86_64-linux-gnu/liblzma.so.5.0.0
7f4ff1752000-7f4ff18d1000 r-xp 00000000 08:01 533138                     /usr/lib/x86_64-linux-gnu/libicuuc.so.55.1
7f4ff18d1000-7f4ff1ad1000 ---p 0017f000 08:01 533138                     /usr/lib/x86_64-linux-gnu/libicuuc.so.55.1
7f4ff1ad1000-7f4ff1ae1000 r--p 0017f000 08:01 533138                     /usr/lib/x86_64-linux-gnu/libicuuc.so.55.1
7f4ff1ae1000-7f4ff1ae2000 rw-p 0018f000 08:01 533138                     /usr/lib/x86_64-linux-gnu/libicuuc.so.55.1
7f4ff1ae2000-7f4ff1ae6000 rw-p 00000000 00:00 0
7f4ff1ae6000-7f4ff1b07000 r-xp 00000000 08:01 533854                     /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7f4ff1b07000-7f4ff1d06000 ---p 00021000 08:01 533854                     /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7f4ff1d06000-7f4ff1d07000 r--p 00020000 08:01 533854                     /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7f4ff1d07000-7f4ff1d08000 rw-p 00021000 08:01 533854                     /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7f4ff1d08000-7f4ff1d0c000 r-xp 00000000 08:01 9704213                    /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7f4ff1d0c000-7f4ff1f0b000 ---p 00004000 08:01 9704213                    /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7f4ff1f0b000-7f4ff1f0c000 r--p 00003000 08:01 9704213                    /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7f4ff1f0c000-7f4ff1f0d000 rw-p 00004000 08:01 9704213                    /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7f4ff1f0d000-7f4ff1f14000 r-xp 00000000 08:01 532820                     /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7f4ff1f14000-7f4ff2113000 ---p 00007000 08:01 532820                     /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7f4ff2113000-7f4ff2114000 r--p 00006000 08:01 532820                     /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7f4ff2114000-7f4ff2115000 rw-p 00007000 08:01 532820                     /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7f4ff2115000-7f4ff2183000 r-xp 00000000 08:01 9704158                    /lib/x86_64-linux-gnu/libpcre.so.3.13.2
7f4ff2183000-7f4ff2383000 ---p 0006e000 08:01 9704158                    /lib/x86_64-linux-gnu/libpcre.so.3.13.2
7f4ff2383000-7f4ff2384000 r--p 0006e000 08:01 9704158                    /lib/x86_64-linux-gnu/libpcre.so.3.13.2
7f4ff2384000-7f4ff2385000 rw-p 0006f000 08:01 9704158                    /lib/x86_64-linux-gnu/libpcre.so.3.13.2
7f4ff2385000-7f4ff2387000 r-xp 00000000 08:01 532430                     /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7f4ff2387000-7f4ff2587000 ---p 00002000 08:01 532430                     /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7f4ff2587000-7f4ff2588000 r--p 00002000 08:01 532430                     /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7f4ff2588000-7f4ff2589000 rw-p 00003000 08:01 532430                     /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7f4ff2589000-7f4ff25eb000 r-xp 00000000 08:01 532469                     /usr/lib/x86_64-linux-gnu/libXt.so.6.0.0
7f4ff25eb000-7f4ff27eb000 ---p 00062000 08:01 532469                     /usr/lib/x86_64-linux-gnu/libXt.so.6.0.0
7f4ff27eb000-7f4ff27ec000 r--p 00062000 08:01 532469                     /usr/lib/x86_64-linux-gnu/libXt.so.6.0.0
7f4ff27ec000-7f4ff27f1000 rw-p 00063000 08:01 532469                     /usr/lib/x86_64-linux-gnu/libXt.so.6.0.0
7f4ff27f1000-7f4ff27f2000 rw-p 00000000 00:00 0
7f4ff27f2000-7f4ff2818000 r-xp 00000000 08:01 9704060                    /lib/x86_64-linux-gnu/libexpat.so.1.6.0
7f4ff2818000-7f4ff2a18000 ---p 00026000 08:01 9704060                    /lib/x86_64-linux-gnu/libexpat.so.1.6.0
7f4ff2a18000-7f4ff2a1a000 r--p 00026000 08:01 9704060                    /lib/x86_64-linux-gnu/libexpat.so.1.6.0
7f4ff2a1a000-7f4ff2a1b000 rw-p 00028000 08:01 9704060                    /lib/x86_64-linux-gnu/libexpat.so.1.6.0
7f4ff2a1b000-7f4ff2bcc000 r-xp 00000000 08:01 530045                     /usr/lib/x86_64-linux-gnu/libxml2.so.2.9.3
7f4ff2bcc000-7f4ff2dcb000 ---p 001b1000 08:01 530045                     /usr/lib/x86_64-linux-gnu/libxml2.so.2.9.3
7f4ff2dcb000-7f4ff2dd3000 r--p 001b0000 08:01 530045                     /usr/lib/x86_64-linux-gnu/libxml2.so.2.9.3
7f4ff2dd3000-7f4ff2dd5000 rw-p 001b8000 08:01 530045                     /usr/lib/x86_64-linux-gnu/libxml2.so.2.9.3
7f4ff2dd5000-7f4ff2dd6000 rw-p 00000000 00:00 0
7f4ff2dd6000-7f4ff2f0b000 r-xp 00000000 08:01 532426                     /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
7f4ff2f0b000-7f4ff310b000 ---p 00135000 08:01 532426                     /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
7f4ff310b000-7f4ff310c000 r--p 00135000 08:01 532426                     /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
7f4ff310c000-7f4ff3110000 rw-p 00136000 08:01 532426                     /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
7f4ff3110000-7f4ff3121000 r-xp 00000000 08:01 532443                     /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0
7f4ff3121000-7f4ff3320000 ---p 00011000 08:01 532443                     /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0
7f4ff3320000-7f4ff3321000 r--p 00010000 08:01 532443                     /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0
7f4ff3321000-7f4ff3322000 rw-p 00011000 08:01 532443                     /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0
7f4ff3322000-7f4ff332b000 r-xp 00000000 08:01 532465                     /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7f4ff332b000-7f4ff352a000 ---p 00009000 08:01 532465                     /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7f4ff352a000-7f4ff352b000 r--p 00008000 08:01 532465                     /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7f4ff352b000-7f4ff352c000 rw-p 00009000 08:01 532465                     /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7f4ff352c000-7f4ff353b000 r-xp 00000000 08:01 532453                     /usr/lib/x86_64-linux-gnu/libXi.so.6.1.0
7f4ff353b000-7f4ff373a000 ---p 0000f000 08:01 532453                     /usr/lib/x86_64-linux-gnu/libXi.so.6.1.0
7f4ff373a000-7f4ff373b000 r--p 0000e000 08:01 532453                     /usr/lib/x86_64-linux-gnu/libXi.so.6.1.0
7f4ff373b000-7f4ff373c000 rw-p 0000f000 08:01 532453                     /usr/lib/x86_64-linux-gnu/libXi.so.6.1.0
7f4ff373c000-7f4ff3752000 r-xp 00000000 08:01 532294                     /usr/lib/x86_64-linux-gnu/libICE.so.6.3.0
7f4ff3752000-7f4ff3951000 ---p 00016000 08:01 532294                     /usr/lib/x86_64-linux-gnu/libICE.so.6.3.0
7f4ff3951000-7f4ff3952000 r--p 00015000 08:01 532294                     /usr/lib/x86_64-linux-gnu/libICE.so.6.3.0
7f4ff3952000-7f4ff3953000 rw-p 00016000 08:01 532294                     /usr/lib/x86_64-linux-gnu/libICE.so.6.3.0
7f4ff3953000-7f4ff3956000 rw-p 00000000 00:00 0
7f4ff3956000-7f4ff395d000 r-xp 00000000 08:01 532416                     /usr/lib/x86_64-linux-gnu/libSM.so.6.0.1
7f4ff395d000-7f4ff3b5c000 ---p 00007000 08:01 532416                     /usr/lib/x86_64-linux-gnu/libSM.so.6.0.1
7f4ff3b5c000-7f4ff3b5d000 r--p 00006000 08:01 532416                     /usr/lib/x86_64-linux-gnu/libSM.so.6.0.1
7f4ff3b5d000-7f4ff3b5e000 rw-p 00007000 08:01 532416                     /usr/lib/x86_64-linux-gnu/libSM.so.6.0.1
7f4ff3b5e000-7f4ff3bb0000 r-xp 00000000 08:01 524730                     /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.4800.2
7f4ff3bb0000-7f4ff3daf000 ---p 00052000 08:01 524730                     /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.4800.2
7f4ff3daf000-7f4ff3db0000 r--p 00051000 08:01 524730                     /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.4800.2
7f4ff3db0000-7f4ff3db1000 rw-p 00052000 08:01 524730                     /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.4800.2
7f4ff3db1000-7f4ff3e55000 r-xp 00000000 08:01 532868                     /usr/lib/x86_64-linux-gnu/libfreetype.so.6.12.1
7f4ff3e55000-7f4ff4054000 ---p 000a4000 08:01 532868                     /usr/lib/x86_64-linux-gnu/libfreetype.so.6.12.1
7f4ff4054000-7f4ff405a000 r--p 000a3000 08:01 532868                     /usr/lib/x86_64-linux-gnu/libfreetype.so.6.12.1
7f4ff405a000-7f4ff405b000 rw-p 000a9000 08:01 532868                     /usr/lib/x86_64-linux-gnu/libfreetype.so.6.12.1
7f4ff405b000-7f4ff407f000 r-xp 00000000 08:01 9704170                    /lib/x86_64-linux-gnu/libpng12.so.0.54.0
7f4ff407f000-7f4ff427e000 ---p 00024000 08:01 9704170                    /lib/x86_64-linux-gnu/libpng12.so.0.54.0
7f4ff427e000-7f4ff427f000 r--p 00023000 08:01 9704170                    /lib/x86_64-linux-gnu/libpng12.so.0.54.0
7f4ff427f000-7f4ff4280000 rw-p 00024000 08:01 9704170                    /lib/x86_64-linux-gnu/libpng12.so.0.54.0
7f4ff4280000-7f4ff438f000 r-xp 00000000 08:01 9699333                    /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2
7f4ff438f000-7f4ff458e000 ---p 0010f000 08:01 9699333                    /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2
7f4ff458e000-7f4ff458f000 r--p 0010e000 08:01 9699333                    /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2
7f4ff458f000-7f4ff4590000 rw-p 0010f000 08:01 9699333                    /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2
7f4ff4590000-7f4ff4591000 rw-p 00000000 00:00 0
7f4ff4591000-7f4ff45a8000 r-xp 00000000 08:01 532546                     /usr/lib/x86_64-linux-gnu/libaudio.so.2.4
7f4ff45a8000-7f4ff47a8000 ---p 00017000 08:01 532546                     /usr/lib/x86_64-linux-gnu/libaudio.so.2.4
7f4ff47a8000-7f4ff47a9000 r--p 00017000 08:01 532546                     /usr/lib/x86_64-linux-gnu/libaudio.so.2.4
7f4ff47a9000-7f4ff47aa000 rw-p 00018000 08:01 532546                     /usr/lib/x86_64-linux-gnu/libaudio.so.2.4
7f4ff47aa000-7f4ff47e7000 r-xp 00000000 08:01 532834                     /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.9.0
7f4ff47e7000-7f4ff49e6000 ---p 0003d000 08:01 532834                     /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.9.0
7f4ff49e6000-7f4ff49e8000 r--p 0003c000 08:01 532834                     /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.9.0
7f4ff49e8000-7f4ff49ed000 rw-p 0003e000 08:01 532834                     /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.9.0
7f4ff49ed000-7f4ff49f0000 r-xp 00000000 08:01 9704053                    /lib/x86_64-linux-gnu/libdl-2.23.so
7f4ff49f0000-7f4ff4bef000 ---p 00003000 08:01 9704053                    /lib/x86_64-linux-gnu/libdl-2.23.so
7f4ff4bef000-7f4ff4bf0000 r--p 00002000 08:01 9704053                    /lib/x86_64-linux-gnu/libdl-2.23.so
7f4ff4bf0000-7f4ff4bf1000 rw-p 00003000 08:01 9704053                    /lib/x86_64-linux-gnu/libdl-2.23.so
7f4ff4bf1000-7f4ff4c0a000 r-xp 00000000 08:01 9704220                    /lib/x86_64-linux-gnu/libz.so.1.2.8
7f4ff4c0a000-7f4ff4e09000 ---p 00019000 08:01 9704220                    /lib/x86_64-linux-gnu/libz.so.1.2.8
7f4ff4e09000-7f4ff4e0a000 r--p 00018000 08:01 9704220                    /lib/x86_64-linux-gnu/libz.so.1.2.8
7f4ff4e0a000-7f4ff4e0b000 rw-p 00019000 08:01 9704220                    /lib/x86_64-linux-gnu/libz.so.1.2.8
7f4ff4e0b000-7f4ff4e12000 r-xp 00000000 08:01 9704183                    /lib/x86_64-linux-gnu/librt-2.23.so
7f4ff4e12000-7f4ff5011000 ---p 00007000 08:01 9704183                    /lib/x86_64-linux-gnu/librt-2.23.so
7f4ff5011000-7f4ff5012000 r--p 00006000 08:01 9704183                    /lib/x86_64-linux-gnu/librt-2.23.so
7f4ff5012000-7f4ff5013000 rw-p 00007000 08:01 9704183                    /lib/x86_64-linux-gnu/librt-2.23.so
7f4ff5013000-7f4ff51d3000 r-xp 00000000 08:01 9704029                    /lib/x86_64-linux-gnu/libc-2.23.so
7f4ff51d3000-7f4ff53d3000 ---p 001c0000 08:01 9704029                    /lib/x86_64-linux-gnu/libc-2.23.so
7f4ff53d3000-7f4ff53d7000 r--p 001c0000 08:01 9704029                    /lib/x86_64-linux-gnu/libc-2.23.so
7f4ff53d7000-7f4ff53d9000 rw-p 001c4000 08:01 9704029                    /lib/x86_64-linux-gnu/libc-2.23.so
7f4ff53d9000-7f4ff53dd000 rw-p 00000000 00:00 0
7f4ff53dd000-7f4ff53f3000 r-xp 00000000 08:01 9704067                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f4ff53f3000-7f4ff55f2000 ---p 00016000 08:01 9704067                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f4ff55f2000-7f4ff55f3000 rw-p 00015000 08:01 9704067                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f4ff55f3000-7f4ff56fb000 r-xp 00000000 08:01 9704099                    /lib/x86_64-linux-gnu/libm-2.23.so
7f4ff56fb000-7f4ff58fa000 ---p 00108000 08:01 9704099                    /lib/x86_64-linux-gnu/libm-2.23.so
7f4ff58fa000-7f4ff58fb000 r--p 00107000 08:01 9704099                    /lib/x86_64-linux-gnu/libm-2.23.so
7f4ff58fb000-7f4ff58fc000 rw-p 00108000 08:01 9704099                    /lib/x86_64-linux-gnu/libm-2.23.so
7f4ff58fc000-7f4ff5a6e000 r-xp 00000000 08:01 533603                     /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f4ff5a6e000-7f4ff5c6e000 ---p 00172000 08:01 533603                     /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f4ff5c6e000-7f4ff5c78000 r--p 00172000 08:01 533603                     /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f4ff5c78000-7f4ff5c7a000 rw-p 0017c000 08:01 533603                     /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f4ff5c7a000-7f4ff5c7e000 rw-p 00000000 00:00 0
7f4ff5c7e000-7f4ff5c96000 r-xp 00000000 08:01 9704175                    /lib/x86_64-linux-gnu/libpthread-2.23.so
7f4ff5c96000-7f4ff5e95000 ---p 00018000 08:01 9704175                    /lib/x86_64-linux-gnu/libpthread-2.23.so
7f4ff5e95000-7f4ff5e96000 r--p 00017000 08:01 9704175                    /lib/x86_64-linux-gnu/libpthread-2.23.so
7f4ff5e96000-7f4ff5e97000 rw-p 00018000 08:01 9704175                    /lib/x86_64-linux-gnu/libpthread-2.23.so
7f4ff5e97000-7f4ff5e9b000 rw-p 00000000 00:00 0
7f4ff5e9b000-7f4ff5eb4000 r-xp 00000000 08:01 4458778                    /home/laptop_bart/git/prolira/dmp-build/DeliriumMonitorLib/3rdParty/libiio/libiio/lib/libiio.so.0.10
7f4ff5eb4000-7f4ff60b3000 ---p 00019000 08:01 4458778                    /home/laptop_bart/git/prolira/dmp-build/DeliriumMonitorLib/3rdParty/libiio/libiio/lib/libiio.so.0.10
7f4ff60b3000-7f4ff60b4000 r--p 00018000 08:01 4458778                    /home/laptop_bart/git/prolira/dmp-build/DeliriumMonitorLib/3rdParty/libiio/libiio/lib/libiio.so.0.10
7f4ff60b4000-7f4ff60b5000 rw-p 00019000 08:01 4458778                    /home/laptop_bart/git/prolira/dmp-build/DeliriumMonitorLib/3rdParty/libiio/libiio/lib/libiio.so.0.10
7f4ff60b5000-7f4ff639c000 r-xp 00000000 08:01 532390                     /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.7
7f4ff639c000-7f4ff659c000 ---p 002e7000 08:01 532390                     /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.7
7f4ff659c000-7f4ff65a6000 r--p 002e7000 08:01 532390                     /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.7
7f4ff65a6000-7f4ff65a7000 rw-p 002f1000 08:01 532390                     /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.7
7f4ff65a7000-7f4ff65a8000 rw-p 00000000 00:00 0
7f4ff65a8000-7f4ff7054000 r-xp 00000000 08:01 532399                     /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.7
7f4ff7054000-7f4ff7253000 ---p 00aac000 08:01 532399                     /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.7
7f4ff7253000-7f4ff7291000 r--p 00aab000 08:01 532399                     /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.7
7f4ff7291000-7f4ff7298000 rw-p 00ae9000 08:01 532399                     /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.7
7f4ff7298000-7f4ff729c000 rw-p 00000000 00:00 0
7f4ff729c000-7f4ff72c2000 r-xp 00000000 08:01 9704001                    /lib/x86_64-linux-gnu/ld-2.23.so
7f4ff7490000-7f4ff74a4000 rw-p 00000000 00:00 0
7f4ff74c0000-7f4ff74c1000 rw-p 00000000 00:00 0
7f4ff74c1000-7f4ff74c2000 r--p 00025000 08:01 9704001                    /lib/x86_64-linux-gnu/ld-2.23.so
7f4ff74c2000-7f4ff74c3000 rw-p 00026000 08:01 9704001                    /lib/x86_64-linux-gnu/ld-2.23.so
7f4ff74c3000-7f4ff74c4000 rw-p 00000000 00:00 0
7fff09352000-7fff09373000 rw-p 00000000 00:00 0                          [stack]
7fff093ab000-7fff093ae000 r--p 00000000 00:00 0                          [vvar]
7fff093ae000-7fff093b0000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Aborted (core dumped)


Ran from GDB:

Code: Select all


Program received signal SIGABRT, Aborted.
0x00007ffff5b83428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
54   ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  0x00007ffff5b83428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#1  0x00007ffff5b8502a in __GI_abort () at abort.c:89
#2  0x00007ffff5bc57ea in __libc_message (do_abort=do_abort@entry=2, fmt=fmt@entry=0x7ffff5cdeed8 "*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/posix/libc_fatal.c:175
#3  0x00007ffff5bd2a08 in malloc_printerr (ar_ptr=<optimized out>, ptr=0xb48600 <QVectorData::shared_null>, str=0x7ffff5cdbdc3 "realloc(): invalid pointer", action=3) at malloc.c:5006
#4  __GI___libc_realloc (oldmem=0xb48600 <QVectorData::shared_null>, bytes=<optimized out>) at malloc.c:3013
#5  0x00007ffff6c514be in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007ffff6c4ff97 in QVariantAnimation::registerInterpolator(QVariant (*)(void const*, void const*, double), int) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007ffff72952d5 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#8  0x00007ffff7de76ba in call_init (l=<optimized out>, argc=argc@entry=1, argv=argv@entry=0x7fffffffdda8, env=env@entry=0x7fffffffddb8) at dl-init.c:72
#9  0x00007ffff7de77cb in call_init (env=0x7fffffffddb8, argv=0x7fffffffdda8, argc=1, l=<optimized out>) at dl-init.c:30
#10 _dl_init (main_map=0x7ffff7ffe168, argc=1, argv=0x7fffffffdda8, env=0x7fffffffddb8) at dl-init.c:120
#11 0x00007ffff7dd7c6a in _dl_start_user () from /lib64/ld-linux-x86-64.so.2
#12 0x0000000000000001 in ?? ()
#13 0x00007fffffffe15c in ?? ()
#14 0x0000000000000000 in ?? ()
(gdb)

Admin
Site Admin
Posts: 1504
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: Invalid pointer exception

Postby Admin » Tue Aug 21, 2018 5:54 pm

Could you send us a test example (original binaries) that shows your problem?

bartrijvers
Posts: 5
Joined: Tue Aug 21, 2018 2:03 pm

Re: Invalid pointer exception

Postby bartrijvers » Wed Aug 29, 2018 9:26 am

I've sent the binary to info@vmprotect.com for analysis. No answer yet

Admin
Site Admin
Posts: 1504
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: Invalid pointer exception

Postby Admin » Sun Sep 02, 2018 2:50 pm

Try switch off the packing feature.

bartrijvers
Posts: 5
Joined: Tue Aug 21, 2018 2:03 pm

Re: Invalid pointer exception

Postby bartrijvers » Mon Sep 03, 2018 7:10 am

I just tried this on both the stripped and full application and this feature works on the PC platform !
The binary now has grown from 8,8 MB to 11,5 MB but this is no issue for our application.
I'll try obfuscation of some functions and run that binary on the Zynq platform tomorrow and keep you posted if that all works fine too.
Thanks,

Bart

bartrijvers
Posts: 5
Joined: Tue Aug 21, 2018 2:03 pm

Re: Invalid pointer exception

Postby bartrijvers » Tue Sep 04, 2018 12:55 pm

I have been playing around with the tool, protecting some functionalities and get an application that at least has the same behavior in startup-states and screens. I then tried to run the tool on the binary that was generated for the zynq, based on the same code-base and now get the notification:
File "application.arm" has an unsupported processor "arm".
Is there a version of VMProtect software that can protect binaries for the arm CPU ?
If not, are there plans on short term to support this processor ?

Admin
Site Admin
Posts: 1504
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: Invalid pointer exception

Postby Admin » Tue Sep 04, 2018 1:34 pm

Unfortunately we are not going to add the ARM support.

bartrijvers
Posts: 5
Joined: Tue Aug 21, 2018 2:03 pm

Re: Invalid pointer exception

Postby bartrijvers » Tue Sep 04, 2018 3:00 pm

That is too bad. Thaks for the support.