Question about socket syscall in release 6.2

2008-04-29 Thread Martin Candurra
I have found some weird behavior about the socket system call in freebsd
release 6.2.
The problem appears if I try to open more sockets than the ulimits allows:
the socket system call gets blocked instead of returning an EMFILE error.

This only happens to me in release 6.2 ( I tested in 7.0 but it works fine).
The following python script is what I have used to reproduce the issue:

import os
import socket
from random import randint
import sys
socketAddress = (127.0.0.1, randint(2, 3))


s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.bind(socketAddress)
s.listen(1)

socketList = []
child = -1
for i in range(1):

child = os.fork()
if (child):
clientCon, address = s.accept()
socketList.append(clientCon)
os.waitpid(0, os.WNOHANG)
else:
print child %d % i
clientSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
if (clientSocket==-1):
print(client socket error)
err = clientSocket.connect(socketAddress)
if (err==-1):
print(client connect error)
break



Is there something I'm missing ? Can someone shed me some light about this ?

Thanks in advance.

Best regards.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Question behavior about socket syscall in release 6.2

2008-04-27 Thread Martin Candurra
I have found some weird behavior about the socket system call in freebsd
release 6.2.
The problem appears if I try to open more sockets than the ulimits allows:
the socket system call gets blocked instead of returning an EMFILE error.

This only happens to me in release 6.2 ( I tested in 7.0 but it works fine).
The following python script is what I have used to reproduce the issue:

import os
import socket
from random import randint
import sys
socketAddress = (127.0.0.1, randint(2, 3))


s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.bind(socketAddress)
s.listen(1)

socketList = []
child = -1
for i in range(1):

child = os.fork()
if (child):
clientCon, address = s.accept()
socketList.append(clientCon)
os.waitpid(0, os.WNOHANG)
else:
print child %d % i
clientSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
if (clientSocket==-1):
print(client socket error)
err = clientSocket.connect(socketAddress)
if (err==-1):
print(client connect error)
break



Is there something I'm missing ? Can someone shed me some light about this ?

Thanks in advance.

Best regards.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


-stable kernel and release 6.2 base system. Do they need to be in sync?

2007-03-12 Thread Sunnz

Hi,

Just updated /usr/src to -stable (-rRELENG_6), and are now compiling
the -stable kernel.

Just wondering if I will need to rebuild the base system (world?) as
well so they are in sync?

Thanks.

--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: -stable kernel and release 6.2 base system. Do they need to be in sync?

2007-03-12 Thread Ivan Voras
Sunnz wrote:
 Hi,
 
 Just updated /usr/src to -stable (-rRELENG_6), and are now compiling
 the -stable kernel.
 
 Just wondering if I will need to rebuild the base system (world?) as
 well so they are in sync?

Probably nothing bad will happen if you don't, but if you start getting
weird errors this is the first thing you should do.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: -stable kernel and release 6.2 base system. Do they need to be in sync?

2007-03-12 Thread Wojciech Puchar


Just updated /usr/src to -stable (-rRELENG_6), and are now compiling
the -stable kernel.

Just wondering if I will need to rebuild the base system (world?) as
well so they are in sync?


tell me what base system do you have now.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: -stable kernel and release 6.2 base system. Do they need to be in sync?

2007-03-12 Thread Sunnz

6.2-Release. I only have updated the kernel so far.

Probably will upgrade the base system soon, but at the same time I
wanted to know if it should be something need to be done as quickly as
possible.

Thanks

2007/3/13, Wojciech Puchar [EMAIL PROTECTED]:


 Just updated /usr/src to -stable (-rRELENG_6), and are now compiling
 the -stable kernel.

 Just wondering if I will need to rebuild the base system (world?) as
 well so they are in sync?

tell me what base system do you have now.





--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: -stable kernel and release 6.2 base system. Do they need to be in sync?

2007-03-12 Thread Bill Moran
In response to Wojciech Puchar [EMAIL PROTECTED]:

 
  Just updated /usr/src to -stable (-rRELENG_6), and are now compiling
  the -stable kernel.
 
  Just wondering if I will need to rebuild the base system (world?) as
  well so they are in sync?

99% of the time, the answer is yes.

The real answer is that it depends on which version your going from and
to and what sort of changes have been made to kernel interfaces between
those versions.

-- 
Bill Moran
http://www.potentialtech.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: -stable kernel and release 6.2 base system. Do they need to be in sync?

2007-03-12 Thread Wojciech Puchar



6.2-Release. I only have updated the kernel so far.


my question was what version of base system you have in /bin, /sbin, /lib 
etc. now so i could answer if you HAVE to compile 6.2, should or don't 
need to, just put the kernel


if your system binaries is 6.0 or later you don't need to update
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: -stable kernel and release 6.2 base system. Do they need to be in sync?

2007-03-12 Thread Karol Kwiatkowski
Wojciech Puchar wrote:
 
 6.2-Release. I only have updated the kernel so far.
 
 my question was what version of base system you have in /bin, /sbin,
 /lib etc.

Check the Subject line :)

Cheers,

Karol

-- 
Karol Kwiatkowski   karol.kwiat at gmail dot com
OpenPGP 0x06E09309



signature.asc
Description: OpenPGP digital signature


Re: -stable kernel and release 6.2 base system. Do they need to be in sync?

2007-03-12 Thread Sunnz

Lol.

Yes, all I have done is installing FBSD6.2-Release from a CD, then
rebuilt the kernel using 6-stable sources.

2007/3/13, Karol Kwiatkowski [EMAIL PROTECTED]:

Wojciech Puchar wrote:

 6.2-Release. I only have updated the kernel so far.

 my question was what version of base system you have in /bin, /sbin,
 /lib etc.

Check the Subject line :)

Cheers,

Karol

--
Karol Kwiatkowski   karol.kwiat at gmail dot com
OpenPGP 0x06E09309






--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Release 6.2

2007-02-17 Thread York Rapp
Thank your very much for your fast answer.

Very kind.

-- 
Cordiali saluti, / Best regards, / Mit freundlichen Gruessen,

York

Make each day count.


On Fri, 2007-02-16 at 10:57 -0500, Lowell Gilbert wrote:
 York Rapp [EMAIL PROTECTED] writes:
 
  I am looking for a DVD Image of Release 6.2 to download, but
  unfortunately (stupid as I am ;-)) I cannot find it.
 
  Can you give me an information or a link of a mirror.
 
 The FreeBSD Project does not release official ISOs larger than CD
 size.  The extra bandwidth (and mirror thrashing) isn't worthwhile.
 You can, of course, make your own as you wish.


Chiacchiera con i tuoi amici in tempo reale! 
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Release 6.2

2007-02-16 Thread York Rapp
Hello Guys.

I am looking for a DVD Image of Release 6.2 to download, but
unfortunately (stupid as I am ;-)) I cannot find it.

Can you give me an information or a link of a mirror.

Would be very kind.

Thank you for your trouble.

-- 
Cordiali saluti, / Best regards, / Mit freundlichen Gruessen,

York

Make each day count.

Chiacchiera con i tuoi amici in tempo reale! 
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Release 6.2

2007-02-16 Thread Kris Kennaway
On Fri, Feb 16, 2007 at 01:49:35PM +0100, York Rapp wrote:
 Hello Guys.
 
 I am looking for a DVD Image of Release 6.2 to download, but
 unfortunately (stupid as I am ;-)) I cannot find it.

The FreeBSD project only provides CD iso images.

Kris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Release 6.2

2007-02-16 Thread John Nielsen
On Friday 16 February 2007 07:49, York Rapp wrote:
 I am looking for a DVD Image of Release 6.2 to download, but
 unfortunately (stupid as I am ;-)) I cannot find it.

 Can you give me an information or a link of a mirror.

The FreeBSD Project distributes releases as a two-CD set. All you need for a 
basic installation is the first CD. The second CD contains many commonly used 
packages (in addition to those on the first CD). These are available for 
download on all of the FreeBSD mirrors and elsewhere. (see 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mirrors-ftp.html)

bsdmall.com and freebsdmall.com both make DVD sets (which include many more 
packages and some other goodies) available for purchase. See their respective 
websites for more details. It doesn't look like bsdmall.com has a 6.2 DVD 
available quite yet.

JN
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Release 6.2

2007-02-16 Thread Lowell Gilbert
York Rapp [EMAIL PROTECTED] writes:

 I am looking for a DVD Image of Release 6.2 to download, but
 unfortunately (stupid as I am ;-)) I cannot find it.

 Can you give me an information or a link of a mirror.

The FreeBSD Project does not release official ISOs larger than CD
size.  The extra bandwidth (and mirror thrashing) isn't worthwhile.
You can, of course, make your own as you wish.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Release 6.2

2007-02-16 Thread Preston Hagar

On 2/16/07, York Rapp [EMAIL PROTECTED] wrote:


Hello Guys.

I am looking for a DVD Image of Release 6.2 to download, but
unfortunately (stupid as I am ;-)) I cannot find it.

Can you give me an information or a link of a mirror.

Would be very kind.

Thank you for your trouble.

--
Cordiali saluti, / Best regards, / Mit freundlichen Gruessen,

York

Make each day count.

Chiacchiera con i tuoi amici in tempo reale!
http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]




I was just wondering the same thing and I found this:

http://35.9.68.172/people/tigner/bsddvd.html

It is how to make the two CD images into one DVD image.  I got a little
tired as well with switching the CDs in and out.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: partition/cd recognition problem hal GNOME 2.16 FreeBSD RELEASE 6.2

2007-02-08 Thread Joe Marcus Clarke
On Mon, 2007-02-05 at 18:53 -0800, Charles Schaum wrote:
 Kudos to the GNOME FreeBSD team for continuing
 improvements.
 
 Problem: Hal no longer recognizes all vfat partitions.
 Two vfat partitions at ad0s1 and ad1s2 exist. Only
 ad0s1 now appears.
 
 CD burning now proceeds better via Nautilus. Before
 portsnap / portmaster that failed altogether. Now CD-R
 burning succeeds, whilst CD-RW burning can still hang
 the machine altogether. Gnomebaker, however, has
 worked consistently.
 
 Once burned, if not ejected, the CD is not recognized
 any more in the burning drive and in the auxiliary
 drive. Mac OS X can, however, recognize the CD.
 
 Indeed after burning a CD and closing the dialog
 (without ejecting) no CD or DVD of any kind was
 recognized any more, nor was any console error output
 generated. The devices simply ceased to communicate.

Without the output of lshal, there is nothing we can do.  Also be aware
that CD burning uses cdrecord and/or growisofs for the underlying work.
If those commands do not work on your system, then n-c-b won't work.
n-c-b just uses HAL to detect burners and which media is in them.

Joe

-- 
PGP Key : http://www.marcuscom.com/pgp.asc


signature.asc
Description: This is a digitally signed message part


partition/cd recognition problem hal GNOME 2.16 FreeBSD RELEASE 6.2

2007-02-05 Thread Charles Schaum
Kudos to the GNOME FreeBSD team for continuing
improvements.

Problem: Hal no longer recognizes all vfat partitions.
Two vfat partitions at ad0s1 and ad1s2 exist. Only
ad0s1 now appears.

CD burning now proceeds better via Nautilus. Before
portsnap / portmaster that failed altogether. Now CD-R
burning succeeds, whilst CD-RW burning can still hang
the machine altogether. Gnomebaker, however, has
worked consistently.

Once burned, if not ejected, the CD is not recognized
any more in the burning drive and in the auxiliary
drive. Mac OS X can, however, recognize the CD.

Indeed after burning a CD and closing the dialog
(without ejecting) no CD or DVD of any kind was
recognized any more, nor was any console error output
generated. The devices simply ceased to communicate.


System:

FreeBSD elbereth.gateway.2wire.net 6.2-RELEASE FreeBSD
6.2-RELEASE #0: Thu Jan 18 02:38:23 CST 2007
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/ELBERETH
 i386

Environment

SSH_AGENT_PID=975
TERM=xterm
DESKTOP_STARTUP_ID=
SHELL=/usr/local/bin/bash
GTK_RC_FILES=/usr/local/etc/gtk/gtkrc:/home/charles/.gtkrc-1.2-gnome2
WINDOWID=39845945
USER=charles
ENV=/home/charles/.shrc
GNOME_KEYRING_SOCKET=/var/tmp/keyring-2KqN8Y/socket
SSH_AUTH_SOCK=/tmp/ssh-ylD4KtDk05/agent.957
SESSION_MANAGER=local/elbereth.gateway.2wire.net:/tmp/.ICE-unix/957
USERNAME=charles
PAGER=more
FTP_PASSIVE_MODE=YES
PATH=/sbin:/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/games:/usr/X11R6/bin:/home/charles/bin
DESKTOP_SESSION=gnome
MAIL=/var/mail/charles
BLOCKSIZE=K
GDM_XSERVER_LOCATION=local
PWD=/home/charles
EDITOR=vi
GDMSESSION=gnome
SHLVL=1
HOME=/home/charles
GNOME_DESKTOP_SESSION_ID=Default
LOGNAME=charles
DBUS_SESSION_BUS_ADDRESS=unix:path=/var/tmp/dbus-MnUbvMsO9r,guid=3be5a4c376163957c4b32c0045c7b947
DISPLAY=:0.0
COLORTERM=gnome-terminal
XAUTHORITY=/home/charles/.Xauthority
_=/usr/bin/env

System changes: Custom kernel compiled to include
ATAPICAM, sound and VESA; unused NIC's commented out.
Generally retain options from GENERIC.
System has not been updated from the releace CD's.
Only the ports tree has changed (via portsnap).

This dmesg was obtained after recovering from a total
locup following an attempt to write to a CD-RW. I then
burned a CD-R successfully and then lost all mounting
ability.

FreeBSD elbereth.gateway.2wire.net 6.2-RELEASE FreeBSD
6.2-RELEASE #0: Thu Jan 18 02:38:23 CST 2007
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/ELBERETH
 i386
[EMAIL PROTECTED] ~]$ env
SSH_AGENT_PID=975
TERM=xterm
DESKTOP_STARTUP_ID=
SHELL=/usr/local/bin/bash
GTK_RC_FILES=/usr/local/etc/gtk/gtkrc:/home/charles/.gtkrc-1.2-gnome2
WINDOWID=39845945
USER=charles
ENV=/home/charles/.shrc
GNOME_KEYRING_SOCKET=/var/tmp/keyring-2KqN8Y/socket
SSH_AUTH_SOCK=/tmp/ssh-ylD4KtDk05/agent.957
SESSION_MANAGER=local/elbereth.gateway.2wire.net:/tmp/.ICE-unix/957
USERNAME=charles
PAGER=more
FTP_PASSIVE_MODE=YES
PATH=/sbin:/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/games:/usr/X11R6/bin:/home/charles/bin
DESKTOP_SESSION=gnome
MAIL=/var/mail/charles
BLOCKSIZE=K
GDM_XSERVER_LOCATION=local
PWD=/home/charles
EDITOR=vi
GDMSESSION=gnome
SHLVL=1
HOME=/home/charles
GNOME_DESKTOP_SESSION_ID=Default
LOGNAME=charles
DBUS_SESSION_BUS_ADDRESS=unix:path=/var/tmp/dbus-MnUbvMsO9r,guid=3be5a4c376163957c4b32c0045c7b947
DISPLAY=:0.0
COLORTERM=gnome-terminal
XAUTHORITY=/home/charles/.Xauthority
_=/usr/bin/env
[EMAIL PROTECTED] ~]$ dmesg
Copyright (c) 1992-2007 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989,
1991, 1992, 1993, 1994
The Regents of the University of California.
All rights reserved.
FreeBSD is a registered trademark of The FreeBSD
Foundation.
FreeBSD 6.2-RELEASE #0: Thu Jan 18 02:38:23 CST 2007
   
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/ELBERETH
module_register: module vesa already exists!
Module vesa failed to register: 17
ACPI APIC Table: INTEL  D845GLVA
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Celeron(R) CPU 2.40GHz (2399.74-MHz
686-class CPU)
  Origin = GenuineIntel  Id = 0xf27  Stepping = 7
 
Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
  Features2=0x4400CNTX-ID,b14
real memory  = 527695872 (503 MB)
avail memory = 506363904 (482 MB)
ioapic0 Version 2.0 irqs 0-23 on motherboard
kbd1 at kbdmux0
acpi0: INTEL D845GLVA on motherboard
acpi0: Power Button (fixed)
Timecounter ACPI-fast frequency 3579545 Hz quality
1000
acpi_timer0: 24-bit timer at 3.579545MHz port
0x408-0x40b on acpi0
cpu0: ACPI CPU on acpi0
acpi_throttle0: ACPI CPU Throttling on cpu0
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on
acpi0
pci0: ACPI PCI bus on pcib0
agp0: Intel 82845G (845G GMCH) SVGA controller mem
0xf000-0xf7ff,0xffa8-0xffaf irq 16 at
device 2.0 on pci0
agp0: detected 8060k stolen memory
agp0: aperture size is 128M
uhci0: Intel 82801DB (ICH4) USB controller USB-A
port 0xe800-0xe81f irq 16 at device 29.0 on pci0
uhci0: