public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Ángel González" <keisial@gmail.com>
To: gcc-help@gcc.gnu.org
Subject: Re: segfault when functions are defined in headers or inlined
Date: Fri, 10 Jul 2015 14:32:00 -0000	[thread overview]
Message-ID: <559FD77B.3040208@gmail.com> (raw)
In-Reply-To: <CAP4yCj-YURKVhN-+pJ_ncKvB1EQtTMq3h6LNXn7X0LW16TW5Ag@mail.gmail.com>

On 10/07/15 13:21, achkan wrote:
> When is said every function I meant every function from the library (which
> uses a lot of stuff... Torch7, wxWidget, opengl, eigen, opencv...). I
> wouldn't know how to reproduce its behavior. But I'm sure that this problem
> happens only when I include the wxWidget headers (the console versions do
> not segfault.). Is it possible for a library to cause the problem I'm
> talking about? I mean how can
> leaky code, or any memory problems be avoided just by moving the definition
> to the cpp?? But yeah you're right. I'll see if I can do that.

Are you using an already-built library file?
A mismatch between the library object and the headers you use could cause
what you are seeing. I would try recompiling the library.

  reply	other threads:[~2015-07-10 14:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-10  9:50 achkan
2015-07-10 10:33 ` Jonathan Wakely
2015-07-10 11:04   ` achkan
2015-07-10 11:10     ` Jonathan Wakely
2015-07-10 11:21       ` achkan
2015-07-10 14:32         ` Ángel González [this message]
2015-07-10 15:32           ` achkan
2015-07-10 14:28 johnsfine

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=559FD77B.3040208@gmail.com \
    --to=keisial@gmail.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).