yang2218 / simuino

Automatically exported from code.google.com/p/simuino
0 stars 0 forks source link

Crash when running simulation on Gentoo system #18

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run simuino on a gentoo system using a vanilla kernel
2. Load the test_UNO sketch
3. run it and press f

What is the expected output? What do you see instead?

If I try to run the included binary I get:
*** stack smashing detected ***: ./simuino terminated

If I build it locally, it doesn't say anything about the stack smashing. 
Instead, I get a segfault with gdb giving something about:
#0  0x0000000000402660 in winLog()

What version of the product are you using? On what operating system?

Simuino version 0.1.7

Please provide any additional information below.

Original issue reported on code.google.com by funkl...@vibes.se on 23 Nov 2012 at 2:53

GoogleCodeExporter commented 9 years ago

Original comment by benny.sa...@gmail.com on 4 Dec 2012 at 8:21

GoogleCodeExporter commented 9 years ago
This is actually a consequence of maximising the terminal window as recommended 
on the start page. In simuino_lib.c you find many contructions like:

    225 //====================================
    226 void winLog()
    227 //====================================
    228 {
    229   int i,k;
    230   char filler[120];
    231 
    232   wmove(slog,1,1);
    233   fill(log_w-strlen(simulation[currentStep+1]),filler,' ');

which will of course smash the stack on any moderately big terminal windows 
with the
default

   1222       log_w = s_col-board_w;

Original comment by f...@hars.de on 5 May 2014 at 1:18