ChinaUnix.net
相关文章推荐:

Segmentation fault core dumped

[zhoumi@localhost Gnomon]$ file convert_aligns convert_aligns: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped [zhoumi@localhost Gnomon]$ ./convert_aligns segmentation fault (core dumped) 出现segmentation fault (core dumped)的原因很多,不知道该怎么处理?不会要我去改源代码吧,我是新手,玩不来啊!

by zhouzhongmi - Linux系统管理 - 2011-08-19 15:33:04 阅读(2291) 回复(0)

相关讨论

segmentation fault - core dumped 今天试了一个pro*C程序时,编译过程没有问题,只是在执行是报了以上的错误.各位知道引起这个错误的可能的原因吗?我估计是变量在定义时出错了.正在查找原因. 对了环境是 :oracle9 solaris 9 gcc 3.4

by mtx99 - C/C++ - 2006-04-17 20:34:33 阅读(1602) 回复(7)

#include main(viod) { int i,n; int Array[n]; scanf("%d\n",&n); for(i=0;i main(viod) { int i,n,j; j=scanf("%d",&n); int Array[n]; for(i=0;i #include main() { char *p ; char test[] = "hello"; strcpy(p,test); printf(p); } 编译通过: hubo@hubo:~/c_programming$ gcc -g -o 6 6.c 6.c:9:2: warning: no newline at end of file 但执行时: hubo@hubo:~/c_programming$ ./6 Segmen...

by hubo214 - Linux文档专区 - 2009-05-07 10:49:33 阅读(803) 回复(0)

System : FC4 源程序如下,编译运行的时候出现segmentation fault(core dumped)错误,是哪里错了? gdb的时候说No stack.是哪里错了啊,因为我对C不熟悉,还请各位解惑。谢谢 #include #include #include #include int main(int argc, char *argv[]){ if(argc < 4) return 0; int nCount = atoi(argv[1]); int nTime = atoi(argv[2]); char ...

by okeykid - C/C++ - 2006-02-25 23:44:35 阅读(1390) 回复(1)

编译代码没有错误,可在运行程序时,出现segmentation fault (core dumped)错误,请高手指教!

by memory13shao - Linux环境编程 - 2008-08-15 11:43:31 阅读(3867) 回复(11)

关于Floating point error:Domain. 程序内容: #include #include #define PI 3.1415926 double y(double); double cos(double); double table(double(*f)(),double,double,double); int main(int argc,char ** argv) { printf ("Table of y(x)=2*x*x-x+1\n\n" ); table(y,0.0,2.0,0.5); printf ("\nTable of cos(x)\n\n" ); table(cos,0.0,PI,0.5); return 0; } do...

by hb12112 - C/C++ - 2007-08-17 23:55:07 阅读(5968) 回复(12)

#include #define def_host_name NULL #define def_user_name NULL #define def_password NULL #define def_db_name NULL MYSQL *conn; int main(int argc,char **argv) { mysql_init(conn); mysql_real_connect(conn,def_host_name,def_user_name,def_password, def_db_name,0,NULL,0); printf(mysql_get_server_info(conn)); mysql_close(conn); exit(0); } ...

by gettyying - MySQL - 2007-03-20 20:18:34 阅读(2291) 回复(1)

#include #include main() { char *buf = "Hello there,stranger"; char **bp = &buf; char *tok; while (tok = strsep(bp, " ,")) printf("tok = `%s'\n", tok); } 有问题吗?

by arwean - C/C++ - 2006-06-09 09:32:27 阅读(6253) 回复(10)

请教segmentation fault (core dumped) 机器: SunOS 5.6 Generic_105181-05 sun4u sparc SUNW,Ultra-250 lpstat -t scheduler is running system default destination: HP2 device for hawbs: /dev/hawbs device for hawbc: /dev/hawbc device for AC1: /dev/AC1 device for HP2: /dev/HP2 device for HP3: /dev/HP3 hawbs accepting requests since Mon Oct 28 04:25:53 CST 2002 hawbc accepting requests since Mon Oct 28 04:...

by solaris10_x86 - Solaris - 2005-11-03 12:02:55 阅读(1056) 回复(0)

请教segmentation fault (core dumped)\r\n机器:\r\nSunOS 5.6 Generic_105181-05 sun4u sparc SUNW,Ultra-250\r\n\r\nlpstat -t\r\nscheduler is running\r\nsystem default destination: HP2\r\ndevice for hawbs: /dev/hawbs\r\ndevice for hawbc: /dev/hawbc\r\ndevice for AC1: /dev/AC1\r\ndevice for HP2: /dev/HP2\r\ndevice for HP3: /dev/HP3\r\nhawbs accepting requests since Mon Oct 28 04:25:53 CST 2002\r\nhawbc ...

by solaris10_x86 - Solaris - 2005-11-03 12:02:55 阅读(2934) 回复(0)

sybase-12.5 for sun的 打上 11442 的补丁后 报错 $ asecfg segmentation fault - core dumped 为何? 谢谢

by zhongsy - Sybase - 2005-01-26 10:27:12 阅读(1529) 回复(0)