Thread: BUG #8587: quantile segfaults when quantile out of [0;1] range

BUG #8587: quantile segfaults when quantile out of [0;1] range

From
stephane.wustner@lip6.fr
Date:
The following bug has been logged on the website:

Bug reference:      8587
Logged by:          strexxx
Email address:      stephane.wustner@lip6.fr
PostgreSQL version: 9.3.0
Operating system:   ubuntu 13.04
Description:

I know this is not the place to submit for the quantile extension, but the
git hub new issue button is broken.


2013-11-11 18:05:53 CET LOG:  server process (PID 28207) was terminated by
signal 11: Segmentation fault
2013-11-11 18:05:53 CET DETAIL:  Failed process was running: select
quantile(generate_series,50) from generate_series(0,997);


I know quantile expect double precision within [0;1], but, maybe you would
like to know it segfaults.

Re: BUG #8587: quantile segfaults when quantile out of [0;1] range

From
Michael Paquier
Date:
On Tue, Nov 12, 2013 at 2:19 AM,  <stephane.wustner@lip6.fr> wrote:
> The following bug has been logged on the website:
>
> Bug reference:      8587
> Logged by:          strexxx
> Email address:      stephane.wustner@lip6.fr
> PostgreSQL version: 9.3.0
> I know this is not the place to submit for the quantile extension, but the
> git hub new issue button is broken.
All the issues of Postgres should be reported on pgsql-bugs or with
the website UI, the bug tracker on github being disabled.

> 2013-11-11 18:05:53 CET LOG:  server process (PID 28207) was terminated by
> signal 11: Segmentation fault
> 2013-11-11 18:05:53 CET DETAIL:  Failed process was running: select
> quantile(generate_series,50) from generate_series(0,997);
quantile is part of this package on pgxn =>
http://pgxn.org/dist/quantile/. So it would be better to contact the
maintainer, Tomas, directly there to report this bug, even if I am
sure he is watching this ML.

Regards,
--
Michael

Re: BUG #8587: quantile segfaults when quantile out of [0;1] range

From
Tomas Vondra
Date:
On 13.11.2013 07:18, Michael Paquier wrote:
> On Tue, Nov 12, 2013 at 2:19 AM,  <stephane.wustner@lip6.fr> wrote:
>> The following bug has been logged on the website:
>>
>> Bug reference:      8587
>> Logged by:          strexxx
>> Email address:      stephane.wustner@lip6.fr
>> PostgreSQL version: 9.3.0
>> I know this is not the place to submit for the quantile extension, but the
>> git hub new issue button is broken.
> All the issues of Postgres should be reported on pgsql-bugs or with
> the website UI, the bug tracker on github being disabled.
>
>> 2013-11-11 18:05:53 CET LOG:  server process (PID 28207) was terminated by
>> signal 11: Segmentation fault
>> 2013-11-11 18:05:53 CET DETAIL:  Failed process was running: select
>> quantile(generate_series,50) from generate_series(0,997);
> quantile is part of this package on pgxn =>
> http://pgxn.org/dist/quantile/. So it would be better to contact the
> maintainer, Tomas, directly there to report this bug, even if I am
> sure he is watching this ML.

Thanks, I'm watching this list. Not sure what's wrong with the issue
tracker on github - I reposted the issue there and it worked for me like
a charm:

   https://github.com/tvondra/quantile/issues/5

Anyway, it's a clear bug in the extension and I'll fix it / release a
new version on pgxn in a matter of days.

regards
Tomas