|
Home > Archive > Sybase Open Client > March 2005 > Please help me with a Problem with Open Server
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Please help me with a Problem with Open Server
|
|
|
| Hi
I've got a problem with OpenServer when I compile
I`m using Sybase 12.5.1 and Solaris 2.9.
I give the program and a makefile wich produce this error
Open Server create a thread with srv_spawn()
and 2 sockets using srv_poll
the problem is with a memory violation and the output is
produced for the adb of the core
/export/home/kernel/v330/binsun/MiTest > adb core
> core file = core -- program
> ``/export/home/kernel/v330/binsun/MiTest/prueba
> '' on platform SUNW,Ultra-250
> SIGSEGV: Segmentation Fault
> $c
> libc_psr.so. 1`memcpy+0x30(1005c4
df8, 0, 0, 0, 0, 0)
> libsrv64. so`srv__net_check+0x
18(100040fe0, a, 100043ec0,
ffffffff7e880f70,[co
lor=darkred]
> 0, 0
> )
> libsrv64. so`srv__scheduler+0x
114(0, ffffffff7e98ef30,[/color]
ffffffff7e806fc7,[co
lor=darkred]
> ffffffff7e8811a0, ffffffff7f722d20, 1)
> libsrv64. so`srv__spawnfunc+0x
38(a, a, 1005b4ad1,[/color]
ffffffff7e87cc80, 8,
> 1005ad2c0
> )
> 0xffffffff7e87cc78(0
, 0, 0, 0, 0, 0)
| |
| SybaseNeal 2005-03-30, 7:09 pm |
| Hello,
I noticed in your makefile you have "-mt -D_REENTRANT" which
is for multithreaded applications.
If your Open Server is going to be multithreaded, you should
use the thread-safe libraries:
SRVLIB=-lsrv_r64
DBLIB= -lsybdb64 /* DB-Library is never threadsafe */
CTLIB = -lct_r64
COMLIB = -ltcl_r64 -lcs_r64 -lcomn_r64 -lintl_r64
Note, since DB-Library is never threadsafe you should remove
it from your Makefile completely.
After making those changes this is the output I got:
stack1_os - MACOSA
Esperando Conexion de extremo 1.....
Conexion desde el extremo 1 exitosa!!!!!
Esperando Conexion de extremo 2.....
Conexion desde el extremo 2 exitosa!!!!!
nsqClient process ID: 4059
User name: sa
Application program name: isql
Remote Server: stack1_os
Joel wrote:
[color=darkred]
> Hi
> I've got a problem with OpenServer when I compile
> I`m using Sybase 12.5.1 and Solaris 2.9.
>
> I give the program and a makefile wich produce this error
>
> Open Server create a thread with srv_spawn()
> and 2 sockets using srv_poll
>
> the problem is with a memory violation and the output is
> produced for the adb of the core
>
> /export/home/kernel/v330/binsun/MiTest > adb core
>
>
> ffffffff7e880f70,
>
>
> ffffffff7e806fc7,
>
>
> ffffffff7e87cc80, 8,
>
|
|
|
|
|