![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Both source files pass with ecpg v 3.1.1 (Posgtresql 7.4.2) on RedHat Linux 9 (x86), and (interstingly) withe ecpg v 3.2.0 (Postgres 8.0.) under HPUX 11i - ia64 |
#3
| |||
| |||
|
|
ecpg in free(): warning: chunk is already free If you have a core dump then maybe you can do a backtrace and see where that's happening. |
#4
| |||
| |||
|
|
On Mon, Jan 24, 2005 at 12:08:36PM -0700, Michael Fuhr wrote: ecpg in free(): warning: chunk is already free If you have a core dump then maybe you can do a backtrace and see where that's happening. This assumes, perhaps prematurely, that the free() problem is causing the core dump on your platform. In any case, a backtrace should help track down the problem. |
#5
| |||
| |||
|
|
According to the backtrace, it appears to be dieing in malloc. |
#6
| |||
| |||
|
|
Edmund Bacon <ebacon (AT) onesystem (DOT) com> writes: According to the backtrace, it appears to be dieing in malloc. That's consistent with the idea that the multiple free is the source of trouble --- multiple free() could corrupt malloc's private data structures to the point of causing a crash in a later malloc call. The least painful way of locating the problem would be to relink ecpg with a debugging malloc package, which could tell you exactly where the bad free() call is. You'd probably want to rebuild with --enable-debug too. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match |
#7
| |||
| |||
|
|
njamd says: NJAMD/free: Double free of address 0x41454ff4 #4 0x40021e87 in free () from /usr/lib/libnjamd.so #5 0x0805755f in remove_typedefs (brace_level=1073902784) at variable.c:271 #6 0x08049e02 in yyparse () at preproc.y:610 #7 0x08055db0 in main (argc=2, argv=0xbfffe254) at ecpg.c:424 #8 0x400f7a67 in __libc_start_main () from /lib/i686/libc.so.6 |
#8
| |||
| |||
|
|
Edmund Bacon <ebacon (AT) onesystem (DOT) com> writes: njamd says: NJAMD/free: Double free of address 0x41454ff4 #4 0x40021e87 in free () from /usr/lib/libnjamd.so OK, here's where I defer to Michael Meskes to actually fix it ;-) |
#9
| |||
| |||
|
|
Thanks for the report and the analysis. I just committed a fixe. It should work correctly now. |
#10
| |||
| |||
|
|
On Tue, Jan 25, 2005 at 01:52:33PM +0100, Michael Meskes wrote: Thanks for the report and the analysis. I just committed a fixe. It should work correctly now. Where all did you commit the fix? Just HEAD? Shouldn't it also be committed to REL8_0_STABLE, etc., as well? |
![]() |
| Thread Tools | |
| Display Modes | |
| |