bugThe libunwind project - Bugs: bug #38562, For ppc32 mi_init() throws...

 
 

bug #38562: For ppc32 mi_init() throws assertion on struct cursor < unw_cursor_t

Submitted by:  David Lerner <davelerner>
Submitted on:  Thu 21 Mar 2013 02:05:12 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 13 Apr 2013 07:27:09 PM UTC, comment #1:

http://git.savannah.gnu.org/gitweb/?p=libunwind.git;a=commitdiff;h=becfc2312367ee47993495745ec96d7be1a3b3ba

Arun Sharma <aruns>
Project Administrator
Thu 21 Mar 2013 02:05:12 PM UTC, original submission:

When libunwind (1.0.1) is built for a ppc32 target, for example the yocto distro for qemuppc, and configured with options --enable-debug-frame and --enable-debug, then the shortfall in the size of the 'opaque' member of the unw_cursor_t type throws an assert in mi_init().

The calculations for the ppc32 target size of UNW_TDEP_CURSOR_LEN in the comment block based on the register count plus overhead total 280 words. However, that value is not reflected in the ppc32 header, which defines the size as 200. Changing the define value in libunwind-ppc32.h to 280 makes the unw_cursor_t type larger than struct cursor type and the assert tests true at run-time in mi_init().

Patch is attached.

David Lerner <davelerner>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #27645:  unw_cursor_t_assert.patch added by davelerner (1KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by aruns (Posted a comment)
  • -unavailable- added by davelerner (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 13 Apr 2013 07:27:09 PM UTCarunsOpen/ClosedOpen=>Closed
    Thu 21 Mar 2013 02:05:12 PM UTCdavelernerAttached File-=>Added unw_cursor_t_assert.patch, #27645

    Back to the top


    Powered by Savane 3.1-cleanup1