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 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:39 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 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 07-23-2008, 09:44 AM
A.L.
Guest
 
Default Re: segmentation fault in sockets library of sicstus prolog

On Wed, 23 Jul 2008 06:39:05 -0700 (PDT), pragyesh.iitr@gmail.com
wrote:

>Hi all,
>
>I am using the linda library in sicstus prolog 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'?
>


I am looking into my crystal ball, and asking the question: what
version of SICStus?... What operating system?... What hardware?...

Unfortunately, even my crystal ball doesn't know the answers...

A.L.
Reply With Quote
  #3  
Old 07-23-2008, 09:57 AM
pragyesh.iitr@gmail.com
Guest
 
Default Re: segmentation fault in sockets library of sicstus prolog

On Jul 23, 3:44 pm, A.L. <alewa...@zanoza.com> wrote:
> On Wed, 23 Jul 2008 06:39:05 -0700 (PDT), pragyesh.i...@gmail.com
> wrote:
>
>
>
> >Hi all,

>
> >I am using the linda library in sicstus prolog 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'?

>
> I am looking into my crystal ball, and asking the question: what
> version of SICStus?... What operating system?... What hardware?...
>
> Unfortunately, even my crystal ball doesn't know the answers...
>
> A.L.


Sicstus version 4.0.4 on Debian Linux 4.0 and I am runnning it on a
cluster with AMD Opteron(tm) Processor 252.
Reply With Quote
  #4  
Old 07-23-2008, 10:15 AM
A.L.
Guest
 
Default Re: segmentation fault in sockets library of sicstus prolog

On Wed, 23 Jul 2008 06:57:11 -0700 (PDT), pragyesh.iitr@gmail.com
wrote:

>
>Sicstus version 4.0.4 on Debian Linux 4.0 and I am runnning it on a
>cluster with AMD Opteron(tm) Processor 252.



Sorry, no help from me. I am not using Linux. I was testing Linda
extensively on Windows XP/INTEL, with SICStus 4.04 and 3.12.8 without
problems.

A.L.
Reply With Quote
  #5  
Old 07-23-2008, 11:21 AM
pragyesh.iitr@gmail.com
Guest
 
Default Re: segmentation fault in sockets library of sicstus prolog

On Jul 23, 4:15 pm, A.L. <alewa...@zanoza.com> wrote:
> On Wed, 23 Jul 2008 06:57:11 -0700 (PDT), pragyesh.i...@gmail.com
> wrote:
>
>
>
> >Sicstus version 4.0.4 on Debian Linux 4.0 and I am runnning it on a
> >cluster with AMD Opteron(tm) Processor 252.

>
> Sorry, no help from me. I am not using Linux. I was testing Linda
> extensively on Windows XP/INTEL, with SICStus 4.04 and 3.12.8 without
> problems.
>
> A.L.


Do you have any idea what does a call like prolog:'$select' transfer
control to?
Reply With Quote
  #6  
Old 07-23-2008, 11:42 AM
A.L.
Guest
 
Default Re: segmentation fault in sockets library of sicstus prolog

On Wed, 23 Jul 2008 08:21:18 -0700 (PDT), pragyesh.iitr@gmail.com
wrote:

>On Jul 23, 4:15 pm, A.L. <alewa...@zanoza.com> wrote:
>> On Wed, 23 Jul 2008 06:57:11 -0700 (PDT), pragyesh.i...@gmail.com
>> wrote:
>>
>>
>>
>> >Sicstus version 4.0.4 on Debian Linux 4.0 and I am runnning it on a
>> >cluster with AMD Opteron(tm) Processor 252.

>>
>> Sorry, no help from me. I am not using Linux. I was testing Linda
>> extensively on Windows XP/INTEL, with SICStus 4.04 and 3.12.8 without
>> problems.
>>
>> A.L.

>
>Do you have any idea what does a call like prolog:'$select' transfer
>control to?


Sorry - since I had no problems with Linda, I have never studied its
internals...

A.L.
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 03:56 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.