Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
484 views
in Technique[技术] by (71.8m points)

android - Fatal signal 7 (SIGBUS) at 0x00000000 (code=2)

While using a OSGi Platform on Android i got this errormsg:

Fatal signal 7 (SIGBUS) at 0x595302e0 (code=2)

Fatal signal 7 (SIGBUS) at 0x595302e0 (code=2)

I don't think that my app needs that much space in memory or need a lot of computation power. Its just the OSGi Platform with 20 Bundles.

My app is always restarting after that.

Any ideas ?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Even I too found a similar problem and happens to be (code=128) with about fault. Seems to be a data alignment error. To solve this issue, I tried putting a code something like this:

    *Data = (*Data)(Temp+i) becomes     
    Temp1 = *(Temp+i);     
    *Data = Temp1;     

Before and into the function call and passed back the data using same above method. It happens that NDK Compiler works differently some how. And NDK was used to code mix of c and c++.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...