The use of hex sequences is causing stapbpf to crash and produce a segmentation fault. For example, the following script exhibits such behaviour: stap --bpf -e 'probe oneshot { print("\x40") }'
The translation in stapbpf causes the iterator to reach the end of the string after building the hex number, and then loop increments the iterator again and misses the stopping condition. This causes the loop to go out of range and eventually run into a segmentation fault. Additionally, the building of the hex number doesn't account for digits '8' and '9', and as mentioned in PR24947 there is no check for valid hex sequences.
Fixed in commit 728bbc1ac. This is a temporary patch, and will be reverted after PR13371 is fixed.
(In reply to Sagar Patel from comment #2) > Fixed in commit 728bbc1ac. > > This is a temporary patch, and will be reverted after PR13371 is fixed. The portion of the patch dealing with this PR will not be reverted, only the portion dealing with PR24947 will be reverted.