Bug #12717 yassl: Crashes in "integer.cpp" when compiled with icc
Submitted: 22 Aug 2005 9:55 Modified: 14 Sep 2005 14:53
Reporter: Magnus Blåudd Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version: OS:
Assigned to: Magnus Blåudd CPU Architecture:Any

[22 Aug 2005 9:55] Magnus Blåudd
Description:
alias                          [ fail ]

Errors are (from PATH/mysqltest-time) :
mysqltest: integer.cpp:3238: void TaoCrypt::AtomicDivide(unsigned int *, const
unsigned int *, const unsigned int *): Assertion `memcmp(P, A, 4*WORD_SIZE)==0'
failed.
mysqltest returned unexpected code 134, it has probably crashed

production-icc-glibc23-5.0-standard.log   normal

same crash on this platform for all other tests until run was aborted: 
alter_table analyse analyze ansi archive auto_increment backup bdb
bdb-alter-table-1 bdb-alter-table-2 bdb_cache bdb-crash bdb-deadlock
bench_count_distinct bigint binary binlog blackhole bool ..... heap_btree ; 126
in total

How to repeat:
Test suite failure
[1 Sep 2005 12:08] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/internals/29166
[1 Sep 2005 12:43] Magnus Blåudd
Pushed a temporary fix to 5.0.13 that dissables the x86 assembler when compiling with icc
[5 Sep 2005 10:59] Magnus Blåudd
Failed on quadita2-icc-glibc23 with this error message

02154: if /bin/sh ../../../../libtool --preserve-dup-deps --mode=compile icpc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../include -I../../mySTL   -DYASSL_PURE_C -O3 -DDBUG_OFF -O1 -ip   -fno-implicit-templates -fno-exceptions -fno-rtti -MT integer.lo -MD -MP -MF ".deps/integer.Tpo" -c -o integer.lo integer.cpp; \
02155: then mv -f ".deps/integer.Tpo" ".deps/integer.Plo"; else rm -f ".deps/integer.Tpo"; exit 1; fi
02156:  icpc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../include -I../../mySTL -DYASSL_PURE_C -O3 -DDBUG_OFF -O1 -ip -fno-implicit-templates -fno-exceptions -fno-rtti -MT integer.lo -MD -MP -MF .deps/integer.Tpo -c integer.cpp -o integer.o
02157: icpc: Command line warning: overriding '-O3' with '-O1'
02158: integer.cpp(197): error: asm statements not supported in this environment
02159:               __asm__("xmpy.hu %0=%1,%2" : "=f" (r.halfs_.high)
02160:               ^
02161: 
02162: integer.cpp(197): error: expected a ")"
02163:               __asm__("xmpy.hu %0=%1,%2" : "=f" (r.halfs_.high)
02164:                                          ^
02165: 
02166: compilation aborted for integer.cpp (code 2)
02167: gmake[4]: *** [integer.lo] Error 1
02168: gmake[4]: Leaving directory `/home/mysqldev/quadita2-icc-glibc23/mysql-5.0.13-beta-yassl/extra/yassl/taocrypt/src'
02169: gmake[3]: *** [all-recursive] Error 1
02170: gmake[3]: Leaving directory `/home/mysqldev/quadita2-icc-glibc23/mysql-5.0.13-beta-yassl/extra/yassl/taocrypt'
02171: gmake[2]: *** [all-recursive] Error 1
02172: gmake[2]: Leaving directory `/home/mysqldev/quadita2-icc-glibc23/mysql-5.0.13-beta-yassl/extra/yassl'
02173: gmake[1]: *** [all-recursive] Error 1
02174: gmake[1]: Leaving directory `/home/mysqldev/quadita2-icc-glibc23/mysql-5.0.13-beta-yassl'
02175: gmake: *** [all] Error 2
02176: 
02177: error: Couldn't execute command, error: 2
[8 Sep 2005 10:43] Magnus Blåudd
Pushed fix for ia64 + icc to 5.0.13