You are not logged in.

#1 2016-05-13 09:58:49

SmallAndSimple
Member
Registered: 2015-11-25
Posts: 50

ModelSim 10.1c breaks on lib32-glibc-2.23-2-x86_64

ModelSim is about 3 eons old, so this might be an actual bug in glibc, but it might also be modelsims fault. Maybe you can help me figure it out.

lib32-glibc-2.23-1-x86_64: no issues.

lib32-glibc-2.23-2-x86_64:

lmdiag - Copyright (c) 1989-2008 Acresso Software Inc. All Rights Reserved.
FLEXnet diagnostics on Fri 5/13/2016 11:57

[1]    3097 segmentation fault (core dumped)  ./lmdiag

GDB tells me:

Program received signal SIGSEGV, Segmentation fault.
0xf7ea9069 in inet_pton () from /usr/lib32/libc.so.6

Same issues appear on lib32-glibc-2.23-4-x86_64


What do you guys think? I have no source code for lmdiag, are there any other ways to get more information?

Offline

#2 2016-05-17 20:22:58

n01deer
Member
Registered: 2016-05-17
Posts: 3

Re: ModelSim 10.1c breaks on lib32-glibc-2.23-2-x86_64

lmdiag is part of the FlexLM licence manager. FlexLM is very widely used used and works across many (EDA) tools.

So it might be possible to use a newer version of the FlexLM tools with your version of Modelsim. The Modelsim of the Altera Starter Edition, e.g.  comes with lmdiag that is slightly more up-to-date  (2013) and I can confirm that it does not segfault.

Another option might be to copy the old version of glibc to a save place and change the environment variables by using a script or environment-modules, to ensure that only Modelsim pickes up the old version of the lib.

Offline

#3 2016-05-17 20:41:04

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: ModelSim 10.1c breaks on lib32-glibc-2.23-2-x86_64

I'd say a more modern lmdiag is the way to go. From personal experience I'd say keeping old libraries around will come back to bite you later.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#4 2016-05-19 14:19:27

SmallAndSimple
Member
Registered: 2015-11-25
Posts: 50

Re: ModelSim 10.1c breaks on lib32-glibc-2.23-2-x86_64

The trick of moving the correct libc to a seperate directory, to prevent the global lib32-glibc to be locked at a low version, works pretty well. I researched some more and found out that the segfault is a "general protection fault", its not about using memory that is not allocated or something. The bug does not occur when using sudo.

Offline

#5 2016-06-22 17:31:53

kleofas
Member
Registered: 2009-11-22
Posts: 21

Re: ModelSim 10.1c breaks on lib32-glibc-2.23-2-x86_64

Can you provide some more info about which version of lib32-glibc and lib32-gcc-libs are you using? I'm trying to figure out a way to handle the same error with Lotus Notes ( https://bbs.archlinux.org/viewtopic.php?id=212773 ).

Offline

#6 2016-07-02 20:31:40

SmallAndSimple
Member
Registered: 2015-11-25
Posts: 50

Re: ModelSim 10.1c breaks on lib32-glibc-2.23-2-x86_64

kleofas wrote:

Can you provide some more info about which version of lib32-glibc and lib32-gcc-libs are you using? I'm trying to figure out a way to handle the same error with Lotus Notes ( https://bbs.archlinux.org/viewtopic.php?id=212773 ).

I took the libc-2.23.so and the libc.so.* from the lib32-glibc-2.23-1-x86_64 package and moved them to a new directory, close to my modelsim, which i called "lib32". Then I modified the vsim launch script and added the following line:

export LD_LIBRARY_PATH=/opt/modeltech/lib32

Well, to be really honest, I already did that, as described right here: https://wiki.archlinux.org/index.php/Al … _Archlinux

And then it worked. So the machine itself has everything running at the newest version, which as of right now is 2.23-5 for lib32-glibc and 6.1.1-2 for lib32-gcc-libs. So, what you prabably want is the lib32-glibc-2.23-1-x86_64 package. You can find that one here: https://archive.archlinux.org/packages/l/lib32-glibc/.

Offline

#7 2016-07-12 13:55:21

kleofas
Member
Registered: 2009-11-22
Posts: 21

Re: ModelSim 10.1c breaks on lib32-glibc-2.23-2-x86_64

Holy sh** it worked!!! Thank you so much!

Offline

Board footer

Powered by FluxBB