Skip to contentSkip to conversation

fio: disable compiler optimizations

PATCH Superseded [email protected] 2 participants 5 messages Aug 20, 2018 – Aug 21, 2018

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fio: disable compiler optimizations

From: Mingli Yu <[email protected]>

Add parameter "--disable-optimizations" to configure script to disable compiler optimizations to fix below issue:

$ gdb /usr/bin/fio
(gdb) r -h
Starting program: /usr/bin/fio -h
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGILL, Illegal instruction. 0x0000000000407220 in prio_tree_init () at lib/prio_tree.c:61
61 index_bits_to_maxindex[i] = (1UL << (i + 1)) - 1;
(gdb) bt
#0 0x0000000000407220 in prio_tree_init () at lib/prio_tree.c:61 #1 0x0000000000482208 in __libc_csu_init (argc=argc@entry=2,

    argv=argv@entry=0x7fffffffecc8, envp=0x7fffffffece0)
    at /usr/src/debug/glibc/2.26-r0/git/csu/elf-init.c:88
 #2 0x00000031c742095e in __libc_start_main (main=0x407700 <main>, argc=2,
    argv=0x7fffffffecc8, init=0x4821b6 <__libc_csu_init>,
    fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffecb8)
    at /usr/src/debug/glibc/2.26-r0/git/csu/libc-start.c:264

#3 0x00000000004077ea in _start () at ../sysdeps/x86_64/start.S:120

---
 meta-oe/recipes-benchmark/fio/fio_3.7.bb | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-benchmark/fio/fio_3.7.bb +1 -0
index 410e27b..9bec2df 100644
@@ -32,6 +32,7 @@ S = "${WORKDIR}/git"
 DISABLE_STATIC = ""
 
 EXTRA_OEMAKE = "CC='${CC}' LDFLAGS='${LDFLAGS}'"
+EXTRA_OECONF = "--disable-optimizations"
 
 do_configure() {
     ./configure ${EXTRA_OECONF}
Signature · 1 line
2.7.4
#1 lore raw
Quoted 18 lines · On Mon, Aug 20, 2018 at 2:42 AM <[email protected]> wrote:

From: Mingli Yu <[email protected]>

Add parameter "--disable-optimizations" to configure script to disable compiler optimizations to fix below issue:

$ gdb /usr/bin/fio
(gdb) r -h
Starting program: /usr/bin/fio -h
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGILL, Illegal instruction. 0x0000000000407220 in prio_tree_init () at lib/prio_tree.c:61
61 index_bits_to_maxindex[i] = (1UL << (i + 1)) - 1;
(gdb) bt
#0 0x0000000000407220 in prio_tree_init () at lib/prio_tree.c:61 #1 0x0000000000482208 in __libc_csu_init (argc=argc@entry=2,

Quoted 8 lines
    argv=argv@entry=0x7fffffffecc8, envp=0x7fffffffece0)
    at /usr/src/debug/glibc/2.26-r0/git/csu/elf-init.c:88
 #2 0x00000031c742095e in __libc_start_main (main=0x407700 <main>, argc=2,
    argv=0x7fffffffecc8, init=0x4821b6 <__libc_csu_init>,
    fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffecb8)
    at /usr/src/debug/glibc/2.26-r0/git/csu/libc-start.c:264

#3 0x00000000004077ea in _start () at ../sysdeps/x86_64/start.S:120

Please check if you see this issue on master branch secondly, while you are here please upgrade to 3.8 release and see if this fixes the issue you are seeing.

Quoted 25 lines
---
 meta-oe/recipes-benchmark/fio/fio_3.7.bb | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-benchmark/fio/fio_3.7.bb +1 -1
index 410e27b..9bec2df 100644
@@ -32,6 +32,7 @@ S = "${WORKDIR}/git"
 DISABLE_STATIC = ""
 
 EXTRA_OEMAKE = "CC='${CC}' LDFLAGS='${LDFLAGS}'"
+EXTRA_OECONF = "--disable-optimizations"
 
 do_configure() {
     ./configure ${EXTRA_OECONF}
--

2.7.4

--
_______________________________________________
Openembedded-devel mailing list [email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

author
#2 lore raw
Quoted 28 lines · Khem Raj
Quoted 18 lines · On Mon, Aug 20, 2018 at 2:42 AM <[email protected]> wrote:

From: Mingli Yu <[email protected]>

Add parameter "--disable-optimizations" to configure script to disable compiler optimizations to fix below issue:

$ gdb /usr/bin/fio
(gdb) r -h
Starting program: /usr/bin/fio -h
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGILL, Illegal instruction. 0x0000000000407220 in prio_tree_init () at lib/prio_tree.c:61
61 index_bits_to_maxindex[i] = (1UL << (i + 1)) - 1;
(gdb) bt
#0 0x0000000000407220 in prio_tree_init () at lib/prio_tree.c:61 #1 0x0000000000482208 in __libc_csu_init (argc=argc@entry=2,

Quoted 8 lines
     argv=argv@entry=0x7fffffffecc8, envp=0x7fffffffece0)
     at /usr/src/debug/glibc/2.26-r0/git/csu/elf-init.c:88
  #2 0x00000031c742095e in __libc_start_main (main=0x407700 <main>, argc=2,
     argv=0x7fffffffecc8, init=0x4821b6 <__libc_csu_init>,
     fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffecb8)
     at /usr/src/debug/glibc/2.26-r0/git/csu/libc-start.c:264

#3 0x00000000004077ea in _start () at ../sysdeps/x86_64/start.S:120

Quoted 3 lines

Please check if you see this issue on master branch secondly, while you are here please upgrade to 3.8 release and see if this fixes the issue you are seeing.

Yes, this issue exists in master, and even upgrade to 3.8, the issue still exist.

Thanks,

Quoted 27 lines
Quoted 26 lines
---
  meta-oe/recipes-benchmark/fio/fio_3.7.bb | 1 +
  1 file changed, 1 insertion(+)
meta-oe/recipes-benchmark/fio/fio_3.7.bb +1 -1
index 410e27b..9bec2df 100644
@@ -32,6 +32,7 @@ S = "${WORKDIR}/git"
  DISABLE_STATIC = ""
 
  EXTRA_OEMAKE = "CC='${CC}' LDFLAGS='${LDFLAGS}'"
+EXTRA_OECONF = "--disable-optimizations"
 
  do_configure() {
      ./configure ${EXTRA_OECONF}
--

2.7.4

--
_______________________________________________
Openembedded-devel mailing list [email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#3 lore raw
Quoted 32 lines · Mingli
Quoted 28 lines · Khem Raj
Quoted 26 lines · On Mon, Aug 20, 2018 at 2:42 AM <[email protected]> wrote:

From: Mingli Yu <[email protected]>

Add parameter "--disable-optimizations" to configure script to disable compiler optimizations to fix below issue:

$ gdb /usr/bin/fio
(gdb) r -h
Starting program: /usr/bin/fio -h
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGILL, Illegal instruction. 0x0000000000407220 in prio_tree_init () at lib/prio_tree.c:61
61 index_bits_to_maxindex[i] = (1UL << (i + 1)) - 1;
(gdb) bt
#0 0x0000000000407220 in prio_tree_init () at lib/prio_tree.c:61 #1 0x0000000000482208 in __libc_csu_init (argc=argc@entry=2,

     argv=argv@entry=0x7fffffffecc8, envp=0x7fffffffece0)
     at /usr/src/debug/glibc/2.26-r0/git/csu/elf-init.c:88
  #2 0x00000031c742095e in __libc_start_main (main=0x407700 <main>, argc=2,
     argv=0x7fffffffecc8, init=0x4821b6 <__libc_csu_init>,
     fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffecb8)
     at /usr/src/debug/glibc/2.26-r0/git/csu/libc-start.c:264

#3 0x00000000004077ea in _start () at ../sysdeps/x86_64/start.S:120

Quoted 7 lines
Quoted 3 lines

Please check if you see this issue on master branch secondly, while you are here please upgrade to 3.8 release and see if this fixes the issue you are seeing.

Yes, this issue exists in master, and even upgrade to 3.8, the issue still exist.

OK. lets update regardless.

Quoted 29 lines

Thanks,

Quoted 27 lines
Quoted 26 lines
---
  meta-oe/recipes-benchmark/fio/fio_3.7.bb | 1 +
  1 file changed, 1 insertion(+)
meta-oe/recipes-benchmark/fio/fio_3.7.bb +1 -1
index 410e27b..9bec2df 100644
@@ -32,6 +32,7 @@ S = "${WORKDIR}/git"
  DISABLE_STATIC = ""
 
  EXTRA_OEMAKE = "CC='${CC}' LDFLAGS='${LDFLAGS}'"
+EXTRA_OECONF = "--disable-optimizations"
 
  do_configure() {
      ./configure ${EXTRA_OECONF}
--

2.7.4

--
_______________________________________________
Openembedded-devel mailing list [email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

author
#4 lore raw
Quoted 37 lines · Khem Raj
Quoted 36 lines · Mingli
Quoted 31 lines · Khem Raj
Quoted 18 lines · On Mon, Aug 20, 2018 at 2:42 AM <[email protected]> wrote:

From: Mingli Yu <[email protected]>

Add parameter "--disable-optimizations" to configure script to disable compiler optimizations to fix below issue:

$ gdb /usr/bin/fio
(gdb) r -h
Starting program: /usr/bin/fio -h
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGILL, Illegal instruction. 0x0000000000407220 in prio_tree_init () at lib/prio_tree.c:61
61 index_bits_to_maxindex[i] = (1UL << (i + 1)) - 1;
(gdb) bt
#0 0x0000000000407220 in prio_tree_init () at lib/prio_tree.c:61 #1 0x0000000000482208 in __libc_csu_init (argc=argc@entry=2,

Quoted 8 lines
      argv=argv@entry=0x7fffffffecc8, envp=0x7fffffffece0)
      at /usr/src/debug/glibc/2.26-r0/git/csu/elf-init.c:88
   #2 0x00000031c742095e in __libc_start_main (main=0x407700 <main>, argc=2,
      argv=0x7fffffffecc8, init=0x4821b6 <__libc_csu_init>,
      fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffecb8)
      at /usr/src/debug/glibc/2.26-r0/git/csu/libc-start.c:264

#3 0x00000000004077ea in _start () at ../sysdeps/x86_64/start.S:120

Please check if you see this issue on master branch secondly, while you are here please upgrade to 3.8 release and see if this fixes the issue you are seeing.

Quoted 5 lines
Quoted 3 lines

Yes, this issue exists in master, and even upgrade to 3.8, the issue still exist.

OK. lets update regardless.

Okay, I will send v2 to include the upgrade patch.

Thanks,

Quoted 31 lines
Quoted 30 lines

Thanks,

Quoted 27 lines
Quoted 26 lines
---
   meta-oe/recipes-benchmark/fio/fio_3.7.bb | 1 +
   1 file changed, 1 insertion(+)
meta-oe/recipes-benchmark/fio/fio_3.7.bb +1 -1
index 410e27b..9bec2df 100644
@@ -32,6 +32,7 @@ S = "${WORKDIR}/git"
   DISABLE_STATIC = ""
 
   EXTRA_OEMAKE = "CC='${CC}' LDFLAGS='${LDFLAGS}'"
+EXTRA_OECONF = "--disable-optimizations"
 
   do_configure() {
       ./configure ${EXTRA_OECONF}
--

2.7.4

--
_______________________________________________
Openembedded-devel mailing list [email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel