From: <no...@so...> - 2002-11-27 22:05:14
|
Bugs item #605367, was opened at 2002-09-06 02:26 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=111118&aid=605367&group_id=11118 Category: other Group: version 3.0 Status: Open Resolution: Accepted Priority: 7 Submitted By: Johny Agotnes (agotneja) Assigned to: Johny Agotnes (agotneja) Summary: Privoxy crash under RH7.3 after failed DNS lookup Initial Comment: I run a gateway, and when I'm not hacking the source I run the stock 3.0 Privoxy (other people using my network connection etc) This morning it crashed, after having been running for a few days, with the following in the logfile; Sep 06 07:52:32 Privoxy(01024) Error: Unable to get my own hostname: Success Sep 06 07:52:32 Privoxy(01024) Connect: OK Sep 06 07:52:32 Privoxy(01024) Connect: accept connection ... Sep 06 07:52:32 Privoxy(1396738) Request: www.yahoo.com/ Sep 06 07:52:32 Privoxy(1396738) Connect: to www.yahoo.com Alas, no core file :( (in /usr/sbin anyway, is it stored elsewhere?) Is the stock compile debuggable? If so, how has the core file generation been disabled? I'll leave it running and try to get it to crash again, if you know how to get it to create cores you could save me some investigation time! Incidentally, the Unable to get my own hostname log entry occurs a lot, I've yet to figure it out, but it wouldn't be the cause of this. Cheers, :)J ---------------------------------------------------------------------- Comment By: Lars Eggert (larse) Date: 2002-11-27 22:05 Message: Logged In: YES user_id=33032 Gah, ignore, submitted followup to the wrong PR. ---------------------------------------------------------------------- Comment By: Lars Eggert (larse) Date: 2002-11-27 22:03 Message: Logged In: YES user_id=33032 I'm seeing the same problem on FreeBSD-CURRENT with privoxy built from ports. Privoxy is bound to 127.0.0.1:8118. I'm running a local caching DNS server, but the problem also occurs if I disable that. Forward and reverse lookups work fine on this machine, and it has no other DNS problems: [root@nik: /etc/namedb] host 127.0.0.1 1.0.0.127.IN-ADDR.ARPA domain name pointer localhost.isi.edu [root@nik: /etc/namedb] host localhost localhost.isi.edu has address 127.0.0.1 This problem is readily reproducible. Please let me know if I can provide more information. Thanks, Lars ---------------------------------------------------------------------- Comment By: Johny Agotnes (agotneja) Date: 2002-11-10 11:42 Message: Logged In: YES user_id=292074 I just re-built my gateway box (HD crashed :( ), and installed the stock privoxy 3.0.0 on RH7.3 . After about a weeks worth of running the old problem re-appeared, i.e. Privoxy crashed early in the morning after a loong idletime on the first page load. I get no 'hostname not found' errors in the log, and actually run BIND on the local machine now, so the DNS suspicion is likely not the root cause of this. Re-compiled 3.0.0 from source with debug option on, started Privoxy manually as 'privoxy' with the no-daemon option and hope to see another crash soon. Also, tested that I actually get a core file on crash, if anyone else needs to do this, forget running Privoxy from the init scripts, or if you can get it to core successfully from there, pls tell me how ;) Open whilst awaiting 'next' crash! Johny ---------------------------------------------------------------------- Comment By: Johny Agotnes (agotneja) Date: 2002-10-10 11:50 Message: Logged In: YES user_id=292074 Re-opened to act as a tracker for; https://sourceforge.net/tracker/?func=detail&atid=211118&aid=618113&group_id=11118 and https://sourceforge.net/tracker/index.php?func=detail&aid=619575&group_id=11118&atid=111118 See notes on last item for suggestion on Purify, which may help. :)J ---------------------------------------------------------------------- Comment By: Johny Agotnes (agotneja) Date: 2002-09-30 11:47 Message: Logged In: YES user_id=292074 I suggest to close this for two reasons; I have fixed the 'Error: Unable to get my own hostname: Success' message by setting up my gateway correctly. Post that, (and also installing named on my gateway), the crash hasn't occurred again, even when messing with named. Shutting down named causes the Error: ... again, but it obviously takes some time of running with this config to break it. And, have closed it in this request, feel free to re-open if you see a need, but as I have been unable to have it happen more than the twice a while back, I dunno what to do :) Obviously, if it re-occurs I'll get the core and debug :) Cheers, :)J ---------------------------------------------------------------------- Comment By: Andreas Oesterhelt (oes) Date: 2002-09-27 12:35 Message: Logged In: YES user_id=78811 > Before you close this, I'd like to play around with it a bit [...] > I'll browse the code too for potential issues around not getting > the hostname correctl Great, thanks! I'm very tight on time ATM. If it works out, I'll be on vacations for week starting tomorrow or the day after. ---------------------------------------------------------------------- Comment By: Johny Agotnes (agotneja) Date: 2002-09-27 04:25 Message: Logged In: YES user_id=292074 Andreas, This did happen again, but I didn't get a corefile out of it :( It only happened once tho... Since then it hasn't happened, however, the major change I've done is to set up bind on my gateway (got my own domain and wanted name resolution behind my firewall), which means this could well be related to the DNS 'hang' on Win2K. Before you close this, I'd like to play around with it a bit more, esp. shutting down my bind and then use Privoxy with DNS failures instigated by myself. I do suspect some name lookups, actually, over the weekend I'll browse the code too for potential issues around not getting the hostname correctly. :)J ---------------------------------------------------------------------- Comment By: Andreas Oesterhelt (oes) Date: 2002-09-26 15:26 Message: Logged In: YES user_id=78811 Did this ever happen again? Hard to say anything when all we know is that the process somehow died. Since we have no other crash reports on Linux I'd like to close the item otherwise. As for core files: They are created in the cwd of the process, which is the cwd of the launching process if --no-daemon, or the root dir otherwise. I propose to start with --no-daemon, since you'd have to allow write access to / for the privoxy user. Even then, check permissions and ulimit -c ! ---------------------------------------------------------------------- Comment By: Andreas Oesterhelt (oes) Date: 2002-09-09 20:08 Message: Logged In: YES user_id=78811 Same problem as BR 592318? ---------------------------------------------------------------------- Comment By: Andreas Oesterhelt (oes) Date: 2002-09-06 12:24 Message: Logged In: YES user_id=78811 > Hint for bug hunting: Check if failed lookiup of own hostname > results in NULL char * that might be referenced in CGI? Nope. All use of csp->my_hostname is safe. ---------------------------------------------------------------------- Comment By: Andreas Oesterhelt (oes) Date: 2002-09-06 12:18 Message: Logged In: YES user_id=78811 Oooops! My copy did, because I didn't try a clean fresh checkout. Sorry. Builds fine now. Do you have a core by now that you can examine? Hint for bug hunting: Check if failed lookiup of own hostname results in NULL char * that might be referenced in CGI? ---------------------------------------------------------------------- Comment By: Johny Agotnes (agotneja) Date: 2002-09-06 04:04 Message: Logged In: YES user_id=292074 Silly use of mousewheel I suspect, randomly assigned to someone! Andreas - could you pls advice once the 3.1 series builds again so I know when to re-fetch all the code from CVS? Also, one issue I had when working the other day was that running make from the 'current' directory caused *all* the object files to be rebuilt, not just the 1 which was dependent on my 1 source file having changed. I won't dig into this until the source goes back to a stable state, focussing rather on the TP stuff ;) :)J ---------------------------------------------------------------------- Comment By: Hal Burgiss (hal9) Date: 2002-09-06 03:58 Message: Logged In: YES user_id=322640 Well, 3.1.1 isn't building right now :( Andreas did a lot of work today migratating stuff from 3.0. I hope soon, I'll definitely want to try it. ---------------------------------------------------------------------- Comment By: Johny Agotnes (agotneja) Date: 2002-09-06 03:54 Message: Logged In: YES user_id=292074 assigned to self; Also, thanks Hal, I suspect it is because I have DHCP, and haven't bothered setting up my hostname properly. However, dyndns is on its way which should clear this... As for the TP stuff, will get it refined this weekend, ready for CVS inclusion in 3.1alpha ;) Your feedback would be much appreciated once it's in. :)J ---------------------------------------------------------------------- Comment By: Hal Burgiss (hal9) Date: 2002-09-06 03:49 Message: Logged In: YES user_id=322640 Johny, if running stock RH, look in /etc/profile, ulimit -c 0, disables cores. The RPMs don't have debugging data either. On the hostname thing, I just grepped my logs, and thats not in there once (rotated last Sunday). I'm on RH7.3 too. I'd suspect that's a local DNS problem (/etc/hosts?). I haven't had a crash in many months now, also running privoxy on a LAN gateway (I'm anxious to try your transparent stuff!) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=111118&aid=605367&group_id=11118 |