[Pgtreats-users] Getting started: unable to publish using pg_amqp

Michael Glaesemann michael.glaesemann at myyearbook.com
Mon Aug 23 17:24:35 EDT 2010


On Aug 23, 2010, at 16:56 , Theo Schlossnagle wrote:

> Any way you can get a backtrace for that?

In psql, ran select amqp.exchange_declare(1, 'mapy', 'fanout', false, false, false) in psql (which didn't return, as gdb caught crash):

(gdb) bt
#0  0x00000031010d39b5 in recv () from /lib64/libc.so.6
#1  0x00000000005502c2 in secure_read ()
#2  0x0000000000555c84 in pq_recvbuf ()
#3  0x0000000000556087 in pq_getbyte ()
#4  0x00000000005d1e89 in PostgresMain ()
#5  0x00000000005a8908 in ServerLoop ()
#6  0x00000000005a94b7 in PostmasterMain ()
#7  0x00000000005579ae in main ()
(gdb) cont
Continuing.

Program received signal SIGSEGV, Segmentation fault.
pg_amqp_exchange_declare (fcinfo=0x1) at pg_amqp.c:227
227	  if(!PG_ARGISNULL(0)) {
(gdb) bt
#0  pg_amqp_exchange_declare (fcinfo=0x1) at pg_amqp.c:227
#1  0x0000000000535b27 in ExecMakeFunctionResult ()
#2  0x0000000000537a0a in ExecEvalExprSwitchContext ()
#3  0x0000000000594e24 in evaluate_expr ()
#4  0x00000000005962b9 in simplify_function ()
#5  0x000000000059698e in eval_const_expressions_mutator ()
#6  0x00000000005596dd in expression_tree_mutator ()
#7  0x000000000059676d in eval_const_expressions_mutator ()
#8  0x0000000000559d90 in expression_tree_mutator ()
#9  0x000000000059676d in eval_const_expressions_mutator ()
#10 0x00000000005977af in eval_const_expressions ()
#11 0x00000000005895a1 in preprocess_expression ()
#12 0x000000000058bc84 in subquery_planner ()
#13 0x000000000058c213 in standard_planner ()
#14 0x00000000005d0001 in pg_plan_query ()
#15 0x00000000005d00be in pg_plan_queries ()
#16 0x00000000005d0854 in exec_simple_query ()
#17 0x00000000005d157b in PostgresMain ()
#18 0x00000000005a8908 in ServerLoop ()
#19 0x00000000005a94b7 in PostmasterMain ()
#20 0x00000000005579ae in main ()

Also, this is with -pthread instead of -lpthread. I noticed when compiling with -lpthread I was getting the message "gcc: -lpthread: linker input file unused because linking not done"

What OS have you run this on?

Michael Glaesemann
michael.glaesemann at myyearbook.com






More information about the Pgtreats-users mailing list