Re: [Python-Dev] Decoding libpython frame information on the stack
Hi Mithun, Because python-dev is a mailing list for the development *of* Python rather than development *with* Python, I believe you may not have posted to the best list. Further information about this distinction, and some discussion about potentially setting up a special-interest list exclusively for Python/C interactions, can be found in this recent thread: http://mail.python.org/pipermail/python-dev/2007-June/073680.html Regarding your question, I'll try to answer it as best I can: on our Windows application, we use Microsoft minidumps [1] instead of core dumps. At the time that a crash occurs and a minidump is written, we have some code that digs into the Python interpreter state to get a text traceback for every Python thread currently in execution at the time of the crash, which is appended to the log file that is sent with the minidump in the automated bug report. Doing this is a bit risky because it assumes that the relevant parts of the Python interpreter state aren't corrupt at the time of the crash, but precautions can be made to deal with this edge case. So while I can't help you get a bead on debugging core files, you may want to consider a similar solution on the Unix platform. - Atul [1] http://msdn2.microsoft.com/en-us/library/ms680369.aspx On 6/28/07, Mithun R N <[EMAIL PROTECTED]> wrote: > Hi All, > > Am a new subscriber to this list. > Am facing an issue in deciphering core-files of > applications with mixed C and libpython frames in it. > > I was thinking of knowing any work that has been done > with respect to getting into the actual python line > (file-name.py:) from the libpython frames > on the stack while debugging such core-files. If > anybody knows some information on this, please let me > know. I could not get any link on the web that talks > about this feature. > > Looking forward for your reply. > Thanks and regards, > Mithun > > > > Bollywood, fun, friendship, sports and more... you name it, we have it > at http://in.groups.yahoo.com > ___ > Python-Dev mailing list > Python-Dev@python.org > http://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > http://mail.python.org/mailman/options/python-dev/varmaa%40gmail.com > ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Known doctest bug with unicode?
Can you provide an example that fails? This seems to work on my end, for instance: >>> mydict = { u'\u2026' : 'ellipsis' } >>> mydict[u'\u2026'] 'ellipsis' - Atul On Fri, Apr 18, 2008 at 7:12 AM, Jeroen Ruigrok van der Werven < [EMAIL PROTECTED]> wrote: > Is it a known doctest bug that when you have a dict with Unicode key > values > that doctest dies with a KeyError? > > When I excute my code from the regular python interpreter it works as > expected. > > -- > Jeroen Ruigrok van der Werven / asmodai > イェルーン ラウフロック ヴァン デル ウェルヴェン > http://www.in-nomine.org/ | http://www.rangaku.org/ > Whenever you meet difficult situations dash forward bravely and > joyfully... > ___ > Python-Dev mailing list > Python-Dev@python.org > http://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > http://mail.python.org/mailman/options/python-dev/varmaa%40gmail.com > ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Do we still need BaseAddress in .vcproj files?
A while back I was reading an MSDN article that did some concrete research on the performance benefits of rebasing DLLs to avoid fixups at runtime, and it actually concluded that on modern systems, the benefits are really negligible. I tried finding the article on the net just now, though, and I couldn't, so don't take my word for it. This 1995 MSDN article provides an explanation and some raw numbers for systems at that time, though: http://msdn2.microsoft.com/en-us/library/ms810432.aspx - Atul On Fri, Apr 25, 2008 at 2:00 PM, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > This was partly out of curiosity, and partly because it was quicker > > doing that than finding a new unique base address to use for a new > > module I added to my local tree. Rebuilt everything and ran a full > > regression test, and everything passed. What am I missing? Do we > > have parts of Python that rely on finding modules at explicit base > > addresses? Is BaseAddress a relic from the past? Christian or > > Martin? > > As Christian says: specifying the base address so that the addresses > don't overlap avoids having Windows to perform relocations on startup. > > There is a Microsoft tool (editbin /rebase) to compute non-overlapping > base addresses for a given set of DLLs. > > Regards, > Martin > > ___ > Python-Dev mailing list > Python-Dev@python.org > http://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > http://mail.python.org/mailman/options/python-dev/varmaa%40gmail.com > ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com