计算化学公社

 找回密码 Forget password
 注册 Register
Views: 3044|回复 Reply: 6
打印 Print 上一主题 Last thread 下一主题 Next thread

[Gaussian/gview] 求助在Ubuntu 中运行G16 在shell中出现Segmentation fault报错,但log中没有提示

[复制链接 Copy URL]

6

帖子

0

威望

55

eV
积分
61

Level 2 能力者

跳转到指定楼层 Go to specific reply
楼主
我是新手。在运行g16时遇到了“Segmentation fault”报错。该报错打印在Shell中,在log文件里面我没有找到相应的错误提示。完全相同的输入文件在另外一台服务器中可以正常的运行,算出结果。
另外,尝试将内存改为1000WM或者去掉%mem,以及去掉%nproc没有解决问题,报错相同。
我在网上找了一些回答都是单纯针对C/C++的,例如:
1.(139条消息) Segmentation Fault错误原因总结_喜欢恋着风的博客-CSDN博客_segmentationfault
2.Segmentation fault细谈 - 知乎 (zhihu.com)

对于怎么从g16软件的层面或者直接从linux的层面解决问题暂时没有找到。
因为我不会C/C++所以看完之后也不知道该怎么办。希望站中的老师们能帮忙找一找原因,不胜感激!

我的gjf输入文件如下:--------------------------------------------------------------------------------------------
%chk=/home/server/gw/chk/Mg-MEDJOW-2.chk
%mem=5GB
%nproc=32
# M062X/Def2SVP opt freq

Mg-MEDJOW-2

1 1
Mg1 -3.3382 5.6034 5.0723
O1 -4.6535 6.5395 6.3997
C1 -5.9757 6.2507 6.0305
O2 -6.2124 5.5478 5.0624
C2 -7.0224 6.8798 6.9265
C3 -6.547 7.6459 7.9766
C4 -7.4135 8.2674 8.8577
C5 -8.7609 8.1507 8.7276
C6 -9.3132 7.384 7.6785
C7 -10.716 7.2595 7.5389
C8 -11.2558 6.5223 6.5304
C9 -10.4365 5.8838 5.6268
C10 -9.0791 5.976 5.7228
C11 -8.4434 6.7294 6.7514
H1 -5.4836 7.7801 8.1375
H2 -7.0083 8.861 9.6705
H3 -9.4162 8.6496 9.434
H4 -11.3703 7.7588 8.2459
H5 -12.3336 6.4376 6.4383
H6 -10.8772 5.2985 4.8265
H7 -8.4921 5.4507 4.9815



-----------------------------------------------------------------------------------------------------------
报错后的log文件如下:
-----------------------------------------------------------------------------------------------------------
Entering Gaussian System, Link 0=g16
Initial command:
/home/zzy/sw/g16/l1.exe "/home/zzy/sw/tmp/Gau-11960.inp" -scrdir="/home/zzy/sw/tmp/"
Entering Link 1 = /home/zzy/sw/g16/l1.exe PID=     11962.

Copyright (c) 1988,1990,1992,1993,1995,1998,2003,2009,2016,
            Gaussian, Inc.  All Rights Reserved.

This is part of the Gaussian(R) 16 program.  It is based on
the Gaussian(R) 09 system (copyright 2009, Gaussian, Inc.),
the Gaussian(R) 03 system (copyright 2003, Gaussian, Inc.),
the Gaussian(R) 98 system (copyright 1998, Gaussian, Inc.),
the Gaussian(R) 94 system (copyright 1995, Gaussian, Inc.),
the Gaussian 92(TM) system (copyright 1992, Gaussian, Inc.),
the Gaussian 90(TM) system (copyright 1990, Gaussian, Inc.),
the Gaussian 88(TM) system (copyright 1988, Gaussian, Inc.),
the Gaussian 86(TM) system (copyright 1986, Carnegie Mellon
University), and the Gaussian 82(TM) system (copyright 1983,
Carnegie Mellon University). Gaussian is a federally registered
trademark of Gaussian, Inc.

This software contains proprietary and confidential information,
including trade secrets, belonging to Gaussian, Inc.

This software is provided under written license and may be
used, copied, transmitted, or stored only in accord with that
written license.

The following legend is applicable only to US Government
contracts under FAR:

                    RESTRICTED RIGHTS LEGEND

Use, reproduction and disclosure by the US Government is
subject to restrictions as set forth in subparagraphs (a)
and (c) of the Commercial Computer Software - Restricted
Rights clause in FAR 52.227-19.

Gaussian, Inc.
340 Quinnipiac St., Bldg. 40, Wallingford CT 06492


---------------------------------------------------------------
Warning -- This program may not be used in any manner that
competes with the business of Gaussian, Inc. or will provide
assistance to any competitor of Gaussian, Inc.  The licensee
of this program is prohibited from giving any competitor of
Gaussian, Inc. access to this program.  By using this program,
the user acknowledges that Gaussian, Inc. is engaged in the
business of creating and licensing software in the field of
computational chemistry and represents and warrants to the
licensee that it is not a competitor of Gaussian, Inc. and that
it will not use this program in any manner prohibited above.
---------------------------------------------------------------


Cite this work as:
Gaussian 16, Revision A.03,
M. J. Frisch, G. W. Trucks, H. B. Schlegel, G. E. Scuseria,
M. A. Robb, J. R. Cheeseman, G. Scalmani, V. Barone,
G. A. Petersson, H. Nakatsuji, X. Li, M. Caricato, A. V. Marenich,
J. Bloino, B. G. Janesko, R. Gomperts, B. Mennucci, H. P. Hratchian,
J. V. Ortiz, A. F. Izmaylov, J. L. Sonnenberg, D. Williams-Young,
F. Ding, F. Lipparini, F. Egidi, J. Goings, B. Peng, A. Petrone,
T. Henderson, D. Ranasinghe, V. G. Zakrzewski, J. Gao, N. Rega,
G. Zheng, W. Liang, M. Hada, M. Ehara, K. Toyota, R. Fukuda,
J. Hasegawa, M. Ishida, T. Nakajima, Y. Honda, O. Kitao, H. Nakai,
T. Vreven, K. Throssell, J. A. Montgomery, Jr., J. E. Peralta,
F. Ogliaro, M. J. Bearpark, J. J. Heyd, E. N. Brothers, K. N. Kudin,
V. N. Staroverov, T. A. Keith, R. Kobayashi, J. Normand,
K. Raghavachari, A. P. Rendell, J. C. Burant, S. S. Iyengar,
J. Tomasi, M. Cossi, J. M. Millam, M. Klene, C. Adamo, R. Cammi,
J. W. Ochterski, R. L. Martin, K. Morokuma, O. Farkas,
J. B. Foresman, and D. J. Fox, Gaussian, Inc., Wallingford CT, 2016.

******************************************
Gaussian 16:  ES64L-G16RevA.03 25-Dec-2016
                28-Jun-2022
******************************************
%chk=/home/zzy/gw/chk/Mg-MEDJOW-2-L.chk
%mem=5GB
%nproc=32
Will use up to   32 processors via shared memory.
------------------------
# M062X/Def2SVP opt freq
------------------------
1/18=20,19=15,26=3,38=1/1,3;
2/9=110,12=2,17=6,18=5,40=1/2;
3/5=43,7=101,11=2,25=1,30=1,71=1,74=-55/1,2,3;
4//1;
5/5=2,38=5/2;
6/7=2,8=2,9=2,10=2,28=1/1;
7//1,2,3,16;
1/18=20,19=15,26=3/3(2);
2/9=110/2;
99//99;
2/9=110/2;
3/5=43,7=101,11=2,25=1,30=1,71=1,74=-55/1,2,3;
4/5=5,16=3,69=1/1;
5/5=2,38=5/2;
7//1,2,3,16;
1/18=20,19=15,26=3/3(-5);
2/9=110/2;
6/7=2,8=2,9=2,10=2,19=2,28=1/1;
99/9=1/99;

--------------------------------------------------------------------------------------------------------------------




198

帖子

0

威望

4682

eV
积分
4880

Level 6 (一方通行)

7#
发表于 Post on 2023-6-3 19:04:51 | 只看该作者 Only view this author
用hyper-v搭建的centos虚拟机上运行的时候发现出现了同样的问题,应该是虚拟机使用了动态内存,系统会根据使用量为虚拟机分配内存以增加宿主机的内存。把动态内存关掉就好了。

2425

帖子

1

威望

6197

eV
积分
8642

Level 6 (一方通行)

6#
发表于 Post on 2023-3-20 20:31:22 | 只看该作者 Only view this author
sun0615 发表于 2023-3-20 17:16
这通常是系统内存不足,怎么改input file都没用的,只算一个H也会跳Segmentation fault。

举个例子,我 ...

V*S都是超售的……
这种比较没有意义。

租用bare metal 机器做测试。
High-Performance Computing for You
为您专属定制的高性能计算解决方案

更多讯息,请访问:
https://labitc.top
http://tophpc.top:8080
电邮: ask@hpc4you.top

20

帖子

0

威望

128

eV
积分
148

Level 2 能力者

5#
发表于 Post on 2023-3-20 17:16:56 | 只看该作者 Only view this author
这通常是系统内存不足,怎么改input file都没用的,只算一个H也会跳Segmentation fault。

举个例子,我今天在阿里云开了一台免费的V*S,一个vcpu,1G内存
进入系统后,发现可用的内存根本没多少,跑g09直接跳Segmentation fault
Top看到的信息:
KiB Mem :  1008348 total,   158488 free,   101380 used,   748480 buff/cache

V*S系统默认的SWAP是0,我新增了一个4G的SWAP就可以正常执行了。
KiB Swap:  4194300 total,  4194300 free,        0 used.   748480 avail Mem
Linux新增SWAP请参考https://hoohoo.top/blog/7937896/
题外话:
其实拿免费的V*S来跑Gaussian实际的应用价值不大,因为太慢了。我只是好奇阿里云的Intel 8269CYOracleAMD EPYC 7551效能差异多少,都用一个免费的vcpu相比,阿里云的速度差不多是Oracle的两倍多。


6万

帖子

99

威望

6万

eV
积分
125208

管理员

公社社长

4#
发表于 Post on 2022-6-29 21:05:39 | 只看该作者 Only view this author
首先先确保Gaussian已经按下文正确安装了,Default.Route没不当设置
Gaussian的安装方法及运行时的相关问题
http://sobereva.com/439http://bbs.keinsci.com/thread-10814-1-1.html
另外,不管能不能运行,%mem=5GB结合%nproc=32这种设置都是荒谬的,没理由就给这么丁点内存

然后按3L说的去掉%chk再试,至少确保%chk指定的路径有读写权限,而且相应目录是确实存在的

若还不行,应当是Gaussian和软硬件环境兼容性问题。说明操作系统和CPU的详细信息
北京科音自然科学研究中心http://www.keinsci.com)致力于计算化学的发展和传播,长期开办极高质量的各种计算化学类培训:初级量子化学培训班中级量子化学培训班高级量子化学培训班量子化学波函数分析与Multiwfn程序培训班分子动力学与GROMACS培训班CP2K第一性原理计算培训班,内容介绍以及往届资料购买请点击相应链接查看。这些培训是计算化学从零快速入门以及进一步全面系统性提升研究水平的高速路!培训各种常见问题见《北京科音办的培训班FAQ》
欢迎加入北京科音微信公众号获取北京科音培训的最新消息,并避免错过网上有价值的计算化学文章!
欢迎加入人气极高、专业性特别强的理论与计算化学综合交流群思想家公社QQ群(群号见此链接),合计达一万多人。北京科音培训班的学员在群中可申请VIP头衔,提问将得到群主Sobereva的最优先解答。
思想家公社的门口Blog:http://sobereva.com(发布大量原创计算化学相关博文)
Multiwfn主页:http://sobereva.com/multiwfn(十分强大、极为流行的量子化学波函数分析程序)
Google Scholar:https://scholar.google.com/citations?user=tiKE0qkAAAAJ
ResearchGate:https://www.researchgate.net/profile/Tian_Lu

20

帖子

0

威望

284

eV
积分
304

Level 3 能力者

3#
发表于 Post on 2022-6-29 19:13:26 | 只看该作者 Only view this author
把chk的绝对路径删掉试试

2425

帖子

1

威望

6197

eV
积分
8642

Level 6 (一方通行)

2#
发表于 Post on 2022-6-29 18:21:23 | 只看该作者 Only view this author
你到底有多少内存?
多少个处理器核心?
High-Performance Computing for You
为您专属定制的高性能计算解决方案

更多讯息,请访问:
https://labitc.top
http://tophpc.top:8080
电邮: ask@hpc4you.top

手机版 Mobile version|北京科音自然科学研究中心 Beijing Kein Research Center for Natural Sciences|京公网安备 11010502035419号|计算化学公社 — 北京科音旗下高水平计算化学交流论坛 ( 京ICP备14038949号-1 )|网站地图

GMT+8, 2026-2-27 17:24 , Processed in 0.162355 second(s), 21 queries , Gzip On.

快速回复 返回顶部 返回列表 Return to list