Author Topic: Return of Bug 2101 - Infinite recursion  (Read 5212 times)

Offline ThOr101

  • Newbie
  • *
  • Posts: 4
Return of Bug 2101 - Infinite recursion
« on: March 17, 2016, 09:05:25 PM »
I think this bug has come back.
https://lists.kolabsys.com/pipermail/bugzilla/2013-August/010518.html

[16-Mar-2016 19:08:46 America/New_York] PHP Fatal error:  Maximum function nesting level of '100' reached, aborting! in /usr/share/roundcube/program/lib/Roundcube/rcube_washtml.php on line 291
[16-Mar-2016 19:08:46 America/New_York] PHP Stack trace:
[16-Mar-2016 19:08:46 America/New_York] PHP   1. {main}() /usr/share/roundcube/index.php:0
[16-Mar-2016 19:08:46 America/New_York] PHP   2. include_once() /usr/share/roundcube/index.php:285
[16-Mar-2016 19:08:46 America/New_York] PHP   3. rcmail_output_html->send() /usr/share/roundcube/program/steps/mail/show.inc:296
[16-Mar-2016 19:08:46 America/New_York] PHP   4. rcmail_output_html->parse() /usr/share/roundcube/program/include/rcmail_output_html.php:364
[16-Mar-2016 19:08:46 America/New_York] PHP   5. rcmail_output_html->parse_xml() /usr/share/roundcube/program/include/rcmail_output_html.php:504
[16-Mar-2016 19:08:46 America/New_York] PHP   6. preg_replace_callback() /usr/share/roundcube/program/include/rcmail_output_html.php:804
[16-Mar-2016 19:08:46 America/New_York] PHP   7. rcmail_output_html->xml_command() /usr/share/roundcube/program/include/rcmail_output_html.php:804
[16-Mar-2016 19:08:46 America/New_York] PHP   8. call_user_func() /usr/share/roundcube/program/include/rcmail_output_html.php:924
[16-Mar-2016 19:08:46 America/New_York] PHP   9. rcmail_message_body() /usr/share/roundcube/program/include/rcmail_output_html.php:924
[16-Mar-2016 19:08:46 America/New_York] PHP  10. rcmail_print_body() /usr/share/roundcube/program/steps/mail/func.inc:1127
[16-Mar-2016 19:08:46 America/New_York] PHP  11. rcmail_wash_html() /usr/share/roundcube/program/steps/mail/func.inc:713
[16-Mar-2016 19:08:46 America/New_York] PHP  12. rcube_washtml->wash() /usr/share/roundcube/program/steps/mail/func.inc:681
[16-Mar-2016 19:08:46 America/New_York] PHP  13. rcube_washtml->dumpHtml() /usr/share/roundcube/program/lib/Roundcube/rcube_washtml.php:381
[16-Mar-2016 19:08:46 America/New_York] PHP  14. rcube_washtml->dumpHtml() /usr/share/roundcube/program/lib/Roundcube/rcube_washtml.php:330
[16-Mar-2016 19:08:46 America/New_York] PHP  15. rcube_washtml->dumpHtml() /usr/share/roundcube/program/lib/Roundcube/rcube_washtml.php:321
[16-Mar-2016 19:08:46 America/New_York] PHP  16. rcube_washtml->dumpHtml() /usr/share/roundcube/program/lib/Roundcube/rcube_washtml.php:321
[16-Mar-2016 19:08:46 America/New_York] PHP  17. rcube_washtml->dumpHtml() /usr/share/roundcube/program/lib/Roundcube/rcube_washtml.php:321
[16-Mar-2016 19:08:46 America/New_York] PHP  18. rcube_washtml->dumpHtml() /usr/share/roundcube/program/lib/Roundcube/rcube_washtml.php:321
[16-Mar-2016 19:08:46 America/New_York] PHP  19. rcube_washtml->dumpHtml() /usr/share/roundcube/program/lib/Roundcube/rcube_washtml.php:321
[16-Mar-2016 19:08:46 America/New_York] PHP  20. rcube_washtml->dumpHtml() /usr/share/roundcube/program/lib/Roundcube/rcube_washtml.php:321
<SNIP>
PHP  99. rcube_washtml->dumpHtml() /usr/share/roundcube/program/lib/Roundcube/rcube_washtml.php:321

It appears to happen with e-mails that have attachements.  First one was an e-mail with an HTML attachment.  This one has a PDF attachment.

uname -a
Linux postoffice 3.13.0-83-generic #127-Ubuntu SMP Fri Mar 11 00:25:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

 more /etc/issue
Ubuntu 14.04.4 LTS \n \l

 php -v
PHP 5.5.9-1ubuntu4.14 (cli) (built: Oct 28 2015 01:34:46)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
    with Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans

I can still access / read all other e-mail.  It's just these two (that are the same with the same PDF) and the html message (since deleted using alpine).

Let me know what else I can post to be helpful, or if someone wants me to forward the message in question.

Thanks.

Offline ThOr101

  • Newbie
  • *
  • Posts: 4
Re: Return of Bug 2101 - Infinite recursion
« Reply #1 on: March 17, 2016, 09:08:44 PM »
Extra info.  I made an incorrect assumption, it does not have a PDF in it.  Alpine says it contains this:

Parts/Attachments:
   1     OK     ~46 lines  Text
   2.1 Shown   ~145 lines  Text
   2.2          4.8 KB     Image
----------------------------------------


Offline alec

  • Hero Member
  • *****
  • Posts: 1,363
Re: Return of Bug 2101 - Infinite recursion
« Reply #2 on: March 18, 2016, 03:15:04 AM »
This has nothing to do with attachments. This is HTML parsing routine. Looks like HTML content may be invalid or just crazy (many nested tags). You can change the nesting limit in php.ini.

We fixed this once to prevent from the fatal error here. What version are you using?

Offline ThOr101

  • Newbie
  • *
  • Posts: 4
Re: Return of Bug 2101 - Infinite recursion
« Reply #3 on: March 18, 2016, 08:08:14 PM »
Hmm, thanks for the tip.
I just realized the version I'm using might be a bit old.
Roundcube Webmail 0.9.5

Should I expect this bug to go away when I upgrade?

Thanks.

ThOr101

Offline alec

  • Hero Member
  • *****
  • Posts: 1,363
Re: Return of Bug 2101 - Infinite recursion
« Reply #4 on: March 20, 2016, 03:17:06 AM »
Yes. It was fixed in 1.0.

Offline ThOr101

  • Newbie
  • *
  • Posts: 4
Re: Return of Bug 2101 - Infinite recursion
« Reply #5 on: March 20, 2016, 07:43:52 PM »
Thank you Alec,
sorry for the false report then.
I appreciate your response, and everyone's work on this project.