Re: Can't get polipo to create a disk cache on OpenWrt (r41777)
David Bonnes <[email protected]> Mon, 28 Jul 2014 16:10:04 +0100
| Newsgroups | gmane.comp.web.polipo.user |
|---|---|
| Message-ID | <CALjRvCYwpkFM_SndZ51C3v5AO1OUNLuzBLDyOuN49PhyEquQ-g@mail.gmail.com> |
Steve, Sorry, coding is a bit beyond me, and I couldn't comment on the code block with any authority! However, I /am/ building polipo myself using a standard OpenWrt build environment running on Ubuntu. I /have not/ made any changes to the compiler optimizations, just selecting targets & packages, and a few optimizations for busybox (trading size for speed), example: CONFIG_TARGET_ar71xx_generic_UBNTRSPRO=y CONFIG_BUSYBOX_CONFIG_MD5_SMALL CONFIG_PACKAGE_luci-ssl=y Then: make -j 3 I guess I could test with the current RC for Barrier Breaker, or the current release of Attitude Adjustment, in which case I would be using their pre-compiled polipo package (I dont know if AA uses v1.1.1, though). (I am including your response in my email because I CC'd you directly rather than via the list) On 28 July 2014 15:55, Steve D <[email protected]> wrote: > 0 means success, which is just downright weird! The relevant polipo code > is: > > static int > checkRoot(AtomPtr root) > { > struct stat ss; > int rc; > > if(!root || root->length == 0) > return 0; > > if(root->string[0] != '/') { > return -2; > } > > rc = stat(root->string, &ss); > if(rc < 0) > return -1; > else if(!S_ISDIR(ss.st_mode)) { > errno = ENOTDIR; > return -1; > } > return 1; > } > > My only guess here is either (a) compiler optimization bug, or (b) stack > corruption. I did wonder if the kernel and userspace are disagreeing about > the > size of struct stat, but even then rc should be initialized after any > writes to > ss. Did you build polipo for OpenWRT yourself, or are you using a packaged > version?? > > Steve > > <<SNIP>> > > > ------------------------------------------------------------------------------ Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk _______________________________________________ Polipo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/polipo-users