[RTEMS Project] #3055: Infinite Loop in PCI Library Auto Bus Enumeration

RTEMS trac trac at rtems.org
Thu Jun 29 16:15:15 UTC 2017


#3055: Infinite Loop in PCI Library Auto Bus Enumeration
--------------------------+------------------------------
 Reporter:  Jeffrey Hill  |       Owner:  joel.sherrill@…
     Type:  defect        |      Status:  new
 Priority:  normal        |   Milestone:
Component:  cpukit        |     Version:  4.11
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by Jeffrey Hill):

 in the jar
 {{{
 (gdb) bt
 #0  pci_res_reorder (root=<optimized out>)
     at
 /ade/rtems/release/rtems-4-11/c/src/../../cpukit/libpci/pci_cfg_auto.c:191
 #1  pci_add_res_bus (type=2, bus=0x8a178ec)
     at
 /ade/rtems/release/rtems-4-11/c/src/../../cpukit/libpci/pci_cfg_auto.c:532
 #2  pci_add_res_dev (dev=0x8a178ec, arg=0x2)
     at
 /ade/rtems/release/rtems-4-11/c/src/../../cpukit/libpci/pci_cfg_auto.c:552
 #3  0x0830cc4c in pci_for_each_child (bus=bus at entry=0x89c5114,
     func=func at entry=0x830c114 <pci_add_res_dev>, arg=arg at entry=0x2,
     search=search at entry=0)
     at
 /ade/rtems/release/rtems-4-11/c/src/../../cpukit/libpci/pci_for_each_child.c:27
 #4  0x0830c294 in pci_add_res_bus (type=2, bus=0x89c5114)
     at
 /ade/rtems/release/rtems-4-11/c/src/../../cpukit/libpci/pci_cfg_auto.c:524
 #5  pci_add_res_dev (dev=0x89c5114, arg=0x2)
     at
 /ade/rtems/release/rtems-4-11/c/src/../../cpukit/libpci/pci_cfg_auto.c:552
 #6  0x0830cc4c in pci_for_each_child (bus=bus at entry=0x89c4f3c,
     func=func at entry=0x830c114 <pci_add_res_dev>, arg=arg at entry=0x2,
     search=search at entry=0)
     at
 /ade/rtems/release/rtems-4-11/c/src/../../cpukit/libpci/pci_for_each_child.c:27
 #7  0x0830c294 in pci_add_res_bus (type=2, bus=0x89c4f3c)
     at
 /ade/rtems/release/rtems-4-11/c/src/../../cpukit/libpci/pci_cfg_auto.c:524
 #8  pci_add_res_dev (dev=0x89c4f3c, arg=0x2)
     at
 /ade/rtems/release/rtems-4-11/c/src/../../cpukit/libpci/pci_cfg_auto.c:552
 #9  0x0830cc4c in pci_for_each_child (bus=bus at entry=0x89c4e50,
     func=func at entry=0x830c114 <pci_add_res_dev>, arg=arg at entry=0x2,
     search=search at entry=0)
     at
 /ade/rtems/release/rtems-4-11/c/src/../../cpukit/libpci/pci_for_each_child.c:27
 #10 0x0830c294 in pci_add_res_bus (type=2, bus=0x89c4e50)
     at
 /ade/rtems/release/rtems-4-11/c/src/../../cpukit/libpci/pci_cfg_auto.c:524
 #11 pci_add_res_dev (dev=0x89c4e50, arg=0x2)
     at
 /ade/rtems/release/rtems-4-11/c/src/../../cpukit/libpci/pci_cfg_auto.c:552
 #12 0x0830cc4c in pci_for_each_child (bus=bus at entry=0x89c4624,
     func=func at entry=0x830c114 <pci_add_res_dev>, arg=arg at entry=0x2,
     search=search at entry=0)
     at
 /ade/rtems/release/rtems-4-11/c/src/../../cpukit/libpci/pci_for_each_chil
 ---Type <return> to
 d.c:27
 #13 0x0830c294 in pci_add_res_bus (type=2, bus=0x89c4624)
     at
 /ade/rtems/release/rtems-4-11/c/src/../../cpukit/libpci/pci_cfg_auto.c:524
 #14 pci_add_res_dev (dev=0x89c4624, arg=0x2)
     at
 /ade/rtems/release/rtems-4-11/c/src/../../cpukit/libpci/pci_cfg_auto.c:552
 #15 0x0830cc4c in pci_for_each_child (bus=bus at entry=0x89c4538,
     func=func at entry=0x830c114 <pci_add_res_dev>, arg=arg at entry=0x2,
     search=search at entry=0)
     at
 /ade/rtems/release/rtems-4-11/c/src/../../cpukit/libpci/pci_for_each_child.c:27
 #16 0x0830c294 in pci_add_res_bus (type=2, bus=0x89c4538)
     at
 /ade/rtems/release/rtems-4-11/c/src/../../cpukit/libpci/pci_cfg_auto.c:524
 #17 pci_add_res_dev (dev=0x89c4538, arg=0x2)
     at
 /ade/rtems/release/rtems-4-11/c/src/../../cpukit/libpci/pci_cfg_auto.c:552
 #18 0x0830cc4c in pci_for_each_child (bus=bus at entry=0x857c9cc <pci_hb>,
     func=func at entry=0x830c114 <pci_add_res_dev>, arg=arg at entry=0x2,
     search=search at entry=0)
     at
 /ade/rtems/release/rtems-4-11/c/src/../../cpukit/libpci/pci_for_each_child.c:27
 #19 0x0830c8bc in pci_add_res_bus (bus=<optimized out>, type=2)
     at
 /ade/rtems/release/rtems-4-11/c/src/../../cpukit/libpci/pci_cfg_auto.c:524
 #20 pci_config_auto ()
     at
 /ade/rtems/release/rtems-4-11/c/src/../../cpukit/libpci/pci_cfg_auto.c:954
 #21 0x080678b4 in pciLibInit ()
 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/3055#comment:1>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list