[AD] [ alleg-Bugs-1659435 ] Access violation in test.c

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Bugs item #1659435, was opened at 2007-02-14 02:56
Message generated for change (Comment added) made by torhu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=1659435&group_id=5665

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: torhu (torhu)
Assigned to: Nobody/Anonymous (nobody)
Summary: Access violation in test.c

Initial Comment:
Allegro 4.2.1, msvc6.  The same thing happens with 4.3.0, compiled with minGW.

To reproduce:
1. Start with autodetect windowed, 800x600, 32b.
2. Run Profile Screen.

The second time the vline benchmark starts, it exits with  an access violation.  No message is shown.

Here's a traceback etc. from windbg 6.

al-gfx INFO: Called set_gfx_mode(2, 800, 600, 1024, 1024).
al-gfx INFO: Closing graphics driver (100CAAE0) GDI.
al-gfx INFO: Autodetecting graphic driver.
al-gfx ERROR: Failed setting graphic driver 0.
al-gfx INFO: Called set_gfx_mode(2, 800, 600, 1024, 0).
al-gfx INFO: Autodetecting graphic driver.
al-gfx ERROR: Failed setting graphic driver 0.
al-gfx INFO: Called set_gfx_mode(2, 800, 600, 0, 0).
al-gfx INFO: Autodetecting graphic driver.
al-gfx INFO: The driver will wait for vsync.
al-gfx INFO: set_gfx_card success for 800x600x32.
(be8.be4): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
eax=ffffff50 ebx=00132ff6 ecx=ffffff8b edx=ffb00000 esi=00000000 edi=00000000
eip=7378cc78 esp=0012f71e ebp=0012fa52 iopl=0         nv up ei pl zr na po nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00210246
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for C:\WINDOWS\system32\DDRAW.dll - 
DDRAW!GetSurfaceFromDC+0x74c2:
7378cc78 8b5308           mov     edx,[ebx+0x8]     ds:0023:00132ffe=????????
0:000> kb
ChildEBP RetAddr  Args to Child              
WARNING: Stack unwind information not available. Following frames may be wrong.
0012fa52 1009d115 0015f658 0012fa72 00162350 DDRAW!GetSurfaceFromDC+0x74c2
0012fa86 10096062 0012fa92 00000000 00000142 alld42!update_matching_window+0xd4 [src/win/wddwin.c @ 248]
0012fac2 1007c46d 00d6f028 0000015f 00000142 alld42!gfx_directx_unlock_win+0x6e
0012faec 10098798 00d6f028 0000015f 00000142 alld42!_linear_vline32+0x6d
0012fb88 10037095 00d6f028 0000015f 00000142 alld42!ddraw_vline+0x2c [src/win/wddaccel.c @ 461]
0012fba4 00401e15 00d6f028 0000015f 00000142 alld42!_allegro_vline+0x35 [./include\allegro/inline/draw.inl @ 51]
0012fbc0 004033de 00d6f028 0000015f 00000142 test!vline+0x1d [./include\allegro/inline/draw.inl @ 67]
0012fbec 00408b98 00000320 00000258 00000080 test!vline_demo+0xa0 [tests/test.c @ 644]
0012fc0c 0040c096 00418534 00000000 004011cc test!do_it+0x173 [tests/test.c @ 2061]
0012fd88 0040dbfb 00000000 0012fda8 1003f975 test!do_profile+0xec [tests/test.c @ 3183]
0012fd94 1003f975 00c8fa9c 1020b5c4 10264780 test!profile_proc+0x15 [tests/test.c @ 3716]
0012fda8 1003faa4 00d60d68 0012fe24 0012fe2c alld42!shutdown_single_menu+0x95 [src/gui.c @ 2132]
0012fdb8 1003fca0 00d60d68 0012fe24 0000000d alld42!shutdown_tree_menu+0x4e [src/gui.c @ 2174]
0012fe2c 1003bda5 0000000e 00416c40 00000000 alld42!d_menu_proc+0x1f7 [src/gui.c @ 2247]
0012fe44 1003ca0e 00416c40 0000000e 00000000 alld42!object_message+0x84 [src/gui.c @ 353]
0012fe94 1003c1d8 00d60cb8 00d60cb8 00000004 alld42!update_dialog+0xf3 [src/gui.c @ 1073]
0012feb0 0040f618 00416c08 ffffffff 100cb6ec alld42!do_dialog+0x82 [src/gui.c @ 811]
0012fed0 100aaa17 00000001 00944678 00000000 test!_mangled_main+0x4cd [tests/test.c @ 4609]
0012ff04 0040f712 00401082 00400000 00000000 alld42!_WinMain+0x214 [src/win/wsystem.c @ 536]
0012ff20 00413533 00400000 00000000 00141ef0 test!WinMain+0x1e [tests/test.c @ 4636]


----------------------------------------------------------------------

>Comment By: torhu (torhu)
Date: 2007-02-14 11:54

Message:
Logged In: YES 
user_id=1038085
Originator: YES

I forgot to mention that this bug only appears in windowed mode.  If you
do the exact same thing, except in fullscreen mode, there's no problem.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=1659435&group_id=5665




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/