Author Topic: Bug in svn8974 with wxMSW-2.9.4  (Read 4775 times)

stefanos_

  • Guest
Bug in svn8974 with wxMSW-2.9.4
« on: April 09, 2013, 09:24:52 am »
I have successfully compiled both CodeBlocks.workspace and CodeBlocks_wx29.workspace, but the latter build crashes upon startup; the way I have built wxWidgets is with custom version of wxBuild batch script from wxPack, according to my needs.

I have used gdb with backtrace to find the error message:

Code
Program received signal SIGSEGV, Segmentation fault.
0x6e303042 in wxmsw294u_gcc_custom!_ZN12wxDropTarget6RevokeEP6HWND__ ()
   from C:\SVN_REPOSITORIES\CodeBlocks\src\output29\wxmsw294u_gcc_custom.dll
(gdb) backtrace
#0  0x6e303042 in wxmsw294u_gcc_custom!_ZN12wxDropTarget6RevokeEP6HWND__ ()
   from C:\SVN_REPOSITORIES\CodeBlocks\src\output29\wxmsw294u_gcc_custom.dll
(gdb) continue
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x6e303042 in wxmsw294u_gcc_custom!_ZN12wxDropTarget6RevokeEP6HWND__ ()
   from C:\SVN_REPOSITORIES\CodeBlocks\src\output29\wxmsw294u_gcc_custom.dll
(gdb) continue
Continuing.
[Inferior 1 (process 5176) exited with code 030000000005]
(gdb) continue
The program is not being run.
(gdb)

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5930
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Bug in svn8974 with wxMSW-2.9.4
« Reply #1 on: April 09, 2013, 09:37:09 am »
Looking at the backtrace, I don't see much useful information, because it only have one call-stack shown.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline xunxun

  • Almost regular
  • **
  • Posts: 187
Re: Bug in svn8974 with wxMSW-2.9.4
« Reply #2 on: April 09, 2013, 11:04:45 am »
Please try bt 30
Regards,
xunxun

stefanos_

  • Guest
Re: Bug in svn8974 with wxMSW-2.9.4
« Reply #3 on: April 09, 2013, 11:46:36 am »
@ollydbg: I wish I knew more about debugging executables.

@xunxun: Nothing changed at all;

Code
Program received signal SIGSEGV, Segmentation fault.
0x6e303042 in wxmsw294u_gcc_custom!_ZN12wxDropTarget6RevokeEP6HWND__ ()
   from C:\SVN_REPOSITORIES\CodeBlocks\src\output29\wxmsw294u_gcc_custom.dll
(gdb) bt 30
#0  0x6e303042 in wxmsw294u_gcc_custom!_ZN12wxDropTarget6RevokeEP6HWND__ ()
   from C:\SVN_REPOSITORIES\CodeBlocks\src\output29\wxmsw294u_gcc_custom.dll
(gdb) continue
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x6e303042 in wxmsw294u_gcc_custom!_ZN12wxDropTarget6RevokeEP6HWND__ ()
   from C:\SVN_REPOSITORIES\CodeBlocks\src\output29\wxmsw294u_gcc_custom.dll
(gdb) continue
Continuing.
[Inferior 1 (process 5492) exited with code 030000000005]
(gdb)