Re: Testing v1.7: Creating constraint => core dump

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: Leszek Trenkner <olaf(at)post(dot)pl>
Cc: pgadmin-hackers(at)postgresql(dot)org
Subject: Re: Testing v1.7: Creating constraint => core dump
Date: 2007-05-16 08:43:35
Message-ID: 464AC437.90502@lelarge.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Leszek Trenkner a écrit :
> Using recent SVN head (6301M) I've encoutered annoying bug - regression -
> that wasn't there a few days back.
>
> When I try to create constraint in the gui - in any way possible (right-
> clicking on browser tree node, from the main menu, in table ctration
> dialog on constraints tab) - pgadmin just core dumps ("Segmentation fault
> (core dumped)"). It seems like the very dialog window that allows one to
> input constraint definition is the culprit - but it does mater which type
> of the constraint I want to create (primary key and unique do not work)-
> so it might be a common piece of code just before displaying that window
> between the two.
>
> Everything else seems to work fine, as far as dialog windows are
> concerned.
>
> I've tried to debug this issue more closely, bus as far as I've got is
> getting debug version of pgAdmin3 build (Ubuntu Fiesty 7.04, Ubuntu
> supplied wx-2.8.1-dbg libraries), which unfortunately dies ("core dumped")
> just as release build would in any constraint creation attempt. BTW,
> where is the dumped core expected to appear?
>
> I've tried to attach debugger to pgadmin3, and if I try to create a
> constraint pgadmin stops on line 105 in pgadmin/dlg/dlgIndex.cpp:
> 105 txtFillFactor->SetValidator(numericValidator);
> 106 if (connection->BackendMinimumVersion(8, 2))
> 107 txtFillFactor->Enable();
> 108 else
> 109 txtFillFactor->Disable();
> 110
>

You're right about this. I didn't know constraint dialog used
dlgIndex.cpp. You'll find a patch attached fixing this issue.

Sorry about this, but thanks for your report.

Regards.

--
Guillaume.
<!-- http://abs.traduc.org/
http://lfs.traduc.org/
http://docs.postgresqlfr.org/ -->

Attachment Content-Type Size
fillfactorbugissue.patch text/x-patch 728 bytes

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Dave Page 2007-05-16 10:26:28 Re: 'Stealing' SQL files association considered harmful
Previous Message Leszek Trenkner 2007-05-15 23:26:37 Testing v1.7: Creating constraint => core dump