-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am Freitag, 10. Januar 2003 09:38 schrieb Diesing, Burkhard: Hi Burkhard, thanks for the fast reply before. ;->>
> Hello J�rgen, > I am sorry but I can't reproduce this error with your sample code. I have checked it >under > W2K and LINUX. W2k is not avible in this company at all. ;->> This Error occured here for any developer host on different distributions tested. Debian 3.0r0 and 3.0r0 (unstable and testing and stable branch) and SuSE 8.0. All SapDB Packages were installed as described in: http://sapdb.automatix.de, that means from the released tar.gz packages out of ftp.sap.com/pub/sapdb ... additional with some library upgrades out of the "patch" directory, according to some discussions on this list. > You code seem to be OK. Thanks, Yepp. We also thought so. This code fragment was especially written to reproduce the error here. The Error reproduces on _all_ Linux installations we have. For additional information I put the tar.bz2 archive here: http://sapdb.automatix.de/download/dbtest.tar.bz2 Therein is the Make File to rebuild and reproduece. > You wrote that you use the Build 29 of the C/C++ Precompiler > but Runtime Library is Build 30 this should work. Did you reprecompile your program? We wrote it. Off course. ;->> > Did you got a stackbacktrace? Stackbacktrace please see here: http://sapdb.automatix.de/download/dbtest.strace.gz > On which OS does the error occur? Debian 3.0r0 and 3.0r0 (unstable and testing and stable branch) and SuSE 8.0. Linux Kernel 2.4.18, 2.4.19, 2.4.20 with glibc 2.2.x and 2.3.x (any combinations tested). > What is the result of the SELECT TABLENAME FROM TABLES? > Please check this with the xsql tool because xsql is based on an precompiler program. Ok. Done it. works. Results got a Resulttable as expected. strace says shortened, long version, see URL above: execve("./dbTest", ["./dbTest"], [/* 30 vars */]) = 0 uname({sys="Linux", node="server", ...}) = 0 brk(0) = 0x804aa8c old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40013000 [...] the most relevant part is on the end: write(5, "SQL STATEMENT : FROM MODULE : "..., 67) = 67 write(5, "Statement Name : :0x010002\n", 27) = 27 write(5, "START : DATE : 2003-01-10 "..., 51) = 51 write(5, "END : DATE : 2003-01-10 "..., 51) = 51 write(5, "\n", 1) = 1 write(5, "MASS STATEMENT : \n", 19) = 19 write(5, "SELECT TABLENAME FROM TABLES\n", 29) = 29 gettimeofday({1042197450, 420744}, {4294967236, 0}) = 0 semctl(196613, 0, SETVAL, 0xbffff21c) = 0 semop(9175063, 0xbffff220, 1) = 0 gettimeofday({1042197450, 422201}, {4294967236, 0}) = 0 write(5, "SQL STATEMENT : FROM MODULE : "..., 67) = 67 write(5, "Statement Name : :0x010003\n", 27) = 27 write(5, "PARSEID: OUTPUT: 0000E24C 00000"..., 54) = 54 brk(0x8063000) = 0x8063000 write(5, "mfIndex init : 1\n", 22) = 22 write(5, "mfIndex init : 2\n", 22) = 22 write(5, "PARSEID: INPUT : 0000E24C 00000"..., 54) = 54 gettimeofday({1042197450, 422906}, {4294967236, 0}) = 0 semctl(196613, 0, SETVAL, 0xbffff164) = 0 semop(9175063, 0xbffff168, 1) = 0 gettimeofday({1042197450, 493178}, {4294967236, 0}) = 0 write(5, "mfIndex init : 2\n", 22) = 22 write(5, "SQLERRD(INDEX_3) : 500 \n", 31) = 31 write(5, "START : DATE : 2003-01-10 "..., 51) = 51 write(5, "END : DATE : 2003-01-10 "..., 51) = 51 write(5, "\n", 1) = 1 write(5, "MASS STATEMENT : \n", 19) = 19 write(5, "FETCH INTO :P_1\n", 16) = 16 gettimeofday({1042197450, 494835}, {4294967236, 0}) = 0 semctl(196613, 0, SETVAL, 0xbffff21c) = 0 semop(9175063, 0xbffff220, 1) = 0 gettimeofday({1042197450, 495291}, {4294967236, 0}) = 0 write(5, "SQL STATEMENT : FROM MODULE : "..., 67) = 67 write(5, "Statement Name : :0x010004\n", 27) = 27 write(5, "PARSEID: OUTPUT: 0000E24C 00000"..., 54) = 54 write(5, "PARSEID: SELECT: 0000E24C 00000"..., 54) = 54 write(5, "mfIndex found : 2\n", 22) = 22 write(5, "PARSEID: INPUT : 0000E24C 00000"..., 54) = 54 gettimeofday({1042197450, 495931}, {4294967236, 0}) = 0 semctl(196613, 0, SETVAL, 0xbffff164) = 0 semop(9175063, 0xbffff168, 1) = 0 gettimeofday({1042197450, 496473}, {4294967236, 0}) = 0 brk(0x806c000) = 0x806c000 brk(0x806e000) = 0x806e000 - --- SIGSEGV (Segmentation fault) --- +++ killed by SIGSEGV +++ ============================================== At this point I decided to ask in the list. ;-<< (and pray for a helping idea ...) Additional here is the Debug (ddd/gdb) session finishup: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 30089)] 0x4008cf39 in pa01GetPacketEncoding () from /usr/sapdb/depend/lib/libsqlod.so (gdb) Hope that helps ... to hunt the bug. mfG J�rgen Sauer - -- J�rgen Sauer - AutomatiX GmbH, +49-4209-4699, [EMAIL PROTECTED] ** ** Das Linux Systemhaus - Service - Support - Server - L�sungen ** ** http://www.automatix.de http://www.kranautomatisierung.de ** -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+HrOsW7UKI9EqarERAvi+AKChRsC64w1NI7EIuKHNDGLxkpYZLQCeNYSj uZHgQ9cB0lBekUPFMeqJUxQ= =xURH -----END PGP SIGNATURE----- _______________________________________________ sapdb.general mailing list [EMAIL PROTECTED] http://listserv.sap.com/mailman/listinfo/sapdb.general
