[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Segfault in swig-python tests

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: Wed, 11 Mar 2009 13:32:32 -0400

Hyrum K. Wright wrote:
> There a segfault in one of the swig python tests:
>
> hwright_at_orac:~/dev/svn-trunk$ cd /home/hwright/dev/svn-trunk/
> subversion/bindings/swig/python; \
> > /usr/bin/python /home/hwright/dev/svn-trunk/subversion/bindings/
> swig/python/tests/run_all.py --verbose
> ...
> test_diff_editor4 (wc.SubversionWorkingCopyTestCase) ... Segmentation
> fault
> hwright_at_orac:~/dev/svn-trunk/subversion/bindings/swig/python$
>
> Can somebody familiar with the swig python tests look at this?

Attached is a stack trace. I'm having a very hard time wrapping my head
around all the vtable structure and baton wrapping stuff that's going on in
subversion/libsvn_wc/deprecated.c, especially since it appears that some of
the wrapping functions get recycled in various layers of the wrapping. Is
it possible that we've got code passing one version of a baton to code
expecting another version?

-- 
C. Michael Pilato <cmpilato_at_collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1308721

#0 0xb7ab91b3 in dir_props_changed2 (adm_access=0x0, state=0x0, tree_conflicted=0xa4516f8, path=0xa3fe1c8 "8\\O\n\b", propchanges=0xa3fdf20, originalprops=0xa4536f0, diff_baton=0x0) at subversion/libsvn_wc/deprecated.c:840
#1 0xb7ab91e6 in dir_props_changed2 (adm_access=0x0, state=0x0, tree_conflicted=0x0, path=0xa4516f8 "", propchanges=0xa3fe1c8, originalprops=0xa3fdf20, diff_baton=0xa4536f8) at subversion/libsvn_wc/deprecated.c:840
#2 0xb7abe344 in close_directory (dir_baton=0xa2ece98, pool=0xa4f5c38) at subversion/libsvn_wc/diff.c:2006
#3 0xb7a8a223 in close_directory (dir_baton=0xa2ece88, pool=0xa4f5c38) at subversion/libsvn_delta/cancel.c:256
#4 0xb7a8a223 in close_directory (dir_baton=0xa2ece80, pool=0xa4f5c38) at subversion/libsvn_delta/cancel.c:256
#5 0xb78232e7 in drive (b=0xa43d760, s_rev=12, info=0xa4f5c78, pool=0xa4f5c38) at subversion/libsvn_repos/reporter.c:1193
#6 0xb78235e4 in finish_report (b=0xa43d760, pool=0xa4f5c38) at subversion/libsvn_repos/reporter.c:1252
#7 0xb78239d3 in svn_repos_finish_report (baton=0xa43d760, pool=0xa4f5c38) at subversion/libsvn_repos/reporter.c:1342
#8 0xb7836748 in reporter_finish_report (reporter_baton=0xa43ec38, pool=0xa4f5c38) at subversion/libsvn_ra_local/ra_plugin.c:207
#9 0xb71cd019 in svn_ra_reporter3_invoke_finish_report (_obj=0xb783ad40, report_baton=0xa43ec38, pool=0xa4f5c38) at subversion/bindings/swig/python/svn_ra.c:3158
#10 0xb71dec72 in _wrap_svn_ra_reporter3_invoke_finish_report (self=0x0, args=0xb721adc4) at subversion/bindings/swig/python/svn_ra.c:11533
#11 0x0805d867 in PyObject_Call ()
#12 0x080cd502 in PyEval_EvalFrameEx ()
#13 0x080d0345 in PyEval_EvalCodeEx ()
#14 0x08117891 in ?? ()
#15 0x0805d867 in PyObject_Call ()
#16 0x080cd502 in PyEval_EvalFrameEx ()
#17 0x080d0345 in PyEval_EvalCodeEx ()
#18 0x080ce728 in PyEval_EvalFrameEx ()
#19 0x080d0345 in PyEval_EvalCodeEx ()
#20 0x080ce728 in PyEval_EvalFrameEx ()
#21 0x080d0345 in PyEval_EvalCodeEx ()
#22 0x0811797e in ?? ()
#23 0x0805d867 in PyObject_Call ()
#24 0x080cd502 in PyEval_EvalFrameEx ()
#25 0x080d0345 in PyEval_EvalCodeEx ()
#26 0x08117891 in ?? ()
#27 0x0805d867 in PyObject_Call ()
#28 0x08063a7a in ?? ()
#29 0x0805d867 in PyObject_Call ()
#30 0x080a65b3 in ?? ()
#31 0x0805d867 in PyObject_Call ()
#32 0x080cc8a7 in PyEval_EvalFrameEx ()
#33 0x080d0345 in PyEval_EvalCodeEx ()
#34 0x0811797e in ?? ()
#35 0x0805d867 in PyObject_Call ()
#36 0x080cd502 in PyEval_EvalFrameEx ()
#37 0x080d0345 in PyEval_EvalCodeEx ()
#38 0x08117891 in ?? ()
#39 0x0805d867 in PyObject_Call ()
#40 0x08063a7a in ?? ()
#41 0x0805d867 in PyObject_Call ()
#42 0x080a65b3 in ?? ()
#43 0x0805d867 in PyObject_Call ()
#44 0x080cc8a7 in PyEval_EvalFrameEx ()
#45 0x080d0345 in PyEval_EvalCodeEx ()
#46 0x0811797e in ?? ()
#47 0x0805d867 in PyObject_Call ()
#48 0x080cd502 in PyEval_EvalFrameEx ()
#49 0x080d0345 in PyEval_EvalCodeEx ()
#50 0x08117891 in ?? ()
#51 0x0805d867 in PyObject_Call ()
#52 0x08063a7a in ?? ()
#53 0x0805d867 in PyObject_Call ()
#54 0x080a65b3 in ?? ()
#55 0x0805d867 in PyObject_Call ()
#56 0x080cc8a7 in PyEval_EvalFrameEx ()
#57 0x080d0345 in PyEval_EvalCodeEx ()
#58 0x0811797e in ?? ()
#59 0x0805d867 in PyObject_Call ()
#60 0x080cd502 in PyEval_EvalFrameEx ()
#61 0x080d0345 in PyEval_EvalCodeEx ()
#62 0x08117891 in ?? ()
#63 0x0805d867 in PyObject_Call ()
#64 0x08063a7a in ?? ()
#65 0x0805d867 in PyObject_Call ()
#66 0x080a65b3 in ?? ()
#67 0x0805d867 in PyObject_Call ()
#68 0x080cc8a7 in PyEval_EvalFrameEx ()
#69 0x080cfbf5 in PyEval_EvalFrameEx ()
#70 0x080cfbf5 in PyEval_EvalFrameEx ()
#71 0x080d0345 in PyEval_EvalCodeEx ()
#72 0x0811797e in ?? ()
#73 0x0805d867 in PyObject_Call ()
#74 0x08063a7a in ?? ()
#75 0x0805d867 in PyObject_Call ()
#76 0x080a6168 in ?? ()
#77 0x080ad971 in ?? ()
#78 0x0805d867 in PyObject_Call ()
#79 0x080cc8a7 in PyEval_EvalFrameEx ()
#80 0x080d0345 in PyEval_EvalCodeEx ()
#81 0x080d0557 in PyEval_EvalCode ()
#82 0x080edf8f in PyRun_FileExFlags ()
#83 0x080ee25a in PyRun_SimpleFileExFlags ()
#84 0x080595e7 in Py_Main ()
#85 0x08058962 in main ()

Received on 2009-03-11 18:32:50 CET

This is an archived mail posted to the Subversion Dev mailing list.