Antoine has asked for the wisdom of the Perl Monks concerning the following question:

Steps to reproduce:
Trying to attach a file in Bugzilla.
(File size limit: 10240 KB)
Size of the Document is 6 MB.

My CGI file details
package CGI;
require 5.008001;
use if $] >= 5.019, 'deprecate';
use Carp 'croak';

$CGI::VERSION='4.25'; Actual results: Browser Error as given bellow; Software error: CGI.pm: Server closed socket during multipart read (client aborted?). Apache Error Log as
[Mon Dec 21 04:03:28 2015] [error] [client ] [Mon Dec 21 04:03:12 2015 +] attachment.cgi: Wide character in print at /usr/local/share/perl5/C +GI.pm line 3411., referer: https://xxx/attachment.cgi?bugid=402990&ac +tion=enter [Mon Dec 21 04:03:28 2015] [error] [client ] [Mon Dec 21 04:03:12 2015 +] attachment.cgi: Wide character in print at /usr/local/share/perl5/C +GI.pm line 3411., referer: https://xxx/attachment.cgi?bugid=402990&ac +tion=enter [Mon Dec 21 04:03:28 2015] [error] [client ] [Mon Dec 21 04:03:12 2015 +] attachment.cgi: Wide character in print at /usr/local/share/perl5/C +GI.pm line 3411., referer: https://xxx/attachment.cgi?bugid=402990&ac +tion=enter [Mon Dec 21 04:03:28 2015] [error] [client ] [Mon Dec 21 04:03:12 2015 +] attachment.cgi: Wide character in print at /usr/local/share/perl5/C +GI.pm line 3411., referer: https://xxx/attachment.cgi?bugid=402990&ac +tion=enter [Mon Dec 21 04:03:28 2015] [error] [client ] [Mon Dec 21 04:03:12 2015 +] attachment.cgi: Wide character in print at /usr/local/share/perl5/C +GI.pm line 3411., referer: https://xxx/attachment.cgi?bugid=402990&ac +tion=enter [Mon Dec 21 04:03:28 2015] [error] [client ] [Mon Dec 21 04:03:12 2015 +] attachment.cgi: Wide character in print at /usr/local/share/perl5/C +GI.pm line 3411., referer: https://xxx/attachment.cgi?bugid=402990&ac +tion=enter [Mon Dec 21 04:03:28 2015] [error] [client ] [Mon Dec 21 04:03:12 2015 +] attachment.cgi: Wide character in print at /usr/local/share/perl5/C +GI.pm line 3411., referer: https://xxx/attachment.cgi?bugid=402990&ac +tion=enter [Mon Dec 21 04:03:28 2015] [error] [client ] [Mon Dec 21 04:03:12 2015 +] attachment.cgi: Wide character in print at /usr/local/share/perl5/C +GI.pm line 3411., referer: https://xxx/attachment.cgi?bugid=402990&ac +tion=enter [Mon Dec 21 04:03:28 2015] [error] [client ] [Mon Dec 21 04:03:12 2015 +] attachment.cgi: Wide character in print at /usr/local/share/perl5/C +GI.pm line 3411., referer: https://xxx/attachment.cgi?bugid=402990&ac +tion=enter [Mon Dec 21 04:03:28 2015] [error] [client ] [Mon Dec 21 04:03:12 2015 +] attachment.cgi: Wide character in print at /usr/local/share/perl5/C +GI.pm line 3411., referer: https://xxx/attachment.cgi?bugid=402990&ac +tion=enter
Expected results: Attachment should attach in the bug

Replies are listed 'Best First'.
Re: Not able to attach document in the bugs
by Corion (Patriarch) on Dec 31, 2015 at 11:06 UTC

    This is not really the Bugzilla support forum.

    This sounds to me like a weird mix of local network problems and weird server configuration. What steps have you taken to identify that this is a problem with Perl?

      Hi Antoine :)

      Seems to be an encoding problem ("wide character").
      Try to save the output in binmode and UTF8.

      http://stackoverflow.com/questions/2468533/how-do-i-eliminate-tts-wide-character-in-print-warning