On Sun, Dec 27, 2009 at 2:40 PM, Norbert Sendetzky <norb...@linuxnetworks.de
> wrote:

> Hi Mariano
>
> > Program received signal SIGSEGV, Segmentation fault.
> > 0x6ae41e72 in sybase_odbx_init (handle=0x3d2448, host=0x3d4e6a
> "localhost",
> >     port=0x3d4e97
> >
> "\033[D\033[D\033[\033[D\033[D\033[D\033[D\033[u\033[C\033[C\033[C\033[C\03
> > 3[Cw\033[C\033[C\033[C\033[C") at sybase_basic.c:78
> > 78              if( cs_config( aux->ctx, CS_SET, CS_USERDATA, (CS_VOID*)
> > &aux, sizeof( CS_VOID* ), NULL ) != CS_SUCCEED )
>
> I've read a little bit in the Sybase documentation and reordered the
> function
> calls in the latest revision in trunk (rev 321). It compiles but I can't
> test
> if it works on my machine as my Sybase server installation didn't work at
> the
> moment. Hopefully it does for you.
>
>
Thanks Norbert for trying to fix this. I tried what you told me but didn't
go :(
Look the output:

juan...@juanjoe-nb /c/mariano/openDBX/trunk/test
$ gdb odbxtest.exe
GNU gdb (GDB) 7.0
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from c:\mariano\openDBX\trunk\test/odbxtest.exe...done.
(gdb) set args -v -b sybase -h localhost -p 5000 -d Sybase -u sa -w aa
(gdb) run
Starting program: c:\mariano\openDBX\trunk\test/odbxtest.exe -v -b sybase -h
loc                         alhost -p 5000 -d Sybase -u sa -w aa
[New Thread 2160.0xaac]

Program received signal SIGSEGV, Segmentation fault.
0x6ae42081 in sybase_odbx_init (handle=0x6ae42910, host=0x3d2d05
"localhost",
    port=0x3d2d14 "5000") at sybase_basic.c:798
798             if( ct_callback( aux->ctx, NULL, CS_SET, CS_CLIENTMSG_CB,
(CS_VO                         ID*) sybase_priv_ctmsg_handler ) !=
CS_SUCCEED )
(gdb) bt
#0  0x6ae42081 in sybase_odbx_init (handle=0x6ae42910,
    host=0x3d2d05 "localhost", port=0x3d2d14 "5000") at sybase_basic.c:798
#1  0x00000003 in ?? ()
#2  0x6ae42910 in sybase_priv_csmsg_handler ()
   from C:\WINDOWS\system32\libsybasebackend-1.dll
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb)



As you can read there, the error now is in sybase_basic.c:798  which is this
line:


    if( ct_callback( aux->ctx, NULL, CS_SET, CS_CLIENTMSG_CB, (CS_VOID*)
sybase_priv_ctmsg_handler ) != CS_SUCCEED )


In addition, the log is this:

[2009-12-27 18:52:53] (1) Start logging for '003D2D60'
[2009-12-27 18:52:53] (1) sybase_odbx_init() called

At least now it prints the " sybase_odbx_init() called"

Cheers

Mariano


>
> Norbert
> --
> OpenPGP public key
> http://www.linuxnetworks.de/norbert.pubkey.asc
>
>
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and
> easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________
> libopendbx-devel mailing list
> libopendbx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libopendbx-devel
> http://www.linuxnetworks.de/doc/index.php/OpenDBX
>
>
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
libopendbx-devel mailing list
libopendbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libopendbx-devel
http://www.linuxnetworks.de/doc/index.php/OpenDBX

Reply via email to