Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

ngrep: additional flag prevents segfault #29665

Closed
wants to merge 1 commit into from
Closed

ngrep: additional flag prevents segfault #29665

wants to merge 1 commit into from

Conversation

dch
Copy link
Contributor

@dch dch commented May 28, 2014

Known issue on BSD platforms since v1.4.4 and
configure produces a warning if not present:

https://github.com/jpr5/ngrep/commit/e29fc29

NB ngrep seems to have moved to git at
https://github.com/jpr5/ngrep but I didn't get
master to compile successfully so I left it out.

Known issue on BSD platforms since v1.4.4 and
configure produces a warning if not present:

    jpr5/ngrep@e29fc29

NB ngrep seems to have moved to git at https://github.com/jpr5/ngrep
@dch dch mentioned this pull request May 28, 2014
@jacknagel jacknagel closed this in 6c520d7 May 29, 2014
@tleyden
Copy link

tleyden commented Jun 12, 2014

I just did a "brew update" and I'm still seeing the issue:

$ sudo ngrep -W byline -d lo0 port 4984
interface: lo0 (127.0.0.0/255.0.0.0)
*crash*

Should this have been fixed by 6c520d7?

@dch
Copy link
Contributor Author

dch commented Jun 12, 2014

From: Traun Leyden [email protected](mailto:[email protected])
Reply: Homebrew/homebrew [email protected](mailto:[email protected])
Date: 12. Juni 2014 at 18:24:11
To: Homebrew/homebrew [email protected](mailto:[email protected])
Cc: Dave Cottlehuber [email protected](mailto:[email protected])
Subject: Re: [homebrew] ngrep: additional flag prevents segfault (#29665)

sudo ngrep -W byline -d lo0 port 4984

Building from source via HOMEBREW_BUILD_FROM_SOURCE=1 brew install -v ngrep
works for me, but running the bottled version does not, via lldb:

(lldb) run
Process 8526 launched: '/usr/local/bin/ngrep' (x86_64)
interface: lo0 (127.0.0.0/255.0.0.0)
Process 8526 stopped

  • thread Git won't brew ln #1: tid = 0x4712c, 0x00007fff8bbecece libsystem_c.dylibflockfile + 22, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x48) frame #0: 0x00007fff8bbecece libsystem_c.dylibflockfile + 22
    libsystem_c.dylib`flockfile + 22:
    -> 0x7fff8bbecece: cmpq %r14, 0x48(%rdi)
    0x7fff8bbeced2: je 0x7fff8bbecef2 ; flockfile + 58
    0x7fff8bbeced4: addq $0x8, %rdi
    0x7fff8bbeced8: callq 0x7fff8bc322e2 ; symbol stub for: pthread_mutex_lock

Traun - can you build your own from source with the command above, and then re-try?

If it still fails, run lldb -- ngrep -W byline -d lo0 port 4984 and type run maybe we will see something useful.

A+
Dave

@dch dch deleted the ngrep-fix-segfault branch September 21, 2014 19:12
@Homebrew Homebrew locked and limited conversation to collaborators Feb 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants