Opened 13 years ago

Last modified 7 years ago

#371 closed defect (Implemented)

Mac OSX Crashes(Possible KQUEUE Problem)

Reported by: eweb101 Owned by: phobos
Priority: High Milestone:
Component: Core Tor/Tor Version: 0.1.2.4-alpha
Severity: Keywords:
Cc: eweb101 Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

MAC OS crashes after about 12 hour when running 0.1.2.4-alpha. I disabled KQUEUE and TOR has run for 3 days straight which makes me believe this is a KQUEUE problem.

The error I get is something like "This Macintosh must be restarted, press power or restart button"

The Macintosh is a 400 MHz G4 running 10.3.9.

[Automatically added by flyspray2trac: Operating System: OSX 10.4 Tiger]

Child Tickets

Change History (16)

comment:1 Changed 13 years ago by phobos

How did you install Tor? From a package or source?

comment:2 Changed 13 years ago by eweb101

I tried it both ways. First I tried using the vidalia package, then I compiled the source code. Crashed both times.

comment:3 Changed 13 years ago by nickm

Running as a server or as a client?

comment:4 Changed 13 years ago by eweb101

I was running it as a server.

comment:5 Changed 13 years ago by eweb101

I'm having the same problem with 0.1.2.6-alpha

comment:6 Changed 13 years ago by nickm

And with 0.1.2.6-alpha, disabling kqueue makes it work again?

comment:7 Changed 13 years ago by eweb101

I disabled kqueue and it now runs fine.

comment:8 Changed 13 years ago by phobos

Odd, I cannot recreate the problem with either 0.1.2.7-alpha or 0.1.1.26-stable. Apple may have done something in the
latest patches to the 10.3.x series. I'll poke some more.

comment:9 Changed 12 years ago by eweb101

My system profile says System Version: Mac OS X 10.3.9 (7W98). Kernel Version: Darwin 7.9.0. Not sure if that helps or not.

I also just tried 0.1.2.8-beta with kqueue turned on and got another kernel panic after about 8 hours of running as a router. It's working fine without kqueue.

Here is the entry that was created in the panic log. I can't make any sense of it, but maybe it's useful to someone.

*

Thu Mar 1 01:31:39 2007

Unresolved kernel trap(cpu 0): 0x300 - Data access DAR=0x0000000000000014 PC=0x000000000020D250
Latest crash info for cpu 0:

Exception state (sv=0x23565C80)

PC=0x0020D250; MSR=0x00009030; DAR=0x00000014; DSISR=0x40000000; LR=0x0020D15C; R1=0x10933C20; XCP=0x0000000C (0x300 - Data access)
Backtrace:

0x00000000 0x0020CC8C 0x00246D84 0x000941C0 0x59000000

Proceeding back via exception chain:

Exception state (sv=0x23565C80)

previously dumped as "Latest" state. skipping...

Exception state (sv=0x235CA280)

PC=0x9002E82C; MSR=0x0200F030; DAR=0x0588B000; DSISR=0x42000000; LR=0x002117DC; R1=0xBFFFFAC0; XCP=0x00000030 (0xC00 - System call)

Kernel version:
Darwin Kernel Version 7.9.0:
Wed Mar 30 20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC

panic(cpu 0): 0x300 - Data access
Latest stack backtrace for cpu 0:

Backtrace:

0x00083498 0x0008397C 0x0001EDA4 0x00090C38 0x0009402C

Proceeding back via exception chain:

Exception state (sv=0x23565C80)

PC=0x0020D250; MSR=0x00009030; DAR=0x00000014; DSISR=0x40000000; LR=0x0020D15C; R1=0x10933C20; XCP=0x0000000C (0x300 - Data access)
Backtrace:

0x00000000 0x0020CC8C 0x00246D84 0x000941C0 0x59000000

Exception state (sv=0x235CA280)

PC=0x9002E82C; MSR=0x0200F030; DAR=0x0588B000; DSISR=0x42000000; LR=0x002117DC; R1=0xBFFFFAC0; XCP=0x00000030 (0xC00 - System call)

Kernel version:
Darwin Kernel Version 7.9.0:
Wed Mar 30 20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC


*

comment:10 Changed 12 years ago by phobos

I'll setup my panther machine as a router and see if I can replicate the panic. In my short testing, under fully patched
panther (as of 2/25/07) I couldn't get it to fail.

comment:11 Changed 12 years ago by phobos

I still can't get it to fail. I have the same kernel as you. I'm running it on a G3, but that shouldn't matter.

Disabling kqueue seems to work for you. I don't understand why it works for me so far.

comment:12 Changed 12 years ago by miguelcampana

I'm a new Tor user - not a programmer - but I believe in the cause.

I too encounter a similar problem: after setting up Tor as a server, my Mac OS X Version 10.3.9 crashes about 6 hours in. (It's crashed twice now... black screen of death...) I'm going to keep trying it to see if the problem continues.

What I really could use is some non-technical guidance, but I'll first see if the problem repeats. I'll be back...

comment:13 Changed 12 years ago by miguelcampana

OK, pretty sure that Tor crashes my laptop. I've let it run as a server for several hours a couple of times, and have been able to repeat the crash. Like I said, I'm not a programmer, but reading the conversation above, I'll try to share some useful info:

*i downloaded and installed version <a href="http://tor.eff.org/download.html.en">0.1.2.12-rc</a>, the package that installs Vidalia/Tor/QT. i configured the ports, the firewall and when i ran it, the Vidalia log window told me the server ran excellent. from the time i start running the server to the time my computer freezes (the black/grey screen that alarmingly appears: "you must restart"), the Vidalia log gives no indication of problems with the Tor server.

*i run Tor on a iBook G4, version 10.3.9 / 1.07 GHz PowerPC G4 with 768 MB of DDR SDRAM memory.

I think I'll stop here until/if someone contacts me/this forum.

In the mean time, could someone explain to me the kqueue trick? (No idea what that is...)

comment:14 Changed 12 years ago by phobos

This crash appears to only happen under 10.3.x (aka Panther). The kqueue work around is to put this in the startup
script for Tor (/Library/StartupItems/Tor/Tor) or set it in your environment. The variable is:
"export EVENT_NOKQUEUE=1"

I'll commit a change to detect Panther machines and automatically set it for the next release.

comment:15 Changed 12 years ago by phobos

flyspray2trac: bug closed.
Commit r10002 disables kqueue on 10.3 and earlier OSXes.

comment:16 Changed 7 years ago by nickm

Component: Tor RelayTor
Note: See TracTickets for help on using tickets.