Yes, probably a combination of driver and OS. But after a lot of
testing I found out how to avoid the segfault!

My odbc.ini looked like this:

[sapdb]
Driver     = /opt/sapdb/interfaces/odbc/lib/libsqlod.so
ServerDB   = TST
ServerNode =
SQLMode    = INTERNAL

Which worked on Solaris, so I assumed it was ok.
But it segfaults on my Red Hat.
Now if I don't leave ServerNode empty, but set it to localhost:

[sapdb]
Driver     = /opt/sapdb/interfaces/odbc/lib/libsqlod.so
ServerDB   = TST
ServerNode = localhost 
SQLMode    = INTERNAL

The problem is gone.

Also, one more note for people having problems compiling DBD-ODBC:
if you compiled directly against the SAP ODBC driver and the only test
that fails at make test is t/02simple.t test 13, then you can ignore
that error and do a make install.

Regards,

Jeroen Boomgaardt

On Thursday, January 31, 2002 at 12:58:05 AM, Jenny wrote:

> Thank you all for answering my questions.

> The software I use are:
> RedHat 7.2
> SAPDB 7.3
> ODBC driver downloaded from 
> ftp://ftp.sap.com/pub/sapdb/bin/patch/sapdb-odbc-linux-i386-7.3.0.21.tgz

> gdb output after segmentation fault
> Program received signal SIGSEGV, Segmentation fault.
> __strtol_internal (nptr=Cannot access memory at address 0x3c5882ff
> ) at eval.c:36
> 36      eval.c: No such file or directory.
>         in eval.c
> (gdb) bt
> #0  __strtol_internal (nptr=Cannot access memory at address 0x3c5882ff
> ) at eval.c:36
> #1  0x00000001 in __strtol_internal (nptr=Cannot access memory at address 
> 0x3c5882ff
> ) at eval.c:36
> Cannot access memory at address 0x3c5882f7

> I installed unixODBC (though I do not think it is necessary). I can connect to
> database using unixODBC utility 'isql sap1 dummy,dummy -v'. But after 
> connection, any other command(even quit) cause a segfault. I saw Jeroen 
> Boomgaardt posted message 'Segfault with ODBC on Linux' today. It is exactly 
> what I saw. Maybe it is a combination of driver and OS?

> Regards,
> Jenny
> _______________________________________________
> sapdb.general mailing list
> [EMAIL PROTECTED]
> http://listserv.sap.com/mailman/listinfo/sapdb.general

_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general

Reply via email to