My program is evidently writing into a forbidden area of memory, as it
segfaults in the Standard Library std::string code, attempting to access memory
below the stack pointer. Memcheck 3.11 isn't finding anything significant,
except that it prints these warning messages at the beginning of the run:
--27820-- warning: addVar: in range 0x0 .. 0x179 outside all rx mapped areas
(this)
--27820-- warning: addVar: in range 0x0 .. 0x179 outside all rx mapped areas
(__k)
--27820-- warning: addVar: in range 0x0 .. 0x167 outside all rx mapped areas
(__x)
--27820-- warning: addVar: in range 0x0 .. 0x167 outside all rx mapped areas
(__y)
--27820-- warning: addVar: in range 0x0 .. 0x167 outside all rx mapped areas
(__comp)
--27820-- warning: addVar: in range 0x0 .. 0x167 outside all rx mapped areas
(__j)
Do those give any clue as to the source of my error? Also, Memcheck prints
out few messages like the following right at the beginning, with no other
information. Any ideas on this?
--27820-- free(0x0)
My O/S is CentOS 6.6. Here are my Memcheck arguments:
valgrind --gen-suppressions=all --error-markers=BEGIN_MARK,END_MARK
--free-fill=FF --malloc-fill=FF --trace-malloc=yes --trace-children=yes
--track-origins=yes --read-var-info=yes --partial-loads-ok=no
--log-file=vg2.out --suppressions=./vg2_suppressions.supp <my_program>
Thanks for any help.
Kurt
------------------------------------------------------------------------------
Presto, an open source distributed SQL query engine for big data, initially
developed by Facebook, enables you to easily query your data on Hadoop in a
more interactive manner. Teradata is also now providing full enterprise
support for Presto. Download a free open source copy now.
http://pubads.g.doubleclick.net/gampad/clk?id=250295911&iu=/4140
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users