segmentation fault in sockets library of sicstus prolog

This is a discussion on segmentation fault in sockets library of sicstus prolog within the PROLOG forums in Programming Languages category; Hi all, I am using the linda library in sicstus prolog 4.0.4 for commmunication between processes. The linda server is calling the predicate socket_select/7 which sometimes gives segmentation fault and I could trace the error to this particular line in socket_select/7: prolog:'$select'(ListenSocketsRaw,LReadyRaw, ConnectSocketsRaw,CReadyRaw, ReadStreamsRaw,RReadyRaw, WriteStreamsRaw,WReadyRaw, TimeoutParam, ECODE) I could further find out that ultimately this call is making a system call select but I could not find out what happens in between. Could anyone of you tell how to fix this or where does the control go after you make a call to prolog:'$select'? Thanks, Pragyesh...

Go Back   Application Development Forum > Programming Languages > PROLOG

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 07-23-2008, 09:42 AM
pragyesh.iitr@gmail.com
Guest
 
Default segmentation fault in sockets library of sicstus prolog

Hi all,

I am using the linda library in sicstus prolog 4.0.4 for
commmunication between processes.

The linda server is calling the predicate socket_select/7 which
sometimes gives segmentation fault and I could trace the error to this
particular line in socket_select/7:


prolog:'$select'(ListenSocketsRaw,LReadyRaw,
ConnectSocketsRaw,CReadyRaw,
ReadStreamsRaw,RReadyRaw,
WriteStreamsRaw,WReadyRaw,
TimeoutParam, ECODE)


I could further find out that ultimately this call is making a system
call select but I could not find out what happens in between.

Could anyone of you tell how to fix this or where does the control go
after you make a call to prolog:'$select'?


Thanks,
Pragyesh
Reply With Quote
  #2  
Old 08-19-2008, 11:18 AM
Per.Mildner@sics.se
Guest
 
Default Re: segmentation fault in sockets library of sicstus prolog

On Jul 23, 3:42*pm, pragyesh.i...@gmail.com wrote:

> The linda server is calling the predicate socket_select/7 which
> sometimes gives segmentation fault and I could trace the error to this


If SICStus Prolog gives a segmentation fault then it is a bug. The
best way to resolve SICStus bugs is to report them at the SICStus
Prolog home page (www.sics.se/sicstus/ under "Support").

Regards,
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 04:48 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.