Thread: Crash on selecting schema with domain

Crash on selecting schema with domain

From
Evan Martin
Date:
Running latest trunk build on 32-bit Linux, pgAdmin crashes whenever I 
click on a schema that contains one or more domains.

GDB backtrace: http://pastebin.com/mSGd978J

To reproduce:

1. Create a new database
2. Create a new schema in the database
3. Create a new domain in the schema.

pgAdmin crashes at this point. If you restart it crashes as soon as you 
click on the schema that contains the domain in the treeview. Clicking 
on a schema with no domains is fine.



Re: Crash on selecting schema with domain

From
Dave Page
Date:
Hi

On Fri, Nov 23, 2012 at 2:26 AM, Evan Martin
<postgresql@realityexists.net> wrote:
> Running latest trunk build on 32-bit Linux, pgAdmin crashes whenever I click
> on a schema that contains one or more domains.
>
> GDB backtrace: http://pastebin.com/mSGd978J
>
> To reproduce:
>
> 1. Create a new database
> 2. Create a new schema in the database
> 3. Create a new domain in the schema.
>
> pgAdmin crashes at this point. If you restart it crashes as soon as you
> click on the schema that contains the domain in the treeview. Clicking on a
> schema with no domains is fine.

I was able to reproduce this on Windows. I strongly suspect it's
fallout from some of the other work done recently to fix some other
issues in the browser - it doesn't occur in 1.16.0, but does occur on
the tip of both the 1.16 and master branches.

Akshay, can you look at this first thing in the morning please? I'd
like to get this fixed before the PostgreSQL back branch releases next
week.

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



Re: Crash on selecting schema with domain

From
Guillaume Lelarge
Date:
On Mon, 2012-11-26 at 18:41 +0000, Dave Page wrote:
> Hi
> 
> On Fri, Nov 23, 2012 at 2:26 AM, Evan Martin
> <postgresql@realityexists.net> wrote:
> > Running latest trunk build on 32-bit Linux, pgAdmin crashes whenever I click
> > on a schema that contains one or more domains.
> >
> > GDB backtrace: http://pastebin.com/mSGd978J
> >
> > To reproduce:
> >
> > 1. Create a new database
> > 2. Create a new schema in the database
> > 3. Create a new domain in the schema.
> >
> > pgAdmin crashes at this point. If you restart it crashes as soon as you
> > click on the schema that contains the domain in the treeview. Clicking on a
> > schema with no domains is fine.
> 
> I was able to reproduce this on Windows.

FYI, it's also there on Linux.

>  I strongly suspect it's
> fallout from some of the other work done recently to fix some other
> issues in the browser - it doesn't occur in 1.16.0, but does occur on
> the tip of both the 1.16 and master branches.
> 
> Akshay, can you look at this first thing in the morning please? I'd
> like to get this fixed before the PostgreSQL back branch releases next
> week.
> 

That would be great, thanks.


-- 
Guillaume
http://blog.guillaume.lelarge.info
http://www.dalibo.com




Re: Crash on selecting schema with domain

From
Dave Page
Date:
On Mon, Nov 26, 2012 at 10:34 PM, Guillaume Lelarge
<guillaume@lelarge.info> wrote:
> On Mon, 2012-11-26 at 18:41 +0000, Dave Page wrote:
>> Hi
>>
>> On Fri, Nov 23, 2012 at 2:26 AM, Evan Martin
>> <postgresql@realityexists.net> wrote:
>> > Running latest trunk build on 32-bit Linux, pgAdmin crashes whenever I click
>> > on a schema that contains one or more domains.
>> >
>> > GDB backtrace: http://pastebin.com/mSGd978J
>> >
>> > To reproduce:
>> >
>> > 1. Create a new database
>> > 2. Create a new schema in the database
>> > 3. Create a new domain in the schema.
>> >
>> > pgAdmin crashes at this point. If you restart it crashes as soon as you
>> > click on the schema that contains the domain in the treeview. Clicking on a
>> > schema with no domains is fine.
>>
>> I was able to reproduce this on Windows.
>
> FYI, it's also there on Linux.

I meant Mac actually. Sorry, it was after midnight here...

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



Re: Crash on selecting schema with domain

From
Akshay Joshi
Date:


On Tue, Nov 27, 2012 at 12:11 AM, Dave Page <dpage@pgadmin.org> wrote:
Hi

On Fri, Nov 23, 2012 at 2:26 AM, Evan Martin
<postgresql@realityexists.net> wrote:
> Running latest trunk build on 32-bit Linux, pgAdmin crashes whenever I click
> on a schema that contains one or more domains.
>
> GDB backtrace: http://pastebin.com/mSGd978J
>
> To reproduce:
>
> 1. Create a new database
> 2. Create a new schema in the database
> 3. Create a new domain in the schema.
>
> pgAdmin crashes at this point. If you restart it crashes as soon as you
> click on the schema that contains the domain in the treeview. Clicking on a
> schema with no domains is fine.

I was able to reproduce this on Windows. I strongly suspect it's
fallout from some of the other work done recently to fix some other
issues in the browser - it doesn't occur in 1.16.0, but does occur on
the tip of both the 1.16 and master branches.

Akshay, can you look at this first thing in the morning please? I'd
like to get this fixed before the PostgreSQL back branch releases next
week.

  Fixed. Patch submitted.  

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



--
Akshay Joshi
Senior Software Engineer 
EnterpriseDB Corporation
The Enterprise PostgreSQL Company
Phone: +91 20-3058-9522
Mobile: +91 976-788-8246

Re: Crash on selecting schema with domain

From
Evan Martin
Date:
Thanks, Akshay, confirmed that this is fixed.

I'm also getting an assertion failure after creating a schema. Text: http://pastebin.com/ifNhBEJq This occurs after clicking OK in the New Schema dialog and comes up multiple times (seems to be once for every existing schema + 1). This is not new, it happened before the fix as well, I just forgot to mention it.


On 27/11/2012 5:21 PM, Akshay Joshi wrote:


On Tue, Nov 27, 2012 at 12:11 AM, Dave Page <dpage@pgadmin.org> wrote:
Hi

On Fri, Nov 23, 2012 at 2:26 AM, Evan Martin
<postgresql@realityexists.net> wrote:
> Running latest trunk build on 32-bit Linux, pgAdmin crashes whenever I click
> on a schema that contains one or more domains.
>
> GDB backtrace: http://pastebin.com/mSGd978J
>
> To reproduce:
>
> 1. Create a new database
> 2. Create a new schema in the database
> 3. Create a new domain in the schema.
>
> pgAdmin crashes at this point. If you restart it crashes as soon as you
> click on the schema that contains the domain in the treeview. Clicking on a
> schema with no domains is fine.

I was able to reproduce this on Windows. I strongly suspect it's
fallout from some of the other work done recently to fix some other
issues in the browser - it doesn't occur in 1.16.0, but does occur on
the tip of both the 1.16 and master branches.

Akshay, can you look at this first thing in the morning please? I'd
like to get this fixed before the PostgreSQL back branch releases next
week.

  Fixed. Patch submitted.  

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



--
Akshay Joshi
Senior Software Engineer 
EnterpriseDB Corporation
The Enterprise PostgreSQL Company
Phone: +91 20-3058-9522
Mobile: +91 976-788-8246


Re: Crash on selecting schema with domain

From
Guillaume Lelarge
Date:
On Wed, 2012-11-28 at 12:23 +1100, Evan Martin wrote:
> Thanks, Akshay, confirmed that this is fixed.
> 
> I'm also getting an assertion failure after creating a schema. Text: 
> http://pastebin.com/ifNhBEJq This occurs after clicking OK in the New 
> Schema dialog and comes up multiple times (seems to be once for every 
> existing schema + 1). This is not new, it happened before the fix as 
> well, I just forgot to mention it.
> 

Yeah, the assertion is something that comes when you enable debug during
configure. A typical user won't get that. I don't think the assertion is
because of something we do. But if it is, I wish we could fix it. Never
been able to though...


-- 
Guillaume
http://blog.guillaume.lelarge.info
http://www.dalibo.com