Date: Tue, 16 Feb 2010 11:14:57 GMT From: Katsuyoshi OHARA <ohara@air.s.kanazawa-u.ac.jp> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/143999: On FreeBSD/amd64, the software crash if the environment variable LANG is defined. Message-ID: <201002161114.o1GBEvbs046451@www.freebsd.org> Resent-Message-ID: <201002161120.o1GBK1tl067444@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002161114.o1GBEvbs046451>