ports/143999: On FreeBSD/amd64, the software crash if the environment variable LANG is defined.

Katsuyoshi OHARA ohara at air.s.kanazawa-u.ac.jp
Tue Feb 16 11:20:01 UTC 2010


>Number:         143999
>Category:       ports
>Synopsis:       On FreeBSD/amd64, the software crash if the environment variable LANG is defined.
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 16 11:20:00 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Katsuyoshi OHARA
>Release:        FreeBSD 8.0-RELEASE amd64
>Organization:
Kanazawa University
>Environment:
FreeBSD air.s.kanazawa-u.ac.jp 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Tue Jan  5 21:11:58 UTC 2010     root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
In the source,  stdlib.h is not included.
So the function getenv is not declared and has the return type of int.
The type casting from integer to pointer causes a segmentation violation
if getenv("LANG") != 0.

>How-To-Repeat:
$ LANG=ja_JP.eucJP
$ export LANG
$ ack -h
>Fix:
I send a patch file "ports/japanese/ack/files/patch-ab".

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list