arm下怎么依据段错误地址定位出源码错位置?

arm下怎么依据段错误地址定位出源码错位置?
arm-linux-addr2line 命令用不了的情况下

0

2个回答

你看你的开发板中有没有gdbserver 或者编译的时候加上-g。生产core 然后用编译器和文件对比。不一定每次都能定位出来。但是有一定的希望。。
最好还是跟踪运行下。然后定位问题

0

从来没听说通过段错误地址可以定位出源代码错误行的。否则还要调试符号干嘛。

0
caozhy
贵阳挖掘机马善福,自备车辆专业挖游泳池 回复spy_007_: 那得有调试符号
一年多之前 回复
spy_007_
Straw_hat_boy 就是采用反汇编的方式,或者进行程序栈帧回溯,知道出错的地址后使用addr2line 工具能直接定位出错误发生在哪源个文件的多少行
一年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
C“段错误” : 快速定位“段错误”位置
1、 编译时gcc 1.c -g  ,后边加上-g在运行时产生段错误时会自动生成core.xxxx的文件    (若没有产生这个文件,则在命令行输入ulimit -c umlimited,重新编译运行) 2、用gdb调试    gdb a.out core.xxxx 3、输入where查看详细信息,既可以定位段错误的位置
通过gdb快速定位“段错误”的位置
有些时候我们在一段 C/C++ 代码的时候,由于对一个非法内存进行了操作,在程序运行的过程中,出现了段错误。遇到这种问题是非常无语的,只是提示了"段错误",接着什么都没有,如果我们一味的去看代码找太疼苦了,因为我们都相信自己写的代码没问题,现实就是现实。接着,我们可能通过打印来定位到段错误的位置,这样会有个问题,如果代码量大,我们需要打印很多信息才能找到“段错误”的位置(这种办法实在太笨了),而往往有些时候,“段错误”光靠打印不一定能找出来。接下来,给大家介绍通过gdb快速定位“段错误”的位置。
怎么出这个错
INT_PTR CALLBACK Dlg_Proc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) rn rn switch (uMsg)rn rn //case WM_INITDIALOG:rn // break;rn //case WM_PAINT:rn // break;rn case WM_COMMAND:rn switch (LOWORD(wParam))rn rn case IDC_NEXT:rn break;rn case IDC_FINISH:rn EndDialog(hwnd, IDC_FINISH);rn PostQuitMessage(0);rn break;rn rn break;rn case WM_DESTROY:rn PostQuitMessage(0);rn break;rn rnrn return 0;rnrnrnrnint APIENTRY WinMain(HINSTANCE hInstance,rn HINSTANCE hPrevInstance,rn LPSTR lpCmdLine,rn int nCmdShow)rnrn DialogBox(hInstance, MAKEINTRESOURCE(IDD_AUTOUPDATE), NULL, Dlg_Proc);rn //CreateDialog(hInstance,MAKEINTRESOURCE(IDD_AUTOUPDATE),NULL,Dlg_Proc);rn //DownloadData(TEXT("http://www.sziri.com/"));rn return 0;rnrnrn上面编译,出以下错误,不知咋回事:rn:\VC++EXER\AutoUpdate\AutoUpdate.cpp(48) : error C2664: 'DialogBoxParamA' : cannot convert parameter 4 from 'long (struct HWND__ *,unsigned int,unsigned int,long)' to 'int (__stdcall *)(struct HWND__ *,unsigned int,unsigned int,long)'rn None of the functions with this name in scope match the target typernError executing cl.exe.
怎么定位滚动条位置
怎么定位滚动条位置
内核段错误定位方法
1.加printk 2.在配置文件配置 以下选项则出错时会在backstrace打印出错函数 CONFIG_FRAME_POINTER=y CONFIG_DEBUG_KERNEL=y 3. 找到内核编译出的System.map,里面包含内核编译出的符号表,注意这其中不包含insmod加载的 如果需要知道所有的,可以在平台使用串口查看/proc/kallsyms 如果/proc/kall...
showPopup位置怎么定位?
我想在textBox1上加个KeyDown事件,当按下F1时,textBox1的上方出现一个提示,这个位置怎么定位?请教!rnrnHelp.ShowPopup(textBox1, "请输入你的姓名:",new Point(????))
通过反汇编定位段错误
段错误是程序员最讨厌的问题之一,其发生往往很突然,且破坏巨大。典型的段错误是由于操作内存不当引起的(如使用野指针或访问受保护的地址等),发生段错误时,内核以一个信号SIGSEGV强行终止进程,留下的出错信息极少,从而导致难以定位。但利用gdb和反汇编工具,可以较准确地定位段错误产生的原因。
Linux C段错误定位
嵌入式开发中有时候代码量庞大,需要进行错误地点定位,我自己写了一个段错误定位的实例,目前只能将错误定位到调用函数级别,不过相信把发生错误的函数找到了,离找到错误的原因也不远了。
段错误...位置很奇怪...
linux下用gdb调试rn错误地点竟然是rnint size_udp=8;rnrnrn达人帮忙看下这段代码 = =rnrn[code=C/C++]rnvoidrngot_packet(u_char *args, const struct pcap_pkthdr *header, const u_char *packet)rnrn static int count = 1; /* packet counter */rn rn /* declare pointers to packet headers */rn const struct sniff_ethernet *ethernet; /* The ethernet header [1] */rn const struct sniff_ip *ip; /* The IP header */rn const struct sniff_tcp *tcp; /* The TCP header */rn const struct sniff_udp *udp; /* The UDP header */rn const char *payload; /* Packet payload */rnrn int size_ip;rn int size_tcp;rn int size_udp = 8;rn int size_payload;rn rn printf("\nPacket number %d:\n", count);rn count++;rn rn /* define ethernet header */rn ethernet = (struct sniff_ethernet*)(packet);rn rn /* define/compute ip header offset */rn ip = (struct sniff_ip*)(packet + SIZE_ETHERNET);rn size_ip = IP_HL(ip)*4;rn printf("IP header length:%u bytes\n",size_ip);rn if (size_ip < 20) rn printf(" * Invalid IP header length: %u bytes\n", size_ip);rn return;rn rnrn /* print source and destination IP addresses */rn printf(" From: %s\n", inet_ntoa(ip->ip_src));rn printf(" To: %s\n", inet_ntoa(ip->ip_dst));rn rn /* determine protocol */ rn switch(ip->ip_p) rn case IPPROTO_TCP:rn printf(" Protocol: TCP\n");rn break;rn case IPPROTO_UDP:rn printf(" Protocol: UDP\n");rn break;rn case IPPROTO_ICMP:rn printf(" Protocol: ICMP\n");rn return;rn case IPPROTO_IP:rn printf(" Protocol: IP\n");rn return;rn default:rn printf(" Protocol: unknown\n");rn return;rn rn rn /*rn * OK, this packet is udp.rn */rn rn /* define/compute tcp header offset */rn udp = (struct sniff_udp*)(packet + SIZE_ETHERNET + size_ip);rn if (size_udp < 8) rn printf(" * Invalid udp header length: %u bytes\n", size_tcp);rn return;rn rn rn printf(" Src port: %d\n", ntohs(udp->uh_sport));rn printf(" Dst port: %d\n", ntohs(udp->uh_dport));rn rn /* define/compute udp payload (segment) offset */rn payload = (u_char *)(packet + SIZE_ETHERNET + size_ip + size_udp);rn rn /* compute udp payload (segment) size */rn size_payload = ntohs(ip->ip_len) - (size_ip + size_udp);rnrn int seclen;rn seclen= ntohs(ip->ip_len)+16;rn //char *data = new char[seclen];rn char *data = (char *)malloc(seclen*sizeof(char));rn data[0] = (char)0x3E;rn data[1] = (char)0xB | (char)((seclen-3)>>8);rn data[2] = (char)(seclen-3);rn data[3] = (char)0x70;rn data[4] = (char)0x25;rn data[5] = (char)0xB1;rn data[6] = (char)0x00;rn data[7] = (char)0x00;rn data[8] = (char)0x40;rn data[9] = (char)0x5E;rn data[10] = (char)0x00;rn data[11] = (char)0x01;rn memcpy(data+12,*packet,ntohs(ip->ip_len));rn //for(int i=0;i
怎样定位到源码的相关位置?
有一个应用程序,我想通过一触发事件(比如点击按钮),使得屏幕的光标显示在该程序源码某方法的实现位置,同时可以返回该位置的行号。效果就好比delphi编译后双击提示框中的错误项,就可显示在出错的地方。不知道怎样实现呢?rn
在逻辑坐标下定位出的鼠标位置有偏差,怎么消除啊?
利用 scale=25.4*10/pDC->GetDeviceCaps(LOGPIXELSX);换算出比例,根据鼠标位置得到设备坐标,可是发现换算过去的有偏差啊,怎么办啊?
在不具备gdb环境的Linux系统上大致定位段错误位置
巧用backtrace系列函数,在不具备gdb环境的Linux系统上大致定位段错误位置
怎么快速定位注册表的位置
比如我想进入:HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExtsrn可以可以像文件夹一样,在某个地方把这个地址粘上去,回车就进入
怎么定位input的位置和图片?
rn rn rn rnrn请问我这个文本框和右边的图片按钮怎么才可以在同一行对齐啊?为何图片老是往上跑?
自动定位位置+三级联动地址选择html
省市县三级联动选择功能,和自动定位当前位置
定位中获取地址位置的两种方式
1.根据CLPlacemark获取地址信息     CLGeocoder *geocoder = [[CLGeocoder alloc] init];     [geocoder reverseGeocodeLocation: userLocation.location completionHandler:^(NSArray*array, NSError *error) {
gdb调试无法定位段错误 求救
rnrnrn写了一段程序,总是出现段错误,于是gdb调试,结果无法找到段错误的位置。rnrngdb调试结果如下rnrn[root@localhost udp_server4.9.3]# gcc -g -rdynamic -o server udp_server4.9.3.crn[root@localhost udp_server4.9.3]# gdb ./server rnGNU gdb Red Hat Linux (6.5-15.fc6rh)rnCopyright (C) 2006 Free Software Foundation, Inc.rnGDB is free software, covered by the GNU General Public License, and you arernwelcome to change it and/or distribute copies of it under certain conditions.rnType "show copying" to see the conditions.rnThere is absolutely no warranty for GDB. Type "show warranty" for details.rnThis GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".rnrn(gdb) rrnStarting program: /home/zyy/udp_socket/udp_server4.9.3/server rnrnrnProgram received signal SIGSEGV, Segmentation fault.rn0x39313030 in ?? ()rn(gdb) btrn#0 0x39313030 in ?? ()rn#1 0x3839392e in ?? ()rn#2 0x302c562c in ?? ()rn#3 0x2e303030 in ?? ()rn#4 0x30303030 in ?? ()rn#5 0x302c4e2c in ?? ()rn#6 0x30303030 in ?? ()rn#7 0x3030302e in ?? ()rn#8 0x2c452c30 in ?? ()rn#9 0x30332c2c in ?? ()rn#10 0x32323130 in ?? ()rn#11 0x312a2c2c in ?? ()rn#12 0x240a0d36 in ?? ()rn#13 0x54565047 in ?? ()rn#14 0x542c2c47 in ?? ()rn#15 0x2c4d2c2c in ?? ()rn#16 0x2c2c4e2c in ?? ()rn#17 0x45342a4b in ?? ()rn#18 0x47240a0d in ?? ()rn#19 0x41474750 in ?? ()rn#20 0x3030302c in ?? ()rn#21 0x2e303230 in ?? ()rn#22 0x2c383939 in ?? ()rn---Type to continue, or q to quit---rnrn关键位置全是问号,情何以堪?这可怎么看啊rnrnrnrn代码有点长,先不帖了。rnrn各位大侠指点。
“段错误”定位及调试的一点经验
今天调试代码的时候,遇到一个问题就是出现了“段错误”。出现“段错误”的原因就是:访问的内存超出了系统给这个程序所设定的内存空间。知道原因是一个很好的开始,但是并不代表就很容易解决,特别是在代码量较大的情况下,如何才能定位到出错的地方?接下来,我就大概讲一下自己的一点经验,如何在Linux C中用几个命令搞定“段错误”。 1、dmesg 通过dmesg命令可以查看发生段错误的程序名称、引起段错误
百度高精度IP定位-位置查询源码
百度高精度IP定位-位置查询源码 可视化地图
百度地图 api 定位功能实现 和显示定位后的位置地图 源码
百度地图 api 定位功能实现 和显示定位后的位置地图
批量IP地址定位工具源码
查找单个IP地址位置,可以用ip138;但要查询多个(十万、百万个)该如何办呢?本工具将为你提供方便。 开放源码,欢迎切磋。
sql for xml嵌套查询,怎么出这个错?
我想查询出来的结果是,架构名节点,后头跟着架构下各表的名字。rnselect SchemaName.TABLE_SCHEMA as "SchemaName/@name",rn(select sys.tables.name as "TableName/@name" rnfrom rnsys.tablesrnwhere SchemaName.TABLE_NAME= (select sys.schemas.name from rnsys.tables,sys.schemas where sys.tables.schema_id=sys.schemas.schema_id)rnfor xml auto,type,elements)rnfromrnINFORMATION_SCHEMA.TABLES as SchemaNamernorder by SchemaName.TABLE_SCHEMA rnfor xml auto,typernrnrnrn提示错误:rn子查询返回的值不止一个。当子查询跟随在 =、!=、<、<=、>、>= 之后,或子查询用作表达式时,这种情况是不允许的。
怎么出Unknown column 'è???”?????…????' in 'where clause'错?
本人在用Java+Mysql写一个小程序,出了点问题,望高手指教!rnrn我在Java程序段里用一个中文字符串去查询数据库,报错:com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown column 'è???”?????…????' in 'where clause',仔细检查了代码中的列名和数据库中列名都是一致的啊。然后我用给定的英文字符串或者数字去查询时,就不会报错了,能正确的查出来。rnrn我想用中文去查询出错,而列名没有写错,会不会是数据库编码与字符串编码不一致啊?rn我把Mysql的[mysql]处改为了GBK,[mysqld]处为utf8,不知道Java程序中默认编码、中文字符串编码是什么?是不是这原因啊?
奇怪啊,怎么出的错啊?
dim dbname as stringrndbname=server.mappath("replays.mdb")rndim myConn = New OleDbConnection( "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA Source="&dbname )rnmyConn.Open()rndim mysql as string="select * from replays order by id desc"rndim myds as new datasetrndim mycom as oledbdataadapter(mysql,myconn)rn说最后一行错了,为什么啊?rnCompiler Error Message: BC30638: Array bounds cannot appear in type specifiers.rn望高手指点
调用DLL怎么老出断言错?
DLL中只有对话框和一个打开它的导出函数。rn#pragma comment(linker,"/export:ShowDlg=_ShowDlg@8")rnrnrnint __stdcall ShowDlg(int PlayerId,char* PlayerName)rnrn AFX_MANAGE_STATE(AfxGetStaticModuleState());rn rn CDlg dlg;rn dlg.SetPlayer(PlayerId,PlayerName);rn dlg.DoModal();rn rn return 0;rnrn调用:rntypedef int (ShowDlg)(int id,char* sz);rn HINSTANCE hInstance;rn ShowDlg* fun;rn hInstance = ::LoadLibrary("ChatClientDLL.dll");rn fun = (ShowDlg*)::GetProcAddress(hInstance,"ShowDlg");rn int sum = (*fun)(123,"aaa"); //此处断言错rn不知道哪儿错了,该怎么改呀?
struts2 上传怎么老出这样的错
struts2 上传怎么老出这样的错 这是什么错误,请哪位高手帮帮忙rnUnparseable number: "on" at position 0 - [unknown location]rn at com.opensymphony.xwork2.conversion.impl.XWorkBasicConverter.doConvertToNumber(XWorkBasicConverter.java:411)rn at com.opensymphony.xwork2.conversion.impl.XWorkBasicConverter.doConvertToNumber(XWorkBasicConverter.java:421)rn at com.opensymphony.xwork2.conversion.impl.XWorkBasicConverter.convertValue(XWorkBasicConverter.java:132)rn at com.opensymphony.xwork2.conversion.impl.XWorkConverter.convertValue(XWorkConverter.java:313)rn at com.opensymphony.xwork2.ognl.OgnlTypeConverterWrapper.convertValue(OgnlTypeConverterWrapper.java:28)rn at ognl.OgnlRuntime.getConvertedType(OgnlRuntime.java:687)rn at ognl.OgnlRuntime.getConvertedTypes(OgnlRuntime.java:703)rn at ognl.OgnlRuntime.getConvertedMethodAndArgs(OgnlRuntime.java:726)rn at ognl.OgnlRuntime.getAppropriateMethod(OgnlRuntime.java:783)rn at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:794)rn at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:964)rn at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:75)rn at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:131)rn at com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:27)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656)rn at ognl.ASTProperty.setValueBody(ASTProperty.java:101)rn at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)rn at ognl.SimpleNode.setValue(SimpleNode.java:246)rn at ognl.ASTChain.setValueBody(ASTChain.java:172)rn at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)rn at ognl.SimpleNode.setValue(SimpleNode.java:246)rn at ognl.Ognl.setValue(Ognl.java:476)rn at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:197)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:150)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:138)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:205)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:162)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)rn at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230)rn at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:456)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:170)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)rn at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230)rn at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:456)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:104)rn at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230)rn at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:456)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:84)rn at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230)rn at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:456)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:269)rn at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230)rn at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:456)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:88)rn at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230)rn at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:456)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227)rn at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:127)rn at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230)rn at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:456)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227)rn at org.apache.struts2.interceptor.ProfilingActivationInterceptor.intercept(ProfilingActivationInterceptor.java:104)rn at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230)rn at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:456)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227)rn at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)rn at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230)rn at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:456)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227)rn at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:130)rn at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230)rn at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:456)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:143)rn at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230)rn at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:456)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227)rn at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:137)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)rn at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230)rn at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:456)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227)rn at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230)rn at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:456)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:130)rn at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230)rn at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:456)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept
ARM平台下fopen打开文件出现段错误
最近发现一个问题,我在linux系统下用fopen打开文件,编译能成功打开,交叉编译移植到开发板上,以写方式打开文件出现段错误,我的程序很简单,只是用来测试。程序如下:rn#includernvoid main()rnrn FILE *fp;rn fp=fopen("filename","w+");rn if(fp != NULL)rn printf("open\n");rn fclose(fp);rnrn在linux系统下,gcc编译以读和写的方式fopen打开都成功,但交叉编译后,以写方式打开文件,出现段错误,当我把fp=fopen("filename","w+");改为fp=fopen("filename","r");时,程序能成功打开rn急求大家帮忙解决rnrn
怎么定位光标的位置和字符串的长度!!
比如在edit组件中!怎么把刚不是数字输入的字符去掉!!并且把光标回到edit.text的最后!!rn用什么函数取得edit.text的长度!rn我的函数是:rnprocedure TForm1.Edit1KeyDown(Sender: TObject; var Key: Word;rn Shift: TShiftState);rnbeginrnif ((key<96) or (key>105 ))thenrnbeginrn showmessage('wrong number');rn edit1.Text:=leftstr(edit1.Text,sizeof(edit1.Text)-1);rn edit1.SelLength:=sizeof(edit1.Text);rnend;rn老是不对!!rn请教!!谢谢!rn
怎么定位listbox中选中行的位置
listbox中有几行记录,要在选中行的后面插入信息,怎么才能定位选中行的位置??rn
怎么定位光标在text中的位置...???
绝对和相对的都要...
打开窗口的时候怎么定位滚动条的位置
打开窗口的时候怎么定位滚动条的位置~~~~比如到中间或是最底端~~~~
PHP里怎么定位SQLSERVER指针位置
PHP里怎么定位SQLSERVER指针位置,也就是游标的位置,我要从第20条开始显示rnresult = mssql_query("select * from datastat",$conn);rnrnwhile($row=mssql_fetch_row($result))rn echo $row[3]." ";rnrn
怎么对一个文本文件定位到固定位置???
怎么样在一个文本文件中查找一个字符串rn并定位到那个字符串所在的那一行?????rn
在Dreamweaver中怎么定位位置才好?
比如我想在某个地方插入一幅图片,怎么才定位才好?rn大家是不是通过表格来定位。
窗体在屏幕中的位置怎么定位阿
我用的是eclipse开发gui非常方便,但是不会在图形界面下定位窗体在屏幕内的位置。rn请问怎么定位阿?rn另外请问怎么使JLable的标题文字靠右啊?
怎么在同一个页面上定位某个位置
比如在页面上方是目录,然后点击目录以后可以定位到相应的章节的开始,怎么实现,rn谢谢rn
segmentation fault, 段错误简单定位步骤
(1)执行命令:ulimit -a 查看系统是否可以产生core文件,如果core file size 是0 就需执行第二步 (2)执行命令:ulimit -c 2048,  2048是你指定的core文件大小,可以根据自己的需要修改 (3)gcc编译你的程序:gcc your_program.c -o you_exe -g, 一定要加“-g” 选项 (4)./you_exe 运行程序, 假
vs2008(2005),怎么定位抛出异常位置
'mt.exe': Loaded 'E:\mtsrc\mt\Debug\mt.exe', Symbols loaded.rn'mt.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\ws2_32.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\ws2help.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\secur32.dll'rn'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\oci.dll', Binary was not built with debug information.rn'mt.exe': Loaded 'C:\WINDOWS\system32\msvcr71.dll'rn'mt.exe': Loaded 'E:\mtsrc\mt\Debug\sfun.dll', Symbols loaded.rn'mt.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.30729.4148_x-ww_5d84dd2f\msvcr90d.dll', Symbols loaded.rn'mt.exe': Loaded 'C:\WINDOWS\system32\user32.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\wininet.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\normaliz.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\urlmon.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\ole32.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\oleaut32.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\iertutil.dll'rn'mt.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugOpenMP_1fc8b3b9a1e18e3b_9.0.30729.4148_x-ww_76bf1c89\vcomp90d.dll', Symbols loaded.rn'mt.exe': Loaded 'C:\Program Files\Visual Leak Detector\bin\vld.dll'rn'mt.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.4148_x-ww_d495ac4e\msvcr90.dll', Symbols loaded.rn'mt.exe': Loaded 'C:\Program Files\Visual Leak Detector\bin\dbghelp.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\imm32.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\lpk.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\usp10.dll'rn'mt.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.3790.3959_x-ww_D8713E55\comctl32.dll'rnVisual Leak Detector Version 1.9h installed.rn'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\oraclient10.dll'rn'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\oracore10.dll'rn'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\oranls10.dll'rn'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\oraunls10.dll'rn'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\orauts.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\winmm.dll'rn'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\oravsn10.dll'rn'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\oracommon10.dll'rn'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\orageneric10.dll'rn'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\orasnls10.dll'rn'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\oraxml10.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\msvcirt.dll'rn'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\oran10.dll'rn'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\oranl10.dll'rn'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\oranldap10.dll'rn'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\orannzsbb10.dll'rn'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\oraldapclnt10.dll'rn'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\orancrypt10.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\wsock32.dll'rn'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\oranro10.dll'rn'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\oranhost10.dll'rn'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\orancds10.dll'rn'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\orantns10.dll'rn'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\orapls10.dll'rn'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\ORASLAX10.DLL'rn'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\oraplp10.dll'rn'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\orahasgen10.dll'rn'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\oraocr10.dll'rn'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\oraocrb10.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\netapi32.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\psapi.dll'rn'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\orantcp10.dll'rn'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\orasql10.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\mswsock.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\dnsapi.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\winrnr.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\wldap32.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\rasadhlp.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\shell32.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\version.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\rasapi32.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\rasman.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\tapi32.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\rtutils.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\crypt32.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\msasn1.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\userenv.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\msapsspc.dll', Cannot find or open a required DBG file.rn'mt.exe': Loaded 'C:\WINDOWS\system32\msvcrt40.dll'rn'mt.exe': Unloaded 'C:\WINDOWS\system32\msapsspc.dll'rn'mt.exe': Unloaded 'C:\WINDOWS\system32\msvcrt40.dll'rn[color=#FF0000]First-chance exception at 0x0302c9d2 in mt.exe: 0xC0000005: Access violation reading location 0x71d50000.rnFirst-chance exception at 0x0302c787 in mt.exe: 0xC0000005: Access violation reading location 0x71d50014.[/color]rn'mt.exe': Loaded 'C:\WINDOWS\system32\sensapi.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\hnetcfg.dll'rn'mt.exe': Loaded 'C:\WINDOWS\system32\wshtcpip.dll'rn//////////////////////////////////////////////////////////////////////////////////////rnrnFirst-chance exception at 0x0302c9d2 in mt.exe: 0xC0000005: Access violation reading location 0x71d50000.rnFirst-chance exception at 0x0302c787 in mt.exe: 0xC0000005: Access violation reading location 0x71d50014.rnrn我怎么定位抛出异常在代码中位置?大家帮帮我谢谢
怎么定位光标在stringgrid中的位置??
怎么定位rn比如把光标定位到cell[1,1]上rn怎么做 谢谢
怎么定位DataGrid中记录的位置?
怎么定位DataGrid中记录的位置?我想删除网格中的某一条记录,后来发现即使在网格中选中了某条记录,可是删除的时候总是删掉第一条记录!如果我要修改网格中的某一条记录呢?真不知道该怎么办啦?
相关热词 c#串口测试应用程序 c# 匹配 正则表达式 c#防止窗体重绘 c#读写txt文件 c#挖地雷源代码 c#弹框选项 c# 移除 队列 c# 密码写入配置文件 c# 获取可用内存大小 c# 嵌入excel编辑