DynamoRIO / DynamoRIO/drmemory

drmemory does not work with inkscape on Windows

Open
#876 18 comments 0 reactions 0 assignees View on GitHub
Bug-AppCrash Migrated OpSys-Windows Priority-Medium
Dominant language
C
Stars
2.7k
Forks
290
PR merge metrics
No merged PRs in 30d

Description

_From [dmat...@gmail.com](https://code.google.com/u/113272710489909424163/) on April 27, 2012 13:14:57_

What steps will reproduce the problem? 1. build inkscape on Windows using mingw (with symbols not stripped and the two static libraries used)

To use static libraries it was necessary to change in the inkscape source in file path_manipulator.c

throw std::invalid_argument("message")

to

throw "message"

in the two places that was present. Otherwise there was a linker conflict concerning "invalid_argument".
1. run dr.memory on: inkscape.exe -v
with arguments:

-debug -callstack_max_frames 100

(Call stack in the results is up to 23 layers deep, going to frames 200 didn't help.) Tried the series of extra flags from "tips" and the program did not run to completion until:
-leaks_only -no_count_leaks -no_track_allocs
where, of course, Dr.Memory isn't very useful!

Tried also

-dr_ops "-dumpcore_mask 0x8bff"

and it did NOT produce the expected ldmp file, in fact, it produced nothing at all in dynamorio\logs What is the expected output? What do you see instead? Inkscape should run normally and exit, emitting the version number. (Note, this is not the actual test I want, which is a real run, but it demonstrates that inkscape does not work in Dr.Memory even for its simplest mode.) What version of the product are you using? On what operating system? Windows XP SP3

Dr. Memory 1.4.6-2
Inkscape (from trunk, but the prepackaged binaries won't run in Dr.Memory either. It does the same thing [not run to completion] +/-
the static libraries and +/- stripping the symbols)
mingw (whatever was current on Soureforge a few days ago)

For debugging this problem in Dr. Memory one of the inkscape binary distributions will probably work. http://inkscape.org/download/ Does the problem go away when running in light mode (pass "-light" to Dr. Memory)?

No

What about when running with the options "-leaks_only
-no_count_leaks -no_track_allocs"?

Yes. Please provide any additional information below. Since no ldmp file was produced, I am sending the log file for

...\drmemory.exe -debug -call_stack_frames 100 -verbose 2 inkscape.exe -V

run on the inkscape.exe built with symbols not stripped and with the two static libraries

Ran a control on a simple command line windows program, and Dr.Memory had no problem with it.

**Attachment:** [inkscape.zip](http://code.google.com/p/drmemory/issues/detail?id=876)

_Original issue: http://code.google.com/p/drmemory/issues/detail?id=876_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.