[tor-bugs] #6128 [Vidalia]: Test torrc handling in Vidalia alpha

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Sat Aug 18 09:00:55 UTC 2012


#6128: Test torrc handling in Vidalia alpha
--------------------------------------+-------------------------------------
 Reporter:  sebb                      |          Owner:  sebb          
     Type:  task                      |         Status:  needs_revision
 Priority:  normal                    |      Milestone:  Vidalia: 0.3.x
Component:  Vidalia                   |        Version:                
 Keywords:  test torrc vidalia alpha  |         Parent:                
   Points:                            |   Actualpoints:                
--------------------------------------+-------------------------------------

Comment(by sebb):

 Qt 4.7.3
 after debugging, its looks like the problem is located in
 qtscript_VidaliaTab.cpp file, lines 235-238

 QScriptValue fun =
 engine->newFunction(qtscript_VidaliaTab_prototype_call,qtscript_VidaliaTab_function_lengths[i+1]);
 fun.setData(QScriptValue(engine, uint(0xBABE0000 + i)));
 proto.setProperty(QString::fromLatin1(qtscript_VidaliaTab_function_names[i+1]),fun);

 It does not depend on the "i" index, it crashes for every value.
 When I remove the "setProperty" call, it wont crash.
 I thought this is related to "fromLatin1" call, but it crashes even for
 ' proto.setProperty("prop",fun); '
 It does not crash if I remove the "fun" argument, so this works ok:
 proto.setProperty(QString::fromLatin1(qtscript_VidaliaTab_function_names[i+1]),QScriptValue());

 finally, this is the call causing the crash:
 engine->newFunction(qtscript_VidaliaTab_prototype_call,
 qtscript_VidaliaTab_function_lengths[i+1]);

 commenting it out makes program work ok.

 I don't know QtScript module, I dont think I can solve it without spending
 few days.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/6128#comment:7>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list