Bugs item #1487481, was opened at 2006-05-12 11:32 Message generated for change (Comment added) made by gvanrossum You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1487481&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Python Interpreter Core Group: Python 2.4 Status: Open Resolution: None Priority: 5 Submitted By: Göran Uddeborg (goeran) Assigned to: Guido van Rossum (gvanrossum) Summary: Could BIND_FIRST be removed on HP-UX? Initial Comment: I'm trying to build Python 2.4.3 on HP-UX 11. I need tkinter, so I have first built Tcl and Tk 8.4.13. During the build, the python interpreter crashes. When running the setup.py script, just after making the _tkinter.sl module, it crashes with a memory fault. I've tried to investigate this, and it seems that malloc and friends gets confused by the dynamic loading. I've filed a support request with HP about this. One observation I made is that this malloc bug seems to be connected with the use of BIND_FIRST in dynload_hpux.c. If I just remove this flag (in two places) it appears as if Python works normally. I'm hesitant if this is a good idea. BIND_FIRST is there as an explicit, non-default, flag. Somebody must have choosen to do so for some reason. What was that reason? And is it still valid? If not, maybe the flag could be removed, and this problem in HP-UX be avoided? ---------------------------------------------------------------------- >Comment By: Guido van Rossum (gvanrossum) Date: 2006-05-19 01:45 Message: Logged In: YES user_id=6380 Peter Kropf wrote: """ BIND_FIRST causes the dynamic loader to place the newly loaded shared library symbol table at the head of the lookup order. This causes symbol lookups from that time forward to check the newly loaded symbol table before everything else. I can see this causing interesting things to happen to a program if a shared library contains symbol names that are the same as those of, let's say, the C runtime library. >From what I remember of Python and HP-UX, I'd guess that this was added for an extension module. I don't think that it would be from the standard Python libraries but rather for a user's custom extension. """ ---------------------------------------------------------------------- Comment By: Guido van Rossum (gvanrossum) Date: 2006-05-18 18:51 Message: Logged In: YES user_id=6380 Sorry, I don't have access to email that old any more. HP-UX is quite different now than it was then. It would make more sense to ask an HP-UX expert. I'll ask Peter Kropf, who helped Elemental with the HP-UX port. ---------------------------------------------------------------------- Comment By: Martin v. Löwis (loewis) Date: 2006-05-13 12:38 Message: Logged In: YES user_id=21627 BIND_FIRST was added with this commit: ------------------------------------------------------------------------ r7068 | guido | 1996-12-06 00:15:35 +0100 (Fr, 06 Dez 1996) | 2 lines Geänderte Pfade: M /python/trunk/Python/importdl.c Some extra flags that an HPUX user wants me to add. ------------------------------------------------------------------------ Guido, do you have any records on which user that was and why he wanted these flags to be added? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1487481&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com