本文主要是介绍编译tzdata提示内存越界 malloc(): memory corruption /bin/sh: line 1: 32317 Aborted,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
编译tzdata时,遇到如下所示的错误提示
awk -v outfile='main.zi' -f ziguard.awk africa antarctica asia australasia europe northamerica southamerica etcetera systemv factory backward \>main.zi.out
malloc(): memory corruption
/bin/sh: line 1: 32317 Aborted (core dumped) awk -v outfile='main.zi' -f ziguard.awk africa antarctica asia australasia europe northamerica southamerica etcetera systemv factory backward > main.zi.out
Makefile:563: recipe for target 'main.zi' failed
单独执行以下命令同样会报错
awk -v outfile='main.zi' -f ziguard.awk africa antarctica asia australasia europe northamerica southamerica etcetera systemv factory backward >main.zi.out
解决方法,更新awk软件包
sudo apt-get install gawk
更新后查看awk版本信息
wanggj@ubuntu:~/gateway/gateway_master/gateway/user/timezone/tzdata$ sudo apt-get install gawk
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:gawk-doc
The following NEW packages will be installed:gawk
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 401 kB of archives.
After this operation, 1,552 kB of additional disk space will be used.
Get:1 http://mirrors.aliyun.com/ubuntu bionic/main amd64 gawk amd64 1:4.1.4+dfsg-1build1 [401 kB]
Fetched 401 kB in 0s (1,160 kB/s)
Selecting previously unselected package gawk.
(Reading database ... 166897 files and directories currently installed.)
Preparing to unpack .../gawk_1%3a4.1.4+dfsg-1build1_amd64.deb ...
Unpacking gawk (1:4.1.4+dfsg-1build1) ...
Setting up gawk (1:4.1.4+dfsg-1build1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
wanggj@ubuntu:~/gateway/gateway_master/gateway/user/timezone/tzdata$ awk -W version
GNU Awk 4.1.4, API: 1.1 (GNU MPFR 4.0.1, GNU MP 6.1.2)
Copyright (C) 1989, 1991-2016 Free Software Foundation.
这篇关于编译tzdata提示内存越界 malloc(): memory corruption /bin/sh: line 1: 32317 Aborted的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!