Closed
Bug 810742
Opened 13 years ago
Closed 13 years ago
IndexError: list index out of range python/mach/mach/main.py", line 323, in _run initial_file = stack[0][0]
Categories
(Firefox Build System :: Mach Core, enhancement)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla20
People
(Reporter: Gavin, Assigned: gps)
References
Details
Attachments
(1 file)
1.49 KB,
patch
|
k0scist
:
review+
|
Details | Diff | Splinter Review |
Just tried setting up my build environment on Windows 8. I installed all the pre-requesites, created a simple .mozconfig, and ran "mach build". configure failed because I hadn't yet installed the DirectX SDK:
> 0:25.94 checking for jar... :
> 0:26.25 ERROR: Invalid key name.
> 0:26.25 Type "REG QUERY /?" for usage.
> 0:26.29 configure: error: Couldn't find the DirectX SDK, needed for WebGL. Either install it (June 2010 version or newer), or reconfigure with --disable-webgl.
> 0:26.30 *** Fix above errors and then restart with "c:/mozilla-build/python/python.exe c:/Users/Gavin/moz/mozilla-central/build/pymake/pymake/../make.py -f client.mk build"
> 0:26.32 c:\Users\Gavin\moz\mozilla-central\client.mk:310:0: command 'cd c:/Users/Gavin/moz/mozilla-central/obj-ff-debug && MAKE="c:/mozilla-build/python/python.exe c:/Users/Gavin/moz/mozilla-central/build/pymake/pymake/../make.py" c:/Users/Gavin/moz/mozilla-central/configure \
> 0:26.32 || ( echo "*** Fix above errors and then restart with\
> 0:26.32 \"c:/mozilla-build/python/python.exe c:/Users/Gavin/moz/mozilla-central/build/pymake/pymake/../make.py -f client.mk build\"" && exit 1 )' failed, return code 1
> 0:26.32 c:\Users\Gavin\moz\mozilla-central\client.mk:322:0: command 'c:/mozilla-build/python/python.exe c:/Users/Gavin/moz/mozilla-central/build/pymake/pymake/../make.py -f c:/Users/Gavin/moz/mozilla-central/client.mk configure' failed, return code 2
> 0:26.32 c:\Users\Gavin\moz\mozilla-central\client.mk:152:0: command 'c:/mozilla-build/python/python.exe c:/Users/Gavin/moz/mozilla-central/build/pymake/pymake/../make.py -f c:/Users/Gavin/moz/mozilla-central/client.mk realbuild' failed, return code 2
> 0:26.46 0 compiler warnings present.
This was followed by:
Error running mach:
['build']
The error occurred in mach itself. This is likely a bug in mach itself or a
fundamental problem with a loaded module.
Please consider filing a bug against mach by going to the URL:
https://bugzilla.mozilla.org/enter_bug.cgi?product=Core&component=mach
If filing a bug, please include the full output of mach, including this error
message.
The details of the failure are as follows:
IndexError: list index out of range
File "c:\Users\Gavin\moz\mozilla-central\python/mach\mach\main.py", line 215, in run
return self._run(argv)
File "c:\Users\Gavin\moz\mozilla-central\python/mach\mach\main.py", line 323, in _run
initial_file = stack[0][0]
Assignee | ||
Comment 1•13 years ago
|
||
Huh? It certainly seems like you've stumbled across a bug in the error handling. But, we shouldn't even get to this code - at least not with a tree newer than the middle of last week. How old is your tree?
Flags: needinfo?(gavin.sharp)
Reporter | ||
Comment 2•13 years ago
|
||
It was cloned from m-c a few minutes before I filed the bug.
Flags: needinfo?(gavin.sharp)
Assignee | ||
Comment 3•13 years ago
|
||
Gavin: I don't suppose I could gain physical access or remote desktop to the machine experiencing this issue? The error at line 323 should never happen and I would like to crack open a Python debugging session to poke at state.
Reporter | ||
Comment 4•13 years ago
|
||
Sure. I haven't set up RDP, so it'll have to wait until I get back home tonight :)
Assignee | ||
Comment 5•13 years ago
|
||
Waiting for Gavin to allow me to go to town with the Python debugger.
Flags: needinfo?(gavin.sharp)
Assignee | ||
Comment 8•13 years ago
|
||
I was able to reproduce this error using other means. This patch fixes mach to print out a useful error message.
Gavin: if you apply this patch, you should get a different error message that should reveal the actual problem. Please post it.
Attachment #688575 -
Flags: review?(jhammel)
Flags: needinfo?(gavin.sharp)
Assignee | ||
Comment 9•13 years ago
|
||
I'm relatively confident I fixed the underlying issue in bug 818628.
Reshaping this bug to track proper exception handling.
Summary: mach doesn't handle configure failing properly on Windows 8 → IndexError: list index out of range python/mach/mach/main.py", line 323, in _run initial_file = stack[0][0]
Updated•13 years ago
|
Attachment #688575 -
Flags: review?(jhammel) → review+
Assignee | ||
Comment 10•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/c3a34455b82e
I'd still like Gavin and others to confirm the configure error has disappeared.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
Reporter | ||
Comment 11•13 years ago
|
||
With the patch applied, I now get:
AssertionError
File "c:\Users\gps\moz\mozilla-central\python/mach\mach\main.py", line 306, in _run
assert isinstance(result, int)
More output: http://pastebin.mozilla.org/1978839
Flags: needinfo?(gavin.sharp)
Assignee | ||
Comment 12•13 years ago
|
||
(In reply to :Gavin Sharp (use gavin@gavinsharp.com for email) from comment #11)
> With the patch applied, I now get:
> AssertionError
> File "c:\Users\gps\moz\mozilla-central\python/mach\mach\main.py", line
> 306, in _run
> assert isinstance(result, int)
>
> More output: http://pastebin.mozilla.org/1978839
This was fixed in bug 818628. Update your tree and it will go away. I'm pretty confident we got both underlying issues.
Reporter | ||
Comment 13•13 years ago
|
||
Yep, updating to current tip fixed it. Now I just see a normal configure error.
Reporter | ||
Updated•13 years ago
|
Assignee: nobody → gps
Status: RESOLVED → VERIFIED
Comment 14•13 years ago
|
||
(In reply to :Gavin Sharp (use gavin@gavinsharp.com for email) from comment #11)
> With the patch applied, I now get:
> AssertionError
> File "c:\Users\gps\moz\mozilla-central\python/mach\mach\main.py", line
> 306, in _run
> assert isinstance(result, int)
>
> More output: http://pastebin.mozilla.org/1978839
Hi,
Could you please say how to apply the patch? I am totally new to this environment.
Thanks,
Bala
Reporter | ||
Comment 15•13 years ago
|
||
The patch was checked in to mozilla-central, so the easiest option is probably to just update your build (hg pull -u or equivalent).
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•