Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault if load shader.glsl with national symbols in commentaries (UTF-8 trouble?) #160

Open
xintrea opened this issue Jun 24, 2021 · 14 comments

Comments

@xintrea
Copy link

xintrea commented Jun 24, 2021

I using Debian Linux Stable.

If create shader.glsl in UTF-8 codepage with national (Cyrillic) symbols in comment, load process crashed with message:

Loading last shader...
Last shader works fine.
*** Error in `./bonzomatic': free(): invalid next size (fast): 0x000056048520f980 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x70bfb)[0x7fa3c7f6ebfb]
/lib/x86_64-linux-gnu/libc.so.6(+0x76fc6)[0x7fa3c7f74fc6]
/lib/x86_64-linux-gnu/libc.so.6(+0x7780e)[0x7fa3c7f7580e]
./bonzomatic(_ZN9Scintilla10LineLayout4FreeEv+0x7b)[0x56048373ba39]
./bonzomatic(_ZN9Scintilla10LineLayoutD2Ev+0x26)[0x56048373b8ea]
./bonzomatic(_ZN9Scintilla10LineLayoutD0Ev+0x18)[0x56048373b906]
./bonzomatic(_ZN9Scintilla15LineLayoutCache8RetrieveEiiiiii+0x21c)[0x56048373c920]
./bonzomatic(_ZN9Scintilla8EditView18RetrieveLineLayoutEiRKNS_9EditModelE+0x143)[0x56048372377f]
./bonzomatic(_ZN9Scintilla6Editor11WrapOneLineEPNS_7SurfaceEi+0x30)[0x560483702c9c]
./bonzomatic(_ZN9Scintilla6Editor9WrapLinesENS0_9wrapScopeE+0x487)[0x56048370323f]
./bonzomatic(_ZN9Scintilla6Editor5PaintEPNS_7SurfaceENS_10PRectangleE+0x10e)[0x560483703e88]
./bonzomatic(_ZN12ShaderEditor5PaintEv+0xa5)[0x56048363edc5]
./bonzomatic(main+0x463e)[0x56048364641e]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)[0x7fa3c7f1e2e1]
./bonzomatic(_start+0x2a)[0x56048362adaa]
======= Memory map: ========
4086a000-4086c000 r-xs 00000000 08:15 401015                             /tmp/.glSlpUKx (deleted)
408e8000-40988000 rw-p 00000000 00:00 0 
560483553000-56048381c000 r-xp 00000000 08:02 25026654                   /media/wd_640_part_2/home64bit/xi/work/develop/cpp/Demo/bonzomusic/bonzomatic
560483a1c000-560483a1e000 r--p 002c9000 08:02 25026654                   /media/wd_640_part_2/home64bit/xi/work/develop/cpp/Demo/bonzomusic/bonzomatic
560483a1e000-560483a22000 rw-p 002cb000 08:02 25026654                   /media/wd_640_part_2/home64bit/xi/work/develop/cpp/Demo/bonzomusic/bonzomatic
560483a22000-560483a89000 rw-p 00000000 00:00 0 
560484ab0000-560485429000 rw-p 00000000 00:00 0                          [heap]
7fa3a0000000-7fa3a0021000 rw-p 00000000 00:00 0 
7fa3a0021000-7fa3a4000000 ---p 00000000 00:00 0 
7fa3a8000000-7fa3a8021000 rw-p 00000000 00:00 0 
7fa3a8021000-7fa3ac000000 ---p 00000000 00:00 0 
7fa3ae3de000-7fa3ae3df000 rw-p 00000000 00:00 0 
7fa3ae3df000-7fa3ae4df000 rw-s 985e0000 00:06 20465                      /dev/nvidiactl
7fa3ae4df000-7fa3ae864000 rw-p 00000000 00:00 0 
7fa3ae864000-7fa3aea64000 rw-s 10c85a000 00:06 20465                     /dev/nvidiactl
7fa3aea64000-7fa3aea6f000 r--s 00000000 08:15 5507643                    /var/cache/fontconfig/945677eb7aeaf62f1d50efc3fb3ec7d8-le64.cache-4
7fa3aea6f000-7fa3aea71000 r--s 00000000 08:15 5515105                    /var/cache/fontconfig/99e8ed0e538f840c565b6ed5dad60d56-le64.cache-4
7fa3aea71000-7fa3aea79000 r--s 00000000 08:15 5515030                    /var/cache/fontconfig/e25ca923d7a08ab6b0777bd7eb77ea77-le64.cache-4
7fa3aea79000-7fa3aea7d000 r--s 00000000 08:15 5517626                    /var/cache/fontconfig/de156ccd2eddbdc19d37a45b8b2aac9c-le64.cache-4
7fa3aea7d000-7fa3aea7f000 r--s 00000000 08:15 5515104                    /var/cache/fontconfig/04aabc0a78ac019cf9454389977116d2-le64.cache-4
7fa3aea7f000-7fa3aea81000 r--s 00000000 08:15 5507418                    /var/cache/fontconfig/69fb4bbe1b2fa860e172a32ebf28505c-le64.cache-4
7fa3aea81000-7fa3aea82000 r--s 00000000 08:15 5520869                    /var/cache/fontconfig/4794a0821666d79190d59a36cb4f44b5-le64.cache-4
7fa3aea82000-7fa3aeac4000 r--s 00000000 08:15 5507445                    /var/cache/fontconfig/0bd3dc0958fa2205aaaa8ebb13e2872b-le64.cache-4
7fa3aeac4000-7fa3aeaff000 r--s 00000000 08:15 5516793                    /var/cache/fontconfig/365b55f210c0a22e9a19e35191240f32-le64.cache-4
7fa3aeaff000-7fa3aeb03000 r--s 00000000 08:15 5517623                    /var/cache/fontconfig/c57959a16110560c8d0fcea73374aeeb-le64.cache-4
7fa3aeb03000-7fa3aeb09000 r--s 00000000 08:15 5507431                    /var/cache/fontconfig/3047814df9a2f067bd2d96a2b9c36e5a-le64.cache-4
7fa3aeb09000-7fa3aeb11000 r--s 00000000 08:15 5507429                    /var/cache/fontconfig/bf3b770c553c462765856025a94f1ce6-le64.cache-4
7fa3aeb11000-7fa3aeb12000 r--s 00000000 08:15 5518262                    /var/cache/fontconfig/89034621ae2a8922916bb6bfa5799546-le64.cache-4
7fa3aeb12000-7fa3aeb14000 r--s 00000000 08:15 5507427                    /var/cache/fontconfig/a0107c79d978dfcc5e42cb1335b71036-le64.cache-4
7fa3aeb14000-7fa3aeb17000 r--s 00000000 08:15 5507453                    /var/cache/fontconfig/e49e89034d371f0f9de17aab02136486-le64.cache-4
7fa3aeb17000-7fa3aeb19000 r--s 00000000 08:15 5507451                    /var/cache/fontconfig/4b14b093aebc79c320de5e86ae1d3314-le64.cache-4
7fa3aeb19000-7fa3aeb2c000 r--s 00000000 08:15 5507424                    /var/cache/fontconfig/d52a8644073d54c13679302ca1180695-le64.cache-4
7fa3aeb2c000-7fa3aeb38000 r--s 00000000 08:15 5507417                    /var/cache/fontconfig/d589a48862398ed80a3d6066f4f56f4c-le64.cache-4
7fa3aeb38000-7fa3aeb3c000 r--s 00000000 08:15 5507415                    /var/cache/fontconfig/246184dc75a16901ca37d96895904249-le64.cache-4
7fa3aeb3c000-7fa3aeb4e000 r--s 00000000 08:15 5507439                    /var/cache/fontconfig/9b89f8e3dae116d678bbf48e5f21f69b-le64.cache-4
7fa3aeb4e000-7fa3aeb66000 r--s 00000000 08:15 5517851                    /var/cache/fontconfig/e13b20fdb08344e0e664864cc2ede53d-le64.cache-4
7fa3aeb66000-7fa3aeb84000 r--s 00000000 08:15 5520632                    /var/cache/fontconfig/467c019e582ee353435ea5c21d137ef6-le64.cache-4
7fa3aeb84000-7fa3aeb85000 ---p 00000000 00:00 0 
7fa3aeb85000-7fa3af385000 rw-p 00000000 00:00 0 
7fa3af385000-7fa3b3385000 rw-s 00000000 00:05 431074                     /memfd:pulseaudio (deleted)
7fa3b3385000-7fa3b7385000 rw-s 00000000 00:05 25745                      /memfd:pulseaudio (deleted)
7fa3b7385000-7fa3bb385000 rw-s 00000000 00:05 431548                     /memfd:pulseaudio (deleted)
7fa3bb385000-7fa3bf385000 rw-s 00000000 00:05 431548                     /memfd:pulseaudio (deleted)
7fa3bf385000-7fa3bfa8f000 rw-p 00000000 00:00 0 
7fa3bfa8f000-7fa3bfaaf000 rw-s 00000000 08:02 24975933                   /media/wd_640_part_2/home64bit/xi/.glvndOZvJmt (deleted)
7fa3bfaaf000-7fa3bfacf000 r-xs 00000000 08:02 24975933                   /media/wd_640_part_2/home64bit/xi/.glvndOZvJmt (deleted)
7fa3bfacf000-7fa3bfb0f000 rw-s 00000000 08:02 24975932                   /media/wd_640_part_2/home64bit/xi/.glvndmwDExv (deleted)
7fa3bfb0f000-7fa3bfb4f000 r-xs 00000000 08:02 24975932                   /media/wd_640_part_2/home64bit/xi/.glvndmwDExv (deleted)
7fa3bfb4f000-7fa3bfbcf000 rw-s 98414000 00:06 20465                      /dev/nvidiactl
7fa3bfbcf000-7fa3bfc4f000 rw-s 02eb2000 00:06 20465                      /dev/nvidiactl
7fa3bfc4f000-7fa3bfccf000 rw-s 02e1a000 00:06 20465                      /dev/nvidiactl
7fa3bfccf000-7fa3bfdcf000 rw-s 02e73000 00:06 20465                      /dev/nvidiactl
7fa3bfdcf000-7fa3bfdef000 rw-s d83a0000 00:06 21504                      /dev/nvidia0
7fa3bfdef000-7fa3bfe2f000 rw-s 96dc5000 00:06 20465                      /dev/nvidiactl
7fa3bfe2f000-7fa3c1214000 r-xp 00000000 08:15 3675465                    /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.375.82
7fa3c1214000-7fa3c1234000 rwxp 013e5000 08:15 3675465                    /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.375.82
7fa3c1234000-7fa3c1605000 r-xp 01405000 08:15 3675465                    /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.375.82
7fa3c1605000-7fa3c1805000 ---p 017d6000 08:15 3675465                    /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.375.82
7fa3c1805000-7fa3c1bec000 rw-p 017d6000 08:15 3675465                    /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.375.82
7fa3c1bec000-7fa3c1c04000 rw-p 00000000 00:00 0 
7fa3c1c04000-7fa3c1c07000 r-xp 00000000 08:15 4719171                    /usr/lib/x86_64-linux-gnu/tls/libnvidia-tls.so.375.82
7fa3c1c07000-7fa3c1e07000 ---p 00003000 08:15 4719171                    /usr/lib/x86_64-linux-gnu/tls/libnvidia-tls.so.375.82
7fa3c1e07000-7fa3c1e08000 rw-p 00003000 08:15 4719171                    /usr/lib/x86_64-linux-gnu/tls/libnvidia-tls.so.375.82
7fa3c1e08000-7fa3c1ed1000 r-xp 00000000 08:15 4326324                    /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.375.82
7fa3c1ed1000-7fa3c1f05000 rwxp 000c9000 08:15 4326324                    /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.375.82
7fa3c1f05000-7fa3c1f19000 r-xp 000fd000 08:15 4326324                    /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.375.82
7fa3c1f19000-7fa3c2118000 ---p 00111000 08:15 4326324                    /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.375.82
7fa3c2118000-7fa3c2140000 rw-p 00110000 08:15 4326324                    /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.375.82
7fa3c2140000-7fa3c2147000 rw-p 00000000 00:00 0 
7fa3c2147000-7fa3c2149000 r-xp 00000000 08:15 3678655                    /usr/lib/x86_64-linux-gnu/libXinerama.so.1.0.0
7fa3c2149000-7fa3c2348000 ---p 00002000 08:15 3678655                    /usr/lib/x86_64-linux-gnu/libXinerama.so.1.0.0
7fa3c2348000-7fa3c2349000 r--p 00001000 08:15 3678655                    /usr/lib/x86_64-linux-gnu/libXinerama.so.1.0.0
7fa3c2349000-7fa3c234a000 rw-p 00002000 08:15 3678655                    /usr/lib/x86_64-linux-gnu/libXinerama.so.1.0.0
7fa3c234a000-7fa3c234f000 r-xp 00000000 08:15 3678138                    /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7fa3c234f000-7fa3c254e000 ---p 00005000 08:15 3678138                    /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7fa3c254e000-7fa3c254f000 r--p 00004000 08:15 3678138                    /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7fa3c254f000-7fa3c2550000 rw-p 00005000 08:15 3678138                    /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7fa3c2550000-7fa3c255a000 r-xp 00000000 08:15 3678647                    /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7fa3c255a000-7fa3c2759000 ---p 0000a000 08:15 3678647                    /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7fa3c2759000-7fa3c275a000 r--p 00009000 08:15 3678647                    /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7fa3c275a000-7fa3c275b000 rw-p 0000a000 08:15 3678647                    /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7fa3c275b000-7fa3c2764000 r-xp 00000000 08:15 3678659                    /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7fa3c2764000-7fa3c2963000 ---p 00009000 08:15 3678659                    /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7fa3c2963000-7fa3c2964000 r--p 00008000 08:15 3678659                    /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7fa3c2964000-7fa3c2965000 rw-p 00009000 08:15 3678659                    /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7fa3c2965000-7fa3c296f000 r-xp 00000000 08:15 3680938                    /usr/lib/x86_64-linux-gnu/libXrandr.so.2.2.0
7fa3c296f000-7fa3c2b6e000 ---p 0000a000 08:15 3680938                    /usr/lib/x86_64-linux-gnu/libXrandr.so.2.2.0
7fa3c2b6e000-7fa3c2b6f000 r--p 00009000 08:15 3680938                    /usr/lib/x86_64-linux-gnu/libXrandr.so.2.2.0
7fa3c2b6f000-7fa3c2b70000 rw-p 0000a000 08:15 3680938                    /usr/lib/x86_64-linux-gnu/libXrandr.so.2.2.0
7fa3c2b70000-7fa3c2b75000 r-xp 00000000 08:15 3680892                    /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1.0.0
7fa3c2b75000-7fa3c2d74000 ---p 00005000 08:15 3680892                    /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1.0.0
7fa3c2d74000-7fa3c2d75000 r--p 00004000 08:15 3680892                    /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1.0.0
7fa3c2d75000-7fa3c2d76000 rw-p 00005000 08:15 3680892                    /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1.0.0
7fa3c2d76000-7fa3c2f11000 r--p 00000000 08:15 3676253                    /usr/lib/locale/locale-archive
7fa3c2f11000-7fa3c2f24000 r-xp 00000000 08:15 4981400                    /lib/x86_64-linux-gnu/libgpg-error.so.0.21.0
7fa3c2f24000-7fa3c3123000 ---p 00013000 08:15 4981400                    /lib/x86_64-linux-gnu/libgpg-error.so.0.21.0
7fa3c3123000-7fa3c3124000 r--p 00012000 08:15 4981400                    /lib/x86_64-linux-gnu/libgpg-error.so.0.21.0
7fa3c3124000-7fa3c3125000 rw-p 00013000 08:15 4981400                    /lib/x86_64-linux-gnu/libgpg-error.so.0.21.0
7fa3c3125000-7fa3c3197000 r-xp 00000000 08:15 4980980                    /lib/x86_64-linux-gnu/libpcre.so.3.13.3
7fa3c3197000-7fa3c3396000 ---p 00072000 08:15 4980980                    /lib/x86_64-linux-gnu/libpcre.so.3.13.3
7fa3c3396000-7fa3c3397000 r--p 00071000 08:15 4980980                    /lib/x86_64-linux-gnu/libpcre.so.3.13.3
7fa3c3397000-7fa3c3398000 rw-p 00072000 08:15 4980980                    /lib/x86_64-linux-gnu/libpcre.so.3.13.3
7fa3c3398000-7fa3c33ac000 r-xp 00000000 08:15 4981340                    /lib/x86_64-linux-gnu/libresolv-2.24.so
7fa3c33ac000-7fa3c35ab000 ---p 00014000 08:15 4981340                    /lib/x86_64-linux-gnu/libresolv-2.24.so
7fa3c35ab000-7fa3c35ac000 r--p 00013000 08:15 4981340                    /lib/x86_64-linux-gnu/libresolv-2.24.so
7fa3c35ac000-7fa3c35ad000 rw-p 00014000 08:15 4981340                    /lib/x86_64-linux-gnu/libresolv-2.24.so
7fa3c35ad000-7fa3c35af000 rw-p 00000000 00:00 0 
7fa3c35af000-7fa3c363c000 r-xp 00000000 08:15 3670036                    /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2.0.11
7fa3c363c000-7fa3c383b000 ---p 0008d000 08:15 3670036                    /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2.0.11
7fa3c383b000-7fa3c3857000 r--p 0008c000 08:15 3670036                    /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2.0.11
7fa3c3857000-7fa3c3858000 rw-p 000a8000 08:15 3670036                    /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2.0.11
7fa3c3858000-7fa3c3882000 r-xp 00000000 08:15 3670880                    /usr/lib/x86_64-linux-gnu/libvorbis.so.0.4.8
7fa3c3882000-7fa3c3a82000 ---p 0002a000 08:15 3670880                    /usr/lib/x86_64-linux-gnu/libvorbis.so.0.4.8
7fa3c3a82000-7fa3c3a83000 r--p 0002a000 08:15 3670880                    /usr/lib/x86_64-linux-gnu/libvorbis.so.0.4.8
7fa3c3a83000-7fa3c3a84000 rw-p 0002b000 08:15 3670880                    /usr/lib/x86_64-linux-gnu/libvorbis.so.0.4.8
7fa3c3a84000-7fa3c3a8b000 r-xp 00000000 08:15 3675497                    /usr/lib/x86_64-linux-gnu/libogg.so.0.8.2
7fa3c3a8b000-7fa3c3c8b000 ---p 00007000 08:15 3675497                    /usr/lib/x86_64-linux-gnu/libogg.so.0.8.2
7fa3c3c8b000-7fa3c3c8c000 r--p 00007000 08:15 3675497                    /usr/lib/x86_64-linux-gnu/libogg.so.0.8.2
7fa3c3c8c000-7fa3c3c8d000 rw-p 00008000 08:15 3675497                    /usr/lib/x86_64-linux-gnu/libogg.so.0.8.2
7fa3c3c8d000-7fa3c3d02000 r-xp 00000000 08:15 3694139                    /usr/lib/x86_64-linux-gnu/libFLAC.so.8.3.0
7fa3c3d02000-7fa3c3f02000 ---p 00075000 08:15 3694139                    /usr/lib/x86_64-linux-gnu/libFLAC.so.8.3.0
7fa3c3f02000-7fa3c3f03000 r--p 00075000 08:15 3694139                    /usr/lib/x86_64-linux-gnu/libFLAC.so.8.3.0
7fa3c3f03000-7fa3c3f04000 rw-p 00076000 08:15 3694139                    /usr/lib/x86_64-linux-gnu/libFLAC.so.8.3.0
7fa3c3f04000-7fa3c3f18000 r-xp 00000000 08:15 4981322                    /lib/x86_64-linux-gnu/libnsl-2.24.so
7fa3c3f18000-7fa3c4118000 ---p 00014000 08:15 4981322                    /lib/x86_64-linux-gnu/libnsl-2.24.so
7fa3c4118000-7fa3c4119000 r--p 00014000 08:15 4981322                    /lib/x86_64-linux-gnu/libnsl-2.24.so
7fa3c4119000-7fa3c411a000 rw-p 00015000 08:15 4981322                    /lib/x86_64-linux-gnu/libnsl-2.24.so
7fa3c411a000-7fa3c411c000 rw-p 00000000 00:00 0 
7fa3c411c000-7fa3c4223000 r-xp 00000000 08:15 4980794                    /lib/x86_64-linux-gnu/libgcrypt.so.20.1.6
7fa3c4223000-7fa3c4423000 ---p 00107000 08:15 4980794                    /lib/x86_64-linux-gnu/libgcrypt.so.20.1.6
7fa3c4423000-7fa3c4425000 r--p 00107000 08:15 4980794                    /lib/x86_64-linux-gnu/libgcrypt.so.20.1.6
7fa3c4425000-7fa3c442c000 rw-p 00109000 08:15 4980794                    /lib/x86_64-linux-gnu/libgcrypt.so.20.1.6
7fa3c442c000-7fa3c443d000 r-xp 00000000 08:15 3681455                    /usr/lib/x86_64-linux-gnu/liblz4.so.1.7.1
7fa3c443d000-7fa3c463c000 ---p 00011000 08:15 3681455                    /usr/lib/x86_64-linux-gnu/liblz4.so.1.7.1
7fa3c463c000-7fa3c463d000 r--p 00010000 08:15 3681455                    /usr/lib/x86_64-linux-gnu/liblz4.so.1.7.1
7fa3c463d000-7fa3c463e000 rw-p 00011000 08:15 3681455                    /usr/lib/x86_64-linux-gnu/liblz4.so.1.7.1
7fa3c463e000-7fa3c4663000 r-xp 00000000 08:15 4981801                    /lib/x86_64-linux-gnu/liblzma.so.5.2.2
7fa3c4663000-7fa3c4862000 ---p 00025000 08:15 4981801                    /lib/x86_64-linux-gnu/liblzma.so.5.2.2
7fa3c4862000-7fa3c4863000 r--p 00024000 08:15 4981801                    /lib/x86_64-linux-gnu/liblzma.so.5.2.2
7fa3c4863000-7fa3c4864000 rw-p 00025000 08:15 4981801                    /lib/x86_64-linux-gnu/liblzma.so.5.2.2
7fa3c4864000-7fa3c4889000 r-xp 00000000 08:15 4980916                    /lib/x86_64-linux-gnu/libselinux.so.1
7fa3c4889000-7fa3c4a88000 ---p 00025000 08:15 4980916                    /lib/x86_64-linux-gnu/libselinux.so.1
7fa3c4a88000-7fa3c4a89000 r--p 00024000 08:15 4980916                    /lib/x86_64-linux-gnu/libselinux.so.1
7fa3c4a89000-7fa3c4a8a000 rw-p 00025000 08:15 4980916                    /lib/x86_64-linux-gnu/libselinux.so.1
7fa3c4a8a000-7fa3c4a8c000 rw-p 00000000 00:00 0 
7fa3c4a8c000-7fa3c4a9b000 r-xp 00000000 08:15 3680888                    /usr/lib/x86_64-linux-gnu/libXi.so.6.1.0
7fa3c4a9b000-7fa3c4c9a000 ---p 0000f000 08:15 3680888                    /usr/lib/x86_64-linux-gnu/libXi.so.6.1.0
7fa3c4c9a000-7fa3c4c9b000 r--p 0000e000 08:15 3680888                    /usr/lib/x86_64-linux-gnu/libXi.so.6.1.0
7fa3c4c9b000-7fa3c4c9c000 rw-p 0000f000 08:15 3680888                    /usr/lib/x86_64-linux-gnu/libXi.so.6.1.0
7fa3c4c9c000-7fa3c4ca0000 r-xp 00000000 08:15 4981075                    /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7fa3c4ca0000-7fa3c4e9f000 ---p 00004000 08:15 4981075                    /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7fa3c4e9f000-7fa3c4ea0000 r--p 00003000 08:15 4981075                    /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7fa3c4ea0000-7fa3c4ea1000 rw-p 00004000 08:15 4981075                    /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7fa3c4ea1000-7fa3c4ea6000 r-xp 00000000 08:15 3674041                    /usr/lib/x86_64-linux-gnu/libasyncns.so.0.3.1
7fa3c4ea6000-7fa3c50a5000 ---p 00005000 08:15 3674041                    /usr/lib/x86_64-linux-gnu/libasyncns.so.0.3.1
7fa3c50a5000-7fa3c50a6000 r--p 00004000 08:15 3674041                    /usr/lib/x86_64-linux-gnu/libasyncns.so.0.3.1
7fa3c50a6000-7fa3c50a7000 rw-p 00005000 08:15 3674041                    /usr/lib/x86_64-linux-gnu/libasyncns.so.0.3.1
7fa3c50a7000-7fa3c511a000 r-xp 00000000 08:15 3725088                    /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.27
7fa3c511a000-7fa3c5319000 ---p 00073000 08:15 3725088                    /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.27
7fa3c5319000-7fa3c531c000 r--p 00072000 08:15 3725088                    /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.27
7fa3c531c000-7fa3c531d000 rw-p 00075000 08:15 3725088                    /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.27
7fa3c531d000-7fa3c531f000 rw-p 00000000 00:00 0 
7fa3c531f000-7fa3c5327000 r-xp 00000000 08:15 4982131                    /lib/x86_64-linux-gnu/libwrap.so.0.7.6
7fa3c5327000-7fa3c5527000 ---p 00008000 08:15 4982131                    /lib/x86_64-linux-gnu/libwrap.so.0.7.6
7fa3c5527000-7fa3c5528000 r--p 00008000 08:15 4982131                    /lib/x86_64-linux-gnu/libwrap.so.0.7.6
7fa3c5528000-7fa3c5529000 rw-p 00009000 08:15 4982131                    /lib/x86_64-linux-gnu/libwrap.so.0.7.6
7fa3c5529000-7fa3c552e000 r-xp 00000000 08:15 3675587                    /usr/lib/x86_64-linux-gnu/libXtst.so.6.1.0
7fa3c552e000-7fa3c572d000 ---p 00005000 08:15 3675587                    /usr/lib/x86_64-linux-gnu/libXtst.so.6.1.0
7fa3c572d000-7fa3c572e000 r--p 00004000 08:15 3675587                    /usr/lib/x86_64-linux-gnu/libXtst.so.6.1.0
7fa3c572e000-7fa3c572f000 rw-p 00005000 08:15 3675587                    /usr/lib/x86_64-linux-gnu/libXtst.so.6.1.0
7fa3c572f000-7fa3c5736000 r-xp 00000000 08:15 3675601                    /usr/lib/x86_64-linux-gnu/libSM.so.6.0.1
7fa3c5736000-7fa3c5935000 ---p 00007000 08:15 3675601                    /usr/lib/x86_64-linux-gnu/libSM.so.6.0.1
7fa3c5935000-7fa3c5936000 r--p 00006000 08:15 3675601                    /usr/lib/x86_64-linux-gnu/libSM.so.6.0.1
7fa3c5936000-7fa3c5937000 rw-p 00007000 08:15 3675601                    /usr/lib/x86_64-linux-gnu/libSM.so.6.0.1
7fa3c5937000-7fa3c594e000 r-xp 00000000 08:15 3678642                    /usr/lib/x86_64-linux-gnu/libICE.so.6.3.0
7fa3c594e000-7fa3c5b4e000 ---p 00017000 08:15 3678642                    /usr/lib/x86_64-linux-gnu/libICE.so.6.3.0
7fa3c5b4e000-7fa3c5b4f000 r--p 00017000 08:15 3678642                    /usr/lib/x86_64-linux-gnu/libICE.so.6.3.0
7fa3c5b4f000-7fa3c5b50000 rw-p 00018000 08:15 3678642                    /usr/lib/x86_64-linux-gnu/libICE.so.6.3.0
7fa3c5b50000-7fa3c5b54000 rw-p 00000000 00:00 0 
7fa3c5b54000-7fa3c5b55000 r-xp 00000000 08:15 3704375                    /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0
7fa3c5b55000-7fa3c5d54000 ---p 00001000 08:15 3704375                    /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0
7fa3c5d54000-7fa3c5d55000 r--p 00000000 08:15 3704375                    /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0
7fa3c5d55000-7fa3c5d56000 rw-p 00001000 08:15 3704375                    /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0
7fa3c5d56000-7fa3c5d5a000 r-xp 00000000 08:15 4980745                    /lib/x86_64-linux-gnu/libcap.so.2.25
7fa3c5d5a000-7fa3c5f5a000 ---p 00004000 08:15 4980745                    /lib/x86_64-linux-gnu/libcap.so.2.25
7fa3c5f5a000-7fa3c5f5b000 r--p 00004000 08:15 4980745                    /lib/x86_64-linux-gnu/libcap.so.2.25
7fa3c5f5b000-7fa3c5f5c000 rw-p 00005000 08:15 4980745                    /lib/x86_64-linux-gnu/libcap.so.2.25
7fa3c5f5c000-7fa3c5fa9000 r-xp 00000000 08:15 4980820                    /lib/x86_64-linux-gnu/libdbus-1.so.3.14.16
7fa3c5fa9000-7fa3c61a9000 ---p 0004d000 08:15 4980820                    /lib/x86_64-linux-gnu/libdbus-1.so.3.14.16
7fa3c61a9000-7fa3c61ab000 r--p 0004d000 08:15 4980820                    /lib/x86_64-linux-gnu/libdbus-1.so.3.14.16
7fa3c61ab000-7fa3c61ac000 rw-p 0004f000 08:15 4980820                    /lib/x86_64-linux-gnu/libdbus-1.so.3.14.16
7fa3c61ac000-7fa3c622c000 r-xp 00000000 08:15 3932191                    /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-10.0.so
7fa3c622c000-7fa3c642c000 ---p 00080000 08:15 3932191                    /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-10.0.so
7fa3c642c000-7fa3c642e000 r--p 00080000 08:15 3932191                    /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-10.0.so
7fa3c642e000-7fa3c642f000 rw-p 00082000 08:15 3932191                    /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-10.0.so
7fa3c642f000-7fa3c647d000 r-xp 00000000 08:15 3680583                    /usr/lib/x86_64-linux-gnu/libpulse.so.0.20.1
7fa3c647d000-7fa3c667d000 ---p 0004e000 08:15 3680583                    /usr/lib/x86_64-linux-gnu/libpulse.so.0.20.1
7fa3c667d000-7fa3c667f000 r--p 0004e000 08:15 3680583                    /usr/lib/x86_64-linux-gnu/libpulse.so.0.20.1
7fa3c667f000-7fa3c6680000 rw-p 00050000 08:15 3680583                    /usr/lib/x86_64-linux-gnu/libpulse.so.0.20.1
7fa3c6680000-7fa3c6693000 r-xp 00000000 08:15 4981995                    /lib/x86_64-linux-gnu/libbsd.so.0.8.3
7fa3c6693000-7fa3c6893000 ---p 00013000 08:15 4981995                    /lib/x86_64-linux-gnu/libbsd.so.0.8.3
7fa3c6893000-7fa3c6894000 r--p 00013000 08:15 4981995                    /lib/x86_64-linux-gnu/libbsd.so.0.8.3
7fa3c6894000-7fa3c6895000 rw-p 00014000 08:15 4981995                    /lib/x86_64-linux-gnu/libbsd.so.0.8.3
7fa3c6895000-7fa3c6896000 rw-p 00000000 00:00 0 
7fa3c6896000-7fa3c689b000 r-xp 00000000 08:15 3704427                    /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7fa3c689b000-7fa3c6a9a000 ---p 00005000 08:15 3704427                    /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7fa3c6a9a000-7fa3c6a9b000 r--p 00004000 08:15 3704427                    /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7fa3c6a9b000-7fa3c6a9c000 rw-p 00005000 08:15 3704427                    /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7fa3c6a9c000-7fa3c6a9f000 r-xp 00000000 08:15 3704401                    /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7fa3c6a9f000-7fa3c6c9e000 ---p 00003000 08:15 3704401                    /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7fa3c6c9e000-7fa3c6c9f000 r--p 00002000 08:15 3704401                    /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7fa3c6c9f000-7fa3c6ca0000 rw-p 00003000 08:15 3704401                    /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7fa3c6ca0000-7fa3c6cd1000 r-xp 00000000 08:15 3681795                    /usr/lib/x86_64-linux-gnu/libpng16.so.16.28.0
7fa3c6cd1000-7fa3c6ed1000 ---p 00031000 08:15 3681795                    /usr/lib/x86_64-linux-gnu/libpng16.so.16.28.0
7fa3c6ed1000-7fa3c6ed2000 r--p 00031000 08:15 3681795                    /usr/lib/x86_64-linux-gnu/libpng16.so.16.28.0
7fa3c6ed2000-7fa3c6ed3000 rw-p 00032000 08:15 3681795                    /usr/lib/x86_64-linux-gnu/libpng16.so.16.28.0
7fa3c6ed3000-7fa3c6eec000 r-xp 00000000 08:15 4981095                    /lib/x86_64-linux-gnu/libz.so.1.2.8
7fa3c6eec000-7fa3c70eb000 ---p 00019000 08:15 4981095                    /lib/x86_64-linux-gnu/libz.so.1.2.8
7fa3c70eb000-7fa3c70ec000 r--p 00018000 08:15 4981095                    /lib/x86_64-linux-gnu/libz.so.1.2.8
7fa3c70ec000-7fa3c70ed000 rw-p 00019000 08:15 4981095                    /lib/x86_64-linux-gnu/libz.so.1.2.8
7fa3c70ed000-7fa3c70fe000 r-xp 00000000 08:15 3698735                    /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0
7fa3c70fe000-7fa3c72fd000 ---p 00011000 08:15 3698735                    /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0
7fa3c72fd000-7fa3c72fe000 r--p 00010000 08:15 3698735                    /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0
7fa3c72fe000-7fa3c72ff000 rw-p 00011000 08:15 3698735                    /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0
7fa3c72ff000-7fa3c7326000 r-xp 00000000 08:15 3683317                    /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7fa3c7326000-7fa3c7525000 ---p 00027000 08:15 3683317                    /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7fa3c7525000-7fa3c7526000 r--p 00026000 08:15 3683317                    /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7fa3c7526000-7fa3c7527000 rw-p 00027000 08:15 3683317                    /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7fa3c7527000-7fa3c754e000 r-xp 00000000 08:15 4980891                    /lib/x86_64-linux-gnu/libexpat.so.1.6.2
7fa3c754e000-7fa3c774e000 ---p 00027000 08:15 4980891                    /lib/x86_64-linux-gnu/libexpat.so.1.6.2
7fa3c774e000-7fa3c7750000 r--p 00027000 08:15 4980891                    /lib/x86_64-linux-gnu/libexpat.so.1.6.2
7fa3c7750000-7fa3c7751000 rw-p 00029000 08:15 4980891                    /lib/x86_64-linux-gnu/libexpat.so.1.6.2
7fa3c7751000-7fa3c77f9000 r-xp 00000000 08:15 3679749                    /usr/lib/x86_64-linux-gnu/libfreetype.so.6.12.3
7fa3c77f9000-7fa3c79f9000 ---p 000a8000 08:15 3679749                    /usr/lib/x86_64-linux-gnu/libfreetype.so.6.12.3
7fa3c79f9000-7fa3c79ff000 r--p 000a8000 08:15 3679749                    /usr/lib/x86_64-linux-gnu/libfreetype.so.6.12.3
7fa3c79ff000-7fa3c7a00000 rw-p 000ae000 08:15 3679749                    /usr/lib/x86_64-linux-gnu/libfreetype.so.6.12.3
7fa3c7a00000-7fa3c7a42000 r-xp 00000000 08:15 3678727                    /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0
7fa3c7a42000-7fa3c7a74000 r-xp 00042000 08:15 3678727                    /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0
7fa3c7a74000-7fa3c7a86000 r-xp 00074000 08:15 3678727                    /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0
7fa3c7a86000-7fa3c7c86000 ---p 00086000 08:15 3678727                    /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0
7fa3c7c86000-7fa3c7cae000 rw-p 00086000 08:15 3678727                    /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0
7fa3c7cae000-7fa3c7cce000 rw-p 00000000 00:00 0 
7fa3c7cce000-7fa3c7cdd000 r-xp 00000000 08:15 3679646                    /usr/lib/x86_64-linux-gnu/libGLX.so.0
7fa3c7cdd000-7fa3c7edd000 ---p 0000f000 08:15 3679646                    /usr/lib/x86_64-linux-gnu/libGLX.so.0
7fa3c7edd000-7fa3c7ede000 rw-p 0000f000 08:15 3679646                    /usr/lib/x86_64-linux-gnu/libGLX.so.0
7fa3c7ede000-7fa3c7efe000 rw-p 00000000 00:00 0 
7fa3c7efe000-7fa3c8093000 r-xp 00000000 08:15 4981309                    /lib/x86_64-linux-gnu/libc-2.24.so
7fa3c8093000-7fa3c8293000 ---p 00195000 08:15 4981309                    /lib/x86_64-linux-gnu/libc-2.24.so
7fa3c8293000-7fa3c8297000 r--p 00195000 08:15 4981309                    /lib/x86_64-linux-gnu/libc-2.24.so
7fa3c8297000-7fa3c8299000 rw-p 00199000 08:15 4981309                    /lib/x86_64-linux-gnu/libc-2.24.so
7fa3c8299000-7fa3c829d000 rw-p 00000000 00:00 0 
7fa3c829d000-7fa3c82b3000 r-xp 00000000 08:15 4980760                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7fa3c82b3000-7fa3c84b2000 ---p 00016000 08:15 4980760                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7fa3c84b2000-7fa3c84b3000 r--p 00015000 08:15 4980760                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7fa3c84b3000-7fa3c84b4000 rw-p 00016000 08:15 4980760                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7fa3c84b4000-7fa3c85b7000 r-xp 00000000 08:15 4981313                    /lib/x86_64-linux-gnu/libm-2.24.so
7fa3c85b7000-7fa3c87b6000 ---p 00103000 08:15 4981313                    /lib/x86_64-linux-gnu/libm-2.24.so
7fa3c87b6000-7fa3c87b7000 r--p 00102000 08:15 4981313                    /lib/x86_64-linux-gnu/libm-2.24.so
7fa3c87b7000-7fa3c87b8000 rw-p 00103000 08:15 4981313                    /lib/x86_64-linux-gnu/libm-2.24.so
7fa3c87b8000-7fa3c892a000 r-xp 00000000 08:15 3678167                    /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22
7fa3c892a000-7fa3c8b2a000 ---p 00172000 08:15 3678167                    /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22
7fa3c8b2a000-7fa3c8b34000 r--p 00172000 08:15 3678167                    /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22
7fa3c8b34000-7fa3c8b36000 rw-p 0017c000 08:15 3678167                    /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22
7fa3c8b36000-7fa3c8b3a000 rw-p 00000000 00:00 0 
7fa3c8b3a000-7fa3c8b52000 r-xp 00000000 08:15 4981338                    /lib/x86_64-linux-gnu/libpthread-2.24.so
7fa3c8b52000-7fa3c8d51000 ---p 00018000 08:15 4981338                    /lib/x86_64-linux-gnu/libpthread-2.24.so
7fa3c8d51000-7fa3c8d52000 r--p 00017000 08:15 4981338                    /lib/x86_64-linux-gnu/libpthread-2.24.so
7fa3c8d52000-7fa3c8d53000 rw-p 00018000 08:15 4981338                    /lib/x86_64-linux-gnu/libpthread-2.24.so
7fa3c8d53000-7fa3c8d57000 rw-p 00000000 00:00 0 
7fa3c8d57000-7fa3c8e91000 r-xp 00000000 08:15 3677950                    /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
7fa3c8e91000-7fa3c9091000 ---p 0013a000 08:15 3677950                    /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
7fa3c9091000-7fa3c9092000 r--p 0013a000 08:15 3677950                    /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
7fa3c9092000-7fa3c9097000 rw-p 0013b000 08:15 3677950                    /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
7fa3c9097000-7fa3c909a000 r-xp 00000000 08:15 4981312                    /lib/x86_64-linux-gnu/libdl-2.24.so
7fa3c909a000-7fa3c9299000 ---p 00003000 08:15 4981312                    /lib/x86_64-linux-gnu/libdl-2.24.so
7fa3c9299000-7fa3c929a000 r--p 00002000 08:15 4981312                    /lib/x86_64-linux-gnu/libdl-2.24.so
7fa3c929a000-7fa3c929b000 rw-p 00003000 08:15 4981312                    /lib/x86_64-linux-gnu/libdl-2.24.so
7fa3c929b000-7fa3c92a2000 r-xp 00000000 08:15 4981341                    /lib/x86_64-linux-gnu/librt-2.24.so
7fa3c92a2000-7fa3c94a1000 ---p 00007000 08:15 4981341                    /lib/x86_64-linux-gnu/librt-2.24.so
7fa3c94a1000-7fa3c94a2000 r--p 00006000 08:15 4981341                    /lib/x86_64-linux-gnu/librt-2.24.so
7fa3c94a2000-7fa3c94a3000 rw-p 00007000 08:15 4981341                    /lib/x86_64-linux-gnu/librt-2.24.so
7fa3c94a3000-7fa3c94df000 r-xp 00000000 08:15 3701851                    /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.8.0
7fa3c94df000-7fa3c96de000 ---p 0003c000 08:15 3701851                    /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.8.0
7fa3c96de000-7fa3c96e0000 r--p 0003b000 08:15 3701851                    /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.8.0
7fa3c96e0000-7fa3c96e1000 rw-p 0003d000 08:15 3701851                    /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.8.0
7fa3c96e1000-7fa3c97e6000 r-xp 00000000 08:15 3674031                    /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0
7fa3c97e6000-7fa3c99e5000 ---p 00105000 08:15 3674031                    /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0
7fa3c99e5000-7fa3c99ed000 r--p 00104000 08:15 3674031                    /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0
7fa3c99ed000-7fa3c99ee000 rw-p 0010c000 08:15 3674031                    /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0
7fa3c99ee000-7fa3c9a32000 r-xp 00000000 08:15 4326316                    /usr/lib/x86_64-linux-gnu/nvidia/current/libGL.so.1.0.0
7fa3c9a32000-7fa3c9a64000 r-xp 00044000 08:15 4326316                    /usr/lib/x86_64-linux-gnu/nvidia/current/libGL.so.1.0.0
7fa3c9a64000-7fa3c9a77000 r-xp 00076000 08:15 4326316                    /usr/lib/x86_64-linux-gnu/nvidia/current/libGL.so.1.0.0
7fa3c9a77000-7fa3c9c77000 ---p 00089000 08:15 4326316                    /usr/lib/x86_64-linux-gnu/nvidia/current/libGL.so.1.0.0
7fa3c9c77000-7fa3c9c91000 rw-p 00089000 08:15 4326316                    /usr/lib/x86_64-linux-gnu/nvidia/current/libGL.so.1.0.0
7fa3c9c91000-7fa3c9c92000 rw-p 00000000 00:00 0 
7fa3c9c92000-7fa3c9ca2000 r-xp 00000000 08:15 4980741                    /lib/x86_64-linux-gnu/ld-2.24.so
7fa3c9ca2000-7fa3c9ca3000 r-xp 00010000 08:15 4980741                    /lib/x86_64-linux-gnu/ld-2.24.so
7fa3c9ca3000-7fa3c9cb5000 r-xp 00011000 08:15 4980741                    /lib/x86_64-linux-gnu/ld-2.24.so
7fa3c9cb5000-7fa3c9cb6000 r--s 00000000 08:15 5507423                    /var/cache/fontconfig/3f7329c5293ffd510edef78f73874cfd-le64.cache-4
7fa3c9cb6000-7fa3c9cbd000 r--s 00000000 08:15 5507435                    /var/cache/fontconfig/53d14c92082a93e67d5078324eb314ca-le64.cache-4
7fa3c9cbd000-7fa3c9cbf000 r--s 00000000 08:15 5516792                    /var/cache/fontconfig/62f91419b9ebdb6975e7e41ab6412357-le64.cache-4
7fa3c9cbf000-7fa3c9cdf000 rw-s 02caa000 00:06 20465                      /dev/nvidiactl
7fa3c9cdf000-7fa3c9de3000 rw-s caeab000 00:06 20465                      /dev/nvidiactl
7fa3c9de3000-7fa3c9e67000 r-xp 00000000 08:15 4984173                    /lib/x86_64-linux-gnu/libsystemd.so.0.17.0
7fa3c9e67000-7fa3c9e68000 ---p 00084000 08:15 4984173                    /lib/x86_64-linux-gnu/libsystemd.so.0.17.0
7fa3c9e68000-7fa3c9e6b000 r--p 00084000 08:15 4984173                    /lib/x86_64-linux-gnu/libsystemd.so.0.17.0
7fa3c9e6b000-7fa3c9e6c000 rw-p 00087000 08:15 4984173                    /lib/x86_64-linux-gnu/libsystemd.so.0.17.0
7fa3c9e6c000-7fa3c9e6d000 rw-p 00000000 00:00 0 
7fa3c9e6d000-7fa3c9e79000 rw-p 00000000 00:00 0 
7fa3c9e79000-7fa3c9e7a000 r--s 00000000 08:15 5515101                    /var/cache/fontconfig/4b2eda6bb976bda485cb2176619421d5-le64.cache-4
7fa3c9e7a000-7fa3c9e7b000 r--s 00000000 08:15 5520902                    /var/cache/fontconfig/e0aa53bcfa504e64f87823c16bc01eb6-le64.cache-4
7fa3c9e7b000-7fa3c9e7d000 rw-s 00000000 08:15 401015                     /tmp/.glSlpUKx (deleted)
7fa3c9e7d000-7fa3c9e90000 rw-s 02e07000 00:06 20465                      /dev/nvidiactl
7fa3c9e90000-7fa3c9e94000 rw-s 74f5a000 00:06 20465                      /dev/nvidiactl
7fa3c9e94000-7fa3c9ea7000 rw-p 00000000 00:00 0 
7fa3c9ea7000-7fa3c9ea8000 rw-s 02f2a000 00:06 20465                      /dev/nvidiactl
7fa3c9ea8000-7fa3c9ea9000 rw-s dff70000 00:06 21504                      /dev/nvidia0
7fa3c9ea9000-7fa3c9eaa000 rw-s 97368000 00:06 20465                      /dev/nvidiactl
7fa3c9eaa000-7fa3c9eab000 rw-s fc060000 00:06 21504                      /dev/nvidia0
7fa3c9eab000-7fa3c9eb2000 r--s 00000000 08:15 3697266                    /usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache
7fa3c9eb2000-7fa3c9eb5000 rw-p 00000000 00:00 0 
7fa3c9eb5000-7fa3c9eb6000 r--p 00023000 08:15 4980741                    /lib/x86_64-linux-gnu/ld-2.24.so
7fa3c9eb6000-7fa3c9eb7000 rw-p 00024000 08:15 4980741                    /lib/x86_64-linux-gnu/ld-2.24.so
7fa3c9eb7000-7fa3c9eb8000 rw-p 00000000 00:00 0 
7ffe2aa36000-7ffe2aa65000 rw-p 00000000 00:00 0                          [stack]
7ffe2aa78000-7ffe2aa7a000 r--p 00000000 00:00 0                          [vvar]
7ffe2aa7a000-7ffe2aa7c000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Segmentation fault

Same problem (Segmentation fault) if try press national symbol in worked Bonzomatic.

@PoroCYon
Copy link
Contributor

Sounds like scintilla just not supporting non-ascii at all. Should probably use a more up-to-date version, if they've fixed it upstream by now.

@xintrea
Copy link
Author

xintrea commented Jun 25, 2021

Sounds like scintilla just not supporting non-ascii at all. Should probably use a more up-to-date version, if they've fixed it upstream by now.

May be, it non-full initialisating Scintilla for UTF-8 in Bonzomatic?

See here: https://stackoverflow.com/questions/16415617/how-to-use-scintilla-for-unicode-strings

@xintrea
Copy link
Author

xintrea commented Jun 25, 2021

For show Cyrillic symbols, i change src/Platform.cpp:

@@ -97,11 +97,11 @@ void Platform::DebugPrintf(const char *, ...)
 #endif
 
 //////////////////////////////////////////////////////////////////////////
 // FONT
 
-#define CHARACTER_COUNT 512 // first 512 chars of unicode should be sufficient
+#define CHARACTER_COUNT 0x4FF // Up to 1279 symbols with cyrillic chars (before is: first 512 chars of unicode should be sufficient)
 
 struct stbtt_Font
 {
   stbtt_fontinfo fontinfo;
   stbtt_bakedchar cdata[CHARACTER_COUNT];
@@ -127,11 +127,11 @@ void Font::Create(const FontParameters &fp)
 
   fseek(f, 0, SEEK_END);
   size_t len = ftell(f);
   fseek(f, 0, SEEK_SET);
 
-  int texSize = 512;
+  int texSize = 2048; // For 1279 symbols render (before is: 512)
   unsigned char* buf = (unsigned char*)malloc(len);
   fread(buf, 1, len, f);
   fclose(f);
 
   unsigned char* bmp = new unsigned char[texSize*texSize];
@@ -423,18 +423,31 @@ void SurfaceImpl::DrawTextTransparent(PRectangle rc, Font &font, float ybase, co
   DrawTextBase(rc, font, ybase, s, len, fore);
 }

And if load default shader, and if press key with national symbol in national keyboarlayout, i see correct national symbol up-to 0.1 sec, and next is Segmentation Fault. This is, at least, our texture with all symbols is correct, and correct select symbol coordinates from this texture.

But, may be, incorrect behavior in EditView::LineLayout(), at string:

posCache.MeasureWidths(surface, vstyle, ll->styles[ts.start], ll->chars + ts.start,
        ts.length, ll->positions+ts.start + 1, model.pdoc);

Before this code, the ll->positions initialize only first element as ll->positions[0]=0, and next element is non initialize. But, this code send to function pointer to ll->positions+ts.start + 1, it is, at least (if ts.start=0), second element. May be it is error place?

@xintrea
Copy link
Author

xintrea commented Jun 25, 2021

This is Valgrind output if push key with national symbol:

nvalid write of size 4
==5074==    at 0x1EFDC3: Scintilla::SurfaceImpl::MeasureWidths(Scintilla::Font&, char const*, int, float*) (Platform.cpp:450)
==5074==    by 0x2F3033: Scintilla::PositionCache::MeasureWidths(Scintilla::Surface*, Scintilla::ViewStyle const&, unsigned int, char const*, unsigned int, float*, Scintilla::Document*) (PositionCache.cxx:680)
==5074==    by 0x2D92F3: Scintilla::EditView::LayoutLine(Scintilla::EditModel const&, int, Scintilla::Surface*, Scintilla::ViewStyle const&, Scintilla::LineLayout*, int) (EditView.cxx:477)
==5074==    by 0x2B7D22: Scintilla::Editor::WrapOneLine(Scintilla::Surface*, int) (Editor.cxx:1386)
==5074==    by 0x2B823E: Scintilla::Editor::WrapLines(Scintilla::Editor::wrapScope) (Editor.cxx:1461)
==5074==    by 0x2B8E87: Scintilla::Editor::Paint(Scintilla::Surface*, Scintilla::PRectangle) (Editor.cxx:1633)
==5074==    by 0x1F3DC4: ShaderEditor::Paint() (ShaderEditor.cpp:281)
==5074==    by 0x1FB41D: main (main.cpp:549)
==5074==  Address 0xfba6d9c is 0 bytes after a block of size 28 alloc'd
==5074==    at 0x4C2C93F: operator new[](unsigned long) (vg_replace_malloc.c:423)
==5074==    by 0x2F099D: Scintilla::LineLayout::Resize(int) (PositionCache.cxx:83)
==5074==    by 0x2F08C0: Scintilla::LineLayout::LineLayout(int) (PositionCache.cxx:69)
==5074==    by 0x2F197D: Scintilla::LineLayoutCache::Retrieve(int, int, int, int, int, int) (PositionCache.cxx:349)
==5074==    by 0x2D877E: Scintilla::EditView::RetrieveLineLayout(int, Scintilla::EditModel const&) (EditView.cxx:348)
==5074==    by 0x2B7C9B: Scintilla::Editor::WrapOneLine(Scintilla::Surface*, int) (Editor.cxx:1383)
==5074==    by 0x2B9D66: Scintilla::Editor::AddCharUTF(char const*, unsigned int, bool) (Editor.cxx:1836)
==5074==    by 0x1F3FCC: ShaderEditor::AddCharUTF(char const*, unsigned int, bool) (ShaderEditor.cpp:314)
==5074==    by 0x1FAF78: main (main.cpp:484)
==5074==
--5074-- VALGRIND INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting
--5074-- si_code=128;  Faulting address: 0x0;  sp: 0x80316de20
 
valgrind: the 'impossible' happened:
   Killed by fatal signal
 
host stacktrace:
==5074==    at 0x38091D1F: get_bszB_as_is (m_mallocfree.c:300)
==5074==    by 0x38091D1F: get_bszB (m_mallocfree.c:311)
==5074==    by 0x38091D1F: vgPlain_arena_free (m_mallocfree.c:2044)
==5074==    by 0x3804F963: release_oldest_block (mc_malloc_wrappers.c:165)
==5074==    by 0x3804F963: create_MC_Chunk (mc_malloc_wrappers.c:208)
==5074==    by 0x3804FB2B: vgMemCheck_new_block (mc_malloc_wrappers.c:366)
==5074==    by 0x3804FCA6: vgMemCheck_malloc (mc_malloc_wrappers.c:385)
==5074==    by 0x380D7B53: do_client_request (scheduler.c:1866)
==5074==    by 0x380D7B53: vgPlain_scheduler (scheduler.c:1425)
==5074==    by 0x380E6416: thread_wrapper (syswrap-linux.c:103)
==5074==    by 0x380E6416: run_a_thread_NORETURN (syswrap-linux.c:156)
 
sched status:
  running_tid=1
 
Thread 1: status = VgTs_Runnable (lwpid 5074)
==5074==    at 0x4C2BBAF: malloc (vg_replace_malloc.c:299)
==5074==    by 0xD236D68: ??? (in /usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.375.82)
==5074==    by 0xE6F88E6: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.375.82)
==5074==    by 0xE369048: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.375.82)
==5074==    by 0xE34E214: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.375.82)
==5074==    by 0xE34FF15: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.375.82)
==5074==    by 0x21BF54: Renderer::__FlushRenderCache() (Renderer.cpp:875)
==5074==    by 0x21C224: Renderer::BindTexture(Renderer::Texture*) (Renderer.cpp:928)
==5074==    by 0x1EF83F: Scintilla::SurfaceImpl::DrawTextBase(Scintilla::PRectangle, Scintilla::Font&, float, char const*, int, Scintilla::ColourDesired) (Platform.cpp:381)
==5074==    by 0x1EFCAD: Scintilla::SurfaceImpl::DrawTextTransparent(Scintilla::PRectangle, Scintilla::Font&, float, char const*, int, Scintilla::ColourDesired) (Platform.cpp:423)
==5074==    by 0x2DFCFF: Scintilla::EditView::DrawForeground(Scintilla::Surface*, Scintilla::EditModel const&, Scintilla::ViewStyle const&, Scintilla::LineLayout const*, int, Scintilla::PRectangle, Scintilla::Range, int, int, int, Scintilla::ColourOptional) (EditView.cxx:1514)
==5074==    by 0x2E0DAB: Scintilla::EditView::DrawLine(Scintilla::Surface*, Scintilla::EditModel const&, Scintilla::ViewStyle const&, Scintilla::LineLayout const*, int, int, int, Scintilla::PRectangle, int, Scintilla::DrawPhase) (EditView.cxx:1676)
==5074==    by 0x2E1BFF: Scintilla::EditView::PaintText(Scintilla::Surface*, Scintilla::EditModel const&, Scintilla::PRectangle, Scintilla::PRectangle, Scintilla::ViewStyle const&) (EditView.cxx:1835)
==5074==    by 0x2B91B0: Scintilla::Editor::Paint(Scintilla::Surface*, Scintilla::PRectangle) (Editor.cxx:1678)
==5074==    by 0x1F3DC4: ShaderEditor::Paint() (ShaderEditor.cpp:281)
==5074==    by 0x1FB41D: main (main.cpp:549)
 
Thread 2: status = VgTs_WaitSys (lwpid 5116)
==5074==    at 0x5D8320D: ??? (syscall-template.S:84)
==5074==    by 0x8AC1180: pa_read (in /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-10.0.so)
==5074==    by 0x886E0BD: pa_mainloop_prepare (in /usr/lib/x86_64-linux-gnu/libpulse.so.0.20.1)
==5074==    by 0x886EB2F: pa_mainloop_iterate (in /usr/lib/x86_64-linux-gnu/libpulse.so.0.20.1)
==5074==    by 0x229639: ma_device_read__pulse(ma_device*, void*, unsigned int, unsigned int*) (miniaudio.h:20250)
==5074==    by 0x229C13: ma_device_main_loop__pulse(ma_device*) (miniaudio.h:20405)
==5074==    by 0x22D268: ma_worker_thread(void*) (miniaudio.h:29561)
==5074==    by 0x5D7A493: start_thread (pthread_create.c:333)
==5074==    by 0x6915ACE: clone (clone.S:97)

@xintrea xintrea changed the title Segfault if load shader.glsl with national symbols in commentaries Segfault if load shader.glsl with national symbols in commentaries (UTF-8 trouble?) Jun 25, 2021
@Gargaj
Copy link
Owner

Gargaj commented Jun 25, 2021

Would you be so kind to attach a shader that reproduces the issue?

@xintrea
Copy link
Author

xintrea commented Jun 26, 2021

shaderWithNationalCyrillicSymbol.zip

This shader have line number 3 with national cyrillic symbols.

@Gargaj
Copy link
Owner

Gargaj commented Jun 26, 2021

Looks "fine" in Windows:
image

@Gargaj
Copy link
Owner

Gargaj commented Jun 26, 2021

This bit of code should take care of unicode:

    if (charLength > 1)
    {
      c = 0;
      UTF16FromUTF8( str, charLength, (wchar_t*)&c, sizeof(unsigned int) );
    }
    if (c >= CHARACTER_COUNT)
      c = '?';

@xintrea
Copy link
Author

xintrea commented Jun 27, 2021

Looks "fine" in Windows:

Yes. But in Windows we have question symbol, and in Linux we have Segmentation Fault.

Dear Gargaj, do you make change code as recommendet at this comment #160 (comment) and show screenshot in Windows? In Linux this changes showing correct notional cyrillic symbol, but too small time :) about 0.1 sec, and next segfault.

@PoroCYon
Copy link
Contributor

Which version are you running? I just compiled the latest commit ( 8504e2a ) & tried to run your shader, and it totally works (shows question marks):

20210628_19h10m12s_grim

@xintrea
Copy link
Author

xintrea commented Jul 4, 2021

Which version are you running? I just compiled the latest commit ( 8504e2a ) & tried to run your shader, and it totally works (shows question marks):

I am running, already, 8504e2a version (build from source). This Segfault i see at two Debian Linux computers: at desktop with Nvidia GeForce GTX 560 card, and at notebook with i915 card (yes, i915 support override OpenGL version 4.1)

At your case, your system, maybe, not have cyrillic locale, and this fact lead to "Non-Segfault" behavior.

Try temporary set cyrillic (ru) locale with next step:

  1. Run:
locale -a | grep ru

If this command show empty line, generate locale:

localedef  -i ru_RU -f UTF-8 ru_RU.UTF-8
  1. Set locale:
export LANG=ru_RU.UTF-8

... and try run Bonzomatic.

@PoroCYon
Copy link
Contributor

PoroCYon commented Jul 4, 2021

Sure:

20210704_22h47m23s_grim

@xintrea
Copy link
Author

xintrea commented Jul 5, 2021

Sure:

We still need to understand what are the differences between our environments... In my case i have two computer with difference Debian Linux state near version 9 (i not sure about my updates), and difference videocard Nvidia and i915. hence different drivers are installed. In both this cases i see Segfault.

Maybe the problem is that I am using the GCC 6.3.0 compiler and you are building via Clang?

@PoroCYon
Copy link
Contributor

PoroCYon commented Jul 5, 2021

I'm using GCC 10.2.1, glibc 2.32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants