Bad function identifier on 8.1

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Bad function identifier on 8.1

Stephen R. van den Berg
While trying to use Pike 8.1, I consistently get the following on stderr
whenever I run pike:

/usr/local/pike/8.1.6/lib/modules/Crypto.pmod/Random.pmod.o:-: Warning: Decode failed: Error while decoding program(/usr/local/pike/8.1.6/lib/modules/Crypto.pmod/Random.pmod:23):
Bad function identifier offset for random_string:function(int(0..2147483647) : string(8bit)): 3 != 0

It's not immediately obvious to me how to fix this.
Anyone?
Or am I the only one seeing this?
--
Stephen.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Bad function identifier on 8.1

Chris Angelico
On Wed, Nov 9, 2016 at 2:01 AM, Stephen R. van den Berg <[hidden email]> wrote:
> While trying to use Pike 8.1, I consistently get the following on stderr
> whenever I run pike:
>
> /usr/local/pike/8.1.6/lib/modules/Crypto.pmod/Random.pmod.o:-: Warning: Decode failed: Error while decoding program(/usr/local/pike/8.1.6/lib/modules/Crypto.pmod/Random.pmod:23):
> Bad function identifier offset for random_string:function(int(0..2147483647) : string(8bit)): 3 != 0
>
> It's not immediately obvious to me how to fix this.
> Anyone?
> Or am I the only one seeing this?

You're not the only one seeing it. I dug into it a while back, trying
to track down what was going on, and there's something bizarre with
the dumping of modules; if you run the dump using bin/pike, it causes
this decode failure, but if you use the installed pike (even the exact
same version), you don't.

The simplest workaround is to delete the .o file in question after you
install. I still haven't managed to track down exactly what the
problem is, or make a minimal testcase that highlights it. It appears
to be a mandelbug.

ChrisA
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Bad function identifier on 8.1

Stephen R. van den Berg
Chris Angelico wrote:
>The simplest workaround is to delete the .o file in question after you
>install. I still haven't managed to track down exactly what the
>problem is, or make a minimal testcase that highlights it. It appears
>to be a mandelbug.

Well, fast forward, bleeding edge pike 8.1.9 just retrieved from git:

/usr/local/pike/8.1.9/lib/modules/Crypto.pmod/Random.pmod.o:-: Warning: Decode failed: Error while decoding program(/usr/local/pike/8.1.9/lib/modules/Crypto.pmod/Random.pmod:23):
Bad function identifier offset for random_string:function(int(0..2147483647) : string(8bit)): 3 != 0

For me the problem seems annoyingly consistent.
--
Stephen.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Bad function identifier on 8.1

Chris Angelico
On Wed, May 24, 2017 at 8:32 PM, Stephen R. van den Berg <[hidden email]> wrote:

> Chris Angelico wrote:
>>The simplest workaround is to delete the .o file in question after you
>>install. I still haven't managed to track down exactly what the
>>problem is, or make a minimal testcase that highlights it. It appears
>>to be a mandelbug.
>
> Well, fast forward, bleeding edge pike 8.1.9 just retrieved from git:
>
> /usr/local/pike/8.1.9/lib/modules/Crypto.pmod/Random.pmod.o:-: Warning: Decode failed: Error while decoding program(/usr/local/pike/8.1.9/lib/modules/Crypto.pmod/Random.pmod:23):
> Bad function identifier offset for random_string:function(int(0..2147483647) : string(8bit)): 3 != 0
>
> For me the problem seems annoyingly consistent.

It's perfectly consistent for me, too, in the sense that every
installation triggers it. But when I tried to create a minimal
installer that JUST dumps this file, I couldn't make the bug behave
itself. There's something broken in the actual installation, but I
can't pin down exactly what.

ChrisA
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Bad function identifier on 8.1

Stephen R. van den Berg
The plot thickens.

I decided to recompile Pike 8.1.9 with RTL-debugging compile-time enabled.
Starting some random program of mine, I get this:

/usr/local/pike/8.1.9/lib/modules/Apple.pmod/Keychain.pike.o:-: Warning: Decode failed: Decode error: Got unfinished program <24> after decode: program(/usr/local/pike/8.1.9/lib/modules/Standards.pmod/X509.pmod:294)
/usr/local/pike/8.1.9/lib/modules/SSL.pmod/State.pike.o:-: Warning: Decode failed: Decode error: Got unfinished program <85> after decode: program(/usr/local/pike/8.1.9/lib/modules/SSL.pmod/Context.pike:42)
/usr/local/pike/8.1.9/lib/modules/SSL.pmod/Connection.pike.o:-: Warning: Decode failed: Decode error: Got unfinished program <169> after decode: program(/usr/local/pike/8.1.9/lib/modules/SSL.pmod/Session.pike:83)

Anyone have any suggestions as to what I can do to pinpoint this issue?
--
Stephen.
Loading...