Networking Forums

Networking Forums > Computer Networking > Linux Networking > pcap_compile issue

Reply
Thread Tools Display Modes

pcap_compile issue

 
 
Shashank
Guest
Posts: n/a

 
      12-30-2007, 01:17 AM
Hi,

This is a strange problem OR I am doing something horribly wrong.
I am using multiple threads to read a pcap file using pcap_next. Since
the pcap routines arent MT-safe, I have made sure to use sync
variables wherever I have used those routines.
I am using gcc.
The problem is, I get a segmentation fault on pcap_compile whenever I
compile without the -O flag. However, there is no segmentation fault
if I use the -O flag. pcap_open_offline however, works irrespective of
whether I am using the -O flag.

Ive never had this problem when my progams werent MTd.
Any pointers why this is so?
**I am hoping this is the right group to post this in**

Thanks,
Shashank
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
No logon server available - Windows 2003 Trust Issue? NS Issue? newsgroups.jd@gmail.com Windows Networking 15 08-21-2006 07:38 PM
Senao 2611CB3+Deluxe setup issue, network configuration issue, orboth? RWM Wireless Internet 0 01-27-2006 06:00 PM
BPF packet filter and pcap_compile() lulepenguin Linux Networking 0 08-25-2005 07:49 AM
3 NIC IP routing issue & local dhp client issue Grimmo' Windows Networking 6 05-04-2005 10:19 AM
1. Redhat linux 7.2 issue 2. Redhat enterprise linux issue Moo Linux Networking 0 08-26-2004 10:02 AM



1 2 3 4 5 6 7 8 9 10 11