Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / CodeWarrior / December 2005



Tip: Looking for answers? Try searching our database.

CW10 crashes when debugging

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Leonid Spektor - 05 Dec 2005 20:49 GMT
Hi,

   I am using CodeWarrior Development Studio 10.0 on Mac G5 with Mac OS
10.4. I found that when I try to look at the field of 'struct' variable in
"Expressions Window" the whole CodeWarrior application crashes. This does
not happen in CodeWarrior 9.6. The crash does NOT occur in CW10 if you look
at the field in a "Variables: All" window. I will try to describe the steps
that lead to crash.

1. Take or create any new c++ program.

2. add the following line at the top of main file:

   struct test {
       char *s;
   } v;

3. Add this line in "main()" function:

   v.s = "test";

4. Set debugger break point at line:

   v.s = "test";

5. Execute "Debug" menu command, i.e. start debugging.

6. When main debugger window appears open "Expressions Window"

7. Highlight variable "v", from above, and "Copy To Expression"

8. In "Expressions" window expend variable "v" to display its field, i.e. to
show field "s" and its value.

9. Execute "Step Over" menu command. At this time my CW 10 crashes.

Is there something wrong with CW version 10 or am I doing something wrong?

Thanks for any suggestion in advance,
Leonid.
Ron L - 06 Dec 2005 04:16 GMT
>Hi,
>
[quoted text clipped - 35 lines]
>
>Thanks for any suggestion in advance,

the s member is never allocted.  If you doing anything with unallocated
strings and you are at the mercy of the machine.
Does it work with an allocation?

Ron

Signature

CodeWarrior Community Forum is a free online resource for developers
to discuss CodeWarrior topics with other users and our staff
       --   http://www.codewarrior.com/community  --

Ron Liechty - ron.liechty@freescale.com - http://www.codewarrior.com

Ben Artin - 06 Dec 2005 04:44 GMT
> >Hi,
> >
[quoted text clipped - 4 lines]
> >at the field in a "Variables: All" window. I will try to describe the steps
> >that lead to crash.

> the s member is never allocted.  If you doing anything with unallocated
> strings and you are at the mercy of the machine.
>  Does it work with an allocation?

Looking at a pointer before it's been initialized should not cause the debugger
to crash, Ron.

Signature

If this message helped you, consider buying an item
from my wish list: <http://artins.org/ben/wishlist>

I changed my name: <http://periodic-kingdom.org/People/NameChange.php>

Alwyn - 06 Dec 2005 20:05 GMT
> Looking at a pointer before it's been initialized should not cause the
> debugger to crash, Ron.

Indeed, a debugger is supposed to be robust enough so that when the
process you are debugging crashes, you are able to use it to look at
stack traces, the contents of various memory locations and so forth with
a view to investigating your problem.

It looks like we have a genuine bug here. But we now know it will never
be corrected. :-(

Alwyn
Leonid Spektor - 07 Dec 2005 18:18 GMT
>> I found that when I try to look at the field of 'struct' variable in
>> "Expressions Window" the whole CodeWarrior 10 application crashes. This does
[quoted text clipped - 11 lines]
>
> Ron

   CW 10 crashes even when s member has been allocated memory. It crashes
simply because I try to look at the s member in "Expressions Window" while
debugging my code.

   So, is someone at freescale going to fix this and/or other bugs? Are
there going to be any patches/updates created for CW 10? If not, then even a
greatly reduced price, the CW 10 is still not worth it for us at my
workplace.

Thanks,
Leonid.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.