[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: Tor server crashes on a Linksys WRT54GL



Well what you could do is remote-debugging.

Follow instructions to build gdb-sever for OpenWRT:
http://forum.openwrt.org/viewtopic.php?pid=29712

Install gdb-server

Run gdb-server on your WRT:
# gdb-server $ip:12345 /path/to/tor $myoptions
(Tor won't start immediately but will wait for a "cont" on the remote-debugger)

Set ulmits and run gdb an another machine on the network:
$ ulimit -c unlimited   # or whatever you consider a sane value
$ gdb
(gdb) target remote $ip:12345   # connect to WRT
(gdb) cont   # run Tor
...wait for crash and note output...

(Note: In the referenced URL above are more architecture-specific
notes for the WRT. I haven't tried this myself)

No idea if that will result in anything, but it might give some
information about what's really going on - like if it's a memory-issue
or something else. If the programm crashes with a SEGFAULT or
something, type "bt" in the remote gdb-session to show the backtrace.

Will be a lot of work, but maybe it's worth it.

HTH, cheers, Alex.

On 3/14/07, Mark Furner <mfurner@xxxxxxxxxx> wrote:
Hi Roger

The WRT54GL has about 16MB RAM. I was using an OpenWRT package of TOR version,
0.1.0.17. There is no gcc etc. on the box, and I doubt whether the thing
could be compiled on it: will TOR run on such as puny system?

Thanks for the tips about bandwidth changes. If I ever get this thing working,
I could donate more bandwidth when I ought be sleeping...

BTW nmap can scan higher port nos if you set with a port range (-p1-65535 )
but I take your point about netstat (on the box itself).

Thanks for the tips

Mark

On Wednesday 14 March 2007 08:20, Roger Dingledine (Roger Dingledine
<arma@xxxxxxx>) may have written:
> On Wed, Mar 14, 2007 at 07:57:24AM +0100, Mark Furner wrote:
> > I am experimenting with a tor server on my Linux router, but it starts 5
> > processes and hogs all my CPU before crashing.
>
> Try the 0.1.2.10-rc release -- it will start only 2 processes and then
> hog all your cpu. ;)
>
> > I am using a Linksys WRT54GL
> > with OpenWRT (White Russian RC6).
>
> How much ram does your linksys have? I hear they have been selling them
> with less and less ram to discourage people from using them for anything,
> so the newer it is the less likely it will run Tor (or heck, Linux) well.
>
> > An nmap scan did not show the port open (I
> > have opened TCP ports 9001 and 9030 on my firewall). Any tips so I can
> > get this working?
>
> nmap won't scan all the ports. It is the wrong tool for that purpose.
> Try netstat instead.
>
> > I would like to donate more bandwidth during the night, and think I could
> > start/stop the tor server with a different torrc config file. If someone
> > has a better idea how to do this, then please also let me know.
>
> You may find
> http://wiki.noreply.org/noreply/TheOnionRouter/CronBandwidthLimit
> or
> http://wiki.noreply.org/noreply/TheOnionRouter/BandwidthLimitChangeControll
>er helpful.
>
> > Thanks for any help or pointers,
>
> Good luck,
> --Roger

--
x-x-x-x-x-x-x-x-x-x-x-x-x
Mark Furner, PhD
Lärchenstr. 39
CH 8400 Winterthur
Switzerland
T. 0041 (0)78 641 15 92
E. mark.furner@xxxxxxx



--
"I am tired of all this sort of thing called science here... We have spent
millions in that sort of thing for the last few years, and it is time it
should be stopped."
-- Simon Cameron, U.S. Senator, on the Smithsonian Institute, 1901.