SUMMARY: Elm 2.5.2 segvi under Digital UNIX 4.0D pk#3

From: Richard Jackson <rjackson_at_portal.gmu.edu>
Date: Tue, 04 Jan 2000 09:07:20 -0500 (EST)

ANSWER:
I received no responses but I was able to find the bug with elm and not
with our glorious Digital UNIX C optimizer. If '#define DONT_ADD_FROM'
is commented out of config.h, then this exposed a bug in
src/sndhdrs.c. I have sent a bug report to flash_at_virginia.edu per the
elm man pages. The patch is...

osf1.gmu.edu#diff -c sndhdrs.c.orig sndhdrs.c
*** sndhdrs.c.orig Thu Mar 14 12:29:54 1996
--- sndhdrs.c Sun Jan 2 22:53:09 2000
***************
*** 71,76 ****
--- 71,77 ----
  
  #ifndef DONT_ADD_FROM
  static char *outbound_from_name(buf)
+ char *buf;
  {
  #ifdef MMDF
      if (streq(submitmail, mailer)) {

Basically, since buf was not declared in outbound_from_name(), it was assumed
to be integer type. So, I added 'char *buf;'

QUESTIONS:
------------------------------------------------------------------------
Has anyone built, installed, and used Elm 2.5.2 under Digital UNIX 4.0D pk#3?
I noted that it segvi's while trying to send email if compiled with -O using
Digital's C compiler -- cc. However, if I specify no compile options, then
I am not able to cause it to segvi.

--------------
Send message now? Send


Received Segment Violation signal!
Emergency exit taken!
Preserving editor composition file "/tmp/snd.2831" ...
--------------

Of course I am not sure the 'problem' is solved. There could be a problem
with the optimizer or elm code. If you built under this configuration, then
please send me your elm config.sh file so I can compare.
------------------------------------------------------------------------

-- 
Regards,
Richard Jackson
Computer Center Lead Engineer,
Central Systems & Dept. UNIX Consulting
University Computing & Information Systems (UCIS)
George Mason University, Fairfax, Virginia
Received on Tue Jan 04 2000 - 14:08:10 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:40 NZDT