[MacPorts] #49764: babl @0.1.14 falls back to clang-3.4 which is not functional on PPC platforms

MacPorts noreply at macports.org
Mon Oct 31 02:27:04 CET 2016


#49764: babl @0.1.14 falls back to clang-3.4 which is not functional on PPC
platforms
--------------------------+----------------------
  Reporter:  udbraumann   |      Owner:  dbevans
      Type:  enhancement  |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:  powerpc
      Port:  clang34      |
--------------------------+----------------------

Comment (by ken-cunningham-webuse):

 I've continued to plug away at this. I've become convinced the error must
 be in this line

 {{{
 const uint8_t *p = getsectiondata(mh, "__TEXT", "__eh_frame", &size);
 }}}

 which always leads directly to the memory crash.

 the function is detailed here
 <http://opensource.apple.com/source/cctools/cctools-886/libmacho/getsecbyname.c>

 this info sent to the function looked OK to me

 {{{
 341 uint8_t *p = getsectiondata(mh, "__TEXT", "__eh_frame", &size);
 (gdb) print mh
 $10 = (const mach_header_64 *) 0x10000d610
 (gdb) print size
 $11 = 0
 (gdb) print p
 $12 = (uint8_t *) 0x0
 }}}

 so I wondered if it could be that *p was an unallocated memory location
 that the function crashes when trying to write to.

 I tried this
 {{{

     const uint8_t *p = (uint8_t *)malloc(sizeof *p);
     p = getsectiondata(mh, "__TEXT", "__eh_frame", &size);
 }}}

 but that doesn't work either. Still plugging away...

--
Ticket URL: <https://trac.macports.org/ticket/49764#comment:40>
MacPorts <https://www.macports.org/>
Ports system for OS X



More information about the macports-tickets mailing list