Hi.
I have an app with the driver as it is I got a segfault this is the bt:
--8<---------------cut here---------------start------------->8---
Program received signal SIGILL, Illegal instruction.
Program received signal SIGSEGV, Segmentation fault.
strlen () at ../ports/sysdeps/arm/armv6t2/strlen.S:85
85 ../ports/sysdeps/arm/armv6t2/strlen.S: No such file or directory.
(gdb) bt
#0 strlen () at ../ports/sysdeps/arm/armv6t2/strlen.S:85
#1 0x00287dc4 in make_string () at scan.l:51
#2 0xb53c3b52 in PGAPI_DriverConnect () from
/usr/lib/arm-linux-gnueabihf/odbc/psqlodbcw.so
#3 0xb53df5cc in SQLDriverConnect () from
/usr/lib/arm-linux-gnueabihf/odbc/psqlodbcw.so
#4 0xb672d35c in SQLDriverConnect () from
/usr/lib/arm-linux-gnueabihf/libodbc.so.2
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
--8<---------------cut here---------------end--------------->8---
When debugging the issue was on this line:
--8<---------------cut here---------------start------------->8---
connStrIn = make_string(szConnStrIn, cbConnStrIn, NULL, 0);
--8<---------------cut here---------------end--------------->8---
on the file drvconn.c on the funct PGAPI_DriverConnect.
As a workaround I moved the make_string funct to the drvconn.c and the
issue is gone.
Any idea of how to fix this in a more elegant way?
I have been reading and seems to be an issue with the stack on my arm
device (orange pi plus 2e). The device have armbian (debian jessie)
installed.
AR
_______________________________________________
Pkg-postgresql-public mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-postgresql-public