Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8333280

ubsan: psobjs.c:203:5: runtime error: null pointer passed as argument 1, which is declared to never be null

XMLWordPrintable

    • 2d
    • x86
    • linux

      When running jdk jtreg tests with ubsan enabled binaries on Linux x86_64 I get the report below.
      This shows up in various tests, for example
      java/awt/FontClass/BigMetrics.jtr

      src/java.desktop/share/native/libfreetype/src/psaux/psobjs.c:203:5: runtime error: null pointer passed as argument 1, which is declared to never be null
          #0 0x7fcd14e0596b in ps_table_add src/java.desktop/share/native/libfreetype/src/psaux/psobjs.c:203
          #1 0x7fcd14f099e2 in parse_subrs src/java.desktop/share/native/libfreetype/src/type1/t1load.c:1884
          #2 0x7fcd14f0717d in t1_load_keyword src/java.desktop/share/native/libfreetype/src/type1/t1load.c:1230
          #3 0x7fcd14f0717d in parse_dict src/java.desktop/share/native/libfreetype/src/type1/t1load.c:2453
          #4 0x7fcd14f120a0 in T1_Open_Face src/java.desktop/share/native/libfreetype/src/type1/t1load.c:2566
          #5 0x7fcd14f137e1 in T1_Face_Init src/java.desktop/share/native/libfreetype/src/type1/t1objs.c:351
          #6 0x7fcd14e784c9 in open_face src/java.desktop/share/native/libfreetype/src/base/ftobjs.c:1556
          #7 0x7fcd14e84232 in ft_open_face_internal src/java.desktop/share/native/libfreetype/src/base/ftobjs.c:2645
          #8 0x7fcd14e8590b in FT_New_Memory_Face src/java.desktop/share/native/libfreetype/src/base/ftobjs.c:1649
          #9 0x7fcd15585f64 in Java_sun_font_FreetypeFontScaler_initNativeScaler src/java.desktop/share/native/libfontmanager/freetypeScaler.c:438
          #10 0x7fcd578dee7b (<unknown module>)

      Should we ask freetype to address this ? Or do something in OpenJDK ?

            prr Philip Race
            mbaesken Matthias Baesken
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: