This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Troubleshooting "UNEXPECTED FATAL ERROR in staprun" on ARM9 target.
- From: Roland McGrath <roland at redhat dot com>
- To: Grant Edwards <grant dot b dot edwards at gmail dot com>
- Cc: systemtap at sources dot redhat dot com
- Date: Tue, 31 Aug 2010 17:35:04 -0700 (PDT)
- Subject: Re: Troubleshooting "UNEXPECTED FATAL ERROR in staprun" on ARM9 target.
- References: <i5j427$l33$2@dough.gmane.org> <i5ju3g$d0e$1@dough.gmane.org>
> 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