Date: Sat, 13 Nov 2004 00:04:23 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 446 ************************************************** Friday 12 November 2004 Number 446 ************************************************** Subjects for today 1 Re: Debugging tar : Stefan.Neis at t-online.de 2 Python problem in urllib2.py? : John Poltorak 3 Re: Debugging tar : Dave Yeo" 4 Re: Debugging tar : John Poltorak 5 Re: Debugging tar : Steve Wendt 6 Re: Debugging tar : Yuri Dario" 7 Re: Debugging tar : Steven Levine" 8 Re: Debugging tar : Steve Wendt 9 Re: Python problem in urllib2.py? : Andrew MacIntyre 10 Re: Python problem in urllib2.py? : John Poltorak **= Email 1 ==========================** Date: Thu, 11 Nov 2004 14:30:52 +0100 (CET) From: Stefan.Neis at t-online.de Subject: Re: Debugging tar John Poltorak schrieb: > > When I run it at the command line it ends with:- > > Abnormal program termination > core dumped > > ???? Only the OMF version or the a.out version you're using with gdb as well? Anyway, bugs that only occur when _not_ running under the debugger are a real problem ... Regards, Stefan **= Email 2 ==========================** Date: Thu, 11 Nov 2004 13:58:14 +0000 From: John Poltorak Subject: Python problem in urllib2.py? When running 'make check' with ZopeX3 I get a lot of errors, most of which point to urllib2.py and look something like this:- File "G:/ux2bs/workdir/ZopeX3-3.0.0/build/lib.os2emx-2.3/ZConfig/schema.py", line 103, in startElement getattr(self, "start_" + name)(attrs) File "G:/ux2bs/workdir/ZopeX3-3.0.0/build/lib.os2emx-2.3/ZConfig/schema.py", line 308, in start_import self.loadComponent(src) File "G:/ux2bs/workdir/ZopeX3-3.0.0/build/lib.os2emx-2.3/ZConfig/schema.py", line 311, in loadComponent r = self._loader.openResource(src) File "G:/ux2bs/workdir/ZopeX3-3.0.0/build/lib.os2emx-2.3/ZConfig/loader.py", line 94, in openResource file = urllib2.urlopen(url) File "/usr/local/python/Lib/urllib2.py", line 129, in urlopen return _opener.open(url, data) File "/usr/local/python/Lib/urllib2.py", line 326, in open '_open', req) File "/usr/local/python/Lib/urllib2.py", line 306, in _call_chain result = func(*args) File "/usr/local/python/Lib/urllib2.py", line 980, in file_open return self.open_local_file(req) File "/usr/local/python/Lib/urllib2.py", line 1004, in open_local_file if not host or \ gaierror: (7, 'getaddrinfo failed') This is with Python 2.3.4. Any ideas on what is missing? Looks like it might be something to do with getting the system's hostname... -- John **= Email 3 ==========================** Date: Thu, 11 Nov 2004 08:16:16 -0800 From: "Dave Yeo" Subject: Re: Debugging tar On Thu, 11 Nov 2004 11:42:27 +0000, John Poltorak wrote: >On Thu, Nov 11, 2004 at 12:33:15PM +0100, Stefan.Neis at t-online.de wrote: >> John Poltorak schrieb: >> >> > Program exited with code 02. >> > >> > There is no indication where it got to in the source >> > code. >> >> That's just telling you that the program ended without >> error, so everything is OK ... > >When I run it at the command line it ends with:- > >Abnormal program termination >core dumped > >???? > >So it looks like something is wrong. If thats the version with debug turned on try loading the core file in (pm)gdb. Dave **= Email 4 ==========================** Date: Thu, 11 Nov 2004 16:40:01 +0000 From: John Poltorak Subject: Re: Debugging tar On Thu, Nov 11, 2004 at 08:16:16AM -0800, Dave Yeo wrote: > On Thu, 11 Nov 2004 11:42:27 +0000, John Poltorak wrote: > If thats the version with debug turned on try loading the core file in (pm)gdb. And... ? The main screen says:- (gdb) #0 0x454dd in raise() I don't really have any idea about what to do. > Dave -- John **= Email 5 ==========================** Date: Thu, 11 Nov 2004 12:13:20 -0800 (PST) From: Steve Wendt Subject: Re: Debugging tar On Thu, 11 Nov 2004, Yuri Dario wrote: > I will look at tar once I will get tired of using BackAgain/2 4.1 > BTW I was looking at it as backup tool for amanda (www.amanda.org). You can use BackAgain/2 with Amanda? Or did I not understand your comments? **= Email 6 ==========================** Date: Thu, 11 Nov 2004 22:39:33 +0100 (CET) From: "Yuri Dario" Subject: Re: Debugging tar Hi Steve, >You can use BackAgain/2 with Amanda? Or did I not understand your >comments? sorry, I mean tar: BA/2 has a command line backup tool, but I don't know if it is compatible with amanda. So I think a tar port should include also an amanda port. Bye, Yuri Dario /* * member of TeamOS/2 - Italy * http://www.os2power.com/yuri * http://www.teamos2.it */ **= Email 7 ==========================** Date: Thu, 11 Nov 2004 13:32:54 -0800 From: "Steven Levine" Subject: Re: Debugging tar In <20041111164001.A84 at warpix.org>, on 11/11/04 at 04:40 PM, John Poltorak said: >The main screen says:- >(gdb) #0 0x454dd in raise() That's where the exception occurred. Try a bt (stack backtrace) command and see if you can find out where you are at within the tar code. You should also give the list command a try as in list main to make sure you really built with debugging info. Steven -- ---------------------------------------------------------------------- "Steven Levine" MR2/ICE 2.60b #10183 Warp4/FP15/14.093c_W4 www.scoug.com irc.fyrelizard.com #scoug (Wed 7pm PST) ---------------------------------------------------------------------- **= Email 8 ==========================** Date: Thu, 11 Nov 2004 17:32:21 -0800 (PST) From: Steve Wendt Subject: Re: Debugging tar On Thu, 11 Nov 2004, Yuri Dario wrote: > So I think a tar port should include also an amanda port. Amanda is certainly useful, although I wish there were some nice web-based frontend for it (so someone else besides me could use it ). **= Email 9 ==========================** Date: Fri, 12 Nov 2004 22:32:37 +1100 (EST) From: Andrew MacIntyre Subject: Re: Python problem in urllib2.py? On Thu, 11 Nov 2004, John Poltorak wrote: > When running 'make check' with ZopeX3 I get a lot of errors, most of which > point to urllib2.py and look something like this:- {...} > '_open', req) > File "/usr/local/python/Lib/urllib2.py", line 306, in _call_chain > result = func(*args) > File "/usr/local/python/Lib/urllib2.py", line 980, in file_open > return self.open_local_file(req) > File "/usr/local/python/Lib/urllib2.py", line 1004, in open_local_file > if not host or \ > gaierror: (7, 'getaddrinfo failed') > > > > > This is with Python 2.3.4. Any ideas on what is missing? > > Looks like it might be something to do with getting the system's > hostname... 'getaddrinfo failed' is a name resolution failure - because I routinely run Python's test suite without DNS, I see this for a number of tests including urllib2. As such, I may be missing a genuine problem.... Notwithstanding that, things that come to mind to check: - %ETC%\hosts includes entries for each interface, including the loopback interface; - if using DNS, make sure that the hostname concerned exists and is reverse resolvable. In the case above, the hostname is not shown but I presume this would be the hostname you configured for the Zope instance. ------------------------------------------------------------------------- Andrew I MacIntyre "These thoughts are mine alone..." E-mail: andymac at bullseye.apana.org.au (pref) | Snail: PO Box 370 andymac at pcug.org.au (alt) | Belconnen ACT 2616 Web: http://www.andymac.org/ | Australia **= Email 10 ==========================** Date: Fri, 12 Nov 2004 12:43:08 +0000 From: John Poltorak Subject: Re: Python problem in urllib2.py? On Fri, Nov 12, 2004 at 10:32:37PM +1100, Andrew MacIntyre wrote: > On Thu, 11 Nov 2004, John Poltorak wrote: > > > When running 'make check' with ZopeX3 I get a lot of errors, most of which > > point to urllib2.py and look something like this:- > > {...} > > > '_open', req) > > File "/usr/local/python/Lib/urllib2.py", line 306, in _call_chain > > result = func(*args) > > File "/usr/local/python/Lib/urllib2.py", line 980, in file_open > > return self.open_local_file(req) > > File "/usr/local/python/Lib/urllib2.py", line 1004, in open_local_file > > if not host or \ > > gaierror: (7, 'getaddrinfo failed') > > > > > > > > > > This is with Python 2.3.4. Any ideas on what is missing? > > > > Looks like it might be something to do with getting the system's > > hostname... > > 'getaddrinfo failed' is a name resolution failure - because I routinely > run Python's test suite without DNS, I see this for a number of tests > including urllib2. As such, I may be missing a genuine problem.... > > Notwithstanding that, things that come to mind to check: > - %ETC%\hosts includes entries for each interface, including the loopback > interface; > - if using DNS, make sure that the hostname concerned exists and is > reverse resolvable. > > In the case above, the hostname is not shown but I presume this would be > the hostname you configured for the Zope instance. In the hosts file I have:- 127.0.0.1 localhost and this allows me to ping localhost. If I set hostname to localhost, then shouldn't 'getaddrinfo' be able to resolve the hostname? > ------------------------------------------------------------------------- > Andrew I MacIntyre "These thoughts are mine alone..." > E-mail: andymac at bullseye.apana.org.au (pref) | Snail: PO Box 370 > andymac at pcug.org.au (alt) | Belconnen ACT 2616 > Web: http://www.andymac.org/ | Australia -- John