[MacPorts] #34470: xgraph segmentation fault

MacPorts noreply at macports.org
Wed May 16 11:48:40 PDT 2012


#34470: xgraph segmentation fault
------------------------------------+---------------------------------------
 Reporter:  jursonovicst@…          |       Owner:  ryandesign@…           
     Type:  defect                  |      Status:  assigned               
 Priority:  Normal                  |   Milestone:                         
Component:  ports                   |     Version:  2.1.0                  
 Keywords:                          |        Port:  xgraph                 
------------------------------------+---------------------------------------
Changes (by ryandesign@…):

  * owner:  macports-tickets@… => ryandesign@…
  * status:  new => assigned


Old description:

> {{{ xgraph -device ps -o test2-ps test.data
> Segmentation fault: 11
> }}}
>
> Could you apply the segmentation fault solution described by
> [http://djconnel.blogspot.de/2012/03/installing-xgraph-on-mac-osx-
> lion.html], please?
>
> {{{
> "But then I faced a tougher problem: I was getting a persistent
> segmentation fault when I ran it. gdb wasn't turning up the problem,
> either.
>
> The clue was in the compiler warnings: xgraph plays fast and loose with
> casting between addresses and integers. Sometimes that works,
> sometimes... So in desperation I checked the gcc man page and started
> reading, looking for an option which treated all integers as longs. I
> didn't think this would work, because external libraries might not
> cooperate.
>
> I didn't find it. But what I found instead was the "-m32" option to
> compile the code in 32-bit mode even on a 64-bit machine. Hmm... seemed
> promising. I added this to the head of the "CFLAGS" definition in
> Makefile (Makefile having been generated with "configure", so this isn't
> the best approach). I tried it and, ding-ding-ding-ding, the code ran. My
> little victory shout was probably out of place, since I was on Caltrain
> at the time...
>
> So now it works."
> }}}
>

> Thank you for fixing the build issue yesterday...
>
> Tamás

New description:

 {{{
 xgraph -device ps -o test2-ps test.data
 Segmentation fault: 11
 }}}

 Could you apply the segmentation fault solution described by
 [http://djconnel.blogspot.de/2012/03/installing-xgraph-on-mac-osx-
 lion.html], please?

 > But then I faced a tougher problem: I was getting a persistent
 segmentation fault when I ran it. gdb wasn't turning up the problem,
 either. [[br]]
 > [[br]]
 > The clue was in the compiler warnings: xgraph plays fast and loose with
 casting between addresses and integers. Sometimes that works, sometimes...
 So in desperation I checked the gcc man page and started reading, looking
 for an option which treated all integers as longs. I didn't think this
 would work, because external libraries might not cooperate. [[br]]
 > [[br]]
 > I didn't find it. But what I found instead was the "-m32" option to
 compile the code in 32-bit mode even on a 64-bit machine. Hmm... seemed
 promising. I added this to the head of the "CFLAGS" definition in Makefile
 (Makefile having been generated with "configure", so this isn't the best
 approach). I tried it and, ding-ding-ding-ding, the code ran. My little
 victory shout was probably out of place, since I was on Caltrain at the
 time... [[br]]
 > [[br]]
 > So now it works.

 Thank you for fixing the build issue yesterday...

 Tamás

--

-- 
Ticket URL: <https://trac.macports.org/ticket/34470#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list