This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Troubleshooting "UNEXPECTED FATAL ERROR in staprun" on ARM9 target.


> In line 371, the "%as" format for scanf is a non-standard, extension
> specific to glibc.  Changing that function so that it uses the
> standard "%s" format fixes the segfault crash and allows the hello.stp
> script to run successfully.

The C99 equivalent format is %ms.  Some older glibc versions did not
support that (only the GNU extension %as, which long predates C99's
adoption of the same feature with a different letter).  I don't know
about C99 format support in other libcs.

In this case, it's far more efficient not to do any extra allocation there
at all.  I've committed a change to clean it up that way.


Thanks,
Roland


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]