Search Postgresql Archives

Re: hashtable issue - HASH_FIND??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Actually, if I just dump the example into a file, compile and install it as a 
function, it works.

Only fails when I add the code (without changing anything!) to existing source 
where I'd like to use it.

(gdb) next
Single stepping until exit from function _sigtramp, 
which has no line number information.
warning: Got an error handling event: "Cannot access memory at address 0x274".
(gdb) next
Single stepping until exit from function reaper, 
which has no line number information.
0x004455cf in dyld_stub___error ()

Not sure this is the correct bt, but
#0  0x004455cf in dyld_stub___error ()
#1  0x001abc54 in reaper ()
#2  <signal handler called>
#3  0x96c686fa in select$DARWIN_EXTSN ()
#4  0x001ad801 in ServerLoop ()
#5  0x001af407 in PostmasterMain ()
#6  0x0014c13b in main ()


Looks like something to do with linking. Needle in the haystack I think :(



----- Original Message ----
From: Tom Lane <tgl@xxxxxxxxxxxxx>
To: Jay Flattery <jaycode@xxxxxxxxxxxxxx>
Cc: pgsql-general@xxxxxxxxxxxxxx
Sent: Wed, August 4, 2010 4:51:30 PM
Subject: Re:  hashtable issue - HASH_FIND?? 

Jay Flattery <jaycode@xxxxxxxxxxxxxx> writes:
> I'm looking to use the PostgreSQL Hash Table for some custom functions.
> However, the example, as per http://wiki.postgresql.org/wiki/HashTable crashes 

> postmaster (or segfaults from the cmd line) when trying to retrieve an element 

> from the hash.

BTW, I tested the example and it works for me ...

            regards, tom lane



      


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux