avatar
google 的题 (测试题)# JobHunting - 待字闺中
d*o
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?
avatar
S*I
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?

avatar
s*a
3
1.time related events (as above)
2. un-intialized memory, or array index overflow?
what else?
avatar
S*I
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?

avatar
h*l
5
random()

【在 s****a 的大作中提到】
: 1.time related events (as above)
: 2. un-intialized memory, or array index overflow?
: what else?

avatar
x*1
6
多数是初始化问题。 -g 能过, without 就过不了。
-O 能过, -O3过不了。差不多吧
avatar
h*6
7
会不会是内存的问题,诸如越界访问,内存未释放之类的。
avatar
y*u
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?

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。