The mysql bug report suggests the workaround of using pragma opt to reduce the optimisation level just for the problem code. This is potentially a better way of solving the problem than reducing the optimisation level for all files.
Have you got a compiler bug report associated with this issue? Regards, Darryl. Basant Kukreja wrote: > I certainly don't like the idea of compiling the entire mysql with -xO2. I > agree that we need -xO2 but not for entire mysql. > > Have you collected the stack trace and compile only those files with -xO2 > which > appear in stack trace of segv. In my experience of compiler issues it has > always worked for me in past. Even if it is compiler bug, compiler doesn't > generate wrong code for entire mysql. It might be a few selective > functions/files where compiler might be doing something unexpected. It is our > job to figure out which files/functions code is generated incorrectly. > > In summary we should compile only selected files with -xO2, not the entire > -xO4. > > Regards, > Basant. > > Note: Ideally we need to break down -xO4 flags and disable only those which > cause crash. > > On Mon, Nov 30, 2009 at 01:02:57PM +0530, sunanda menon wrote: >> Hi, >> >> We have replaced the mysql-5.1.37 tarball with that of patching the >> mysql-5.1.37.tar.gz source from the download site. >> Please review the changes made at >> http://cr.opensolaris.org/~sunandam/6857014/ and let me know your >> comments. >> >> Thanks Sunanda >> >> >> -- >> Sunanda Menon >> Database Technology Group >> BLR03, x87098/91-80-66937098 >> http://blogs.sun.com/smenon >> >> _______________________________________________ >> >> >> webstack-discuss mailing list >> webstack-discuss at opensolaris.org >> http://mail.opensolaris.org/mailman/listinfo/webstack-discuss > _______________________________________________ > > > webstack-discuss mailing list > webstack-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/webstack-discuss -- Darryl Gove Compiler Performance Engineering Blog : http://blogs.sun.com/d/ Books: http://www.sun.com/books/catalog/solaris_app_programming.xml http://my.safaribooksonline.com/0595352510