Bug #456: postgres dumps core in initlocalbuffer

From: pgsql-bugs(at)postgresql(dot)org
To: pgsql-bugs(at)postgresql(dot)org
Subject: Bug #456: postgres dumps core in initlocalbuffer
Date: 2001-09-19 15:57:41
Message-ID: 200109191557.f8JFvfA15741@hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Florian Baumert (fb(at)plt(dot)de) reports a bug with a severity of 1
The lower the number the more severe it is.

Short Description
postgres dumps core in initlocalbuffer

Long Description
Hi,

first of all: postgres normally works very well. But in one case,
postgres dumps core, which prevents our project from being finshed.

Information: postgres 7.0.3, redhat 6.2, postgres compiled under redhat 7.1, linked statically (this works well!).
Machine has 256 Mb Memory, uses nearly no swap.

As said, most things work fine, but one part is a connection from a ODBC-Client Application. This also normally works fine, but for one configuration it does not. The client uses Windows 2000, ODBC-Driver 6.5.0 (I think).

Postgres dumps core after some time, if the odbc application opens a new connection. To clarify this: there are transactions going through, but at some point in time (random), the newly started postgres crashes at once.

postgres-config:
/home/postgres7/bin/postmaster -o -o /var/log/postgres7.err.log -p 5433 -i -N 256 -S -o -F -o -S1024 -B1024 -o -B1024 -D/home/postgres7

There are at most 100 servers running...

Many thanks for you help, if there are questions, please ask!

Greetings

Florian

P.S. the machine is NOT out of memory! :-) And it already happened, when the executable has been compiled on the same machine!

Stacktrace is:

#0 0x812ac0c in chunk_free (ar_ptr=0x81cb860, p=0xd4ef05d3) at malloc.c:3125
#1 0x812a4d3 in chunk_alloc (ar_ptr=0x81cb860, nb=7176) at malloc.c:2612
#2 0x8129f8f in __libc_malloc (bytes=7168) at malloc.c:2714
#3 0x80cb396 in InitLocalBuffer () at localbuf.c:223
#4 0x810f8b4 in InitPostgres (dbname=0xbfffecd0 "121dmagent") at postinit.c:246
#5 0x80d53d4 in PostgresMain (argc=11, argv=0xbffff190, real_argc=17, real_argv=0xbffffb94) at postgres.c:1416
#6 0x80bee58 in DoBackend (port=0x8233250) at postmaster.c:2009
#7 0x80bea26 in BackendStartup (port=0x8233250) at postmaster.c:1776
#8 0x80bdc45 in ServerLoop () at postmaster.c:1037
#9 0x80bd62f in PostmasterMain (argc=17, argv=0xbffffb94) at postmaster.c:725
#10 0x80917fe in main (argc=17, argv=0xbffffb94) at main.c:93
#11 0x8119732 in __libc_start_main (main=0x8091784 <main>, argc=17, ubp_av=0xbffffb94, init=0x80480b4 <_init>, fini=0x8170220 <_fini>, rtld_fini=0, stack_end=0xbffffb8c)
at ../sysdeps/generic/libc-start.c:129

Sample Code

No file was uploaded with this report

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2001-09-19 18:03:47 Re: Bug #456: postgres dumps core in initlocalbuffer
Previous Message pgsql-bugs 2001-09-19 14:55:39 Bug #455: Broken indexes - FIXED - Was a bug in glibc-2.2.2