[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi] Suspected stack corruption
From: |
Greg Chicares |
Subject: |
[lmi] Suspected stack corruption |
Date: |
Thu, 10 Dec 2015 13:46:52 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0 |
I'm planning a change to move a const_cast deep into a library where it
belongs. While exploring ways to test it, I inserted the following
deliberate mistake:
renderer_type_convertor const& renderer_type_convertor::get(any_member<Input>
const& value)
else if(0 !=
reconstitutor<datum_sequence,Input>::reconstitute(nonconst_value))
{
+return get_impl<renderer_enum_convertor>();
return get_impl<renderer_sequence_convertor>();
}
I was hoping for an assertion failure, but got a segfault, and a segfault
is always a defect. Steps to reproduce with the above change:
/opt/lmi/bin[0]$./lmi_wx_shared --ash_nazg --data_path=/opt/lmi/data
File | Open | [any saved census with a nondefault input sequence]
Click OK when this messagebox appears:
Error
Cannot cast from 'M5Input16numeric_sequence' to '12mc_enum_base'.
Pull down the "File" menu and it crashes.
[msw-xp, wx_commit_sha 0b821adf903872b6d8b56630d2191c5b9c3362e5]
Hmmm--it was an access violation with the first test case I stumbled upon,
but this one produces a privileged-instruction error, suggesting a wild
pointer or stack corruption. Report from JIT debugger:
lmi_wx_shared.exe caused a Privileged Instruction at location 03ae0f1f.
Registers:
eax=02511480 ebx=00000000 ecx=00000000 edx=0022f3dc esi=03162148 edi=00000000
eip=03ae0f1f esp=0022ec34 ebp=0022ec60 iopl=0 nv up ei pl nz na po nc
cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000 efl=00000206
Call stack:
AddrPC AddrReturn AddrFrame AddrStack Params
03AE0F1F 64182914 0022EC60 0022EC34 024E74C0 00000000 0022F3DC
0022EF04
03AE0F1F
64182914 64159B99 0022EEF0 0022EC34 024E74C0 0022EF10 0000002C
00000000
64182914
wxmsw310u_gcc_gcc-345-ac28a959aabe36e26ea039ed78a51b54.dll:64182914C:\opt\lmi\local\lib\wxmsw310u_gcc_gcc-345-ac28a959aabe36e26ea039ed78a51b54.dll:
No symbol found
_ZN8wxWindow16MSWHandleMessageEPljjl
64159B99 64143BC4 0022EF20 0022EC34 024E74C0 0000002C 00000000
0022F3DC
64159B99
wxmsw310u_gcc_gcc-345-ac28a959aabe36e26ea039ed78a51b54.dll:64159B99C:\opt\lmi\local\lib\wxmsw310u_gcc_gcc-345-ac28a959aabe36e26ea039ed78a51b54.dll:
No symbol found
_ZN8wxWindow13MSWWindowProcEjjl
64143BC4 641FCCD7 0022EF50 0022EC34 024E74C0 0000002C 00000000
0022F3DC
64143BC4
wxmsw310u_gcc_gcc-345-ac28a959aabe36e26ea039ed78a51b54.dll:64143BC4C:\opt\lmi\local\lib\wxmsw310u_gcc_gcc-345-ac28a959aabe36e26ea039ed78a51b54.dll:
No symbol found
_ZN19wxTopLevelWindowMSW13MSWWindowProcEjjl
641FCCD7 64236505 0022F000 0022EC34 024E74C0 0000002C 00000000
0022F3DC
641FCCD7
wxmsw310u_gcc_gcc-345-ac28a959aabe36e26ea039ed78a51b54.dll:641FCCD7C:\opt\lmi\local\lib\wxmsw310u_gcc_gcc-345-ac28a959aabe36e26ea039ed78a51b54.dll:
No symbol found
_ZN7wxFrame13MSWWindowProcEjjl
64236505 64161A10 0022F280 0022EC34 024E74C0 0000002C 00000000
0022F3DC
64236505
wxmsw310u_gcc_gcc-345-ac28a959aabe36e26ea039ed78a51b54.dll:64236505C:\opt\lmi\local\lib\wxmsw310u_gcc_gcc-345-ac28a959aabe36e26ea039ed78a51b54.dll:
No symbol found
_ZN16wxMDIParentFrame13MSWWindowProcEjjl
64161A10 7E418734 0022F2B0 0022EC34 003903DC 0000002C 00000000
0022F3DC
64161A10
wxmsw310u_gcc_gcc-345-ac28a959aabe36e26ea039ed78a51b54.dll:64161A10C:\opt\lmi\local\lib\wxmsw310u_gcc_gcc-345-ac28a959aabe36e26ea039ed78a51b54.dll:
No symbol found
address@hidden
7E418734 7E418816 0022F2DC 0022EC34 64161960 003903DC 0000002C
00000000
7E418734 USER32.dll:7E418734 GetDC
7E418816 7E428EA0 0022F344 0022EC34 00000000 64161960 003903DC
0000002C
7E418816 USER32.dll:7E418816 GetDC
7E428EA0 7E44F683 0022F398 0022EC34 01D0DBF0 0000002C 00000000
0022F3DC
7E428EA0 USER32.dll:7E428EA0 DefWindowProcW
7E44F683 7C90E453 0022F3C0 0022EC34 0022F3D0 0000002C 01D0DBF0
0000002C
7E44F683 USER32.dll:7E44F683 IsCharAlphaNumericA
7C90E453 7E43053B 0022F44C 0022EC34 008A03D6 00000112 0000F100
00000066
7C90E453 ntdll.dll:7C90E453 KiUserCallbackDispatcher
7E43053B 7E4304BD 0022F484 0022EC34 008A03D6 00000112 0000F100
00000066
7E43053B USER32.dll:7E43053B ChangeClipboardChain
7E4304BD 7E418734 0022F4A0 0022EC34 008A03D6 00000112 0000F100
00000066
7E4304BD USER32.dll:7E4304BD ChangeClipboardChain
7E418734 7E418816 0022F4CC 0022EC34 7E43049B 008A03D6 00000112
0000F100
7E418734 USER32.dll:7E418734 GetDC
7E418816 7E42A013 0022F534 0022EC34 00000000 7E43049B 008A03D6
00000112
7E418816 USER32.dll:7E418816 GetDC
7E42A013 7E42A039 0022F564 0022EC34 7E43049B 008A03D6 00000112
0000F100
7E42A013 USER32.dll:7E42A013 IsWindowUnicode
7E42A039 6415CF29 0022F584 0022EC34 7E43049B 008A03D6 00000112
0000F100
7E42A039 USER32.dll:7E42A039 CallWindowProcW
6415CF29 64159BCA 0022F654 0022EC34 024E9710 00000112 0000F100
00000066
6415CF29
wxmsw310u_gcc_gcc-345-ac28a959aabe36e26ea039ed78a51b54.dll:6415CF29C:\opt\lmi\local\lib\wxmsw310u_gcc_gcc-345-ac28a959aabe36e26ea039ed78a51b54.dll:
No symbol found
_ZN8wxWindow16MSWDefWindowProcEjjl
64159BCA 64161A10 0022F684 0022EC34 024E9710 00000112 0000F100
00000066
64159BCA
wxmsw310u_gcc_gcc-345-ac28a959aabe36e26ea039ed78a51b54.dll:64159BCAC:\opt\lmi\local\lib\wxmsw310u_gcc_gcc-345-ac28a959aabe36e26ea039ed78a51b54.dll:
No symbol found
_ZN8wxWindow13MSWWindowProcEjjl
64161A10 7E418734 0022F6B4 0022EC34 008A03D6 00000112 0000F100
00000066
64161A10
wxmsw310u_gcc_gcc-345-ac28a959aabe36e26ea039ed78a51b54.dll:64161A10C:\opt\lmi\local\lib\wxmsw310u_gcc_gcc-345-ac28a959aabe36e26ea039ed78a51b54.dll:
No symbol found
address@hidden
7E418734 7E418816 0022F6E0 0022EC34 64161960 008A03D6 00000112
0000F100
7E418734 USER32.dll:7E418734 GetDC
7E418816 7E428EA0 0022F748 0022EC34 00000000 64161960 008A03D6
00000112
7E418816 USER32.dll:7E418816 GetDC
7E428EA0 7E428EEC 0022F79C 0022EC34 01D6A740 00000112 0000F100
00000066
7E428EA0 USER32.dll:7E428EA0 DefWindowProcW
7E428EEC 7C90E453 0022F7C4 0022EC34 0022F7D4 00000018 01D6A740
00000112
7E428EEC USER32.dll:7E428EEC DefWindowProcW
7C90E453 7E43053B 0022F83C 0022EC34 008A03D6 00000106 00000066
20210001
7C90E453 ntdll.dll:7C90E453 KiUserCallbackDispatcher
7E43053B 7E4304BD 0022F874 0022EC34 008A03D6 00000106 00000066
20210001
7E43053B USER32.dll:7E43053B ChangeClipboardChain
7E4304BD 7E418734 0022F890 0022EC34 008A03D6 00000106 00000066
20210001
7E4304BD USER32.dll:7E4304BD ChangeClipboardChain
7E418734 7E418816 0022F8BC 0022EC34 7E43049B 008A03D6 00000106
00000066
7E418734 USER32.dll:7E418734 GetDC
7E418816 7E42A013 0022F924 0022EC34 00000000 7E43049B 008A03D6
00000106
7E418816 USER32.dll:7E418816 GetDC
7E42A013 7E42A039 0022F954 0022EC34 7E43049B 008A03D6 00000106
00000066
7E42A013 USER32.dll:7E42A013 IsWindowUnicode
7E42A039 6415CF29 0022F974 0022EC34 7E43049B 008A03D6 00000106
00000066
7E42A039 USER32.dll:7E42A039 CallWindowProcW
6415CF29 64159BCA 0022FA44 0022EC34 024E9710 00000106 00000066
20210001
6415CF29
wxmsw310u_gcc_gcc-345-ac28a959aabe36e26ea039ed78a51b54.dll:6415CF29C:\opt\lmi\local\lib\wxmsw310u_gcc_gcc-345-ac28a959aabe36e26ea039ed78a51b54.dll:
No symbol found
_ZN8wxWindow16MSWDefWindowProcEjjl
64159BCA 64161A10 0022FA74 0022EC34 024E9710 00000106 00000066
20210001
64159BCA
wxmsw310u_gcc_gcc-345-ac28a959aabe36e26ea039ed78a51b54.dll:64159BCAC:\opt\lmi\local\lib\wxmsw310u_gcc_gcc-345-ac28a959aabe36e26ea039ed78a51b54.dll:
No symbol found
_ZN8wxWindow13MSWWindowProcEjjl
64161A10 7E418734 0022FAA4 0022EC34 008A03D6 00000106 00000066
20210001
64161A10
wxmsw310u_gcc_gcc-345-ac28a959aabe36e26ea039ed78a51b54.dll:64161A10C:\opt\lmi\local\lib\wxmsw310u_gcc_gcc-345-ac28a959aabe36e26ea039ed78a51b54.dll:
No symbol found
address@hidden
7E418734 7E418816 0022FAD0 0022EC34 64161960 008A03D6 00000106
00000066
7E418734 USER32.dll:7E418734 GetDC
7E418816 7E4189CD 0022FB38 0022EC34 00000000 64161960 008A03D6
00000106
7E418816 USER32.dll:7E418816 GetDC
7E4189CD 7E418A10 0022FB98 0022EC34 0022FBE0 00000000 0022FBC8
641F2565
7E4189CD USER32.dll:7E4189CD GetWindowLongW
7E418A10 641F2565 0022FBA8 0022EC34 0022FBE0 0022FBE0 FFFFFFFF
00000000
7E418A10 USER32.dll:7E418A10 DispatchMessageW
641F2565 641F25AC 0022FBC8 0022EC34 024FD8D8 0022FBE0 00000000
00000000
641F2565
wxmsw310u_gcc_gcc-345-ac28a959aabe36e26ea039ed78a51b54.dll:641F2565C:\opt\lmi\local\lib\wxmsw310u_gcc_gcc-345-ac28a959aabe36e26ea039ed78a51b54.dll:
No symbol found
_ZN14wxGUIEventLoop14ProcessMessageEP6tagMSG
641F25AC 63D9515F 0022FC08 0022EC34 024FD8D8 0040D05C 0022FC88
63D95213
641F25AC
wxmsw310u_gcc_gcc-345-ac28a959aabe36e26ea039ed78a51b54.dll:641F25ACC:\opt\lmi\local\lib\wxmsw310u_gcc_gcc-345-ac28a959aabe36e26ea039ed78a51b54.dll:
No symbol found
_ZN14wxGUIEventLoop8DispatchEv
63D9515F 63D95213 0022FC18 0022EC34 024FD8D8 77C12088 FFFFFFFF
77C2C3CE
63D9515F
wxmsw310u_gcc_gcc-345-ac28a959aabe36e26ea039ed78a51b54.dll:63D9515FC:\opt\lmi\local\lib\wxmsw310u_gcc_gcc-345-ac28a959aabe36e26ea039ed78a51b54.dll:
No symbol found
_ZN17wxEventLoopManual13ProcessEventsEv
63D95213 63D954AA 0022FC88 0022EC34 024FD8D8 00000000 0022FFE0
0040D05C
63D95213
wxmsw310u_gcc_gcc-345-ac28a959aabe36e26ea039ed78a51b54.dll:63D95213C:\opt\lmi\local\lib\wxmsw310u_gcc_gcc-345-ac28a959aabe36e26ea039ed78a51b54.dll:
No symbol found
_ZN17wxEventLoopManual5DoRunEv
63D954AA 63D4B7B6 0022FD38 0022EC34 024FD8D8 00000000 0022FE48
023C39D0
63D954AA
wxmsw310u_gcc_gcc-345-ac28a959aabe36e26ea039ed78a51b54.dll:63D954AAC:\opt\lmi\local\lib\wxmsw310u_gcc_gcc-345-ac28a959aabe36e26ea039ed78a51b54.dll:
No symbol found
_ZN15wxEventLoopBase3RunEv
63D4B7B6 63E16250 0022FDC8 0022EC34 020FFD98 020FF778 649D2B18
0022FE30
63D4B7B6
wxmsw310u_gcc_gcc-345-ac28a959aabe36e26ea039ed78a51b54.dll:63D4B7B6C:\opt\lmi\local\lib\wxmsw310u_gcc_gcc-345-ac28a959aabe36e26ea039ed78a51b54.dll:
No symbol found
_ZN16wxAppConsoleBase8MainLoopEv
63E16250 0040145D 0022FE58 0022EC34 64B1B740 020FF778 00252331
0000000A
63E16250
wxmsw310u_gcc_gcc-345-ac28a959aabe36e26ea039ed78a51b54.dll:63E16250C:\opt\lmi\local\lib\wxmsw310u_gcc_gcc-345-ac28a959aabe36e26ea039ed78a51b54.dll:
No symbol found
_Z12wxInitializev
0040145D 00405F98 0022FEF8 0022EC34 00400000 00000000 00252331
0000000A
0040145D lmi_wx_shared.exe:0040145DC:\opt\lmi\bin\lmi_wx_shared.exe: No symbol
found
00405F98 0040124B 0022FF78 0022EC34 00000003 020F95E0 003F2CA8
0040E000
00405F98 lmi_wx_shared.exe:00405F98C:\opt\lmi\bin\lmi_wx_shared.exe: No symbol
found
0040124B 004012B8 0022FFB0 0022EC34 00000002 00000009 0022FFF0
7C817067
0040124B lmi_wx_shared.exe:0040124BC:\opt\lmi\bin\lmi_wx_shared.exe: No symbol
found
004012B8 7C817067 0022FFC0 0022EC34 00000000 00000000 7FFDD000
C0000096
004012B8 lmi_wx_shared.exe:004012B8C:\opt\lmi\bin\lmi_wx_shared.exe: No symbol
found
7C817067 00000000 0022FFF0 0022EC34 004012A0 00000000 78746341
00000020
7C817067 kernel32.dll:7C817067 RegisterWaitForInputIdle
- [lmi] Suspected stack corruption,
Greg Chicares <=