<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10px"><div id="yui_3_16_0_1_1415957990643_8031">Hi guys,</div><div id="yui_3_16_0_1_1415957990643_8032"><br></div><div id="yui_3_16_0_1_1415957990643_8033" dir="ltr">This is my first post on KernelNewbies.</div><div id="yui_3_16_0_1_1415957990643_8035" dir="ltr">I have a CGI binary written in c++ which uses some shared objects which use STL. The code is legacy code, so it contains a lot of #pragma packs. I used to run this code on kernel 2.6.33. and I updated the kernel to 2.6.39 and the same CGI binary is giving segafault. (which works on older kernel) But if I remove #pragma packs it works as expected on later kernel too.</div><div id="yui_3_16_0_1_1415957990643_8051" dir="ltr"><br></div><div id="yui_3_16_0_1_1415957990643_8076" dir="ltr">I am using intel atom processor.</div><div id="yui_3_16_0_1_1415957990643_8075" dir="ltr"><br></div><div id="yui_3_16_0_1_1415957990643_8050" dir="ltr">Can anyone give me some clue about what can I do ? I know that removing pragmas is obvious solution but its affecting some other code.<br></div><div id="yui_3_16_0_1_1415957990643_8049" dir="ltr"><br></div><div id="yui_3_16_0_1_1415957990643_8048" dir="ltr">thanks,</div><div id="yui_3_16_0_1_1415957990643_8047" dir="ltr">Rohit<br></div><div id="yui_3_16_0_1_1415957990643_8036" dir="ltr"><br></div><div id="yui_3_16_0_1_1415957990643_8037" dir="ltr"><br></div><div id="yui_3_16_0_1_1415957990643_8038"><br></div></div></body></html>