User forums > Embedded development
C::B crashes when I try to a big data structure by moving pointer on it.
Kaijun:
--- Quote from: oBFusCATed on February 25, 2011, 04:18:17 pm ---No, no big projects, the bug can be reproduce with simple sample...
You can make the sample by copying the data structure causing the crashes in a single source file and populating it with data to make C::B crash.
Making the sample increases the chances for fixing the bug, else you should wait me to encounter it, so I have a way to reproduce it. :lol:
--- End quote ---
I don't have simple project, I attach a header file where MpegEncContext may have 100 elements. you include it in your test file and define a
data structure.
Jenna:
If included the header, commented out everything but MpegEncContext, for all unknown types I added a #define <typ> int except for MAX_LEVEL and MAX_RUN ( I defined them as 1 and 2).
If I hover over a variable of type MpegEncContext in my test app, it does not crash. I am not able to see everything, because the struct is too large, but no crash.
Adding it as watch works also.
After reading your error-message above, I think it might be a graphics problem.
so my system setup
debian 64 bit (unstable/experimental)
core2duo with 3.2 GB usable ram
ati mobility x1400 with radeon-driver 1.6.14 and kms enabled
wxWidgets 2.8.10
kernel 2.6.38
xserver-xorg 1:7.6-3, xserver-xorg-core 2:1.9.99.902-3
no compiz
oBFusCATed:
Another option is to build C::B in debug mode (--enable-debug in the configure script) and debug C::B inside gdb, then when it crashes past the full backtrace (bt full command).
Navigation
[0] Message Index
[*] Previous page
Go to full version