DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 23rd January 2011
Daffy Daffy is offline
Fdisk Soldier
 
Join Date: Jun 2010
Posts: 73
Thanked 0 Times in 0 Posts
Default Problem with Bluefish

I just installed Bluefish editor and it seems that I'm having some problems.

When I load any .css file, the editor crashes and I'm getting:

Code:
Segmentation fault   bluefish  (core dumped)
Can someone help me?

dmesg:

Code:
OpenBSD 4.8 (GENERIC) #136: Mon Aug 16 09:06:23 MDT 2010
    deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) M processor 1.50GHz ("GenuineIntel" 686-class) 1.50 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,SBF,EST,TM2
real mem  = 1063743488 (1014MB)
avail mem = 1036382208 (988MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 12/19/06, BIOS32 rev. 0 @ 0xfd750, SMBIOS rev. 2.33 @ 0xe0010 (59 entries)
bios0: vendor IBM version "75ET60WW (2.06 )" date 12/19/2006
bios0: IBM 1867WEF
apm0 at bios0: Power Management spec V1.2
apm0: battery life expectancy 47%
apm0: AC off, battery charge high, estimated 1:38 hours
acpi at bios0 function 0x0 not configured
pcibios0 at bios0: rev 2.1 @ 0xfd6e0/0x920
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdec0/240 (13 entries)
pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82371FB ISA" rev 0x00)
pcibios0: PCI bus #5 is the last bus
bios0: ROM list: 0xc0000/0xf600! 0xcf800/0x1600 0xd1000/0x1000 0xdc000/0x4000! 0xe0000/0x10000
cpu0 at mainbus0: (uniprocessor)
cpu0: Enhanced SpeedStep 1497 MHz: speeds: 1500, 1400, 1300, 1200, 1100, 1000, 900, 800, 600 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
mem address conflict 0x3f700000/0x80000
io address conflict 0x5800/0x8
io address conflict 0x5808/0x4
io address conflict 0x5810/0x8
io address conflict 0x580c/0x4
pchb0 at pci0 dev 0 function 0 "Intel 82915GM Host" rev 0x03
vga1 at pci0 dev 2 function 0 "Intel 82915GM Video" rev 0x03
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xc0000000, size 0x10000000
inteldrm0 at vga1: no ifp : irq 11
drm0 at inteldrm0
"Intel 82915GM Video" rev 0x03 at pci0 dev 2 function 1 not configured
ppb0 at pci0 dev 28 function 0 "Intel 82801FB PCIE" rev 0x03: irq 11
pci1 at ppb0 bus 2
bge0 at pci1 dev 0 function 0 "Broadcom BCM5751M" rev 0x11, BCM5750 B1 (0x4101): irq 11, address 00:16:d3:22:13:5a
brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
uhci0 at pci0 dev 29 function 0 "Intel 82801FB USB" rev 0x03: irq 11
uhci1 at pci0 dev 29 function 1 "Intel 82801FB USB" rev 0x03: irq 11
uhci2 at pci0 dev 29 function 2 "Intel 82801FB USB" rev 0x03: irq 11
uhci3 at pci0 dev 29 function 3 "Intel 82801FB USB" rev 0x03: irq 11
ehci0 at pci0 dev 29 function 7 "Intel 82801FB USB" rev 0x03: irq 11
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb1 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xd3
pci2 at ppb1 bus 4
cbb0 at pci2 dev 0 function 0 "Ricoh 5C476 CardBus" rev 0x8d: irq 11
sdhc0 at pci2 dev 0 function 1 "Ricoh 5C822 SD/MMC" rev 0x13: irq 11
sdmmc0 at sdhc0
ath0 at pci2 dev 2 function 0 "Atheros AR5212 (IBM MiniPCI)" rev 0x01: irq 11
ath0: AR5213A 5.9 phy 4.3 rf5112a 3.6, WOR2W, address 00:16:cf:00:ed:c9
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 5 device 0 cacheline 0x0, lattimer 0xb0
pcmcia0 at cardslot0
auich0 at pci0 dev 30 function 2 "Intel 82801FB AC97" rev 0x03: irq 11, ICH6 AC97
ac97: codec id 0x41445374 (Analog Devices AD1981B)
ac97: codec features headphone, 20 bit DAC, No 3D Stereo
audio0 at auich0
"Intel 82801FB Modem" rev 0x03 at pci0 dev 30 function 3 not configured
ichpcib0 at pci0 dev 31 function 0 "Intel 82801FBM LPC" rev 0x03: PM disabled
pciide0 at pci0 dev 31 function 2 "Intel 82801FBM SATA" rev 0x03: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <HTC426040G9AT00>
wd0: 16-sector PIO, LBA, 38154MB, 78140160 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
ichiic0 at pci0 dev 31 function 3 "Intel 82801FB SMBus" rev 0x03: irq 11
iic0 at ichiic0
spdmem0 at iic0 addr 0x51: 512MB DDR2 SDRAM non-parity PC2-4200CL5 SO-DIMM
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
aps0 at isa0 port 0x1600/31
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
biomask effd netmask effd ttymask ffff
mtrr: Pentium Pro MTRR support
softraid0 at root
scsibus0 at sdmmc0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <SD/MMC, Drive #01, > SCSI2 0/direct fixed
sd0: 7646MB, 512 bytes/sec, 15659008 sec total
root on wd0a swap on wd0b dump on wd0b
Reply With Quote
  #2   (View Single Post)  
Old 24th January 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,883
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by Daffy View Post
Code:
Segmentation fault   bluefish  (core dumped)
Segmentation faults are typically emitted by the OS when an application tries to access memory which is not in the application's process space. A common cause is where code uses an uninitialized address & when blindly using the ill-defined value goes outside of the process' bounds. In short, most causes for this error are coding mistakes.

As conjecture, your dmesg(8) output indicates you only have 1GB of RAM. It may be that most using this editor do so on systems with more memory. With more memory comes less swapping of memory pages. I suspect that the segmentation fault was exacerbated by the lack of memory, however, I can only guess without recompiling the source with debug information & attempting to use this editor in a similar environment as yours.

I see in CVS that the Makefile has een restructured for OpenBSD 4.9:

http://www.openbsd.org/cgi-bin/cvswe...efish/Makefile

Whether this addresses the problem you are experiencing is unknown.

If you are unable to debug the application yourself, you have four choices:
  • Install a snapshot of -current & install the -current's Bluefish package. Again, there is no guarantee this will resolve what you are experiencing.
  • There is currently no specific person serving as the maintainer of the application:

    http://openports.se/www/bluefish

    Posting to the ports@ mailing list may not generate much interest -- especially given that the developers are in the middle of stablizing the entire ports tree in anticipation of the tagging of OpenBSD 4.9. However, posting a PR would be good on your part. Information on submitting bug reports can be found at the following:

    http://www.openbsd.org/report.html
  • Add more memory to your system. Again, this may or may not mask the fundamental problem.
  • Try a different editor.
If you are needing quick resolution, I would suggest the first or fourth option. However, you will doing your part as an OpenBSD user by submitting a thorough PR.

Last edited by ocicat; 24th January 2011 at 01:24 AM.
Reply With Quote
  #3   (View Single Post)  
Old 24th January 2011
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

It should be noted that ports problems should not be sent using sendbug(1) or to bugs@, send them to ports@ only.

You may also want to contact the developers of this software, although they may require you to do things that are beyond the realm of "supported".. i.e: obtaining the latest source code and building it manually, which is difficult and error prone.
Reply With Quote
  #4   (View Single Post)  
Old 24th January 2011
wimwauters wimwauters is offline
Port Guard
 
Join Date: Aug 2008
Posts: 36
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by ocicat View Post
As conjecture, your dmesg(8) output indicates you only have 1GB of RAM.
Well spotted.

My OpenBSD Gnome desktop usually pushes beyond 1GB and settles around 1.4GB. Pretty much the same with PC-BSD/FreeBSD.

I would not run any BSD full-fat desktop (Gnome, KDE, etc...) with less than 2GB of RAM.
Reply With Quote
  #5   (View Single Post)  
Old 25th January 2011
Daffy Daffy is offline
Fdisk Soldier
 
Join Date: Jun 2010
Posts: 73
Thanked 0 Times in 0 Posts
Default

Thank you for your answers. I just don't understand something. I opened 14 different html tabs in bluefish, edited them saved them, all this many times without crashing. The only time I get a crash, is when I open a .css file...

As for the memory, I use Openbox. From top I get that I have 850-870M free memory every time... I don't know what's happening.

Well, time to learn to use vim/gvim with plugins.
Reply With Quote
  #6   (View Single Post)  
Old 25th January 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,883
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by Daffy View Post
The only time I get a crash, is when I open a .css file...
...which may indicate that CSS files go through a different code path than other HTML files, but this is simply a guess.
Reply With Quote
  #7   (View Single Post)  
Old 25th January 2011
rocket357's Avatar
rocket357 rocket357 is offline
Real Name: Jonathon
Wannabe OpenBSD porter
 
Join Date: Jun 2010
Location: 127.0.0.1
Posts: 322
Thanked 9 Times in 9 Posts
Default

Just a shot in the dark, but you aren't mixing openbsd flavors, are you? I've seen packages act weird (segfaults and such, like you describe) when RELEASE packages are installed on CURRENT or somesuch.

What's your PKG_PATH, if it's set?
Reply With Quote
  #8   (View Single Post)  
Old 25th January 2011
Daffy Daffy is offline
Fdisk Soldier
 
Join Date: Jun 2010
Posts: 73
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by ocicat View Post
...which may indicate that CSS files go through a different code path than other HTML files, but this is simply a guess.
I have Bluefish in my desktop (Linux distro there) and no problems yet with any kind of files.

Quote:
Originally Posted by rocket357 View Post
Just a shot in the dark, but you aren't mixing openbsd flavors, are you? I've seen packages act weird (segfaults and such, like you describe) when RELEASE packages are installed on CURRENT or somesuch.

What's your PKG_PATH, if it's set?
That's the first thing I always have in mind for OpenBSD-->never mix flavors. hehe.

The PKG_PATH I use is ftp://ftp.cc.uoc.gr/mirrors/OpenBSD/4.8/packages/i386/.
Reply With Quote
  #9   (View Single Post)  
Old 26th January 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,883
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by Daffy View Post
I have Bluefish in my desktop (Linux distro there) and no problems yet with any kind of files.
According to Wikipedia, Bluefish is originally a Linux application:

http://en.wikipedia.org/wiki/Bluefish_%28text_editor%29

However, it should be noted that they claim that it is written as POSIX compliant. This should mean that it can be ported to different platforms more easily as POSIX is considered to denote lowest common denominator compatibility. Unfortunately, just because developers claim POSIX compatibility doesn't mean that the application really is easily ported.

Also of note from Wikipedia is the statement that the current version is 2.0. You should verify what version you have on your Linux installation.

The current version of Bluefish on OpenBSD is 1.0.7 according to OpenPorts:

http://openports.se/www/bluefish

Why a more recent version has not been ported is probably due to low interest. There are a number of third-party applications in OpenBSD's ports tree which are several versions away from the most current. It's a fact of life.

So while I can empathize with your frustration, you aren't dealing with a situation where an apple (in one environment) can be compared to another apple (in a different environment). I suspect you have a newer version of Bluefish on Linux -- at least newer than the version available on OpenBSD. The behavioral difference between Linux & OpenBSD can most likely be isolated to the following two reasons:
  • Two different code versions.
  • Two different platforms. The Linux source base still has to be modified to run on OpenBSD. Either a bug was introduced in the porting effort, or the bug existed on Linux too, but was fixed in a later revision.
So perhaps this may explain why the same application behaves differently on the two platforms.
Reply With Quote
Reply

Tags
bluefish

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Boot problem. Geometry problem? gulanito FreeBSD Installation and Upgrading 0 3rd July 2009 03:03 AM


All times are GMT. The time now is 07:40 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick