UCVMC
UCVMC copied to clipboard
Namespace conflict for try_reading_model()
When trying to create a mesh using CS173, I experienced a seg fault. Looking at the core file, it appears the CS173 library is trying to call try_reading_model() from the CCA library:
(gdb) where
#0 0x00002aaabf2330e6 in try_reading_model ()
from /projects/sciteam/baln/CyberShake/software/UCVM/ucvm-18.5.0_07282018/model/cca/lib/libcca.so
#1 0x00002aab97e60c6d in cs173_init (
dir=0x7fffffff38d8 "/projects/sciteam/baln/CyberShake/software/UCVM/ucvm-18.5.0_07282018", label=0x7fffffff3860 "cs173")
at cs173.c:46
#2 0x0000000000410240 in ucvm_plugin_model_init (id=0, conf=0x7fffffff3860) at ucvm_model_plugin.c:111
#3 0x000000000040a66e in ucvm_add_user_model (m=m@entry=0x7fffffff3620, mconf=mconf@entry=0x7fffffff3860) at ucvm.c:529
#4 0x000000000040ab22 in ucvm_add_model (label=
Upon further investigation, it seems that both CCA and CS173 have try_reading_model() functions. I think changing the name of one of these functions would resolve the issue.
It looks like there is a conflict with read_properties() as well between CCA and CS173.
#0 0x00002aaabf232130 in read_properties ()
from /projects/sciteam/baln/CyberShake/software/UCVM/ucvm-18.5.0_07282018/model/cca/lib/libcca.so
#1 0x00002aab8a80f80b in cs173_query (points=0x14456000, data=0x14472700, numpoints=1000) at cs173.c:192
#2 0x00000000004119ad in ucvm_plugin_model_query (id=
Conflicts have been fixed in version 19_4. Please try the newer version and see if it is still a problem.
Mei
From: scallag [email protected] Sent: Thursday, September 26, 2019 3:21 PM To: SCECcode/UCVMC [email protected] Cc: Subscribed [email protected] Subject: Re: [SCECcode/UCVMC] Namespace conflict for try_reading_model() (#111)
It looks like there is a conflict with read_properties() as well between CCA and CS173.
#0 0x00002aaabf232130 in read_properties () from /projects/sciteam/baln/CyberShake/software/UCVM/ucvm-18.5.0_07282018/model/cca/lib/libcca.so #1https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_SCECcode_UCVMC_issues_1&d=DwMCaQ&c=clK7kQUTWtAVEOVIgvi0NU5BOUHhpN0H8p7CSfnc_gI&r=hCwk_stuE2kiGsjuxw7tlQ&m=LfLWhG5bsWvQ5NqWtzhpf8asf4kyTcg_niEfD_ljIY0&s=0cvrgviC1aKdGiIa80FwK_uAJv-4q2ndqDZqlWyNY8s&e= 0x00002aab8a80f80b in cs173_query (points=0x14456000, data=0x14472700, numpoints=1000) at cs173.c:192 #2https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_SCECcode_UCVMC_issues_2&d=DwMCaQ&c=clK7kQUTWtAVEOVIgvi0NU5BOUHhpN0H8p7CSfnc_gI&r=hCwk_stuE2kiGsjuxw7tlQ&m=LfLWhG5bsWvQ5NqWtzhpf8asf4kyTcg_niEfD_ljIY0&s=zlQZk-eLO1nTfkT1H2OIBi_9NI7Hf17pMdZhq-t_5JA&e= 0x00000000004119ad in ucvm_plugin_model_query (id=, cmode=, n=4400, pnt=, data=) at ucvm_model_plugin.c:302 #3https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_SCECcode_UCVMC_issues_3&d=DwMCaQ&c=clK7kQUTWtAVEOVIgvi0NU5BOUHhpN0H8p7CSfnc_gI&r=hCwk_stuE2kiGsjuxw7tlQ&m=LfLWhG5bsWvQ5NqWtzhpf8asf4kyTcg_niEfD_ljIY0&s=z3yZuWTrvpHhbhoOh6axoHyEfdmdPkvZtLcTl_M5Mks&e= 0x000000000040cf72 in ucvm_query (n=4400, pnt=0x23be8000, data=0x2fd48000) at ucvm.c:950 #4https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_SCECcode_UCVMC_issues_4&d=DwMCaQ&c=clK7kQUTWtAVEOVIgvi0NU5BOUHhpN0H8p7CSfnc_gI&r=hCwk_stuE2kiGsjuxw7tlQ&m=LfLWhG5bsWvQ5NqWtzhpf8asf4kyTcg_niEfD_ljIY0&s=X2ILdtMli-2aNeNW20RGShUWEOFJm42yF_IttWG8YGA&e= 0x00000000004071cb in main (ac=14, av=0x7fffffff5278) at ucvm-single_mpi.c:589
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_SCECcode_UCVMC_issues_111-3Femail-5Fsource-3Dnotifications-26email-5Ftoken-3DACE7UFZWHPPSAPE6RBTHQS3QLUYW3A5CNFSM4I27PRU2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7XECUA-23issuecomment-2D535707984&d=DwMCaQ&c=clK7kQUTWtAVEOVIgvi0NU5BOUHhpN0H8p7CSfnc_gI&r=hCwk_stuE2kiGsjuxw7tlQ&m=LfLWhG5bsWvQ5NqWtzhpf8asf4kyTcg_niEfD_ljIY0&s=74KTjGjPXZSBAIPB7m47TuKMxwTfloAXjng5SGNCgeE&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_ACE7UF4KTZ2NQSYT3ARMLVLQLUYW3ANCNFSM4I27PRUQ&d=DwMCaQ&c=clK7kQUTWtAVEOVIgvi0NU5BOUHhpN0H8p7CSfnc_gI&r=hCwk_stuE2kiGsjuxw7tlQ&m=LfLWhG5bsWvQ5NqWtzhpf8asf4kyTcg_niEfD_ljIY0&s=jUzs_6d_z23aKxq0Jglwypf5KtPNJEGFkJiVP3EVUwA&e=.