Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
hello_world.c segfaults in the most weird way
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post will appear after it is approved by moderators
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
robertle  
View profile  
 More options Sep 3 2009, 1:19 pm
From: robertle <rober...@semistable.com>
Date: Thu, 3 Sep 2009 10:19:52 -0700 (PDT)
Local: Thurs, Sep 3 2009 1:19 pm
Subject: hello_world.c segfaults in the most weird way
hi folks,

i amtrying to use libebb, but don't get very far: i compiled the
library ok (minus the -lefence), and then compiled the hello_world.c:

gcc -g -Wall -o hello hello_world.c -I.. ../libebb.a -lgnutls -lev

when i run this, it segfaults on ev_loop(). i linked against a debug
version of libev and libebb, and traced through the program, just to
find this weird behavior: the loop pointer gets corrupted when you do
ev_io_set in ebb_server_listen_on_fd. that doesn't make much sense to
me though, everything looks good.

has anyone seen this before?

thanks  robert


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
robertle  
View profile  
 More options Sep 4 2009, 5:03 am
From: robertle <rober...@semistable.com>
Date: Fri, 4 Sep 2009 02:03:08 -0700 (PDT)
Local: Fri, Sep 4 2009 5:03 am
Subject: Re: hello_world.c segfaults in the most weird way
found it: that happens when you compile the library with -
DHAVE_GNUTLS, and the app without it! then the structures have a
different size...

cu  robert


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »