superoptimo
January 12th, 2009, 05:38 AM
Hi. I've finally upgrade to ubuntu intrepid, but then I get disappointed when my perl scripts stop running correctly.
I used to run an script for editing playlists in my Sansa player, which can be downloaded from this link:
http://www.mazleg.com/sansa/
This script was running fine with perl 5.8x on Ubuntu hardy (8.04). But now on Intrepid(8.10) with perl 5.10 it gives "segmentation faul" errors. By tracing this script I've discovered that most of the errors come from the GTK module on perl.
I've just put some lines for tracing the case when it gives a Segmentation fault. Exactly it gives error when I choose an item from the Folder Tree view, and then it raises memory and executing errors when evaluating the selected Tree item. Check the line 190 in the function update_tree_folder.
However, when running this script on debugging mode, it runs without problems. So what's happening? what is causing that issue?
I guess that some binary component of perl has runtime problems when is compiled on Release mode, and I could think that some optimization options on gcc 4.3 could produce buggy apps. Who knows!! or may there is a problem in perl 5.10, since I've also seen many threads about perl 5.10 issues.
So I've just decided to return to the previous version of ubuntu (8.04) while the intrepid version becomes stable. I need to trust in my linux box, and the only thing that get me worried about are unexplainable runtime errors.
thanks.
I used to run an script for editing playlists in my Sansa player, which can be downloaded from this link:
http://www.mazleg.com/sansa/
This script was running fine with perl 5.8x on Ubuntu hardy (8.04). But now on Intrepid(8.10) with perl 5.10 it gives "segmentation faul" errors. By tracing this script I've discovered that most of the errors come from the GTK module on perl.
I've just put some lines for tracing the case when it gives a Segmentation fault. Exactly it gives error when I choose an item from the Folder Tree view, and then it raises memory and executing errors when evaluating the selected Tree item. Check the line 190 in the function update_tree_folder.
However, when running this script on debugging mode, it runs without problems. So what's happening? what is causing that issue?
I guess that some binary component of perl has runtime problems when is compiled on Release mode, and I could think that some optimization options on gcc 4.3 could produce buggy apps. Who knows!! or may there is a problem in perl 5.10, since I've also seen many threads about perl 5.10 issues.
So I've just decided to return to the previous version of ubuntu (8.04) while the intrepid version becomes stable. I need to trust in my linux box, and the only thing that get me worried about are unexplainable runtime errors.
thanks.