#19 imap_general.php infinite loop errors

closed
nobody
None
5
2002-10-29
2002-08-09
Trenton D. Adams
No

After a folder refresh, I get a whole wack of errors
that don't stop. I couldn't copy/paste them because
they happen so fast that I can't do anything about it
but close the browser. It hogs up my RAM because of it
as well.

It says something about lines 81 and 137 or something
like that of imap_general.php I think.

My guess is that there was a problem connecting to the
IMAP, or the connection was lost or something like that.

Discussion

  • Logged In: YES
    user_id=285765

    Are you using the most current version of SM (1.2.7)?

    Also, if you could get the exact error message that would be
    very helpful towards solving it. You could as soon as the
    error occurs press Escape so your browser stops loading.

     
    • assigned_to: nobody --> kink
     
  • Logged In: YES
    user_id=475005

    Yep, SquirrelMail version 1.2.7

    Ya, silly me, I should have pressed stop or escape! :)

    Anyhow, it's bound to happen again. In fact, when I get back
    to work on Monday, I'll see if I can cut the connection to the
    IMAP server on our server that is running it. Then I'll know for
    sure if that's the problem, and then I can reproduce it as well.

     
  • Logged In: YES
    user_id=475005

    I've got a better message this time. I couldn't copy/paste
    because the browser (Mozilla) was hogging the CPU.

    It said something about the supplied File-Handle was
    incorrect. I think my line numbers of imap_general.php I
    gave you are still correct.

    Our security guy said we could test severing the connection
    to IMAP from our server while I'm refreshing the folder
    list. If this creates the problem again, I'll quickly press
    STOP and try and get the error messages for you. We may be
    able to do that as early as this after noon.

     
  • Jason Munro
    Jason Munro
    2002-08-19

    Logged In: YES
    user_id=442854

    The usual cause of these type of errors is that the IMAP
    connection has bailed for some reason and SM is still trying
    to send/read information from a connection that is broken.
    This goes back to the sqimap_read_data_list() function in
    imap_general.php. the STABLE CVS version (and the DEVEL CVS
    version) have a rewrite of this function that *should* stop
    SM from looping when encountering a situation like this.

    HTH

    jason
    jason@stdbev.com

     
  • Logged In: YES
    user_id=285765

    Please inform us whether the STABLE cvs or vs 1.3.1 solves
    your problem... thanks.

     
  • Logged In: YES
    user_id=475005

    I certainly will. I just have to wait until our systems
    administrator has made the change. I'll send an email to him
    to let me know once he's updated.

     
  • donnie jones
    donnie jones
    2002-09-12

    Logged In: YES
    user_id=147660

    I am using SM 1.2.7 from apt-get on debian, and I get a
    similar error.

    It is reproducable if you go to:
    Options-->Folder Preferences-->Enable Unread Message
    Notification:-->All Folders

    Once this is done, I receive this error:
    Fatal error: Allowed memory size of 8388608 bytes exhausted
    (tried to allocate 9097 bytes)
    in /usr/share/squirrelmail/functions/imap_general.php on line
    137

    Feel free to email me back if you have any further questions.
    My goal by enabling all folders was to be able to see if I have
    new mail in my 9 qmail folders.

    Thanks,

    Donnie

     
  • Logged In: YES
    user_id=285765

    1.2.8 will be out in a few days, please report back if the
    problem persists... 1.2.8 should have it fixed.

     
  • Logged In: YES
    user_id=285765

    Could you give us an update whether version 1.2.8 has solved
    this problem?

     
  • donnie jones
    donnie jones
    2002-10-07

    Logged In: YES
    user_id=147660

    1.2.8 did not fix this problem.

    When I changed my Options->Folder Preferences->Enable Unread
    Message Notification:->All Folders

    I then did a refresh folder list, and here's the copy/paste
    from the folder list.

    INBOX
    INBOX.Drafts
    INBOX.Sent
    INBOX.Trash (481) (purge)

    Fatal error: Allowed memory size of 8388608 bytes exhausted
    (tried to allocate 4097 bytes) in
    /usr/share/squirrelmail/functions/imap_general.ph
    p on line 48

    Fatal error: Allowed memory size of 8388608 bytes exhausted
    (tried to allocate 136 bytes) in Unknown on line 0

    Debian Linux 2.4.18-bf2.4-xfs
    http://samj.net/debian/squirrelmail/squirrelmail_1.2.8-1_all.deb
    http://packages.debian.org/unstable/mail/uw-imapd.html
    http://packages.debian.org/unstable/mail/qmail-src.html

    Those links should give you the relevant information on my
    debian packages.

    Thanks.

    --Donnie

    If you need any more information, please let me know.

     
  • donnie jones
    donnie jones
    2002-10-07

    Logged In: YES
    user_id=147660

    Here is what my folders usually look like:

    INBOX
    INBOX.Drafts
    INBOX.Sent
    INBOX.Trash (purge)
    - Mail
    Archives
    Debian-www
    Erin
    FreeBSD-Chat
    FreeBSD-Questions
    JCC
    Linux
    OGL
    Orders
    Perl-Beginners
    Perl-Jobs
    Rogue
    Yahoo

    These additional folders where created with maildirmake.
    Inside each of these folders is a "new", "cur", and "tmp"
    folder, which is how it arranges the messages, I believe.

    Hope this helps....

     
    • labels: 102902 -->
    • milestone: 101717 -->
    • assigned_to: kink --> nobody
     
    • status: open --> closed
     
  • Logged In: YES
    user_id=285765

    Hello,

    Your report was filed against an old version of SquirrelMail. We
    have new releases out which have fixed many issues. Can you
    please test the most recent version - or even better the CVS
    version - and report if this issue still exists? Thanks!