Ferenc Horváth
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Research Subjects
Ferenc Horváth has a total of 19 co-authors. Here are the top co-authors by number of shared publications:
- Tibor Gyimóthy
Department of Software Engineering, University of Szeged, Hungary
7 shared publications - Árpád Beszédes
Department of Software Engineering, University of Szeged, Szeged, Hungary
7 shared publications - Béla Vancsics
Department of Software Engineering, University of Szeged, Szeged, Hungary
3 shared publications - Gergő Balogh
University of Szeged
3 shared publications - László Vidács
Department of Software Engineering, University of Szeged, Szeged, Hungary
2 shared publications - Tamás Gergely
Department of Software Engineering, University of Szeged, Szeged, Hungary
2 shared publications
Latest Publications
- Open Access
- 18 June 2024
- Published by Association for Computing Machinery (ACM)
- p. 110-119
Context Switch Sensitive Fault Localization
Spectrum-Based Fault Localization (SBFL) is a popular technique to assist developers in pinpointing faulty elements within their code based on test outcomes and code coverage. In this paper, we examine the impact of context switching, i.e., when developers must frequently shift their attention between different code parts (such as methods and classes) while going down the SBFL ranked list to find the faulty statement. The basis of our study is the observation that it requires less effort to investigate statements that are next to each other rather than those in different methods and classes. In particular, we analyse the number of visited methods and classes, as well as the frequency of switches between them during the fault localization process. We found that, in programs from the Defects4J benchmark, developers need to explore 40 methods and 12 classes on average, before finding the faulty statement, leading to 53 method- and 40 class switches, respectively. We introduce a novel context-aware metric that better approximates the total cost of finding a bug than traditional metrics that solely count the number of statements. Our metric considers both the statement number and the added cost of context switches. We also propose a new strategy for reducing the cost by optimizing the traversal of the elements in the ranked list based on the new context-aware metric. The algorithm not only lowers the number of statements that need to be investigated by 12% but also significantly reduces the number of class and method switches by 52%.
- 18 June 2024
- Published by Association for Computing Machinery (ACM)
- p. 110-119
Open AccessContext Switch Sensitive Fault Localization
Spectrum-Based Fault Localization (SBFL) is a popular technique to assist developers in pinpointing faulty elements within their code based on test outcomes and code coverage. In this paper, we examine the impact of context switching, i.e., when developers must frequently shift their attention between different code parts (such as methods and classes) while going down the SBFL ranked list to find the faulty statement. The basis of our study is the observation that it requires less effort to investigate statements that are next to each other rather than those in different methods and classes. In particular, we analyse the number of visited methods and classes, as well as the frequency of switches between them during the fault localization process. We found that, in programs from the Defects4J benchmark, developers need to explore 40 methods and 12 classes on average, before finding the faulty statement, leading to 53 method- and 40 class switches, respectively. We introduce a novel context-aware metric that better approximates the total cost of finding a bug than traditional metrics that solely count the number of statements. Our metric considers both the statement number and the added cost of context switches. We also propose a new strategy for reducing the cost by optimizing the traversal of the elements in the ranked list based on the new context-aware metric. The algorithm not only lowers the number of statements that need to be investigated by 12% but also significantly reduces the number of class and method switches by 52%.
- 10 May 2024
- Published by University of Szeged
Code Coverage Measurement and Fault Localization Approaches
- 10 May 2024
- Published by University of Szeged
Code Coverage Measurement and Fault Localization Approaches
- Open Access
- 6 August 2022
- Published by Springer Nature in Empirical Software Engineering
- Vol. 27 (6) , 1-69
Using contextual knowledge in interactive fault localization
Tool support for automated fault localization in program debugging is limited because state-of-the-art algorithms often fail to provide efficient help to the user. They usually offer a ranked list of suspicious code elements, but the fault is not guaranteed to be found among the highest ranks. In Spectrum-Based Fault Localization (SBFL) – which uses code coverage information of test cases and their execution outcomes to calculate the ranks –, the developer has to investigate several locations before finding the faulty code element. Yet, all the knowledge she a priori has or acquires during this process is not reused by the SBFL tool. There are existing approaches in which the developer interacts with the SBFL algorithm by giving feedback on the elements of the prioritized list. We propose a new approach called iFL which extends interactive approaches by exploiting contextual knowledge of the user about the next item in the ranked list (e. g., a statement), with which larger code entities (e. g., a whole function) can be repositioned in their suspiciousness. We implemented a closely related algorithm proposed by Gong et al., called Talk. First, we evaluated iFL using simulated users, and compared the results to SBFL and Talk. Next, we introduced two types of imperfections in the simulation: user’s knowledge and confidence levels. On SIR and Defects4J, results showed notable improvements in fault localization efficiency, even with strong user imperfections. We then empirically evaluated the effectiveness of the approach with real users in two sets of experiments: a quantitative evaluation of the successfulness of using iFL, and a qualitative evaluation of practical uses of the approach with experienced developers in think-aloud sessions.
- 6 August 2022
- Published by Springer Nature in Empirical Software Engineering
- Vol. 27 (6) , 1-69
Open AccessUsing contextual knowledge in interactive fault localization
Tool support for automated fault localization in program debugging is limited because state-of-the-art algorithms often fail to provide efficient help to the user. They usually offer a ranked list of suspicious code elements, but the fault is not guaranteed to be found among the highest ranks. In Spectrum-Based Fault Localization (SBFL) – which uses code coverage information of test cases and their execution outcomes to calculate the ranks –, the developer has to investigate several locations before finding the faulty code element. Yet, all the knowledge she a priori has or acquires during this process is not reused by the SBFL tool. There are existing approaches in which the developer interacts with the SBFL algorithm by giving feedback on the elements of the prioritized list. We propose a new approach called iFL which extends interactive approaches by exploiting contextual knowledge of the user about the next item in the ranked list (e. g., a statement), with which larger code entities (e. g., a whole function) can be repositioned in their suspiciousness. We implemented a closely related algorithm proposed by Gong et al., called Talk. First, we evaluated iFL using simulated users, and compared the results to SBFL and Talk. Next, we introduced two types of imperfections in the simulation: user’s knowledge and confidence levels. On SIR and Defects4J, results showed notable improvements in fault localization efficiency, even with strong user imperfections. We then empirically evaluated the effectiveness of the approach with real users in two sets of experiments: a quantitative evaluation of the successfulness of using iFL, and a qualitative evaluation of practical uses of the approach with experienced developers in think-aloud sessions.
- Open Access
- 5 July 2022
- Published by Elsevier in Journal of Systems and Software
- Vol. 193
Fault localization using function call frequencies
- 5 July 2022
- Published by Elsevier in Journal of Systems and Software
- Vol. 193
Open AccessFault localization using function call frequencies
- Open Access
- 1 September 2019
- Published by Elsevier in Journal of Systems and Software
- Vol. 155, 70-90
Feature analysis using information retrieval, community detection and structural analysis methods in product line adoption
- 1 September 2019
- Published by Elsevier in Journal of Systems and Software
- Vol. 155, 70-90
Open AccessFeature analysis using information retrieval, community detection and structural analysis methods in product line adoption
- Open Access
- 1 May 2019
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 296-297
Leveraging Contextual Information from Function Call Chains to Improve Fault Localization
In Spectrum-Based Fault Localization, program elements such as statements or functions are ranked according to a suspiciousness score which can guide the programmer in finding the fault more efficiently. However, such a ranking does not include any additional information about the element under investigation. In this work, we propose to complement function-level spectrum based fault localization with function call chains - i.e., snapshots of the call stack occurring during execution - on which the fault localization is first performed, and then narrowed down to functions. Our experiments using defects from four Defects4J programs show that (i) 84% of the defective functions can be found in call chains with highest scores, (ii) the proposed approach improves Ochiai ranking of 1 to 6 positions on average, with a relative improvement of 45%, and (iii) the improvement is substantial when Ochiai produces bad rankings.
- 1 May 2019
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 296-297
Open AccessLeveraging Contextual Information from Function Call Chains to Improve Fault Localization
In Spectrum-Based Fault Localization, program elements such as statements or functions are ranked according to a suspiciousness score which can guide the programmer in finding the fault more efficiently. However, such a ranking does not include any additional information about the element under investigation. In this work, we propose to complement function-level spectrum based fault localization with function call chains - i.e., snapshots of the call stack occurring during execution - on which the fault localization is first performed, and then narrowed down to functions. Our experiments using defects from four Defects4J programs show that (i) 84% of the defective functions can be found in call chains with highest scores, (ii) the proposed approach improves Ochiai ranking of 1 to 6 positions on average, with a relative improvement of 45%, and (iii) the improvement is substantial when Ochiai produces bad rankings.
- Open Access
- 1 April 2019
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 371-374
Poster: Aiding Java Developers with Interactive Fault Localization in Eclipse IDE
Spectrum-Based ones are a popular class of Fault Localization (FL) methods among researchers due to their relative simplicity. However, recent studies highlighted some barriers to the wider adoption of the technique in practical settings. One possibility to increase the practical usefulness of related tools is to involve interactivity between the user and the core FL algorithm. In this setting, the developer interacts with the fault localization algorithm by giving feedback on the elements proposed by the algorithm. This way, the proposed elements can be influenced in the hope to reach the faulty element earlier (we call the proposed approach Interactive Fault Localization, or iFL). With this work, we present our recent achievements in this topic. In particular, we overview the basic approach, our preliminary experimentation with user simulation, and the supporting tool for the actual usage of the method, iFL for Eclipse. Our aim is to provide a basis for the investigation of the feasibility and effectiveness of the technique, before moving on to more comprehensive experiments with actual human subjects. We invite researchers for further discussion on the topic, and for that, the method and tool will be made accessible.
- 1 April 2019
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 371-374
Open AccessPoster: Aiding Java Developers with Interactive Fault Localization in Eclipse IDE
Spectrum-Based ones are a popular class of Fault Localization (FL) methods among researchers due to their relative simplicity. However, recent studies highlighted some barriers to the wider adoption of the technique in practical settings. One possibility to increase the practical usefulness of related tools is to involve interactivity between the user and the core FL algorithm. In this setting, the developer interacts with the fault localization algorithm by giving feedback on the elements proposed by the algorithm. This way, the proposed elements can be influenced in the hope to reach the faulty element earlier (we call the proposed approach Interactive Fault Localization, or iFL). With this work, we present our recent achievements in this topic. In particular, we overview the basic approach, our preliminary experimentation with user simulation, and the supporting tool for the actual usage of the method, iFL for Eclipse. Our aim is to provide a basis for the investigation of the feasibility and effectiveness of the technique, before moving on to more comprehensive experiments with actual human subjects. We invite researchers for further discussion on the topic, and for that, the method and tool will be made accessible.
- Open Access
- 13 December 2018
- Published by Springer Nature in Software Quality Journal
- Vol. 27 (2) , 797-822
Differences between a static and a dynamic test-to-code traceability recovery method
- 13 December 2018
- Published by Springer Nature in Software Quality Journal
- Vol. 27 (2) , 797-822
Open AccessDifferences between a static and a dynamic test-to-code traceability recovery method
- 1 January 2018
- Published by University of Szeged in Acta Cybernetica
- Vol. 23 (3) , 903-919
Analysis of Static and Dynamic Test-to-code Traceability Information
- 1 January 2018
- Published by University of Szeged in Acta Cybernetica
- Vol. 23 (3) , 903-919
Analysis of Static and Dynamic Test-to-code Traceability Information
- 4 December 2017
- Published by Springer Nature in Software Quality Journal
- Vol. 27 (1) , 79-123
Code coverage differences of Java bytecode and source code instrumentation tools
- 4 December 2017
- Published by Springer Nature in Software Quality Journal
- Vol. 27 (1) , 79-123
Code coverage differences of Java bytecode and source code instrumentation tools