Received: from punt.demon.co.uk by oink with SMTP (PP) id <07589-40@oink>;
         Fri, 21 Feb 1997 17:11:40 +0000
Received: from relay-9.mail.demon.net by mailstore for [email protected]
         id 856543037:9:10646:16; Fri, 21 Feb 97 16:37:17 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net
         id aa910287; 21 Feb 97 16:36 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11)
         id HAA14231 for dbi-users-real; Fri, 21 Feb 1997 07:26:51 -0800 (PST)
Precedence: junk
Sender: [email protected]
Received: from sv2.ictp.trieste.it (sv2.ictp.trieste.it [140.105.16.62])
         by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id HAA14224
         for <[email protected]>; Fri, 21 Feb 1997 07:26:31 -0800 (PST)
Received: from [140.105.23.55] (mac-Scoltock.ictp.trieste.it [140.105.23.55])
         by sv2.ictp.trieste.it (8.6.9/8.6.9) with ESMTP id QAA02187;
         Fri, 21 Feb 1997 16:24:52 +0100
X-Sender: [email protected]
Message-Id: <l03010d00af3368602e70@[140.105.23.55]>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Fri, 21 Feb 1997 16:27:33 +0100
To: [email protected]
From: Michael Scoltock <[email protected]>
Subject: Segment violation, Sunos 5.4, DBD-Oracle-0.44
Cc: [email protected]

   *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi,
I am trying to get DBD::Oracle running for SUNOS 5.4

perl 5.003
Oracle 7.2.2.3
DBD-Oracle-0.44 (also tried 0.43)
DBI-0.76 (also tried 0.75)
gnu c compiler

'make test' goes all OK, except that after the completion of 'test.pl',
make complains that the target 'test_dynamic' has exitted with an error 139
(?!?).

Writing a simple program that does nothing more than 'use Oraperl; exit;',
exits with a segment violation error. More complicated programs work, but
they always core dump on exit. Glancing at the Oracle.c file, I see that
this problem seems to have been come across in the past (comment about
destruct_level != 0 and sig __WARN__), however, commenting out the line
that sets destruct_level to 0, or not having a handler for sig __WARN__
changes nothing.

Tail of the output from a program that core dumps, with PERL_DBI_DEBUG=2:

>DBI::disconnect_all DBI
>DBI::disconnect_all for 'Oracle'
>    -> disconnect_all for DBD::Oracle::dr (DBI::dr=HASH(0x124958)~0x14a230)
>    <- disconnect_all= 1
>    DBI::END complete
>       (outer handle DESTROY ignored)
>    -> DESTROY for DBD::Oracle::st (DBI::st=HASH(0x14a5ac))
>    <- DESTROY= undef
>    dbih_clearcom 0x197008 done
>       (outer handle DESTROY ignored)
>    -> DESTROY for DBD::Oracle::db (DBI::db=HASH(0x14a564))
>    <- DESTROY= undef
>    dbih_clearcom 0xa5808 done
>    -> DESTROY in DBD::_::common for DBD::Oracle::dr (DBI::dr=HASH(0x14a230))
>    <- DESTROY= undef
>    dbih_clearcom 0x140188 done
>       (inner handle already deleted)

Output from perl -V:

>Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
>  Platform:
>    osname=solaris, osver=2.4, archname=sun4-solaris
>    uname='sunos spacs1 5.4 generic_101945-36 sun4m sparc '
>    hint=recommended, useposix=true, d_sigaction=define
>  Compiler:
>    cc='cc', optimize='-O', gccversion=2.7.2
>    cppflags='-I/opt/gnu/include'
>    ccflags ='-I/opt/gnu/include'
>    stdchar='unsigned char', d_stdstdio=define, usevfork=false
>    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
>    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
>  Linker and Libraries:
>    ld='cc', ldflags =' -L/opt/gnu/lib'
>    libpth=/opt/gnu/lib /lib /usr/lib /usr/ccs/lib
>    libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
>    libc=/lib/libc.so, so=so
>  Dynamic Linking:
>    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags=' '
>    cccdlflags='-fpic', lddlflags='-G -L/opt/gnu/lib'
>
>@INC: /usr/local/lib/perl5/sun4-solaris/5.003 /usr/local/lib/perl5
>/usr/local/l.

Tail of the output from truss:

>getcontext(0xEFFFF7D0)
>getcontext(0xEFFFF7D0)
>getcontext(0xEFFFF7D0)
>getcontext(0xEFFFF7D0)
>lseek(0, 0, SEEK_CUR)                           = 284639
>    Incurred fault #6, FLTBOUNDS  %pc = 0x69000000
>      siginfo: SIGSEGV SEGV_MAPERR addr=0x69000000
>    Received signal #11, SIGSEGV [default]
>      siginfo: SIGSEGV SEGV_MAPERR addr=0x69000000
>        *** process killed ***


If any other info is needed, just ask. Any help would be greatly appreciated.

                       TIA, Mike Scoltock




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to [email protected].   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---