oracle / graalpython

A Python 3 implementation built on GraalVM
Other
1.21k stars 104 forks source link

false positive detect of user filesystem #197

Closed SchrodingerZhu closed 3 years ago

SchrodingerZhu commented 3 years ago
Caused by: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Detected a string in the image heap that contains a user directory. This means that file system information from the native image build is persisted and available at image runtime, which is most likely an error.
String that is problematic: http://apache.org/xml/properties/validation/schema/root-type-definition

I think it is funny to treat /root-type-definition as /root especially the when it is in a web url.

msimacek commented 3 years ago

Hi @SchrodingerZhu. Graalpython is not doing these checks, it's the native-image feature of GraalVM. Could you please report the issue at https://github.com/oracle/graal?

SchrodingerZhu commented 3 years ago

yeah. perhaps that is better. but this problem is stopping me rebuilding python native image (EE).

msimacek commented 3 years ago

I understand that, but we cannot fix it in graalpython, it has to be fixed in native-image tool. I filled the issue for you there: https://github.com/oracle/graal/issues/3244. Let's continue there