Bug 113139

Summary: sysutils/ucspi-tcp runtime crash on amd64 w/ fix
Product: Ports & Packages Reporter: Dan Smith <dan>
Component: Individual Port(s)Assignee: Stefan Walter <stefan>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
ucspi-tcp-cflags.patch none

Description Dan Smith 2007-05-30 00:30:04 UTC
if the -O2 flag is passed to gcc, tcpserver will crash upon startup in dns_rcrw.c:92

Fix: 

To fix on affected systems, change the "sysutils/ucspi-tcp/work/ucspi-tcp-0.88/conf-cc" 

from:
cc -O2 -fno-strict-aliasing -pipe

to:
cc -fno-strict-aliasing -pipe
How-To-Repeat: build sysutils/ucspi-tcp from ports on a amd64 with gcc 3.4.6, and run the tcpserver program.


[root@tara /usr/ports/sysutils/ucspi-tcp]# gcc -v
Using built-in specs.
Configured with: FreeBSD/amd64 system compiler
Thread model: posix
gcc version 3.4.6 [FreeBSD] 20060305
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-05-30 00:30:28 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2007-09-24 08:39:14 UTC
State Changed
From-To: feedback->open

Maintainer was reset.
Comment 3 Stefan Walter freebsd_committer freebsd_triage 2007-09-30 18:15:51 UTC
Hi Dan,

I don't have access to an amd64 machine. If the problem still exists,
could you try the attached patch for the port and let me know if it fixes
the problem for you?

Thanks and regards,
Stefan
Comment 4 Stefan Walter freebsd_committer freebsd_triage 2007-09-30 18:16:01 UTC
Responsible Changed
From-To: freebsd-ports-bugs->stefan

Take.
Comment 5 Dan Smith 2007-10-04 23:25:37 UTC
Hi Stefan,

I have tested your patch to the Makefile on our AMD64 machines, and it
does correct the problem.  Thanks for looking into this!

Cheers,
Dan

Stefan Walter wrote:
> Hi Dan,
> 
> I don't have access to an amd64 machine. If the problem still exists,
> could you try the attached patch for the port and let me know if it fixes
> the problem for you?
> 
> Thanks and regards,
> Stefan
> 


-- 
Dan Smith
+1 608-213-2867
Algenta Technologies, LLC
http://www.algenta.com
Comment 6 dfilter service freebsd_committer freebsd_triage 2007-10-05 17:36:55 UTC
stefan      2007-10-05 16:36:46 UTC

  FreeBSD ports repository

  Modified files:
    sysutils/ucspi-tcp   Makefile 
  Log:
  Restrict optimization to -O - -O2 causes problems at least on amd64.
  
  PR:             113139
  Submitted by:   Dan Smith<dan@algenta.com>
  
  Revision  Changes    Path
  1.29      +2 -0      ports/sysutils/ucspi-tcp/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 7 Stefan Walter freebsd_committer freebsd_triage 2007-10-05 17:37:07 UTC
State Changed
From-To: open->closed

Fix committed, thanks!