Home » Newcomers » Newcomers » Can't debug Qt program
Can't debug Qt program [message #267401] |
Mon, 29 December 2008 16:14  |
Eclipse User |
|
|
|
Originally posted by: doug.dbassoc.com
gcc: 3.4.2, gdb: 6.8.mingw-3, Qt: 4.2.3, Qt Eclipse integration: 1.4.3,
Eclipse: 3.4.1
I have been running Qt for a while now. After installing the Eclipse
environment for Qt I wrote Qt's simple tutorial project (Address Book) to
test. It runs fine out of Eclipse or from the command line, it runs fine
under gdb from the command line, however, when I run it in debug mode in
Eclipse gdb errors out before it gets to main(). The error seems to be an
attempt to access address 0x00000000.
The debug window is as follows (the ellipses are today's date and time):
AddressBook.exe[C/C++ Local Application]
MinGW gdb Debugger (...)(Suspended)
Thread[1](Suspended)
6 ntdll!LdrAccessResource() 0x7c90e4f4
5 ntdll!ZwMapViewOfSection() 0x7c90d50c
4 snwprintf() 0x7c91bd03
3 ntdll!RtValidateUnicodeString() 0x7c91624a
2 ntdll!LdrShutdownProcess() 0x7c9164b3
1 <symbol is not available> 0x00000000
C:\data\Qt\mingw\bin\gdb.exe (...)
C:\data\Qt\Eclipse\AddressBook\debug\AddressBook.exe (...)
On the Console:
[New thread 2568.0xbec]
Cannot access memory at address 0x0
If I understand correctly, it appears that ntdll!LdrShutdownProcess() is
attempting to access memory with a null pointer (?).
Any suggestions on where to go from here are greatly appreciated.
Thanks, Doug
|
|
|
Re: Can't debug Qt program [message #267429 is a reply to message #267401] |
Wed, 31 December 2008 15:24   |
Eclipse User |
|
|
|
Originally posted by: doug.dbassoc.com
More info:
If I keep clicking the green Run arrow once the debugger suspends as below,
it keeps suspending with similar, but more, messages as shown below. After
4 times it finally makes it to main() and halts (as it should). In the
variables window there are the following errors:
typeinfo for QObject <mi_cmd_var_create: unable to create varaible object>
typeinfo name for QObject <mi_cmd_var_create: unable to create varaible
object>
typeinfo for AddressBook <mi_cmd_var_create: unable to create varaible
object>
typeinfo name for AddressBook <mi_cmd_var_create: unable to create varaible
object>
typeinfo for QWidget <mi_cmd_var_create: unable to create varaible object>
typeinfo name for QWidget <mi_cmd_var_create: unable to create varaible
object>
typeinfo for QPaintDevice <mi_cmd_var_create: unable to create varaible
object>
typeinfo name for QPaintDevice <mi_cmd_var_create: unable to create varaible
object>
Don't know if this helps point to the problem or not, but so far no-one
seems to have an idea what's going on (not here nor on the QtCentre forum
nor the trolltech.qt4-preview-feedback newsgroup).
BTW, I have Lib & Include set to the applicable directories in the MinGW and
Qt directories.
Thanks,
Doug
"Doug Broadwell" <doug@dbassoc.com> wrote in message
news:gjbeh7$9cn$1@build.eclipse.org...
> gcc: 3.4.2, gdb: 6.8.mingw-3, Qt: 4.2.3, Qt Eclipse integration: 1.4.3,
> Eclipse: 3.4.1
>
> I have been running Qt for a while now. After installing the Eclipse
> environment for Qt I wrote Qt's simple tutorial project (Address Book) to
> test. It runs fine out of Eclipse or from the command line, it runs fine
> under gdb from the command line, however, when I run it in debug mode in
> Eclipse gdb errors out before it gets to main(). The error seems to be an
> attempt to access address 0x00000000.
>
> The debug window is as follows (the ellipses are today's date and time):
>
> AddressBook.exe[C/C++ Local Application]
> MinGW gdb Debugger (...)(Suspended)
> Thread[1](Suspended)
> 6 ntdll!LdrAccessResource() 0x7c90e4f4
> 5 ntdll!ZwMapViewOfSection() 0x7c90d50c
> 4 snwprintf() 0x7c91bd03
> 3 ntdll!RtValidateUnicodeString() 0x7c91624a
> 2 ntdll!LdrShutdownProcess() 0x7c9164b3
> 1 <symbol is not available> 0x00000000
> C:\data\Qt\mingw\bin\gdb.exe (...)
> C:\data\Qt\Eclipse\AddressBook\debug\AddressBook.exe (...)
>
> On the Console:
>
> [New thread 2568.0xbec]
> Cannot access memory at address 0x0
>
> If I understand correctly, it appears that ntdll!LdrShutdownProcess() is
> attempting to access memory with a null pointer (?).
>
> Any suggestions on where to go from here are greatly appreciated.
> Thanks, Doug
>
|
|
|
Re: Can't debug Qt program [message #267470 is a reply to message #267429] |
Mon, 05 January 2009 13:36  |
Eclipse User |
|
|
|
Originally posted by: doug.dbassoc.com
I'm amazed that no one else has run into this problem, I've gotten no
responses from this newsgroup nor eclipse.newcomer nor Qt Centre->Install
and Deployment.
I've installed on two different computers with same results, both XP Pro
with the latest patches. One computer is gcc: 3.4.2, gdb: the precompiled
for windows version 6.8.mingw-3, Qt: 4.2.3, Eclipse: 3.4.1 for C++, Qt
Eclipse integration: 1.4.3
The other computer is same except Qt: 4.4.1
Help.
Doug
"Doug Broadwell" <doug@dbassoc.com> wrote in message
news:gjgkbg$c7u$1@build.eclipse.org...
> More info:
>
>
>
> If I keep clicking the green Run arrow once the debugger suspends as
> below, it keeps suspending with similar, but more, messages as shown
> below. After 4 times it finally makes it to main() and halts (as it
> should). In the variables window there are the following errors:
>
>
>
> typeinfo for QObject <mi_cmd_var_create: unable to create varaible object>
>
> typeinfo name for QObject <mi_cmd_var_create: unable to create varaible
> object>
>
> typeinfo for AddressBook <mi_cmd_var_create: unable to create varaible
> object>
>
> typeinfo name for AddressBook <mi_cmd_var_create: unable to create
> varaible object>
>
> typeinfo for QWidget <mi_cmd_var_create: unable to create varaible object>
>
> typeinfo name for QWidget <mi_cmd_var_create: unable to create varaible
> object>
>
> typeinfo for QPaintDevice <mi_cmd_var_create: unable to create varaible
> object>
>
> typeinfo name for QPaintDevice <mi_cmd_var_create: unable to create
> varaible object>
>
>
>
> Don't know if this helps point to the problem or not, but so far no-one
> seems to have an idea what's going on (not here nor on the QtCentre forum
> nor the trolltech.qt4-preview-feedback newsgroup).
>
>
>
> BTW, I have Lib & Include set to the applicable directories in the MinGW
> and Qt directories.
>
>
>
> Thanks,
>
> Doug
>
>
>
> "Doug Broadwell" <doug@dbassoc.com> wrote in message
> news:gjbeh7$9cn$1@build.eclipse.org...
>> gcc: 3.4.2, gdb: 6.8.mingw-3, Qt: 4.2.3, Qt Eclipse integration:
>> 1.4.3, Eclipse: 3.4.1
>>
>> I have been running Qt for a while now. After installing the Eclipse
>> environment for Qt I wrote Qt's simple tutorial project (Address Book) to
>> test. It runs fine out of Eclipse or from the command line, it runs fine
>> under gdb from the command line, however, when I run it in debug mode in
>> Eclipse gdb errors out before it gets to main(). The error seems to be
>> an attempt to access address 0x00000000.
>>
>> The debug window is as follows (the ellipses are today's date and time):
>>
>> AddressBook.exe[C/C++ Local Application]
>> MinGW gdb Debugger (...)(Suspended)
>> Thread[1](Suspended)
>> 6 ntdll!LdrAccessResource() 0x7c90e4f4
>> 5 ntdll!ZwMapViewOfSection() 0x7c90d50c
>> 4 snwprintf() 0x7c91bd03
>> 3 ntdll!RtValidateUnicodeString() 0x7c91624a
>> 2 ntdll!LdrShutdownProcess() 0x7c9164b3
>> 1 <symbol is not available> 0x00000000
>> C:\data\Qt\mingw\bin\gdb.exe (...)
>> C:\data\Qt\Eclipse\AddressBook\debug\AddressBook.exe (...)
>>
>> On the Console:
>>
>> [New thread 2568.0xbec]
>> Cannot access memory at address 0x0
>>
>> If I understand correctly, it appears that ntdll!LdrShutdownProcess() is
>> attempting to access memory with a null pointer (?).
>>
>> Any suggestions on where to go from here are greatly appreciated.
>> Thanks, Doug
>>
>
>
|
|
|
Goto Forum:
Current Time: Sun May 04 12:37:28 EDT 2025
Powered by FUDForum. Page generated in 0.08351 seconds
|