Opened 12 years ago

Closed 12 years ago

#2077 closed defect (fixed)

override flag broken

Reported by: Bill Janssen Owned by: Martin Sjölund
Priority: high Milestone: 1.9.0
Component: Run-time Version: trunk
Keywords: Cc:

Description

OK, I can now compile camelbrake.mo, but when I try to run it with CSV output, it segfaults:

% ./camelbrake.testbench -r=foo.mat
% ls -l foo.mat
-rw-r--r--  1 wjanssen  wheel  113589 Feb 21 13:02 foo.mat
% ./camelbrake.testbench -r=foo.csv -override "outputFormat=csv"
Segmentation fault
%


Attachments (1)

camelbrake.mo (862 bytes ) - added by Bill Janssen 12 years ago.

Download all attachments as: .zip

Change History (5)

by Bill Janssen, 12 years ago

Attachment: camelbrake.mo added

comment:1 by Bill Janssen, 12 years ago

(gdb) run  -r=foo.csv -override "outputFormat=csv"
Starting program: /private/tmp/camelbrake.testbench -r=foo.csv -override "outputFormat=csv"
Reading symbols for shared libraries .++++++...... done

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: 13 at address: 0x0000000000000000
0x00007fff86321c00 in strlen ()
(gdb) bt
#0  0x00007fff86321c00 in strlen ()
#1  0x00007fff863287f8 in strdup ()
#2  0x0000000100096fd8 in doOverride () at meta/meta_modelica_catch.c:32
#3  0x000000010009d79a in read_input_xml () at meta/meta_modelica_catch.c:32
#4  0x00000001000b62cc in initRuntimeAndSimulation () at meta/meta_modelica_catch.c:32
#5  0x00000001000b6818 in _main_SimulationRuntime () at meta/meta_modelica_catch.c:32
#6  0x000000010000bbdd in main ()
(gdb)


comment:2 by Martin Sjölund, 12 years ago

Component: BackendRun-time
Owner: changed from probably noone to somebody

comment:3 by Martin Sjölund, 12 years ago

Owner: changed from somebody to Martin Sjölund
Status: newassigned
Summary: csv output brokenoverride flag broken

CSV output isn't broken. It works just fine. However, when using -override (to change a parameter that doesn't exist) the code fails somewhere. I'll investigate it.

comment:4 by Martin Sjölund, 12 years ago

Resolution: fixed
Status: assignedclosed

Fixed in r15268.

Note: See TracTickets for help on using tickets.