Sockets? Weird things on debian

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Sockets? Weird things on debian

Bèrto ëd Sèra
Hi!

I'm running into problems with swazoo on debian and ubuntu. I suppose
it's something wrong with sockets.

The debian server has
*autoreconf (GNU Autoconf) 2.61
*GNU Make 3.81
*automake (GNU automake) 1.10.1
*ltmain.sh (GNU libtool) 1.5.26 Debian 1.5.26-4 (1.1220.2.493
2008/02/01 16:58:18)

sources were loaded as:
*git clone git://git.sv.gnu.org/smalltalk.git
*svn co http://bioskop.fr/svn/gst/iliad/trunk iliad

and compiled according to instructions. The same procedure wirked well
on my local gentoo box. What I get is:

hd-t2952cl:/web/ambaradan/ambaradan# gst -I ambaradan.im
GNU Smalltalk ready

st> Iliad.SwazooIliad startOn: 8080
Object: File error: Invalid argument
SystemExceptions.FileError(Exception)>>signal (AnsiExcept.st:216)
SystemExceptions.FileError class(Exception class)>>signal: (AnsiExcept.st:79)
File class>>checkError: (File.st:85)
File class>>checkError (File.st:74)
Sockets.TCPSocketImpl class(Sockets.AbstractSocketImpl class)>>newFor:
(Sockets.star#VFS.ZipFile/AbstractSocketImpl.st:79)
Sockets.ServerSocket class(Sockets.AbstractSocket
class)>>new:addressClass: (Sockets.star#VFS.ZipFile/Sockets.st:322)
Sockets.IPAddress class(Sockets.SocketAddress class)>>newSocket:
(Sockets.star#VFS.ZipFile/SocketAddress.st:108)
Sockets.ServerSocket class>>port:queueSize:bindTo:
(Sockets.star#VFS.ZipFile/Sockets.st:950)
SpSocket>>listenBackloggingUpTo: (Sport.star#VFS.ZipFile/sport.st:1183)
Swazoo.SwazooSocket>>listenFor: (Swazoo.star#VFS.ZipFile/HTTP.st:680)
Swazoo.HTTPServer>>start (Swazoo.star#VFS.ZipFile/HTTP.st:458)
[] in Swazoo.SwazooServer>>serverFor: (Swazoo.star#VFS.ZipFile/Core.st:927)
Set(Iterable)>>detect:ifNone: (Iterable.st:100)
Swazoo.SwazooServer>>serverFor: (Swazoo.star#VFS.ZipFile/Core.st:924)
[] in Iliad.Site(Swazoo.SwazooSite)>>start (Swazoo.star#VFS.ZipFile/Core.st:555)
OrderedCollection(SequenceableCollection)>>do: (SeqCollect.st:822)
[] in Iliad.Site(Swazoo.SwazooSite)>>start (Swazoo.star#VFS.ZipFile/Core.st:552)
[] in BlockClosure>>ifCurtailed: (BlkClosure.st:287)
BlockClosure>>ensure: (BlkClosure.st:269)
BlockClosure>>ifCurtailed: (BlkClosure.st:289)
Iliad.Site(Swazoo.SwazooSite)>>start (Swazoo.star#VFS.ZipFile/Core.st:557)
Swazoo.SwazooServer>>startSite: (Swazoo.star#VFS.ZipFile/Core.st:1002)
Swazoo.SwazooServer class>>startSite: (Swazoo.star#VFS.ZipFile/Core.st:722)
Iliad.SwazooIliad class>>startOn:
(Iliad-Swazoo.star#VFS.ZipFile/SwazooIliad.st:9)
UndefinedObject>>executeStatements (a String:1)
nil
st>

I wonder if there is any ongoing development that may have changed the
sources since when I downloaded them on my box.

Berto

--
==============================
Constitution du 24 juin 1793 - Article 35. - Quand le gouvernement
viole les droits du peuple, l'insurrection est, pour le peuple et pour
chaque portion du peuple, le plus sacré des droits et le plus
indispensable des devoirs.


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Sockets? Weird things on debian

Bèrto ëd Sèra
It seems to be a gst only problem, iliad is not necessarily called to
have it come on:
hd-t2952cl:/web/ambaradan/smalltalk# gst-remote --server &
[2] 2086
hd-t2952cl:/web/ambaradan/smalltalk# Object: File error: Invalid argument
SystemExceptions.FileError(Exception)>>signal (AnsiExcept.st:216)
SystemExceptions.FileError class(Exception class)>>signal: (AnsiExcept.st:79)
File class>>checkError: (File.st:85)
File class>>checkError (File.st:74)
Sockets.TCPSocketImpl class(Sockets.AbstractSocketImpl class)>>newFor:
(Sockets.star#VFS.ZipFile/AbstractSocketImpl.st:79)
Sockets.ServerSocket class(Sockets.AbstractSocket
class)>>new:addressClass: (Sockets.star#VFS.ZipFile/Sockets.st:322)
Sockets.IPAddress class(Sockets.SocketAddress class)>>newSocket:
(Sockets.star#VFS.ZipFile/SocketAddress.st:108)
Sockets.ServerSocket class>>port:queueSize:bindTo:
(Sockets.star#VFS.ZipFile/Sockets.st:950)
Sockets.ServerSocket class>>port:bindTo:
(Sockets.star#VFS.ZipFile/Sockets.st:934)
optimized [] in UndefinedObject>>executeStatements
(/usr/local/share/smalltalk/scripts/Remote.st:203)
[] in Process>>onBlock:at:suspend: (Process.st:384)
BlockClosure>>on:do: (BlkClosure.st:192)
[] in Process>>onBlock:at:suspend: (Process.st:387)
BlockClosure>>ensure: (BlkClosure.st:269)
[] in Process>>onBlock:at:suspend: (Process.st:393)
[] in BlockClosure>>asContext: (BlkClosure.st:178)
BlockContext class>>fromClosure:parent: (BlkContext.st:68)
gst-remote server started.

--
==============================
Constitution du 24 juin 1793 - Article 35. - Quand le gouvernement
viole les droits du peuple, l'insurrection est, pour le peuple et pour
chaque portion du peuple, le plus sacré des droits et le plus
indispensable des devoirs.


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Sockets? Weird things on debian

Stefan Schmiedl
In reply to this post by Bèrto ëd Sèra
On Thu, 6 Aug 2009 21:30:18 +0300
Bèrto ëd Sèra <[hidden email]> wrote:

> st> Iliad.SwazooIliad startOn: 8080
> Object: File error: Invalid argument


I saw that one a while ago, and it was a similar situation, only with
two Gentoo boxes.

http://smalltalk.gnu.org/blog/swsch/reboot-required-short-tale

Just a wild guess ...

s.


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Fwd: Sockets? Weird things on debian

Bèrto ëd Sèra
sorry, I had hit the single reply
Berto

---------- Forwarded message ----------
From: Bèrto ëd Sèra <[hidden email]>
Date: 2009/8/7
Subject: Re: [Help-smalltalk] Sockets? Weird things on debian
To: Stefan Schmiedl <[hidden email]>


The sources I have from my gentoo box work on debian, too. So I'm
afraid it's something with the repo

Berto


--
==============================
Constitution du 24 juin 1793 - Article 35. - Quand le gouvernement
viole les droits du peuple, l'insurrection est, pour le peuple et pour
chaque portion du peuple, le plus sacré des droits et le plus
indispensable des devoirs.



--
==============================
Constitution du 24 juin 1793 - Article 35. - Quand le gouvernement
viole les droits du peuple, l'insurrection est, pour le peuple et pour
chaque portion du peuple, le plus sacré des droits et le plus
indispensable des devoirs.


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Sockets? Weird things on debian

Stefan Schmiedl
In reply to this post by Stefan Schmiedl
On Fri, 7 Aug 2009 01:10:09 +0300
Bèrto ëd Sèra <[hidden email]> wrote:

> The sources I have from my gentoo box work on debian, too. So I'm
> afraid it's something with the repo

If you're using the same branch (master) on both machines
and git log reports the same commit as most recent, I'd
expect the sources to be the same.

The weird effect I had was caused by 2.6.30 kernel headers
claiming that sockets support CLO_EXEC, when the 2.6.27 kernel
that was actually running did not.

IIRC you can install "linux-headers" separately from the kernel,
so it could have been a similar effect.

But as long as it works, no worries :-)

s.


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Sockets? Weird things on debian

Bèrto ëd Sèra
In reply to this post by Bèrto ëd Sèra
Hi again,

Even with my sources the problem remains on our (other) public
debian-based www server, but I guess it really takes an upgrade there:
Linux hd-t2952cl 2.6.18-5-686 #1 SMP Tue Dec 18 21:24:20 UTC 2007 i686 GNU/Linux

which I'm not going to do, as we are switching to a gentoo server in a
month or so. It will have to wait for the new bow.
Berto

--
==============================
Constitution du 24 juin 1793 - Article 35. - Quand le gouvernement
viole les droits du peuple, l'insurrection est, pour le peuple et pour
chaque portion du peuple, le plus sacré des droits et le plus
indispensable des devoirs.


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Sockets? Weird things on debian

Paolo Bonzini-2
In reply to this post by Stefan Schmiedl
On 08/07/2009 12:40 AM, Stefan Schmiedl wrote:

> On Fri, 7 Aug 2009 01:10:09 +0300
> Bèrto ëd Sèra<[hidden email]>  wrote:
>
>> The sources I have from my gentoo box work on debian, too. So I'm
>> afraid it's something with the repo
>
> If you're using the same branch (master) on both machines
> and git log reports the same commit as most recent, I'd
> expect the sources to be the same.
>
> The weird effect I had was caused by 2.6.30 kernel headers
> claiming that sockets support CLO_EXEC, when the 2.6.27 kernel
> that was actually running did not.
>
> IIRC you can install "linux-headers" separately from the kernel,
> so it could have been a similar effect.
>
> But as long as it works, no worries :-)

Ok, I have to fix this or ask the glibc folks about it.

Paolo


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Sockets? Weird things on debian

Paolo Bonzini-2

> Ok, I have to fix this or ask the glibc folks about it.

glibc's own programs check whether SOCK_CLOEXEC works before using it,
so I did the same.

Paolo


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk