I think I must have gone nuts. One browser request gives me two of everything. Everything is doubled - the log file entries and the brwoser output. The two outputs seem to be separated by about a second. As you can imagine this really screws up my output html.

This problem also happens when I switch apache into single-threaded mode, if I use straight CGI, whatever. Running it off the command line, it appears that my module (Common.pm) gets loaded twice, but the program only runs once.

Going through my backups they all seem to do it, and yet I'm sure I would have noticed this problem a week ago. What could I have done to get this effect?

Server version: Apache/1.3.9 (Unix) Debian/GNU Server built: Apr 30 2000 12:54:24 perl5 (5.0 patchlevel 5 subversion 3)

Take note of the random numbers, which were generated with a print rand(1000)

==> /var/log/apache/error.log <== Config file loaded About to initialise variables for create_user.pl Started initialisation routine for Common,pm-------------- ################### This is a random number 326.732844579965 ################### CGI setup - new CGI=HASH(0x80d1fd0) created Got session ID: 786743dec247e75e60135ee4d159332f Tieing %userinfo to database... ==> /var/log/apache/error.log <== Config file loaded About to initialise variables for create_user.pl Started initialisation routine for Common,pm-------------- ######################### This is a random number 326.732844579965 ######################### CGI setup - new CGI=HASH(0x80d1fd0) created Got session ID: 786743dec247e75e60135ee4d159332f Tieing %userinfo to database... ==> /var/log/apache/error.log <==

____________________
Jeremy
I didn't believe in evil until I dated it.


In reply to Everything gets output twice by jepri

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.