<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>httpd segfaults with sidebar.php</title> 
  <pubDate>Fri, 10 Apr 2026 13:26:31 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/7050</link> 
  <atom:link rel="self" type="application/rss+xml" title="httpd segfaults with sidebar.php" href="https://bugs.horde.org/ticket/7050/rss" /> 
  <description>httpd segfaults with sidebar.php</description> 
 
   
   
  <item> 
   <title>I know you usually reply that &quot;segfaults are not caused by h</title> 
   <description>I know you usually reply that &quot;segfaults are not caused by horde&quot;, but there seems to be some kind of recursion somewhere that causes php to segfault.



The problem seems to be related to either the pear-package Horde/Tree.php

or imp/lib/Block/tree_folders.php



Please look at 

https://bugzilla.redhat.com/show_bug.cgi?id=454219



</description> 
   <pubDate>Wed, 09 Jul 2008 12:38:19 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7050#t47403</link> 
  </item> 
   
  <item> 
   <title>See https://bugzilla.redhat.com/show_bug.cgi?id=454219#c12 f</title> 
   <description>See https://bugzilla.redhat.com/show_bug.cgi?id=454219#c12 for most relevant bit.</description> 
   <pubDate>Wed, 09 Jul 2008 14:44:00 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7050#t47406</link> 
  </item> 
   
  <item> 
   <title>Michael, looks like you did the commit in question (http://c</title> 
   <description>Michael, looks like you did the commit in question (http://cvs.horde.org/diff.php/imp/lib/Block/tree_folders.php?r1=1.69&amp;r2=1.70) - do you remember what this was for?</description> 
   <pubDate>Wed, 09 Jul 2008 17:39:59 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7050#t47407</link> 
  </item> 
   
  <item> 
   <title>&gt; Michael, looks like you did the commit in question 

&gt; (ht</title> 
   <description>&gt; Michael, looks like you did the commit in question 

&gt; (http://cvs.horde.org/diff.php/imp/lib/Block/tree_folders.php?r1=1.69&amp;r2=1.70) - do you remember what this was 

&gt; for?



Well... besides the fact that without that code *no* mailboxes show up, it&#039;s kind of just a little bit important.



I don&#039;t see anything wrong with that code.  We want to show mailboxes in the bottom level of the namespace (when $val[&#039;level&#039;] is empty) directly under the &#039;imp&#039; entry (which is what $parent should be).  However, we can&#039;t directly use &quot;$parent . $val[&#039;parent&#039;]&quot; as the parent ID in this case because $val[&#039;parent&#039;] is equal to IMPTREE_BASE_ELT -- which is &#039;%&#039;.  The parent entry &quot;imp%&quot; does not exist, obviously, so none of these folders (nor any of its children) will ever show up.



IMPTREE_BASE_ELT used to be equal to \01 I belive which would allowed this code to work before 6/07.  For various reasons, using \01 to stand for the base was not a good idea, so thus the need to catch the space &#039;base level&#039; case.</description> 
   <pubDate>Wed, 09 Jul 2008 23:18:35 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7050#t47425</link> 
  </item> 
   
  <item> 
   <title>So the real question is why, on line 86, is $val[&#039;value&#039;] em</title> 
   <description>So the real question is why, on line 86, is $val[&#039;value&#039;] empty?  It is impossible to have an empty mailbox name.  That&#039;s the real problem - this has nothing to do with the 1.70 change.</description> 
   <pubDate>Wed, 09 Jul 2008 23:22:58 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7050#t47428</link> 
  </item> 
   
  <item> 
   <title>If you give me some hints on where to start looking to find </title> 
   <description>If you give me some hints on where to start looking to find out why the variable is empty, so I don&#039;t have to search and grep everywhere in the code, I&#039;ll be happy to do so.</description> 
   <pubDate>Thu, 10 Jul 2008 06:26:26 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7050#t47431</link> 
  </item> 
   
  <item> 
   <title>&gt; If you give me some hints on where to start looking to fin</title> 
   <description>&gt; If you give me some hints on where to start looking to find out why 

&gt; the variable is empty, so I don&#039;t have to search and grep everywhere 

&gt; in the code, I&#039;ll be happy to do so.



print_r($tree_ob);

right after line 65 ($tree_ob = $imptree-&gt;build($mask, null, null, false);) would be most useful.</description> 
   <pubDate>Tue, 15 Jul 2008 04:54:21 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7050#t47522</link> 
  </item> 
   
  <item> 
   <title>Tree_ob



Array

(

    [0] =&gt; Array

        (

          </title> 
   <description>Tree_ob



Array

(

    [0] =&gt; Array

        (

            [0] =&gt; Array

                (

                    [display] =&gt; 

                    [peek] =&gt; 

                )



        )



    [1] =&gt; Array

        (

        )



    [2] =&gt; Array

        (

            [0] =&gt; 

        )



)

</description> 
   <pubDate>Tue, 15 Jul 2008 08:55:00 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7050#t47541</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

http://cvs.h</title> 
   <description>Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/imp/lib/IMAP/Tree.php?r1=1.200&amp;r2=1.201&amp;ty=u</description> 
   <pubDate>Tue, 15 Jul 2008 17:38:35 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7050#t47556</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

http://cvs.h</title> 
   <description>Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/imp/lib/IMAP/Tree.php?r1=1.25.2.56&amp;r2=1.25.2.57&amp;ty=u</description> 
   <pubDate>Tue, 15 Jul 2008 17:41:24 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7050#t47557</link> 
  </item> 
   
  <item> 
   <title>Fixed in IMP 4.2.1.  For a bug report like this, it would ha</title> 
   <description>Fixed in IMP 4.2.1.  For a bug report like this, it would have been very helpful to know that you either have folders turned off in IMP&#039;s conf or you are using POP3.</description> 
   <pubDate>Tue, 15 Jul 2008 17:44:12 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7050#t47558</link> 
  </item> 
   
  <item> 
   <title>Uhm.

I am using IMAP, and folders are enabled:



grep fold</title> 
   <description>Uhm.

I am using IMAP, and folders are enabled:



grep folders horde/imp/config/conf.php 

$conf[&#039;user&#039;][&#039;allow_folders&#039;] = true;

$conf[&#039;server&#039;][&#039;cache_folders&#039;] = true;





Cvs seems unavailable now, but I added your patch and re-added the lines I commented out, and still have a segfault in sidebar.php



Any other print_r()s you want? </description> 
   <pubDate>Tue, 15 Jul 2008 19:43:22 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7050#t47560</link> 
  </item> 
   
  <item> 
   <title>I turned on some more debug in horde, and there seems to be </title> 
   <description>I turned on some more debug in horde, and there seems to be a problem with the imap-config.



I&#039;m getting these in my debug.log:

Jul 15 23:24:03 HORDE [debug] [imp] IMAP errors: Can&#039;t open mailbox {/}: invalid remote specification Can&#039;t open mailbox {/}: invalid remote specification Can&#039;t open mailbox {/}: invalid remote specification Can&#039;t open mailbox {/}: invalid remote specification Can&#039;t open mailbox {/}: invalid remote specification [pid 6125 on line 184 of &quot;/usr/share/horde/imp/lib/IMAP.php&quot;]



Just to be sure, I tested http://server/imp/test.php and entering my server name and login-info there worked fine.



imp/config/servers.php only contains



        # &#039;server&#039; =&gt; &#039;mail.olen.net&#039;,

        # &#039;protocol&#039; =&gt; &#039;imap/notls&#039;,

        # &#039;port&#039; =&gt; 143,



$servers[&#039;imap&#039;] = array(

        &#039;name&#039; =&gt; &#039;Lupus&#039;,

        &#039;server&#039; =&gt; &#039;mail.olen.net&#039;,

        &#039;protocol&#039; =&gt; &#039;imap/tls/novalidate-cert&#039;,

        &#039;port&#039; =&gt; &#039;143&#039;,

        &#039;hordeauth&#039; =&gt; true,

        &#039;maildomain&#039; =&gt; &#039;olen.net&#039;,

        &#039;smtphost&#039; =&gt; &#039;smtp.nytt.no&#039;,

        &#039;smtpport&#039; =&gt; 25,

        &#039;realm&#039; =&gt; &#039;&#039;,

        &#039;preferred&#039; =&gt; &#039;&#039;,

);



(I tested both notls and tls/novalidate-cert but to no avail).</description> 
   <pubDate>Tue, 15 Jul 2008 21:29:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7050#t47563</link> 
  </item> 
   
  <item> 
   <title>Line 303 in imp/lib/IMAP/Tree.php, right before &quot;foreach ($t</title> 
   <description>Line 303 in imp/lib/IMAP/Tree.php, right before &quot;foreach ($this-&gt;_namespaces..&quot;, do both



print_r($this-&gt;_namespaces);

print_r($this-&gt;_server);



Still don&#039;t know why you are not seeing the INBOX though because the INBOX is explicitly defined in the results on line 298, so even if the imap_list/imap_lsub calls fail, it still should at least return INBOX.</description> 
   <pubDate>Tue, 15 Jul 2008 22:22:07 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7050#t47564</link> 
  </item> 
   
  <item> 
   <title>Both _namespaces and _server is &quot;{/}&quot;



Also, if I do a tcp</title> 
   <description>Both _namespaces and _server is &quot;{/}&quot;



Also, if I do a tcpdump of port 143, I don&#039;t see any traffic at all on that port, so it seems like horde is never actually trying to connect to the IMAP-server.</description> 
   <pubDate>Wed, 16 Jul 2008 09:02:50 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7050#t47579</link> 
  </item> 
   
  <item> 
   <title>a print_r($mbox); on line 144 in imp/lib/IMAP.php (inside op</title> 
   <description>a print_r($mbox); on line 144 in imp/lib/IMAP.php (inside openIMAPStream) shows an empty string, which seems a bit strange.



</description> 
   <pubDate>Wed, 16 Jul 2008 09:16:03 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7050#t47580</link> 
  </item> 
   
  <item> 
   <title>&gt; Both _namespaces and _server is &quot;{/}&quot;



This makes absolu</title> 
   <description>&gt; Both _namespaces and _server is &quot;{/}&quot;



This makes absolutely no sense.  _namespaces must be an array, and _server should be of the form {host/protocol}.



For whatever reason, IMP&#039;s session variables are not being set (you might want to do a print_r($_SESSION[&#039;imp&#039;]) anywhere in IMP code to see what is happening).  </description> 
   <pubDate>Fri, 18 Jul 2008 17:41:14 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7050#t47639</link> 
  </item> 
   
  <item> 
   <title>Ping?</title> 
   <description>Ping?</description> 
   <pubDate>Tue, 29 Jul 2008 03:27:40 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7050#t47866</link> 
  </item> 
   
  <item> 
   <title>Sorry.

Been away for a while.



I added a print_r($_SESSIO</title> 
   <description>Sorry.

Been away for a while.



I added a print_r($_SESSION[&#039;imp&#039;]) to openIMAPStream() (in imp/lib/IMAP.php)



This is parsed several times when I click &quot;mail&quot; and



$_SESSION[&#039;imp&#039;][namespace] is always empty.



Here is the complete array:



Array

(

    [namespace] =&gt; 

    [cache] =&gt; Array

        (

            [imp_tree] =&gt; Array

                (

                    [s] =&gt; Array

                        (

                            [0] =&gt; 6

                        )



                    [ob] =&gt; O:8:&quot;IMP_Tree&quot;:17:{s:5:&quot;_tree&quot;;a:1:{s:1:&quot;%&quot;;a:2:{s:1:&quot;a&quot;;i:64;s:1:&quot;v&quot;;s:1:&quot;%&quot;;}}s:11:&quot;_currparent&quot;;N;s:8:&quot;_currkey&quot;;N;s:10:&quot;_currstack&quot;;a:0:{}s:10:&quot;_showunsub&quot;;b:0;s:7:&quot;_parent&quot;;a:0:{}s:5:&quot;_poll&quot;;N;s:9:&quot;_expanded&quot;;N;s:11:&quot;_subscribed&quot;;N;s:8:&quot;_changed&quot;;b:0;s:10:&quot;_unsubview&quot;;b:0;s:10:&quot;_imap_sort&quot;;N;s:7:&quot;_server&quot;;s:3:&quot;{/}&quot;;s:10:&quot;_delimiter&quot;;N;s:11:&quot;_namespaces&quot;;N;s:8:&quot;_eltdiff&quot;;N;s:10:&quot;_forceopen&quot;;b:0;}

                )



            [folder_cache] =&gt; Array

                (

                    [835cd6d32792d188273817906dbc9b77] =&gt; 1916acc2f7363afd4b855fcbd6f4e675

                )



        )



    [viewmode] =&gt; imp

)



</description> 
   <pubDate>Wed, 30 Jul 2008 14:27:40 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7050#t47913</link> 
  </item> 
   
  <item> 
   <title>This makes absolutely no sense.  Your imp session variable *</title> 
   <description>This makes absolutely no sense.  Your imp session variable *must* contain, at a minimum, 20-30 different values (see the top of imp/lib/Session.php).  You have absolutely no username/password information, for example.  You probably have a critical error in your authentication somewhere but this configuration error is a support issue that should be dealt with on the lists, not the bug tracker.</description> 
   <pubDate>Sun, 03 Aug 2008 21:53:49 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7050#t47973</link> 
  </item> 
   
  <item> 
   <title>I have now debugged a bit more (and googled for similar prob</title> 
   <description>I have now debugged a bit more (and googled for similar problems) and there seems to be two (unrelated) issues here.



The main issue seems to be that i had hordeauth set in servers.php

I would still like to keep it that way, but there seems to be a problem i redirect.php so $imapuser is not set, and this causes the test on line 154

 if (($imapuser !== null) &amp;&amp; ($pass !== null)) {

to fail so it never really logs in on the server.



The second issue is that if I unset hordauth in servers.php, but keeps $conf[&#039;server&#039;][&#039;server_list&#039;] = &#039;none&#039;; in conf.php I somehow end up in an endless redirect loop.



After changing this to &quot;hidden&quot; and removing &quot;hordeauth&quot; from servers.php I am at least able to log in and use horde again.  But I&#039;d like to get rid of the extra login to imp, when I have the same user/pass on the mailserver as in horde.

</description> 
   <pubDate>Mon, 18 Aug 2008 16:13:07 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7050#t48265</link> 
  </item> 
   
  <item> 
   <title>&gt; The main issue seems to be that i had hordeauth set in ser</title> 
   <description>&gt; The main issue seems to be that i had hordeauth set in servers.php

&gt; I would still like to keep it that way, but there seems to be a 

&gt; problem i redirect.php so $imapuser is not set, and this causes the 

&gt; test on line 154

&gt;  if (($imapuser !== null) &amp;&amp; ($pass !== null)) {

&gt; to fail so it never really logs in on the server.

&gt;

&gt; The second issue is that if I unset hordauth in servers.php, but 

&gt; keeps $conf[&#039;server&#039;][&#039;server_list&#039;] = &#039;none&#039;; in conf.php I somehow 

&gt; end up in an endless redirect loop.

&gt;

&gt; After changing this to &quot;hidden&quot; and removing &quot;hordeauth&quot; from 

&gt; servers.php I am at least able to log in and use horde again.  But 

&gt; I&#039;d like to get rid of the extra login to imp, when I have the same 

&gt; user/pass on the mailserver as in horde.



Sounds like you have some configuration errors.  These support issues are best asked on the mailing lists.



Please use the mailing list to ask for support.

http://www.horde.org/mail/ contains a list of all available mailing lists.

Please use the mailing list to ask for support.

http://www.horde.org/mail/ contains a list of all available mailing lists.</description> 
   <pubDate>Fri, 22 Aug 2008 06:03:41 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7050#t48359</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
