segmentation fault when calling c-compiler

Asked by Maikel de Vries

I have a model and run it in CalcHEP and get the following error when calling the C-compiler on it:

./calchep
Font family '-adobe-courier-bold-r-normal--14-*' is empty
Write down your preferable font family in calchep.ini
Use ^+,^> to increase the font size and ^-,^< to decrease it
./calchep: line 53: 21794 Segmentation fault (core dumped) $CALCHEP/bin/s_calchep $*
CalcHEP has finished with error code 139

This is for the process:
~XTF,~XTF~->u,u~
where XTF is a simple dirac fermion color triplet which only couples to the gluon.

Question information

Language:
English Edit question
Status:
Answered
For:
CalcHEP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Maikel de Vries (mdt-maikel) said :
#1

I would attach the model files, but can't find any attach button.

Revision history for this message
Alexander Belyaev (alexander.belyaev) said :
#2

Hi Makel,

please edit
calchep.ini

and replace line with

font -adobe-courier-bold-r-normal--14-*

to

font *

Alternatively, you can list available fonts using
xlsfonts
command

and use any of them by editing
line with 'font' in the
calchep.ini file, e.g.

font 'name'

where 'name is the name from xlsfonts command.

Regards,
    Alexander

P.S.
Launchpad 'ask question' option does not allow attachment

Revision history for this message
Maikel de Vries (mdt-maikel) said :
#3

The font is not the problem.

The model crashes

./calchep: line 53: 7914 Segmentation fault (core dumped) $CALCHEP/bin/s_calchep $*
CalcHEP has finished with error code 139

when launching the C-compiler.

Revision history for this message
Alexander Pukhov (pukhov) said :
#4

Please, show me the place where calchep crushes.

To do it call calchep under gbd (it you have it)

gdb ../bin/s_calchep

it should give you a prompt

(gdb)

type "r" and "Enter"

After crush type
bt

you will see sequence of commands which leaded to crush. Send it me,
please.

To finish gdb session type "q" and after that "y".

Let me know if you have not gdb but have "valgrind". It is another
debugger.
If you have not both of them, I'll send you version with debug prints.

Sometimes users inform us about problem with GUI initialization. But
always it was a problem with font.

More likely your model is not a reason of crush. Because GUI problem
should appear before model reading.
But if SM works fine on your computer and only your one crushes, let me
know.

Thanks,
     Alexander Pukhov

On 03/24/2016 11:57 PM, Maikel de Vries wrote:
> Question #289181 on CalcHEP changed:
> https://answers.launchpad.net/calchep/+question/289181
>
> Status: Answered => Open
>
> Maikel de Vries is still having a problem:
> The font is not the problem.
>
> The model crashes
>
> ./calchep: line 53: 7914 Segmentation fault (core dumped) $CALCHEP/bin/s_calchep $*
> CalcHEP has finished with error code 139
>
> when launching the C-compiler.
>

Revision history for this message
Maikel de Vries (mdt-maikel) said :
#5

Program received signal SIGSEGV, Segmentation fault.
0x000000000044cb1a in hline (xs=1, xe=5, y=6, ivr=1, slt=2)
    at diagram/diaprins.c:185
185 if (with1->partcl != prtclbase[with1->partcl-1].anti)
(gdb) bt
#0 0x000000000044cb1a in hline (xs=1, xe=5, y=6, ivr=1, slt=2)
    at diagram/diaprins.c:185
#1 0x000000000044d303 in mline (xs=0, ys=6, xe=6, ye=6, ivr=1, slt=2, hor=1)
    at diagram/diaprins.c:305
#2 0x000000000044d82a in painter (xc=6, yc=2, ivr=1, slt=1, hor=1)
    at diagram/diaprins.c:417
#3 0x000000000044dd28 in diaprin (res1=0x6a8e40 <resl>)
    at diagram/diaprins.c:512
#4 0x000000000044e8f2 in diaprt (fout=0x7fffffffa950)
    at diagram/diaprins.c:674
#5 0x000000000044f298 in writeTextDiagram (diag1=0x7fffffffaa20, label=1,
    comment=32 ' ', outfile=0x725440) at diagram/diaprins.c:826
#6 0x000000000043a27d in DiagramToOutFile (vcs=0x7fffffffaa20, label=1,
    comment=32 ' ') at out/out_serv.c:42
#7 0x00000000004319d8 in writpict (ndiagr=0) at out/c_out.c:135
#8 0x0000000000433081 in alldiagrams (fd=0x725680, nsub=1) at out/c_out.c:449
#9 0x0000000000433bc2 in writesubprocess (nsub=1, firstDiag=1, totDiag=1,
    breaker=0x7fffffffc44c) at out/c_out.c:606
#10 0x00000000004366e9 in c_prog_int () at out/c_out.c:1154
#11 0x000000000043683d in c_prog () at out/c_out.c:1183
#12 0x000000000040a8c6 in main (argc=1, argv=0x7fffffffd7b8) at s_calchep.c:497

Thanks for looking into this,

Maikel

Revision history for this message
Alexander Pukhov (pukhov) said :
#6

Thanks a lot. It's clear. Send me your model, please.
Also try to exclude diagrams output.
Press F5 and click first menu line
"Diagrams in C-output"
You should get "OFF"

Best
    Alexander Pukhov

On 03/25/2016 06:02 PM, Maikel de Vries wrote:
> Question #289181 on CalcHEP changed:
> https://answers.launchpad.net/calchep/+question/289181
>
> Maikel de Vries posted a new comment:
> Program received signal SIGSEGV, Segmentation fault.
> 0x000000000044cb1a in hline (xs=1, xe=5, y=6, ivr=1, slt=2)
> at diagram/diaprins.c:185
> 185 if (with1->partcl != prtclbase[with1->partcl-1].anti)
> (gdb) bt
> #0 0x000000000044cb1a in hline (xs=1, xe=5, y=6, ivr=1, slt=2)
> at diagram/diaprins.c:185
> #1 0x000000000044d303 in mline (xs=0, ys=6, xe=6, ye=6, ivr=1, slt=2, hor=1)
> at diagram/diaprins.c:305
> #2 0x000000000044d82a in painter (xc=6, yc=2, ivr=1, slt=1, hor=1)
> at diagram/diaprins.c:417
> #3 0x000000000044dd28 in diaprin (res1=0x6a8e40 <resl>)
> at diagram/diaprins.c:512
> #4 0x000000000044e8f2 in diaprt (fout=0x7fffffffa950)
> at diagram/diaprins.c:674
> #5 0x000000000044f298 in writeTextDiagram (diag1=0x7fffffffaa20, label=1,
> comment=32 ' ', outfile=0x725440) at diagram/diaprins.c:826
> #6 0x000000000043a27d in DiagramToOutFile (vcs=0x7fffffffaa20, label=1,
> comment=32 ' ') at out/out_serv.c:42
> #7 0x00000000004319d8 in writpict (ndiagr=0) at out/c_out.c:135
> #8 0x0000000000433081 in alldiagrams (fd=0x725680, nsub=1) at out/c_out.c:449
> #9 0x0000000000433bc2 in writesubprocess (nsub=1, firstDiag=1, totDiag=1,
> breaker=0x7fffffffc44c) at out/c_out.c:606
> #10 0x00000000004366e9 in c_prog_int () at out/c_out.c:1154
> #11 0x000000000043683d in c_prog () at out/c_out.c:1183
> #12 0x000000000040a8c6 in main (argc=1, argv=0x7fffffffd7b8) at s_calchep.c:497
>
>
> Thanks for looking into this,
>
> Maikel
>

Revision history for this message
Alexander Pukhov (pukhov) said :
#7

So, Could you send me your model?
Does

"Diagrams in C-output OFF"
solve the problems?

Best
    Alexander Pukhov

On 03/25/2016 06:22 PM, Alexander Pukhov wrote:
> Question #289181 on CalcHEP changed:
> https://answers.launchpad.net/calchep/+question/289181
>
> Alexander Pukhov proposed the following answer:
> Thanks a lot. It's clear. Send me your model, please.
> Also try to exclude diagrams output.
> Press F5 and click first menu line
> "Diagrams in C-output"
> You should get "OFF"
>
> Best
> Alexander Pukhov
>
>
> On 03/25/2016 06:02 PM, Maikel de Vries wrote:
>> Question #289181 on CalcHEP changed:
>> https://answers.launchpad.net/calchep/+question/289181
>>
>> Maikel de Vries posted a new comment:
>> Program received signal SIGSEGV, Segmentation fault.
>> 0x000000000044cb1a in hline (xs=1, xe=5, y=6, ivr=1, slt=2)
>> at diagram/diaprins.c:185
>> 185 if (with1->partcl != prtclbase[with1->partcl-1].anti)
>> (gdb) bt
>> #0 0x000000000044cb1a in hline (xs=1, xe=5, y=6, ivr=1, slt=2)
>> at diagram/diaprins.c:185
>> #1 0x000000000044d303 in mline (xs=0, ys=6, xe=6, ye=6, ivr=1, slt=2, hor=1)
>> at diagram/diaprins.c:305
>> #2 0x000000000044d82a in painter (xc=6, yc=2, ivr=1, slt=1, hor=1)
>> at diagram/diaprins.c:417
>> #3 0x000000000044dd28 in diaprin (res1=0x6a8e40 <resl>)
>> at diagram/diaprins.c:512
>> #4 0x000000000044e8f2 in diaprt (fout=0x7fffffffa950)
>> at diagram/diaprins.c:674
>> #5 0x000000000044f298 in writeTextDiagram (diag1=0x7fffffffaa20, label=1,
>> comment=32 ' ', outfile=0x725440) at diagram/diaprins.c:826
>> #6 0x000000000043a27d in DiagramToOutFile (vcs=0x7fffffffaa20, label=1,
>> comment=32 ' ') at out/out_serv.c:42
>> #7 0x00000000004319d8 in writpict (ndiagr=0) at out/c_out.c:135
>> #8 0x0000000000433081 in alldiagrams (fd=0x725680, nsub=1) at out/c_out.c:449
>> #9 0x0000000000433bc2 in writesubprocess (nsub=1, firstDiag=1, totDiag=1,
>> breaker=0x7fffffffc44c) at out/c_out.c:606
>> #10 0x00000000004366e9 in c_prog_int () at out/c_out.c:1154
>> #11 0x000000000043683d in c_prog () at out/c_out.c:1183
>> #12 0x000000000040a8c6 in main (argc=1, argv=0x7fffffffd7b8) at s_calchep.c:497
>>
>>
>> Thanks for looking into this,
>>
>> Maikel
>>

Revision history for this message
Alexander Belyaev (alexander.belyaev) said :
#8

Please send your model to us:

<email address hidden>
<email address hidden>

Can you help with this problem?

Provide an answer of your own, or ask Maikel de Vries for more information if necessary.

To post a message you must log in.