Ticket #59 (new enhancement)

Opened 2 months ago

Last modified 2 months ago

cdVersion, cdDate cause segfault

Reported by: peter Assigned to: gary
Priority: minor Milestone:
Component: documentation Version:
Keywords: Cc:

Description

To my knowledge the attached program follows the instructions in Hazy 3 for setting up your own program that calls Cloudy as a subroutine. It calls cdVersion to get the version string. However that string is not initialized, so when cdVersion is executed, it tries to copy from a null pointer, causing a segfault. The same happens when you replace the call to cdVersion with a call to cdDate.

PS - It seems that cdVersion and cdDate are not included in the index of Hazy 3.

Attachments

template.cpp (3.6 kB) - added by peter on 03/05/08 08:38:04.
the offending program
patch (14.6 kB) - added by rjrw on 03/18/08 16:46:44.
Attached patch fixes the problem for me

Change History

03/05/08 08:38:04 changed by peter

  • attachment template.cpp added.

the offending program

03/18/08 16:46:44 changed by rjrw

  • attachment patch added.

Attached patch fixes the problem for me

03/26/08 11:34:40 changed by peter

  • owner changed from nobody to peter.
  • status changed from new to assigned.

Fixed on the mainline in r1889.

03/26/08 11:55:53 changed by peter

Disregard the previous comment. r1889 fixes #61, not this bug. This bug is still open.

03/27/08 12:44:27 changed by peter

  • owner changed from peter to gary.
  • priority changed from major to minor.
  • status changed from assigned to new.
  • component changed from infrastructure to documentation.
  • type changed from defect - etc to enhancement.

The code bug has been fixed in r1891. The documentation change still needs to be done.