1

Topic: OpenBSD 6.6 upgrade iRedAPD crash

# cat /etc/iredmail-release                                                                                                                               
0.9.9 LDAPD edition.
OpenBSD upgraded to 6.6
Nginx

So.. I jumped the gun and upgraded my distro to 6.6.  iRedAPD is now crashing (or really failing to start) and consequently postfix is kicking off errors.  When I call it from the command line I get the following output:

# python2 /opt/iredapd/iredapd.py                                                                                                                                       
python2(46918) in free(): bogus pointer (double free?) 0xffffffffffffffff
Abort trap (core dumped)

Here is the version of python2 that is installed:
python-2.7.16p1

I've downloaded and installed the lastest version of iRedAPD, 3.2.  I tried rolling back to older versions but still the same python2 crash.

I do not know how to debug python so I'm at a loss, however I can run debuggers and step through code if shown how for python. 

Thank you very much!!

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: OpenBSD 6.6 upgrade iRedAPD crash

It's a known bug and i reported to upstreams:

- python-ldap project: https://github.com/python-ldap/python-ldap/issues/305
- OpenBSD ports@: https://marc.info/?l=openbsd-ports& … 33&w=2

please help push them to evaluate and fix the issue.

As a temporarily solution, you have to:

- disable iredapd in Postfix
- Stop mlmmjadmin and iRedAdmin(-Pro) services.

3

Re: OpenBSD 6.6 upgrade iRedAPD crash

Upstream, figures.  I have limited contact with an openbsd porter, maybe i can get some traction with py-ldap.

How do I disable iredapd in postfix?  Comment out any reference to any of the .pcre files in master.cf and main.cf?

I might just try to cut over to mysql, I'm much more comfortable working with it than LDAP.  I found a post that you made about the topic, I can fiddle with that in the mean time.

Thank you so much for your reply Zhang!

4

Re: OpenBSD 6.6 upgrade iRedAPD crash

pgatling wrote:

How do I disable iredapd in postfix?  Comment out any reference to any of the .pcre files in master.cf and main.cf?

Nevermind, found the answer that you had already provided by my big bad self!  Thanks again Zhang, iRedMail is awesome!
https://docs.iredmail.org/manage.iredap … pd-service

5

Re: OpenBSD 6.6 upgrade iRedAPD crash

I'm working with a Taiwan OpenBSD developer/porter with this issue, but no guarantee that it will be fixed soon.

6

Re: OpenBSD 6.6 upgrade iRedAPD crash

ZhangHuangbin wrote:

I'm working with a Taiwan OpenBSD developer/porter with this issue, but no guarantee that it will be fixed soon.

This is what I got back from Mastodon:

kurtm wrote:

This is actively being worked upon. It is a conflict between our libutil and an LDAP library. Last I saw the proposed fix is being tested in current before we try to roll it to stable.

Sounds promising!

7

Re: OpenBSD 6.6 upgrade iRedAPD crash

Seems fixed in OpenBSD base system yesterday (Oct 24):
https://marc.info/?l=openbsd-cvs&m= … 93&w=2

Since this bug affects many softwares, I expect OpenBSD team to release an errata soon.

8

Re: OpenBSD 6.6 upgrade iRedAPD crash

ZhangHuangbin wrote:

Seems fixed in OpenBSD base system yesterday (Oct 24):
https://marc.info/?l=openbsd-cvs&m= … 93&w=2

Since this bug affects many softwares, I expect OpenBSD team to release an errata soon.

Excellent news!  I'll keep my syspatch up to date and test iredapd.py accordingly.

9

Re: OpenBSD 6.6 upgrade iRedAPD crash

pgatling wrote:

Excellent news!  I'll keep my syspatch up to date and test iredapd.py accordingly.

Looks like the recent syspatch cleared it up:

# syspatch                                                                                                                                               
Get/Verify syspatch66-001_bpf.tgz 100% |************************************************************************************************|   102 KB    00:00   
Installing patch 001_bpf
Get/Verify syspatch66-002_ber.tgz 100% |************************************************************************************************|   660 KB    00:01   
Installing patch 002_ber
Relinking to create unique kernel... done; reboot to load the new kernel
Errata can be reviewed under /var/syspatch
# python2 /opt/iredapd/iredapd.py
#

AWESOME!!

10

Re: OpenBSD 6.6 upgrade iRedAPD crash

Thanks for the update. I will update iRedMail and iRedMail Easy to support OpenBSD 6.6 today.