pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: BERTRAND Joel <joel.bertrand@systella.fr>
To: pgsql-bugs@postgresql.org
Subject: [8.4.4] Strange bus error on Solaris 10/sparc
Date: Thu, 16 Sep 2010 10:51:14 +0200
Message-ID: <4C91DA82.4020701@systella.fr> (raw)

	Hello,

	A have written a program that randomly crashes on Solaris 10. This 
program has been tested with valgrind without any error and runs fine on 
all other systems I have. I cannot reproduce this bug with a minimal 
program.

Backtrace :
Core was generated by `/usr/local/bin/rpl -csdnp ./serveur.rpl'.
Program terminated with signal 10, Bus error.
#0  0xffffffff0b828854 in __memget () from /lib/sparcv9//libresolv.so.2
(gdb) bt
#0  0xffffffff0b828854 in __memget () from /lib/sparcv9//libresolv.so.2
#1  0xffffffff0b81c090 in __net_data_create () from 
/lib/sparcv9//libresolv.so.2
#2  0xffffffff0b81c018 in __net_data_init () from 
/lib/sparcv9//libresolv.so.2
#3  0xffffffff0b81ee38 in init () from /lib/sparcv9//libresolv.so.2
#4  0xffffffff0b81d864 in res_gethostbyname2 () from 
/lib/sparcv9//libresolv.so.2
#5  0xffffffff0fe012e4 in _nss_dns_gethostbyname2 ()
    from /usr/lib/sparcv9//nss_dns.so.1
#6  0xffffffff0fe01e88 in getbyname () from /usr/lib/sparcv9//nss_dns.so.1
#7  0xffffffff7d8695dc in nss_search () from /lib/sparcv9//libc.so.1
#8  0xffffffff7cf35264 in _switch_getipnodebyname_r ()
    from /lib/sparcv9//libnsl.so.1
#9  0xffffffff7cf33c38 in _get_hostserv_inetnetdir_byname ()
    from /lib/sparcv9//libnsl.so.1
#10 0xffffffff7cf30f08 in getipnodebyname () from /lib/sparcv9//libnsl.so.1
#11 0xffffffff7dc0626c in get_addr () from /lib/sparcv9//libsocket.so.1
#12 0xffffffff7dc060cc in _getaddrinfo () from /lib/sparcv9//libsocket.so.1
#13 0x000000010049c9b4 in pg_getaddrinfo_all ()
#14 0x0000000100486b5c in connectDBStart ()
#15 0x00000001004865a8 in PQsetdbLogin ()
#16 0x000000010016c370 in librpl_parametres_sql (
     s_etat_processus=0xffffffff7cd00010, s_parametres=0xffffffff7a60bac0)
     at sql-conv.c:315
#17 0x000000010013b110 in librpl_instruction_sqlquery (
     s_etat_processus=0xffffffff7cd00010) at instructions_s8-conv.c:914

	I don't understand. All PQsetdblogin() parameters are valid and I have 
no idea to avoid this bug.

	Regards,

	JKB



view thread (3+ messages)  latest in thread

Message-ID: <4C91DA82.4020701@systella.fr>
Permalink:  ../4C91DA82.4020701@systella.fr/
Also on:    postgresql.org/message-id/4C91DA82.4020701@systella.fr

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: joel.bertrand@systella.fr
  Subject: Re: [8.4.4] Strange bus error on Solaris 10/sparc
  In-Reply-To: <4C91DA82.4020701@systella.fr>
  References: <4C91DA82.4020701@systella.fr>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox