From: "Carlo E. Prelz" <fluido@fluido.as>
To: mlmmj@mlmmj.org
Subject: [mlmmj] Pointer-flakiness
Date: Sun, 12 Feb 2023 07:34:22 +0000 [thread overview]
Message-ID: <20230212073422.GA5474@povariello> (raw)
Dear all,
I have been subscribed to this list for many years even if I had
stopped using the software. The traffic is small enough that I did not
feel like canceling the subscription.
I recently had the need to set up a small mailing list for
family-related business, so I went to get file
mlmmj-RELEASE_1_4_0_a2.tar.gz, expecting I'd be quickly up and running
with my new list.
The result was one sunday morning spent in debugging mode, hunting
segmentation faults. I eventually corrected two bugs:
1) In file utils.c, function strtoim, line 46, you have
*errpp = NULL;
but the function parameter **errpp can be passed as null - this
happens in mlmmj-send.c. In that case, you have a segfault. I modified
the line to
if(errpp)
*errpp=NULL;
but I cannot say whether this is the correct fix.
2) In file mlmmj-maintd.c, in function resend_queue, line 152, you
have
char *mailname, *fromname, *toname, *reptoname, *from, *to, *repto;
I have found that at least one of the above variables (I cannot
remember which one - this happened a couple of weekends ago) had to be
initialized, otherwise I'd have another segfault. I changed the line
to
char *mailname=NULL,*fromname=NULL,*toname=NULL,*reptoname=NULL,*from=NULL,*to=NULL,*repto=NULL;
just to make sure. Sadly, even after that, I could not manage to have
my simple list running - another segfault popped up.
I was about to run out of time, so I decided to go back to the old
source I had (1.2.15, from 2012), freshly compiled it and quickly had
my list up and running.
This message is intended as a good old-fashioned bug-report, but also
as a warning light about some sort of pointer-flakiness that seems to
have percolated into the source code. Sadly, I suffer from terminal
time scarcity, so I am not able to do further debugging. But I am
surprised at how the code in the current state is able to run at
all. Trying to write something to address 0 should always have the
effect of killing any healthy process...
Best
Carlo
--
* Se la Strada e la sua Virtu' non fossero state messe da parte,
* K * Carlo E. Prelz - fluido@fluido.as che bisogno ci sarebbe
* di parlare tanto di amore e di rettitudine? (Chuang-Tzu)
next reply other threads:[~2023-02-12 7:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-12 7:34 Carlo E. Prelz [this message]
2023-02-12 7:54 ` [mlmmj] Pointer-flakiness Baptiste Daroussin
2023-02-12 8:59 ` Baptiste Daroussin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230212073422.GA5474@povariello \
--to=fluido@fluido.as \
--cc=mlmmj@mlmmj.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).