Project

General

Profile

Actions

Bug #416

closed

BLAST fails on the example in which the LDV_ERROR label and ldv_main are defined in different files

Added by Vadim Mutilin over 13 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Immediate
Assignee:
Category:
BLAST
Start date:
09/03/2010
Due date:
09/07/2010
% Done:

0%

Estimated time:
2.00 h
Detected in build:
9dcab5d6b56e87ecc47e80d99594cd0f33006a39
Platform:
Published in build:

Description

rcv-blast: NORMAL: Running BLAST with alias analysis (this may take longer).
rcv-blast: NORMAL: Running BLAST for drivers/tests-envgen/test-twomains-mutex/twomains.ko, entry ldv_main1_plain_sorted_withcheck...
rcv-blast: INFO: /home/mutilin/opt/ldv/bin/../shared/sh/timeout -m 1000000 -t 900 pblast.opt /home/mutilin/temp/ldv-tools-test/test-envmodels/launcher-working-dir/ldv-manager-work-dir/work/current--X--tests-envgen--test-twomains-mutex.tar.bz2--X--defaultmykernel-1-2.6.32.15--X--32_1/mykernel-1-2.6.32.15/csd_deg_dscv/0/dscv_tempdir/dscv/cmdfiles/rcv/32_1/preprocessed/drivers-tests-envgen-test-twomains-mutex-main1_mod.c.common.i /home/mutilin/temp/ldv-tools-test/test-envmodels/launcher-working-dir/ldv-manager-work-dir/work/current--X--tests-envgen--test-twomains-mutex.tar.bz2--X--defaultmykernel-1-2.6.32.15--X--32_1/mykernel-1-2.6.32.15/csd_deg_dscv/0/dscv_tempdir/dscv/cmdfiles/rcv/32_1/preprocessed/drivers-tests-envgen-test-twomains-mutex-main2_obj.i -predH 7 -craig 2 -ignoredupfn -nosserr -main ldv_main1_plain_sorted_withcheck -L LDV_ERROR -cldepth 0 -alias bdd -cref -nomusts -const -devdebug
BLAST couldn't find entry point/error location at /home/mutilin/opt/ldv/bin/../dscv/rcv/blast line 285.
 at /home/mutilin/opt/ldv/bin/../dscv/rcv/blast line 90
 at /home/mutilin/opt/ldv/bin/../dscv/rcv/blast line 90
rcv-blast: INFO: BLAST debug trace is being written to /home/mutilin/temp/ldv-tools-test/test-envmodels/launcher-working-dir/ldv-manager-work-dir/work/current--X--tests-envgen--test-twomains-mutex.tar.bz2--X--defaultmykernel-1-2.6.32.15--X--32_1/mykernel-1-2.6.32.15/csd_deg_dscv/0/dscv_tempdir/dscv/cmdfiles/rcv/32_1/reports/drivers/tests-envgen/test-twomains-mutex/twomains.ko.ldv_main1_plain_sorted_withcheck.debug.gz
rcv-blast: TRACE: BLAST open3 return value: 768
rcv-blast: INFO: BLAST return value: 768
rcv-blast: TRACE: BLAST stats: utime 0.97206, stime 0.144009


Files

drivers-tests-envgen-test-twomains-mutex-main2_obj.i (645 KB) drivers-tests-envgen-test-twomains-mutex-main2_obj.i ldv_main1 Vadim Mutilin, 09/03/2010 02:41 PM
drivers-tests-envgen-test-twomains-mutex-main1_mod.c.common.i (649 KB) drivers-tests-envgen-test-twomains-mutex-main1_mod.c.common.i ldv_main0 Vadim Mutilin, 09/03/2010 02:41 PM
twomains.ko.ldv_main1_plain_sorted_withcheck.debug.gz (822 Bytes) twomains.ko.ldv_main1_plain_sorted_withcheck.debug.gz debug Vadim Mutilin, 09/03/2010 02:41 PM
a.c (47 Bytes) a.c first file to check that different files are ok Pavel Shved, 09/06/2010 11:24 AM
b.c (62 Bytes) b.c second file to check that different files are ok Pavel Shved, 09/06/2010 11:24 AM

Related issues 2 (0 open2 closed)

Related to Linux Driver Verification - Bug #422: Environment generator doesn't generate label ldv_module_exitClosedVadim Mutilin09/06/2010

Actions
Related to Linux Driver Verification - Bug #436: INTEGRATION ERROR at base/firmware_class.cClosedAlexey Khoroshilov09/15/201009/21/2010

Actions
Actions #2

Updated by Pavel Shved over 13 years ago

BLAST fails if the LDV_ERROR label and ldv_main are defined in different files

This is a lie.

Actions #3

Updated by Vadim Mutilin over 13 years ago

  • Subject changed from BLAST fails if the LDV_ERROR label and ldv_main are defined in different files to BLAST fails on the example in which the LDV_ERROR label and ldv_main are defined in different files
  • Priority changed from Normal to High

Awful truth :)
Rising to High because Small test set fails and prevents pushing new version of envgen into master

Updated by Pavel Shved over 13 years ago

  • File a.c a.c added
  • File b.c b.c added
  • Due date set to 09/07/2010
  • Category set to BLAST
  • Status changed from New to Open
  • Priority changed from High to Immediate
  • Estimated time set to 2.00 h

Вадим Мутилин wrote:

Awful truth :)

Vadim, please, create a couple of source code files (or check the ones I've attached) and stop insisting on an issue that has nothing to do with the problem.

Rising to High because Small test set fails and prevents pushing new version of envgen into master

That's not "High", that's "Immediate". I'll address these bugs today.

Actions #5

Updated by Vadim Mutilin over 13 years ago

Pavel Shved wrote:

Вадим Мутилин wrote:
Vadim, please, create a couple of source code files (or check the ones I've attached) and stop insisting on an issue that has nothing to do with the problem.

The issue is that there is an error, and I'm not insisting that the cause is main and label placed in different files. On such examples BLAST has worked before and is working now even in small tests. Moreover, I suspect that the error caused by recent changes in envgen. The title just describes the example tests-envgen-test-twomains-mutex and it is not a lie :) I changed it to be the truth.

Actions #6

Updated by Pavel Shved over 13 years ago

  • Status changed from Open to Closed

I found the issue. The thing is that BLAST indeed doesn't find the main you specified (ldv_main1_plain_sorted_withcheck).

But this main does present in main_2.obj.i file! What's the matter?

When parsing this function, CIL found that the label ldv_module_exit was "goto-ed" but was not specified. This led to "Error" at 111th line, as you can see in the trace you attached. The possible consequence of this is that BLAST didn't add the function to the "global function table", and thus it wasn't found during the entry point lookup. Hence the error.

The bug about this incorrect way of generating the model is #422.

Actions

Also available in: Atom PDF