Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BIZARRE copy of code #955

Closed
p5pRT opened this issue Dec 15, 1999 · 1 comment
Closed

BIZARRE copy of code #955

p5pRT opened this issue Dec 15, 1999 · 1 comment

Comments

@p5pRT
Copy link

p5pRT commented Dec 15, 1999

Migrated from rt.perl.org#1902 (status was 'resolved')

Searchable as RT1902$

@p5pRT
Copy link
Author

p5pRT commented Dec 15, 1999

From Marcin.Kasperski@softax.com.pl

I embed perl in some application. For a long time it worked correctly
but after some minor code changes it stopped​: program just crashed with
exit code 255 and message
  BIZARRE copy of code

It costed me good few hours to deduce that the error has been caused by
the fact that I allocated (from C side) perl variable to mirror some
subroutine and tried to copy that variable to some other variable.

Suggestions​:
- please, make this error message cleaner, for instance​:
  Forbidden attempt to copy code reference detected
  (for some time I thought that I destroyed perl internal structures in
some way and that this message detects some 'invalid code')
- please die instead of exiting, so one can catch the error and handle
it

I would be grateful for better diagnosis what exactly this error message
means.

-- Marcin.Kasperski<at>softax.com.pl, Marcin.Kasperski<at>bigfoot.com
-- Moje poglądy są moimi poglądami, nikogo poza mną nie reprezentują.
-- ------------------------------------------------------------------
-- Osoba jest omegalizacją ewolucji uniwersalnej na określonym
-- odcinku etapowym (Teilhard de Chardin)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant