Re: help: segmentation fault in threads program that use binmode
Hi, did you got your issue resolved!! I also face segmentation fault but without binmode I didn't found any solution any where and opted another solution my program was using thread in loop till perl dump core with Out of memory issue Best of luck ~a b On Thu, Jun 9, 2011 at 5:32 AM, anders lee jianghuma...@gmail.com wrote: when i use binmode in threaded program, i got a segmentation fault; i comment the binmode line, the program works well use threads; use threads::shared; use utf8; binmode(STDOUT, ':encoding(utf8)'; ---thread create and join- -- 使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
Re: help: segmentation fault in threads program that use binmode
Hi anders, On Wed, 15 Jun 2011 07:38:46 +0800 anders lee jianghuma...@gmail.com wrote: when i use binmode in threaded program, i got a segmentation fault; i comment the binmode line, the program works well use threads; use threads::shared; use utf8; binmode(STDOUT, ':encoding(utf8)'; Well, it's not a good idea to use threads in Perl: perlbot rindolf: Before you start implementing code using Perl's threads, please remember that Perl's threads are not like other threads. Please see http://perldoc.perl.org/perlthrtut.html to learn more; specifically the What kind of threads are perl threads? section. Also see: http://www.perlmonks.org/index.pl?node_id=288022 Please consider using forking or an asynchronous I/O framework for Perl such as POE, IO::Async or Reflex, instead. Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ Chuck Norris can make the statement This statement is false a true one. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
help: segmentation fault in threads program that use binmode
when i use binmode in threaded program, i got a segmentation fault; i comment the binmode line, the program works well use threads; use threads::shared; use utf8; binmode(STDOUT, ':encoding(utf8)'; ---thread create and join- -- 使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
help: segmentation fault in threads program that use binmode
when i use binmode in threaded program, i got a segmentation fault; i comment the binmode line, the program works well use threads; use threads::shared; use utf8; binmode(STDOUT, ':encoding(utf8)'; ---thread create and join- -- 使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/