maybe I should print all the parameters I send to the function cs_config but I am not sure how to do that as I don't know the data type of those variables.
thanks mariano On Sat, Dec 26, 2009 at 12:01 AM, Mariano Martinez Peck < marianop...@gmail.com> wrote: > > > On Fri, Dec 25, 2009 at 11:02 PM, Norbert Sendetzky < > norb...@linuxnetworks.de> wrote: > >> Hi Mariano >> >> > Program received signal SIGSEGV, Segmentation fault. >> > 0x6ae41ee2 in sybase_odbx_init (handle=0x3d4510, host=0x3d2d08 >> "localhost", >> > port=0x3d2d17 "5000") at sybase_basic.c:81 >> > 81 if( cs_config( aux->ctx, CS_SET, CS_USERDATA, (CS_VOID*) >> > &aux, sizeof( void* ), NULL ) != CS_SUCCEED ) >> >> I've committed a small fix to the stable branch (rev 316) available at >> >> https://libopendbx.svn.sourceforge.net/svnroot/libopendbx/branches/stable-1.4 >> >> It changes void* to CS_VOID* which might be a problem. Could you test if >> the >> problem is gone in this revision? >> >> > Norbert: I have tried with that and I have also segmentation fault. Look > this output: > > juan...@juanjoe-nb /c/mariano/openDBX/stable-1.4/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\stable-1.4\test/odbxtest.exe...done. > (gdb) set args -v -b sybase -h localhost -p 5000 -d Sybase -u sa -w "" > (gdb) run > Starting program: c:\mariano\openDBX\stable-1.4\test/odbxtest.exe -v -b > sybase -h localhost -p 5000 -d Sybase -w sa -p "w > [New Thread 2572.0xccc] > [New Thread 2572.0x990] > [New Thread 2572.0x518] > > > 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\033[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 ) > (gdb) bt > #0 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\033[Cw\033[C\033[C\033[C\033[C") > at sybase_basic.c:78 > #1 0x00402999 in odbx_init (handle=0x22ff48, backend=0x3d4e5e "sybase", > 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\033[Cw\033[C\033[C\033[C\033[C") > at odbx.c:79 > #2 0x00401f8a in main (argc=14, argv=0x3d2478) at odbx-regression.c:141 > (gdb) > > > Do you see something ? > > Anyway, thanks for trying to fix it. > > 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