Segmentation fault, SIGSEGV
-
m
-
h
-
Where does the segfault happen? Best would be to run your program in debug mode. You usually should be shown the line where the crash happens.
PS: please wrap your code in @-tags, not in [ code ].
-
well thats the problem i dont see the line in my code where it gives the problem. I run in debugger mode.
shows error in some Qt header file: qscopedpointer.hpiece of code:
@
inline T *data() const
{
return d; <<<<<< points to here
}inline bool isNull() const { return !d; }
@
Thanks
-
Two things you can try:
Analyze the backtrace to see where the SIGSEGV happens.
Use reverse debugging
-
Somehwere further down, the backtrace of the segfault should show you the line in your code that triggered the error.