Quantcast

sse3 host x64 linux

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

sse3 host x64 linux

Mariuz
firebird 3.0.3 current crashes on a non sse4 host even when i try to force the nonsse4.2 function (i have removed the sse detection and crc32 optimized function) 


Anyone tried to compile 3.0.3 on nonsse hosts and x64 ?


gpre version LI-V3.0.3.32722 Firebird 3.0
*** Error in `/home/mariuz/Work/firebird/firebird/gen/Release/firebird/bin/gpre_current': free(): invalid size: 0x00007fa589cc82a0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x7908b)[0x7fa588fab08b]
/lib/x86_64-linux-gnu/libc.so.6(+0x826fa)[0x7fa588fb46fa]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7fa588fb812c]
/home/mariuz/Work/firebird/firebird/gen/Release/firebird/bin/gpre_current(+0x93fc0)[0x5575be284fc0]
/home/mariuz/Work/firebird/firebird/gen/Release/firebird/bin/gpre_current(+0x8756c)[0x5575be27856c]
/home/mariuz/Work/firebird/firebird/gen/Release/firebird/bin/gpre_current(+0x8777c)[0x5575be27877c]
/lib/x86_64-linux-gnu/libc.so.6(+0x3a270)[0x7fa588f6c270]
/lib/x86_64-linux-gnu/libc.so.6(+0x3a2ca)[0x7fa588f6c2ca]
/home/mariuz/Work/firebird/firebird/gen/Release/firebird/bin/gpre_current(+0x484a8)[0x5575be2394a8]
/home/mariuz/Work/firebird/firebird/gen/Release/firebird/bin/gpre_current(+0x207ae)[0x5575be2117ae]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)[0x7fa588f523f1]
/home/mariuz/Work/firebird/firebird/gen/Release/firebird/bin/gpre_current(+0x21aaa)[0x5575be212aaa]
======= Memory map: ========
5575be1f1000-5575be2c3000 r-xp 00000000 08:01 18098981                   /home/mariuz/Work/firebird/firebird/gen/Release/firebird/bin/gpre_boot
5575be4c2000-5575be4d1000 r--p 000d1000 08:01 18098981                   /home/mariuz/Work/firebird/firebird/gen/Release/firebird/bin/gpre_boot
5575be4d1000-5575be4d6000 rw-p 000e0000 08:01 18098981                   /home/mariuz/Work/firebird/firebird/gen/Release/firebird/bin/gpre_boot
5575be4d6000-5575be4dd000 rw-p 00000000 00:00 0 
5575be9dd000-5575bea0f000 rw-p 00000000 00:00 0                          [heap]
7fa584000000-7fa584021000 rw-p 00000000 00:00 0 
7fa584021000-7fa588000000 ---p 00000000 00:00 0 
7fa58894e000-7fa588c29000 r--p 00000000 08:01 6299570                    /usr/lib/locale/locale-archive
7fa588c29000-7fa588d31000 r-xp 00000000 08:01 15076913                   /lib/x86_64-linux-gnu/libm-2.24.so
7fa588d31000-7fa588f30000 ---p 00108000 08:01 15076913                   /lib/x86_64-linux-gnu/libm-2.24.so
7fa588f30000-7fa588f31000 r--p 00107000 08:01 15076913                   /lib/x86_64-linux-gnu/libm-2.24.so
7fa588f31000-7fa588f32000 rw-p 00108000 08:01 15076913                   /lib/x86_64-linux-gnu/libm-2.24.so
7fa588f32000-7fa5890ef000 r-xp 00000000 08:01 15076909                   /lib/x86_64-linux-gnu/libc-2.24.so
7fa5890ef000-7fa5892ef000 ---p 001bd000 08:01 15076909                   /lib/x86_64-linux-gnu/libc-2.24.so
7fa5892ef000-7fa5892f3000 r--p 001bd000 08:01 15076909                   /lib/x86_64-linux-gnu/libc-2.24.so
7fa5892f3000-7fa5892f5000 rw-p 001c1000 08:01 15076909                   /lib/x86_64-linux-gnu/libc-2.24.so
7fa5892f5000-7fa5892f9000 rw-p 00000000 00:00 0 
7fa5892f9000-7fa589311000 r-xp 00000000 08:01 15076925                   /lib/x86_64-linux-gnu/libpthread-2.24.so
7fa589311000-7fa589511000 ---p 00018000 08:01 15076925                   /lib/x86_64-linux-gnu/libpthread-2.24.so
7fa589511000-7fa589512000 r--p 00018000 08:01 15076925                   /lib/x86_64-linux-gnu/libpthread-2.24.so
7fa589512000-7fa589513000 rw-p 00019000 08:01 15076925                   /lib/x86_64-linux-gnu/libpthread-2.24.so
7fa589513000-7fa589517000 rw-p 00000000 00:00 0 
7fa589517000-7fa58952d000 r-xp 00000000 08:01 15073302                   /lib/x86_64-linux-gnu/libgcc_s.so.1
7fa58952d000-7fa58972c000 ---p 00016000 08:01 15073302                   /lib/x86_64-linux-gnu/libgcc_s.so.1
7fa58972c000-7fa58972d000 r--p 00015000 08:01 15073302                   /lib/x86_64-linux-gnu/libgcc_s.so.1
7fa58972d000-7fa58972e000 rw-p 00016000 08:01 15073302                   /lib/x86_64-linux-gnu/libgcc_s.so.1
7fa58972e000-7fa5898a7000 r-xp 00000000 08:01 6296316                    /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22
7fa5898a7000-7fa589aa6000 ---p 00179000 08:01 6296316                    /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22
7fa589aa6000-7fa589ab0000 r--p 00178000 08:01 6296316                    /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22
7fa589ab0000-7fa589ab2000 rw-p 00182000 08:01 6296316                    /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22
7fa589ab2000-7fa589ab6000 rw-p 00000000 00:00 0 
7fa589ab6000-7fa589adb000 r-xp 00000000 08:01 15076905                   /lib/x86_64-linux-gnu/ld-2.24.so
7fa589c8c000-7fa589c91000 rw-p 00000000 00:00 0 
7fa589c97000-7fa589cdb000 rw-p 00000000 00:00 0 
7fa589cdb000-7fa589cdc000 r--p 00025000 08:01 15076905                   /lib/x86_64-linux-gnu/ld-2.24.so
7fa589cdc000-7fa589cdd000 rw-p 00026000 08:01 15076905                   /lib/x86_64-linux-gnu/ld-2.24.so
7fa589cdd000-7fa589cde000 rw-p 00000000 00:00 0 
7ffc8706c000-7ffc8708e000 rw-p 00000000 00:00 0                          [stack]
7ffc871f6000-7ffc871f8000 r--p 00000000 00:00 0                          [vvar]
7ffc871f8000-7ffc871fa000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
make.rules:85: recipe for target '/home/mariuz/Work/firebird/firebird/temp/Release/yvalve/blob.cpp' failed
make[3]: *** [/home/mariuz/Work/firebird/firebird/temp/Release/yvalve/blob.cpp] Aborted
make[3]: *** Deleting file '/home/mariuz/Work/firebird/firebird/temp/Release/yvalve/blob.cpp'
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/home/mariuz/Work/firebird/firebird/gen'
Makefile:172: recipe for target 'master_process' failed
make[2]: *** [master_process] Error 2
make[2]: Leaving directory '/home/mariuz/Work/firebird/firebird/gen'
Makefile:66: recipe for target 'firebird' failed
make[1]: *** [firebird] Error 2
make[1]: Leaving directory '/home/mariuz/Work/firebird/firebird/gen'
Makefile:6: recipe for target 'firebird' failed
make: *** [firebird] Error 2


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: sse3 host x64 linux

Doychin Bondzhev
I think this

p = (UCHAR*) &hash_value;

can be taken before while loop and also removed few lines later.


On 18.5.2017 г. 10:57 ч., marius adrian popa wrote:

> firebird 3.0.3 current crashes on a non sse4 host even when i try to
> force the nonsse4.2 function (i have removed the sse detection and crc32
> optimized function)
>
> https://github.com/FirebirdSQL/firebird/commit/52d9a05a0f3d
> <https://github.com/FirebirdSQL/firebird/commit/52d9a05a0f3d>
>
> Anyone tried to compile 3.0.3 on nonsse hosts and x64 ?
>
>
> gpre version LI-V3.0.3.32722 Firebird 3.0
> *** Error in
> `/home/mariuz/Work/firebird/firebird/gen/Release/firebird/bin/gpre_current':
> free(): invalid size: 0x00007fa589cc82a0 ***
> ======= Backtrace: =========
> /lib/x86_64-linux-gnu/libc.so.6(+0x7908b)[0x7fa588fab08b]
> /lib/x86_64-linux-gnu/libc.so.6(+0x826fa)[0x7fa588fb46fa]
> /lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7fa588fb812c]
> /home/mariuz/Work/firebird/firebird/gen/Release/firebird/bin/gpre_current(+0x93fc0)[0x5575be284fc0]
> /home/mariuz/Work/firebird/firebird/gen/Release/firebird/bin/gpre_current(+0x8756c)[0x5575be27856c]
> /home/mariuz/Work/firebird/firebird/gen/Release/firebird/bin/gpre_current(+0x8777c)[0x5575be27877c]
> /lib/x86_64-linux-gnu/libc.so.6(+0x3a270)[0x7fa588f6c270]
> /lib/x86_64-linux-gnu/libc.so.6(+0x3a2ca)[0x7fa588f6c2ca]
> /home/mariuz/Work/firebird/firebird/gen/Release/firebird/bin/gpre_current(+0x484a8)[0x5575be2394a8]
> /home/mariuz/Work/firebird/firebird/gen/Release/firebird/bin/gpre_current(+0x207ae)[0x5575be2117ae]
> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)[0x7fa588f523f1]
> /home/mariuz/Work/firebird/firebird/gen/Release/firebird/bin/gpre_current(+0x21aaa)[0x5575be212aaa]
> ======= Memory map: ========
> 5575be1f1000-5575be2c3000 r-xp 00000000 08:01 18098981
> /home/mariuz/Work/firebird/firebird/gen/Release/firebird/bin/gpre_boot
> 5575be4c2000-5575be4d1000 r--p 000d1000 08:01 18098981
> /home/mariuz/Work/firebird/firebird/gen/Release/firebird/bin/gpre_boot
> 5575be4d1000-5575be4d6000 rw-p 000e0000 08:01 18098981
> /home/mariuz/Work/firebird/firebird/gen/Release/firebird/bin/gpre_boot
> 5575be4d6000-5575be4dd000 rw-p 00000000 00:00 0
> 5575be9dd000-5575bea0f000 rw-p 00000000 00:00 0
>  [heap]
> 7fa584000000-7fa584021000 rw-p 00000000 00:00 0
> 7fa584021000-7fa588000000 ---p 00000000 00:00 0
> 7fa58894e000-7fa588c29000 r--p 00000000 08:01 6299570
>  /usr/lib/locale/locale-archive
> 7fa588c29000-7fa588d31000 r-xp 00000000 08:01 15076913
> /lib/x86_64-linux-gnu/libm-2.24.so <http://libm-2.24.so>
> 7fa588d31000-7fa588f30000 ---p 00108000 08:01 15076913
> /lib/x86_64-linux-gnu/libm-2.24.so <http://libm-2.24.so>
> 7fa588f30000-7fa588f31000 r--p 00107000 08:01 15076913
> /lib/x86_64-linux-gnu/libm-2.24.so <http://libm-2.24.so>
> 7fa588f31000-7fa588f32000 rw-p 00108000 08:01 15076913
> /lib/x86_64-linux-gnu/libm-2.24.so <http://libm-2.24.so>
> 7fa588f32000-7fa5890ef000 r-xp 00000000 08:01 15076909
> /lib/x86_64-linux-gnu/libc-2.24.so <http://libc-2.24.so>
> 7fa5890ef000-7fa5892ef000 ---p 001bd000 08:01 15076909
> /lib/x86_64-linux-gnu/libc-2.24.so <http://libc-2.24.so>
> 7fa5892ef000-7fa5892f3000 r--p 001bd000 08:01 15076909
> /lib/x86_64-linux-gnu/libc-2.24.so <http://libc-2.24.so>
> 7fa5892f3000-7fa5892f5000 rw-p 001c1000 08:01 15076909
> /lib/x86_64-linux-gnu/libc-2.24.so <http://libc-2.24.so>
> 7fa5892f5000-7fa5892f9000 rw-p 00000000 00:00 0
> 7fa5892f9000-7fa589311000 r-xp 00000000 08:01 15076925
> /lib/x86_64-linux-gnu/libpthread-2.24.so <http://libpthread-2.24.so>
> 7fa589311000-7fa589511000 ---p 00018000 08:01 15076925
> /lib/x86_64-linux-gnu/libpthread-2.24.so <http://libpthread-2.24.so>
> 7fa589511000-7fa589512000 r--p 00018000 08:01 15076925
> /lib/x86_64-linux-gnu/libpthread-2.24.so <http://libpthread-2.24.so>
> 7fa589512000-7fa589513000 rw-p 00019000 08:01 15076925
> /lib/x86_64-linux-gnu/libpthread-2.24.so <http://libpthread-2.24.so>
> 7fa589513000-7fa589517000 rw-p 00000000 00:00 0
> 7fa589517000-7fa58952d000 r-xp 00000000 08:01 15073302
> /lib/x86_64-linux-gnu/libgcc_s.so.1
> 7fa58952d000-7fa58972c000 ---p 00016000 08:01 15073302
> /lib/x86_64-linux-gnu/libgcc_s.so.1
> 7fa58972c000-7fa58972d000 r--p 00015000 08:01 15073302
> /lib/x86_64-linux-gnu/libgcc_s.so.1
> 7fa58972d000-7fa58972e000 rw-p 00016000 08:01 15073302
> /lib/x86_64-linux-gnu/libgcc_s.so.1
> 7fa58972e000-7fa5898a7000 r-xp 00000000 08:01 6296316
>  /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22
> 7fa5898a7000-7fa589aa6000 ---p 00179000 08:01 6296316
>  /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22
> 7fa589aa6000-7fa589ab0000 r--p 00178000 08:01 6296316
>  /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22
> 7fa589ab0000-7fa589ab2000 rw-p 00182000 08:01 6296316
>  /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22
> 7fa589ab2000-7fa589ab6000 rw-p 00000000 00:00 0
> 7fa589ab6000-7fa589adb000 r-xp 00000000 08:01 15076905
> /lib/x86_64-linux-gnu/ld-2.24.so <http://ld-2.24.so>
> 7fa589c8c000-7fa589c91000 rw-p 00000000 00:00 0
> 7fa589c97000-7fa589cdb000 rw-p 00000000 00:00 0
> 7fa589cdb000-7fa589cdc000 r--p 00025000 08:01 15076905
> /lib/x86_64-linux-gnu/ld-2.24.so <http://ld-2.24.so>
> 7fa589cdc000-7fa589cdd000 rw-p 00026000 08:01 15076905
> /lib/x86_64-linux-gnu/ld-2.24.so <http://ld-2.24.so>
> 7fa589cdd000-7fa589cde000 rw-p 00000000 00:00 0
> 7ffc8706c000-7ffc8708e000 rw-p 00000000 00:00 0
>  [stack]
> 7ffc871f6000-7ffc871f8000 r--p 00000000 00:00 0
>  [vvar]
> 7ffc871f8000-7ffc871fa000 r-xp 00000000 00:00 0
>  [vdso]
> ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0
>  [vsyscall]
> make.rules:85: recipe for target
> '/home/mariuz/Work/firebird/firebird/temp/Release/yvalve/blob.cpp' failed
> make[3]: ***
> [/home/mariuz/Work/firebird/firebird/temp/Release/yvalve/blob.cpp] Aborted
> make[3]: *** Deleting file
> '/home/mariuz/Work/firebird/firebird/temp/Release/yvalve/blob.cpp'
> make[3]: *** Waiting for unfinished jobs....
> make[3]: Leaving directory '/home/mariuz/Work/firebird/firebird/gen'
> Makefile:172: recipe for target 'master_process' failed
> make[2]: *** [master_process] Error 2
> make[2]: Leaving directory '/home/mariuz/Work/firebird/firebird/gen'
> Makefile:66: recipe for target 'firebird' failed
> make[1]: *** [firebird] Error 2
> make[1]: Leaving directory '/home/mariuz/Work/firebird/firebird/gen'
> Makefile:6: recipe for target 'firebird' failed
> make: *** [firebird] Error 2
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>
>
>
> Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
>

--
Doychin Bondzhev
dSoft-Bulgaria Ltd.
PowerPro - billing & provisioning solution for Service providers
PowerStor - Warehouse & POS
http://www.dsoft-bg.com/
Mobile: +359888243116

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

doychin.vcf (280 bytes) Download Attachment
smime.p7s (7K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: sse3 host x64 linux

Alex Peshkoff
In reply to this post by Mariuz
On 05/18/17 10:57, marius adrian popa wrote:
> firebird 3.0.3 current crashes on a non sse4 host even when i try to force
> the nonsse4.2 function (i have removed the sse detection and crc32
> optimized function)
>
> https://github.com/FirebirdSQL/firebird/commit/52d9a05a0f3d
>
> Anyone tried to compile 3.0.3 on nonsse hosts and x64 ?
>

Did not, but working with master noticed a bug in non-SSE version which
may cause invalid hash values.
Can you try with this patch?


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

all.patch (964 bytes) Download Attachment
Loading...