d****o 发帖数: 1055 | 1 讨论一下
You are given a the source to a application which is crashing when run.
After running it 10 times in a debugger, you find it never crashes in the
same place. The application is single threaded, and uses only the C standard
library. What programming errors could be causing this crash? How would you
test each one? |
S**I 发帖数: 15689 | 2 some time related events?
standard
you
【在 d****o 的大作中提到】 : 讨论一下 : You are given a the source to a application which is crashing when run. : After running it 10 times in a debugger, you find it never crashes in the : same place. The application is single threaded, and uses only the C standard : library. What programming errors could be causing this crash? How would you : test each one?
|
s****a 发帖数: 528 | 3 1.time related events (as above)
2. un-intialized memory, or array index overflow?
what else? |
S**I 发帖数: 15689 | 4 more general version of 2: stack corruption, or memory leak
【在 s****a 的大作中提到】 : 1.time related events (as above) : 2. un-intialized memory, or array index overflow? : what else?
|
h**********l 发帖数: 6342 | 5 random()
【在 s****a 的大作中提到】 : 1.time related events (as above) : 2. un-intialized memory, or array index overflow? : what else?
|
x*******1 发帖数: 28835 | 6 多数是初始化问题。 -g 能过, without 就过不了。
-O 能过, -O3过不了。差不多吧 |
h******6 发帖数: 2697 | 7 会不会是内存的问题,诸如越界访问,内存未释放之类的。 |
y**********u 发帖数: 6366 | 8
time related events are mostly in multi-threads
Mostly possible: variable non intialized, or invalid pointer. Also, in
debugger mod, variable in reg are mostly pushed into memory
【在 s****a 的大作中提到】 : 1.time related events (as above) : 2. un-intialized memory, or array index overflow? : what else?
|