Skip to main content

2017 | OriginalPaper | Buchkapitel

3. The Use of Dynamic Temporal Assertions for Debugging

verfasst von : Ziad A. Al-Sharif, Clinton L. Jeffery, Mahmoud H. Said

Erschienen in: Embedded Software Verification and Debugging

Verlag: Springer New York

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

Abstract

Bugs vary in their root causes and their revealed behaviors; some may cause a crash or a core dump, while others may cause an incorrect or missing output or an unexpected behavior. Moreover, most bugs are revealed long after their actual cause. A variable might be assigned early in the execution, and that value may cause a bug far from that last assigned place. This often requires users to manually track heuristic information over different execution states. This information may include a trace of specific variables’ values and their assigned locations, functions and their returned values, and detailed execution paths. This chapter introduces Dynamic Temporal Assertions (DTA) into the conventional source-level debugging session. It extends a typical gdb-like source-level debugger named UDB with on-the-fly temporal assertions. Each assertion is capable of: (1) validating a sequence of execution states, named temporal interval, and (2) referencing out-of-scope variables, which may not be live in the execution state at evaluation time. These new DTA assertions are not bounded by the limitations of ordinary in-code assertions such as locality, temporality, and static hardwiring into the source code. Furthermore, they advance typical interactive debugging sessions and their conditional breakpoints and watchpoints.

Sie haben noch keine Lizenz? Dann Informieren Sie sich jetzt über unsere Produkte:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Literatur
1.
Zurück zum Zitat Al-Sharif Z, Jeffery C (2009) UDB: an agent-oriented source level debugger. Int J Softw Eng 2(3):113–134 Al-Sharif Z, Jeffery C (2009) UDB: an agent-oriented source level debugger. Int J Softw Eng 2(3):113–134
2.
Zurück zum Zitat Al-Sharif Z, Jeffery C (2009) Language support for event-based debugging. In: Proceedings of the 21st international conference on software engineering and knowledge engineering (SEKE 2009), Boston, July 1–3, 2009, pp 392–399 Al-Sharif Z, Jeffery C (2009) Language support for event-based debugging. In: Proceedings of the 21st international conference on software engineering and knowledge engineering (SEKE 2009), Boston, July 1–3, 2009, pp 392–399
3.
Zurück zum Zitat Al-Sharif Z, Jeffery C (2009) A multi-agent debugging extension architecture. In: Proceedings of the 21st international conference on software engineering and knowledge engineering (SEKE 2009), Boston, July 1–3, 2009, pp 194–199 Al-Sharif Z, Jeffery C (2009) A multi-agent debugging extension architecture. In: Proceedings of the 21st international conference on software engineering and knowledge engineering (SEKE 2009), Boston, July 1–3, 2009, pp 194–199
4.
Zurück zum Zitat Al-Sharif Z, Jeffery C (2009) An agent-oriented source-level debugger on top of a monitoring framework. In: Proceedings of the 2009 sixth international conference on information technology: new generations, vol 00, April 27–29, 2009. ITNG. IEEE Computer Society, pp 241–247. doi:10.1109/ITNG.2009.305 Al-Sharif Z, Jeffery C (2009) An agent-oriented source-level debugger on top of a monitoring framework. In: Proceedings of the 2009 sixth international conference on information technology: new generations, vol 00, April 27–29, 2009. ITNG. IEEE Computer Society, pp 241–247. doi:10.​1109/​ITNG.​2009.​305
5.
Zurück zum Zitat Al-Sharif Z, Jeffery C (2009) An extensible source-level debugger. In: Proceedings of the 2009 ACM symposium on applied computing, Honolulu, Hawaii. SAC ’09. ACM, New York, NY, pp 543–544. doi:10.1145/1529282.1529397 Al-Sharif Z, Jeffery C (2009) An extensible source-level debugger. In: Proceedings of the 2009 ACM symposium on applied computing, Honolulu, Hawaii. SAC ’09. ACM, New York, NY, pp 543–544. doi:10.​1145/​1529282.​1529397
6.
Zurück zum Zitat Boothe B (2000) Efficient algorithms for bidirectional debugging. In: Proceedings of the ACM SIGPLAN 2000 conference on programming language design and implementation, Vancouver, British Columbia, Canada, June 18–21, 2000. PLDI ’00. ACM, New York, NY, pp 299–310 Boothe B (2000) Efficient algorithms for bidirectional debugging. In: Proceedings of the ACM SIGPLAN 2000 conference on programming language design and implementation, Vancouver, British Columbia, Canada, June 18–21, 2000. PLDI ’00. ACM, New York, NY, pp 299–310
7.
Zurück zum Zitat Drusinsky D, Michael B, Shing M (2008) A framework for computer-aided validation. Innov Syst Softw Eng 4(2):161–168CrossRef Drusinsky D, Michael B, Shing M (2008) A framework for computer-aided validation. Innov Syst Softw Eng 4(2):161–168CrossRef
9.
Zurück zum Zitat Drusinsky D, Shing M, Demir K (2005) Test-time, run-time, and simulation-time temporal assertions in RSP. In: Proceedings of the 16th IEEE international workshop on rapid system prototyping, June 08–10, 2005. RSP. IEEE Computer Society, Washington, DC, pp 105–110. doi:10.1109/RSP.2005.50 Drusinsky D, Shing M, Demir K (2005) Test-time, run-time, and simulation-time temporal assertions in RSP. In: Proceedings of the 16th IEEE international workshop on rapid system prototyping, June 08–10, 2005. RSP. IEEE Computer Society, Washington, DC, pp 105–110. doi:10.​1109/​RSP.​2005.​50
10.
Zurück zum Zitat Koymans R (1990) Specifying real-time properties with metric temporal logic. Real-Time Systems vol 2, no 4, Oct 1990. Kluwer Academic Publishers, Norwell, MA, USA, pp 255–299. doi:10.1007/BF01995674 Koymans R (1990) Specifying real-time properties with metric temporal logic. Real-Time Systems vol 2, no 4, Oct 1990. Kluwer Academic Publishers, Norwell, MA, USA, pp 255–299. doi:10.​1007/​BF01995674
11.
Zurück zum Zitat Volker S, Eric B (2006) Temporal assertions using aspect. Electron Notes Theory Comput Sci 144(4):109–124CrossRef Volker S, Eric B (2006) Temporal assertions using aspect. Electron Notes Theory Comput Sci 144(4):109–124CrossRef
12.
Zurück zum Zitat Jozsef K, Gabor K, Robert L, Wolfgang S (2002) Integrating temporal assertions into a parallel debugger. In: Euro-Par’02, Monien B, Feldmann R (eds) Proceedings of the 8th international euro-par conference on parallel processing. Springer, London, UK, pp 113–120 Jozsef K, Gabor K, Robert L, Wolfgang S (2002) Integrating temporal assertions into a parallel debugger. In: Euro-Par’02, Monien B, Feldmann R (eds) Proceedings of the 8th international euro-par conference on parallel processing. Springer, London, UK, pp 113–120
13.
Zurück zum Zitat Yilmaz C, Paradkar A, Williams C (2008) Time will tell: fault localization using time spectra. In: Proceedings of the 30th international conference on software engineering (ICSE ’08). ACM, New York, NY, USA, pp 81–90. doi:10.1145/1368088.1368100 Yilmaz C, Paradkar A, Williams C (2008) Time will tell: fault localization using time spectra. In: Proceedings of the 30th international conference on software engineering (ICSE ’08). ACM, New York, NY, USA, pp 81–90. doi:10.​1145/​1368088.​1368100
14.
Zurück zum Zitat Al-Sharif ZA, Jeffery CL, Said MH (2014) Debugging with dynamic temporal assertions. In: IEEE international symposium on software reliability engineering workshops (ISSREW), 3–6 Nov 2014, pp 257–262. doi:10.1109/ISSREW.2014.60 Al-Sharif ZA, Jeffery CL, Said MH (2014) Debugging with dynamic temporal assertions. In: IEEE international symposium on software reliability engineering workshops (ISSREW), 3–6 Nov 2014, pp 257–262. doi:10.​1109/​ISSREW.​2014.​60
Metadaten
Titel
The Use of Dynamic Temporal Assertions for Debugging
verfasst von
Ziad A. Al-Sharif
Clinton L. Jeffery
Mahmoud H. Said
Copyright-Jahr
2017
Verlag
Springer New York
DOI
https://doi.org/10.1007/978-1-4614-2266-2_3

Neuer Inhalt