Обсуждение: [8.4.4] Strange bus error on Solaris 10/sparc

Поиск
Список
Период
Сортировка

[8.4.4] Strange bus error on Solaris 10/sparc

От
BERTRAND Joel
Дата:
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

Re: [8.4.4] Strange bus error on Solaris 10/sparc

От
Tom Lane
Дата:
BERTRAND Joel <joel.bertrand@systella.fr> writes:
>     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.

Given that the crash is way down inside getaddrinfo(), I'd say this is
a Solaris bug.  You should probably file it with Sun^H^H^HOracle.

            regards, tom lane

Re: [8.4.4] Strange bus error on Solaris 10/sparc

От
BERTRAND Joel
Дата:
Tom Lane a écrit :
> BERTRAND Joel<joel.bertrand@systella.fr>  writes:
>>     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.
>
> Given that the crash is way down inside getaddrinfo(), I'd say this is
> a Solaris bug.  You should probably file it with Sun^H^H^HOracle.

    I'm trying to debug with mdb. If I have some news, I shall post an new
comment.

    Regards,

    JKB