ports/96194: port databases/tora crashes in login attempt

José G. Juanino jjuanino at terra.es
Sun Apr 23 09:40:21 UTC 2006


>Number:         96194
>Category:       ports
>Synopsis:       port databases/tora crashes in login attempt
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 23 09:40:15 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     José G. Juanino
>Release:        FreeBSD 6.0-RELEASE-p6 i386
>Organization:
>Environment:
FreeBSD gauss.sanabria.es 6.0-RELEASE-p6 FreeBSD 6.0-RELEASE-p6 #0: Wed Mar 22 21:22:56 CET 2006     root at gauss.sanabria.es:/usr/obj/usr/src/sys/MK2006Mar22  i386

>Description:
Tora crashes after an login attempt is done. I have using SQL*Net
connection. The oracle server does not log any connection attempt
in the listener.log file.

Header Makefile is:

# $FreeBSD: ports/databases/tora/Makefile,v 1.10 2006/03/22 20:48:37 thierry Exp  $
(version 1.3.21)

>How-To-Repeat:
Build the databases/tora port in the usual way:

# cd /usr/ports/databases/tora
# make WITHOUT_MYSQL=1 WITHOUT_PGSQL=1 WITHOUT_KDE=1 CXXFLAGS="-g"

After to finish compilation, try to execute it:

$ cd work/tora-1.3.21/.libs
$ export LD_LIBRARY_PATH=.:/usr/local/oracle8-client/lib
$ export ORACLE_HOME=/usr/local/oracle8-client
$ gdb tora
(gdb) run
Starting program: /export/freebsd/ports-6_0/databases/tora/work/tora-1.3.21/.libs/tora
warning: Unable to get location for thread creation breakpoint: generic error
[New LWP 100141]
[New Thread 0x820f000 (LWP 100144)]

After this, a welcome-window and a login window is displayed. Type user, password and service name
of a $ORACLE_HOME/network/admin/tnsnames.ora service name valid, and the gdb
debbuger shows the following after click on "OK" button:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x820f000 (LWP 100144)]
0x28b61da2 in sltsmxd () from ./libtooracleconnection.so
(gdb) where
#0  0x28b61da2 in sltsmxd () from ./libtooracleconnection.so
#1  0x28a85eeb in kpufhndl () from ./libtooracleconnection.so
#2  0x28a5dab7 in OCIHandleFree () from ./libtooracleconnection.so
#3  0x289d9180 in otl_conn::server_detach (this=0x84bfd88) at otlv4.h:17953
#4  0x289de58a in otl_connect::logoff (this=0x84bfd80) at otlv4.h:20510
#5  0x289de44a in ~otl_connect (this=0x84bfd80) at otlv4.h:20330
#6  0x289c9f45 in toOracleProvider::oracleConnection::createConnection (this=0x8416060)
    at tooracleconnection.cpp:1265
#7  0x080c605f in toConnection::addConnection (this=0x8474b00) at toconnection.cpp:1054
#8  0x080c6baf in toConnection (this=0x8474b00, provider=@0xbfbfe380, user=@0xbfbfe3a0, password=@0xbfbfe370,
    host=@0xbfbfe420, database=@0xbfbfe360, options=@0xbfbfe3e0, cache=true) at toconnection.cpp:1079
#9  0x08131b69 in toNewConnection::makeConnection (this=0xbfbfe640) at tonewconnection.cpp:395
#10 0x0811028f in toMain (this=0x8381a00) at tomain.cpp:507
#11 0x080baed5 in main (argc=1, argv=0xbfbfea0c) at main.cpp:279
(gdb) up 3
#3  0x289d9180 in otl_conn::server_detach (this=0x84bfd88) at otlv4.h:17953
17953     if(envhp!=0)OCIHandleFree(OTL_RCAST(dvoid*,envhp),


It seems to be something related with the manage of threads: some other freed
the OCI handle dvoid before, and the showned one in the gdb output (Thread
0x820f000) crashed.


Please note the warning at the beginning of the gdb output:
warning: Unable to get location for thread creation breakpoint: generic error


Port devel/linuxthreads is not installed (and I am not using the configure
option --enable-kernel-threads; the Makefile script is the same as the original one).


Excuse my poor english.

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list