From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079271218345.tru64-unix-managers.marc@archive.invalid> From: Richard Jackson Date: Tue, 04 Jan 2000 14:07:20 +0000 To: tru64-unix-managers Subject: SUMMARY: Elm 2.5.2 segvi under Digital UNIX 4.0D pk#3 X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079271218345 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@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