Bug 113139 - sysutils/ucspi-tcp runtime crash on amd64 w/ fix
Summary: sysutils/ucspi-tcp runtime crash on amd64 w/ fix
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Stefan Walter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-30 00:30 UTC by Dan Smith
Modified: 2007-10-05 17:40 UTC (History)
0 users

See Also:


Attachments
ucspi-tcp-cflags.patch (538 bytes, patch)
2007-09-30 18:15 UTC, Stefan Walter
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!