# Segfault in analog.quadrature\_demod\_cf

**URL:** <https://www.ruby-forum.com/t/segfault-in-analog-quadrature-demod-cf/239193>\
**Category:** GNU Radio\
**Created:** [February 16, 2014, 9:53pm UTC](https://www.ruby-forum.com/t/segfault-in-analog-quadrature-demod-cf/239193 "2014-02-16T21:53:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [February 16, 2014, 9:53pm UTC](https://www.ruby-forum.com/t/segfault-in-analog-quadrature-demod-cf/239193/1 "2014-02-16T21:53:24Z")

</div>

Application that reproduces segfault:

> **[\#!/usr/bin/env python################################################### Gnu...](https://pastebin.com/Fw0y7qM9)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

debug backtrace: [http://pastebin.com/FjnHu6Cs](http://pastebin.com/FjnHu6Cs)

patch that fixes it for me, although I’m sure theres a better place to  
fix  
it: [diff --git a/gr-analog/lib/quadrature\_demod\_cf\_impl.cc b/gr-analog/lib/quadratur - Pastebin.com](http://pastebin.com/4gSW57Wt)

Thanks,  
Matt.

---

<div class="post-metadata">

**Author:** ![mattmcswain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ecb155/32.png) [@mattmcswain](https://www.ruby-forum.com/u/mattmcswain)\
**Post date:** [February 19, 2014, 9:18am UTC](https://www.ruby-forum.com/t/segfault-in-analog-quadrature-demod-cf/239193/2 "2014-02-19T09:18:59Z")

</div>

On Sun, Feb 16, 2014 at 2:52 PM, Matt M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Matt.

If it’s a problem with fast\_atan2f not being able to handle inputs of  
infinity then the patch should be moved in to fast\_atan2f. However,  
the last time I touched that file bad things happened, so I’d advocate  
for someone else to give this some attention :-). So, basically…  
consider this a friendly bump.

Nathan
