- 论坛徽章:
- 0
|
小弟为此问题,郁闷了一个多星期。
HP-Ux下的C++编程
程序总是报内存错,我尝试了n种方法,一点都没有见效
很奇怪,从数据库读数据没有问题,之后在内存中遍历查找就会出错。并且是跑起来好一会才core dump,gdb之后,where看不到哪个函数报的错。
求哪位大侠给指点一下!!
十分感谢!
如下:
warning: Unknown symbols for 'core'; use the 'symbol-file' command.
Core was generated by `CallComparato'.
Program terminated with signal 11, Segmentation fault.
SEGV_UNKNOWN - Unknown Error
#0 0x40000000000e8624 in <unknown_procedure> ()
Cannot access memory at address 0x40000000000e8624
(gdb) where
#0 0x40000000000e8624 in <unknown_procedure> ()
warning: Attempting to unwind past bad PC 0x40000000000e8624
#1 0x40000000000d1aec in <unknown_procedure> ()
#2 0x40000000000d1aec in <unknown_procedure> ()
#3 0x40000000000d1aec in <unknown_procedure> ()
Cannot access memory at address 0x100000001
(gdb) |
|